scripting i need help please!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

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

reed
Posts: 269
Joined: Thu, 19. Feb 04, 20:10
x3

scripting i need help please!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Post by reed »

i want to add a script but keep an orignal game seperate so i don't lose my progress so far how would i go about installing it and making certain my precious progress so far isn't ruined

so thats

1) how to install
2) how to keep the original correct
3) how to remove when i want to use the correct script
4) wll this permenatently affect my future game play when removed
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

1. Here's a primer http://www.egosoft.com/x2/forum/viewtopic.php?t=44887 Also, the specific script should have instructions in a readme.
2. Just make a copy of the samegame file in a backup folder somewhere. That single savegame file is all you need. Note: do not ever load this savegame file while you have the script installed or when you resave the game, the script will attach itself to the save game. (it might or it might not depending on a few factors, but if you want to keep it pure, just don't do it to be safe.)
3. Uninstalling a script can be easy or hard depending on the script. This is covered in the thread in 1. above.
4. If you're asking what will happen to a game that has the script running after you remove it, it depends on the script. Most likely the game will still be playable after the script has been removed, they typically don't change that much.

If you decide you don't like a script and you want to go back to your backup save: Uninstall the script, deleting all of the script files from your scripts folder (and related T files as well). Then load up your backup. It should work just as it did before you installed the script. I'd advise making a copy of the the save to load up. That way if things get desperate, and you can't seem to remove the script properly, you can always reinstall the game, and then play your save from there.
"Nature's first green is gold" . . . stay golden.
User avatar
Kailric
Posts: 985
Joined: Sun, 7. Dec 03, 05:15
x3

Re: scripting i need help please!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Post by Kailric »

reed wrote:i want to add a script but keep an orignal game seperate so i don't lose my progress so far how would i go about installing it and making certain my precious progress so far isn't ruined

so thats

1) how to install
2) how to keep the original correct
3) how to remove when i want to use the correct script
4) wll this permenatently affect my future game play when removed
Here is what I have learned

1) scripts go in the /script folder the numbered .xml files go in the /t folder
2) if you haven't enabled the script editor on your saved game you have nothing to worry about as no new unsigned scripts will load on a game that does not have the editor enabled..so you can enable the editor, save the game to a new slot..install the scripts...then check the out, then even reload your unedited saved game without haveing to change a thing.
3) all scripts are loaded from the scripts that have init. at the first of their name, with out these these scripts no other scripts will not load...so you make sure the init. files are removed and then you are safe to continue as before
4) Here is an example: when an object is told to run a script it checks the global script data base that tells it what script to run ...for player ships its then "init.ship.globalscriptmap.pl" it then runs the script that was loaded by this initiating script. Also, every object that is running a script has its own copy of that script. So if you delete a script..when you load the game ..any object that was running that script will still be running that script. But when the script has finished its task, it will then get then new
script from the ones commanded in the"init.ship.globalscriptmap.pl". So there for as long as it has the orginal initiating (init) script things will go back to normal eventualy.

Thats what I have learned
"Try not. Do or do not, there is no try."-Yoda

"[Its] time for the human race to enter the solar system"-Dan Quayle

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