[- UPDATE -] Improved Trade Software ST1 - Version 7.01 04/14/2011

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

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

User avatar
TSM
Not a Moderator
Posts: 2947
Joined: Thu, 1. Jul 04, 12:31
x4

Post by TSM »

Wud be difficult problem to recreate as I am now using a back up T and scripts folder and a back up save game 8) ! as far other scripts I use all of xai corps, burianeks 2nd prod line, Lv's Hire 1.3, all off the signed scripts , and I have the Goner Secrets mod aswell (luv that terrator :P ) so if any of that helps
FAQ's Egosoft Interactive FAQ
Egosoft Wiki
Tritous
Posts: 899
Joined: Sat, 15. Jan 05, 17:20
x3tc

how embarassing

Post by Tritous »

Have to say this raises the efficiency, my two loops (large loops mind) have managed to cut about 10 ships out of one and 4 out of the other (that was an efficient loops anyway)

now whether this is just bad luck, but as soon as i started using this software, while my factories were running better, I lost 12 ships in 2 hours SETA, whereas in 40 odd hours SETA over a few days I'd only lost 2 beforehand.

I also got the embarassing report that one of the ships had been destroyed by one of my own factories. looks like we have some drunk drivers. Never known that to happen before
Give a man a fire, he'll stay warm for a day
Set a man on fire, he'll stay warm for the rest of his life ;)
User avatar
SpaceTycoon
Posts: 1190
Joined: Wed, 6. Nov 02, 20:31
x4

Post by SpaceTycoon »

There isn't any change in the scripts of "Supply Software ST1"!

But I updated the "Navigation Software ST1" to Version 6.02
...and included this new Version in the dowload zip-file of "Supply Software ST1" too.

If you like to upgrade: Only exchange the old scripts of "Navigation Software ST1" in \scripts folder with the new ones dated 04/08/2005 before you start the game. There is no need to give any ship new commands - the ships will use the new jump scripts immediately.

Read more about the changes in "Navigation Software ST1 - Version 6.02" at the forum topic http://www.egosoft.com/x2/forum/viewtopic.php?t=67302
Last edited by SpaceTycoon on Sat, 9. Apr 05, 00:06, edited 1 time in total.
ProfJames
Posts: 1
Joined: Wed, 6. Apr 05, 20:45
x2

Implementing the script

Post by ProfJames »

i dont understand how to implement this script ionto the game folder, can any1 tell me how please. thanx
User avatar
SpaceTycoon
Posts: 1190
Joined: Wed, 6. Nov 02, 20:31
x4

Post by SpaceTycoon »

ProfJames wrote:i dont understand how to implement this script ionto the game folder, can any1 tell me how please. thanx
Hello ProfJames,

you need to activate the script editor inside the game to get unsigned scripts like this to work. To activate script editor:
Fly somewhere in space. Type exactly these characters slowly with your keyboard (upper case T, all other chars lower case): Thereshallbewings
You must hear a short beep. Then the editor is activated.
If script editor is activated you will see the word 'modified' in upper left corner of the screen. You can never deactivate the script editor after it is activated! Save your game and leave it.

Create a folder C:\TEMP. Decompress all the files of the ZIP with WinZip or WinRar into this folder.
Copy all these following files to subfolder \scripts in the X2 game folder:
  • init.plugin.fabsupplysoftST1.xml
    init.plugin.navsoftwareST1.xml
    plugin.fabsupplysoftST1.helper.xml
    plugin.fabsupplysoftST1.main1.xml
    plugin.fabsupplysoftST1.main2.xml
    plugin.fabsupplysoftST1.sect.pl.xml
    plugin.fabsupplysoftST1.sellc.pl.xml
    plugin.fabsupplysoftST1.sellw.pl.xml
    plugin.fabsupplysoftST1.stat.pl.xml
    plugin.fabsupplysoftST1.ware.pl.xml
    plugin.navsoftwareST1.jump.xml
    plugin.navsoftwareST1.jumpDck.pl.xml
    plugin.navsoftwareST1.jumpPos.pl.xml
    remove.plugin.fabsupplysoftST1.xml
    remove.plugin.navsoftwareST1.xml
Copy all other files (files with extension .txt and files beginning with a number in the filename)
to subfolder \t inside the X2-game folder.

Start the game again.
At every pirate station and equipment dock you should find the new wares "Navigation Software ST1" and "Supply Software ST1" to buy.
User avatar
SpaceTycoon
Posts: 1190
Joined: Wed, 6. Nov 02, 20:31
x4

