Jump to content

What Script remnants and bloat is left behind.


Recommended Posts

Make sure all scripts are terminated.

 

For example you have a quest that runs a script like:

 

while GlobalValue = 1

do stuff;

endWhile

 

If you now uninstall the mod, the quest and etc is gone but the instance of the script is going to continue and will run further. If someone wants to uninstall the script, you need to set the global value to 0 and the script will run through and terminate. When the event doesnt retrigger it and repeats it.

 

This is a very simple example. Also, all references that your script binds are persistent and will be saved with the save file. For example a referance alias script. Make sure they get cleaned when not needed anymore.

 

 

Easy said:

All scripts need run to fast and need to end at some point. Scripts need to be terminated before disabling. Looping for ever is bad.

 

Here is a example video from Skyrim, it shows orphaned scripts in action:

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...