Papyrus bug after uninstallinstall again a mod

Post » Sun Apr 07, 2013 4:12 pm

Hi,

So I've got this code (partial) :

Event OnInit()   RegisterForSingleUpdateGameTime(MaintenanceREF.AIUpdateBandits)EndEventEvent OnUpdateGameTime()   If (ImperialHQREF.NbOfPlacesPlayer + ImperialHQREF.NbOfPlacesImperial + ImperialHQREF.NbOfPlacesEETC) &--#62;= MaintenanceREF.NbOfPlacesToActivateBandits      UtilPerc = RandomInt(1,34)      debug.notification("*DEBUG* UtilPerc = " + UtilPerc)   .....

I had this mod running for a few hours with no problem at all. The conditions have never been verified, so UtilPerc has never been set with its random value.
But if I uninstall my mod (with an uninstall button that Stop() all scripts) and install it again, then I have endless messages showing "UtilPerc = 21 ; UtilPerc = 12 ; UtilPerc 33 etc....". It goes crazy, does everything it shouldn't do ! (including activating functions that shouldn't be casted).

Bad, bad, naughty Papyrus, why do you do that to me ? :(
User avatar
Lindsay Dunn
 
Posts: 3247
Joined: Sun Sep 10, 2006 9:34 am

Return to V - Skyrim