Removing scripts?

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Thermopylae
Posts: 217
Joined: Tue, 13. Jan 04, 16:07
x2

Removing scripts?

Post by Thermopylae »

i know this is probably mega basic, but how do you remove existing active scripts...all ive got are the osprey, and mk3 trad scripts, but would appreciate the help :)
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

I found this at xscripting.com

TIPS ON REMOVING SCRIPTS....
Posted on Thursday, January 29 @ Eastern Standard Time by SteelRush
foxtrot359 writes "THINGS YOU SHOULD KNOW FIRST;

The first thing you need to know is that scripts are saved within the save game. So even if you delete the script from the directory the script will still come back when you load a save game, that had the script active.



The second thing is you need to know what files belong to what scripts. That is why it’s very important for scripter to include the file names of all the scripts they are using for there mod, in the read me file.

There are two types of loop script the first one is the deadliest of all loops, meaning that it’s the hardest to get read of. This loop script is manually activated in the script editor and is usually pointing to multiple objects, to control. This type of script cannot be turned off.

The second type of loop script is easier to remove because it uses an init command file script. (init.cmd.name.xml). the init command script is a file that will add/or activate a button command within the game menu, example; buyware for best price, sellware for best price, etc….. These types of commands can be turned off just by selecting none in the command menu.

Standard or non-looping scripts are run once scripts and can be activated manually by using the script editor or by using an init command script which adds a button in the game menu. The type of non-looping script used is up to the scripter.

BEST WAY TO REMOVE SCRIPTS;

1.Open the save game of the script you wish to remove and deactivate any ship or station using the script by selecting the command none.
2.Go into the script editor and delete the scripts you wish to remove, by selecting the script and clicking on the DEL key.
3.Go back into the game menu and resave the game, and then quit the game.
4.Go into the game directory and make sure there are no 44****.xml files pointing to the scripts you deleted if so remove the file. Also check the script directory to make sure the scripts are gone.
5.Open the game and load the save game you saved earlier and the script should be gone.

IF you have the deadly loop script that you had to active manually try this first.

1.Open the save game of the script you wish to remove and go into the script editor.
2.Select the looping script and hit enter on the keyboard to get into the script.
3.Delete any loop commands in the file and at the bottom of the script type break
example;
break
return null

now save the script file then resave the game and then quit the game.
None do steps 1-5 at the top. If this does not work then you’ll have to restart a new game or a old save game.
"Nature's first green is gold" . . . stay golden.

Return to “X²: The Threat - Scripts and Modding”