Hi Folks,
Could some kind person explain how I can safely remove or disable a script?
In this case the Towing Script, as it clashes with the Hull Repair Script.
Thanks,
Arnak
Safely removing scripts?
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
-
- Posts: 3933
- Joined: Sat, 3. Jul 04, 18:53
Safely removing scripts?
Just remember that Murphy was an optimist!!
i7 4ghz, R290 vid card, 16 gig Ram, W7.
i7 4ghz, R290 vid card, 16 gig Ram, W7.
-
- Posts: 2981
- Joined: Mon, 29. Dec 03, 03:29
The quickest way to prevent a script from running is to find the associated setup.xml or init.xml script and delete it from your scripts directory. The next time you load the game, the script will not have it's commands in your command console. This will not remove command wares that have already been added into the game (if there are any). It will also not stop ships that are currently running the script.
If you want to completely remove all traces of the script, the only thing you can do is revert to a save game from before you installed it. But to be honest, if you can put up with the two things mentioned above, it's usually enough just to get rid of the init or setup.xml file.
Note that the above will only work for scripts that are written with setup or init.xml files. Thankfully, most scripts since version 1.3 of X2 came out have been written this way. These scripts are reinitialized every time the game is loaded, that is why removing the initialization file stops them from being loaded. If the script you want to remove was run manually from the script editor you could have problems removing it. In this case, there is a topic in the tutorials sticky called 'how to install/manage scripts and mods' that gives some further instructions that might work.
Does that makes sense?
Cheers.
If you want to completely remove all traces of the script, the only thing you can do is revert to a save game from before you installed it. But to be honest, if you can put up with the two things mentioned above, it's usually enough just to get rid of the init or setup.xml file.
Note that the above will only work for scripts that are written with setup or init.xml files. Thankfully, most scripts since version 1.3 of X2 came out have been written this way. These scripts are reinitialized every time the game is loaded, that is why removing the initialization file stops them from being loaded. If the script you want to remove was run manually from the script editor you could have problems removing it. In this case, there is a topic in the tutorials sticky called 'how to install/manage scripts and mods' that gives some further instructions that might work.
Does that makes sense?
Cheers.
Last edited by Burianek on Sat, 2. Apr 05, 06:53, edited 1 time in total.
"Nature's first green is gold" . . . stay golden.
-
- Posts: 3933
- Joined: Sat, 3. Jul 04, 18:53
Safely removing a script
Thanks Burianek, I'll give that a try.
Arnak
Arnak
Just remember that Murphy was an optimist!!
i7 4ghz, R290 vid card, 16 gig Ram, W7.
i7 4ghz, R290 vid card, 16 gig Ram, W7.