Post by SpaceTycoon »

New in Version 6.02 of 04/17/2005:

1)
In the past the TS scanned and visited secors in galaxy which were unknown to the player. This don't happen anymore.
Only sectors which are known by the player (you're able to see them in the galaxy map)
are scanned and visited by seller or buyer TS now.

2)
Stations which are foe to the player aren't visited anymore.

3)
If a station gets destroyed during the flight of the TS the TS will recognize this now and search for another station. The same if a station changes from friend to foe during the flight of the TS.
If the homebase of the TS is destroyed during the flight back the TS stops working and send a message about this into the player log.

You need to update the complete scripts AND the language file. To get the TS work with the new scripts you need to command them new. Sorry, there is no other way to perform this. To update the old files to the new ones, take a look at the posting above.
User avatar
SpaceTycoon
Posts: 1190
Joined: Wed, 6. Nov 02, 20:31
x4

Post by SpaceTycoon »

To get the TS work with the new scripts after extraction to the folders /scripts and /t you need to command them new. Sorry, there is no other way to perform this. I hope in future this behavior is gone - this is one of the changes, described below. Because of changes in the language file ships with the older 'Supply Software' will show wrong messages in the menues. But the old script running on a TS from your savegame, works in normal behavior.

New in Version 7.00 of 09/17/2005:

1.)
Changed the filename of the scripts and the name of the software inside the game. Because the script is able to buy and sell for factories and docks this is a complete trade software. So I changed the old name "Supply Software ST1" to the new name "Improved Trade Software ST1".

2.)
Changed the way (arguments) the player scripts start the main scripts. Now in player scripts (bind to the commands) the complete work to setup the array for stations and wares is done.

3.)
Programmed a script restart functionality if scripts are updated. With this function I hope there is no need to command the ships new for further updates.

4.)
Now the scripts support buying of secondary resources too. No players factory in the standard game has secondary resources. But may be someone developed a mod with secondary resources for player factories too. So this script should work there to buy also these secondary resources and not only primary like before.

5.)
Buying and selling for docks. Trade docks and equipment docks are supportet now. The command "Supply with resource" give you the function to choose a dock and a ware to buy for. A new command "Sell Dockware for best price" give you the function to sell for docks.

6.)
Buy only at your own factories. With setting of Goner = Foe a TS search first at players factories an buy there if 50% or more of the amount of ware the TS want to buy is in store. If no players factory was found, then the TS search (and buy) at aliens factories.
Now you can change this if you equip the TS with Ecliptic projector. A TS with Goner = Foe and installed Ecliptic projector buy only at players factories and not at alien factories anymore. And it buy immediately, don't look for the 50%. If Goner = Friend the Ecliptic projector has no influence.

7.)
Audio messages. I programmed a brandnew error handler. This included audio messages for the player if an error happens.

8.)
Wares are shown in players log. Now the message in the players log not only show the factories a TS buy or sell for. It shows the product too if the command "Supply with resource" or one of the sell commands is given.

9.)
Short help. In the command menue of the ship you can read short informations about the functions with the key 'i'.

10.)
And major changes in the main script to get the functions work with the changed arguments and especially the docks. :doh:

:x2:

After successfully installed the new scripts version 7.00 with the changed filenames you can delete the following files in folder /scripts:
  • init.plugin.fabsupplysoftST1.xml
    plugin.fabsupplysoftST1.helper.xml
    plugin.fabsupplysoftST1.main1.xml
    plugin.fabsupplysoftST1.main2.xml
    plugin.fabsupplysoftST1.sect.pl.xml
    plugin.fabsupplysoftST1.sellc.pl.xml
    plugin.fabsupplysoftST1.sellw.pl.xml
    plugin.fabsupplysoftST1.stat.pl.xml
    plugin.fabsupplysoftST1.ware.pl.xml
    remove.plugin.fabsupplysoftST1.xml
User avatar
SpaceTycoon
Posts: 1190
Joined: Wed, 6. Nov 02, 20:31
x4

Post by SpaceTycoon »

Released new version 7.01.

New in Version 7.01 of 04/14/2011:

1.)
Changed the way of script initialization. File "init.tradesoftwareST1.xml" not longer needed.
Its mandatory to delete this file if you use these scripts in former versions.

2.)
Minor changes in language file 447777.xml.

3.)
Minor cosmetic changes in several scripts.

After successfully installed the new scripts version 7.01 you must delete the following file in folder \scripts:
  • init.plugin.fabsupplysoftST1.xml
if it exist!

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