My mod attaches a script to the player. Now I'm making a new version of the mod (new .esp file) which uses the same script file from the scripts folder, and it somehow stopped working in all saved games where I have used my previous version (even after making a clean save). Now what turns out to be the case?
After disabling the previous version of the mod, that same script is STILL attached to the player, even in a clean save with no version of my mod enabled. I changed the script to include a messagebox, and it even popped up with no version of my mod enabled. Because of this, the new version of the mod was probably unable to attach the script again (because it was already there), but it also stopped working (because the old version of the mod was disabled, and therefore properties are not defined anymore).
So a warning to everyone attaching scripts to objects and keeping the same script throughout different versions of the plugin: IT WILL PROBABLY BREAK. I think it will be fixable by renaming the script and using the renamed script instead of the old one (because then it will have a unique name and be able to be attached again), so I'll try that now.


