Mandatory: If you used this scripts before, you must delete the file "init.navsoftwareST1.xml" in folder \scripts after update!
Ship commands for TS to automate buy and sell for up to 7 factories per ship.
This text got a complete edit at 10/15/2004!
So following answers and comments at page one of this topic are not appropriate anymore.
Do you still use one ore more TS for EACH of your factories? Stop this now.
Buy for up to SEVEN factories or docks with ONE transport ship!
Sell for up to SEVEN factories or docks with ONE transport ship!
Take control over your TS like you've never thought before.
Make your TS as 'smart' as possible.
The Scripts work only with X2 Version 1.4/1.5 because the scripts use new scripteditor commands!
I'm German so please don't be angry if I mistyped something here...
These scripts are in use and tested by many hundered german players (i guess) of X2 since April 2004. This may be not the real count of german players because my german topic about this software got more than 32,000 hits this moment. With all of their functions included it is a very special software extension for TS you will not find similar in the world this moment. English language file (447777.xml) is enclosed. There is a short english documentation included. But THIS posting is much more the complete documentation. So please read this complete to learn more about the functionality.
The download above include TWO separated software extensions for ships. After activation of the script editor inside the game, installation of the scripts in \scripts directory and language files in \t directory of your X2 game you can buy two software extensions. At all Equipment Docks and all Pirate Stations available:
- "Navigation Software ST1" for only 1.572 Cr.
"Trade Software ST1" for 158.204 Cr.
"Navigation Software ST1" you can buy for every ship which is able to carry the jumpdrive (M4, M3, M6, TP, TS...).
Separate forum topic here: http://www.egosoft.com/x2/forum/viewtopic.php?t=67302
Give every ship the ability of automatic refueling with energy to jump into a sector and then fly to a given position or land at a given station/big ship. After you bought this software the navigation menue show two new commands "Jump and Dock" and "Jump to Position". The range your ship will be able to jump depends on the free space in cargo because neccessary energy cells are loaded into the cargo bay. You have to pay for the energy cells (only 16Cr.each). The cost is taken from your player account or from the homebase of the ship if "Trade Software ST1" is running on a TS. If you own a fleet and give the leader ship the command to jump, all escort ships will jump with their leader if they have jumpdrive and enough free space in cargo for energy cells.
The software here "Trade Software ST1" make use of the jump script, if you buy it too for the ship!
You need to buy both software extensions plus jumpdrive plus boost drive for your TS to make the complete buy an sell function work like expected. You can buy "Trade Software ST1" for TP or TS (I would prefer to use this extension with TS only). After you've bought this software you will find the following SIX commands in the trade menue of your TS:
Choose a sector with one or more of your factories. It is not neccessary to position the TS inside this sector. Up to 7 factories are memorized by the ship. If you own more than 7 stations in one sector make usage of the second command (see below). Or send the TS to an appropriate position inside this sector because the scan of the stations starts up from the position of the TS. The ship buy for the choosen factories all of the needed resources. If you like only to delete a TS homebase use this command too. Set the missile fire probability of the TS to 0 and execute this command.
Choose up to 7 of your factories [no docks] in different sectors (Or in the same sector. Or one/two/three... in the same sector or different sectors). The factories you choose are all supplied by the one transport ship with all neccessary resources. The ship is able to support less than SEVEN factories. To get this you need to choose factories twice or more. For eg. to give the ship FOUR factories to work for, choose one of the four factories four times. To let the ship work for one factory you need to choose this factory seven times. Sorry for that, but there is no other way to program this.
Supply with Resources
You can choose up to SEVEN stations (factories and/or docks) but you need to choose one resource of each station too. Your TS then will buy only this ware for the given factories. For example: With this function you can define a TS which buys only silicon for up to seven factories. Or you can define a TS which buy only the BoFu for a boron crystal fab, only the Cahoona for a argon crystal fab, crystals for a energy fab, and energy for another fab.
The start of the command is similar to the function above. If you want to choose only three of your stations with one of their resources you need to choose one of these three stations and the resource five times. Sorry for that, but there is no other way to program this.
This command supports trade docks and equipment docks too! So you're able to buy up to 7 wares for one dock with one TS.
Sell Fabware for best price
If you choose this command, you're able to select seven of your factories the TS should work for. If you want to get the TS work for only two factories you need to choose one of these two factories six times. The TS will start to sell the product of the factory(s) for the highest price it can find in the range of the jump setting of the actual factory. For example: I'm using this function to sell energy cells of 12 energy fabs with TWO boron dolphin. There is a special function included to avoid that more than one TS with selling function fly to the same factory at the same moment. This is explained further below.
Sell Dockware for best price
The function here to select stations and wares is the same than "Supply with Resources". Please refer to the function above. The difference is that the TS sell the choosen ware of the dock or docks. You can sell for one dock up to 7 of the wares in store or sell for seven docks one ware of these docks. Or anything in between (eg. seven wares from three docks).
Sell from Cargo for best price
Just choose the product in the cargo bay of your TS which you like to sell. The TS will sell all amount -may be at different factories- and after sold the complete amount the ship ends this command in the last buyer factory. I'm using this command after blowing up an asteroid to sell collected ore for the best price. But you can use this command too for selling ware you've bought manually at any factory before. You need to take care about the free amount in cargo for energy cells if the ship collects ore or if you buy manually ware at any factory. Because buyers are searched in the jump range the ship ist able to load energy for. For eg. you collected ore and now the free space in cargo is 67. The ship is searching for a buyer with the highest price in a scan range of 5 jumps and if found it loads 60 energy cells and jumps to the buyer. In this function the TS don't need a homebase. The money earned goes directly to the account of the player.
Functions to take influence how the TS works BUYING (special)
Like standard trade extensions of X2 the TS read the settings of the homebase to work in a given manner. These settings are jump range and price. You can take influence how the TS find a seller by adjusting these settings in the same way like you do with the standard X2 trade commands. But you need to know that the TS changes the homebase automatically if you choose more than one factory to buy for. So you should take care of the price and jump settings of ALL factories a TS buy for.
You can decide yourself when the ship shall start to buy or how much resources you like to store in your factories! Adjust the setting of missile fire probability in command menue of your transport ship (standard 5%) the way you like. You like the ship should start to buy if at one of the watched factories one of the primary resources goes lower than 70%? Then set the fire probability to 70%. You like to fill up six energy fabs only with a maximum amount of 83 crystals each? Choose 25% for the TS which buys crystal for these six energy fabs. The more factories (and resources) the TS is working for the higher percent you need to set up. Settings that make sense: Six energy fabs to buy for... 20% up to 30% (it is not neccessary to store more of the expensive crystals if the jump range at the six factories is set to 20 or 25 jumps). Six crystal fabs to buy for... not less than 60%. Six wheat factories... 50% up to 80%. Just test your own settings like you want. There is no need to stop the trade command if you like to change this setting. Only change the fire probability during the work of the TS and the change takes effect at the next scan of your factories several minutes later.
You can decide to buy FIRST at your own factories all over the galaxy for the price setting of these factories. All TS with a relation to Goner=Foe and a started buy-function of my "Trade Software" have knowledge about all player factories in the complete galaxy. If you change the relation to Goner of the transport ship to "Foe" the ship first seek all the player factories if one of these factories sell the needed resource and buy the ware there.
In this function-mode the ship doesn't care about the price setting at the actual homebase. It seeks for a player factory with the higest amount of the resource (if you own more than one of the same factory type) and buy there for the price you've set up there. But the jump setting at the actual homebase is important! The TS will never leave the jump range you've set up at the homebase factory. If none player fab is found in the given jump range the normal buy function (buy at foreign factories or trade docks) automatically take place and the TS will buy there. You can change this setting of relation to race "Goner" to Friend or Foe every time you like. There is no need to stop the trade command, change the setting and start the command new. Change directly the relation and up from the next search for sellers the TS will scan player factories first. Or switch off the function to buy first at own factories for their price by setting the Goner relation of the ship back to "Friend".
Closed factory circles: To support closed circles you can change the behavior of the ship to buy only at your own stations if you equip the TS with Ecliptic projector. If Goner=Foe and the TS holds the Ecliptic projector it buys only at your own stations and never more at alien stations. If the Goner setting of the TS is set to 'friend' the Ecliptic projector has no function.
Edit: This function changed for X3-Reunion and X3-TC. Now Formation setting of the ship is used. Refer to the forum topics of the X3 versions of my scripts.
Other than the standard X2 trade commands my script read the settings of the homebase (including how much resource amount is there on stock) and the rocket launch setting again when the TS arrive at the seller. So it can happen that the TS buy more or less as the amount it would have bought as it starts. Or nothing. This depends on several things. May be you've lowered the buy price at the homebase during the flight time of the TS to the seller. Then the TS will not buy if seller's price is higher than your setting. Or you've lowered the fire probability setting of the TS during the flight. So in advantage to the standard trade scripts of X2 you can change the behavior of your TS immediately and don't need to wait for the next scan or to stop and restart the buy command.
Functions to take influence how the TS works SELLING (special)
This information is for commands "Sell Fabware/Dockware for best price" only!
Like standard trade extensions of X2 the TS read the settings of the homebase to work in a given manner. These settings are jump range and your sell price. You can take influence how the TS find a buyer by adjusting these settings in the same way like you do with the standard X2 trade commands. But you need to know that the TS changes the homebase automatically if you choose more than one factory to sell for. So you should take care of the price and jump settings of ALL factories a TS sells for.
You can decide yourself when the ship shall start to sell a product of your factories! Adjust the setting of missile fire probability in command menue of your TS (standard 5%) the way you like. For example: A boron dolphin with 3000 cargo space sells energy for 6 energy fabs. I would prefer to set the fire probability of the TS to 55% (= 2.750 cells). Is the amount of energy in all 6 fabs less than 2.750 cells the TS is waiting until one factory has 2.750 or more cells. So the cargo space of the TS is really used and your profit increases. Because if a buyer at 23 Cr. is found it's better to sell 2.750 or more cells than 1000 or less.
And more other Functions! (Also special)
- * The pilot name of your TS show to you what the TS is doing.
* The stations own ships menueshow to you what the TS is doing.
...It shows the amount the ship trades in for buying or selling.
* The owner menue (key 'R') show to you what the TS is doing.
* The fire missile probability setting of "0":
...If the TS is on flight from seller back to homebase and you set this, the TS
...deliver the ressource to the homebase, reset the pilot name to the players name
...and the script terminates.
...If the TS is on flight from homebase to buyer and you set this, the TS deliver the
...product to the buyer and return to homebase. Then reset the pilot name to the players name,
...reset it's homebase to nothing and the script terminates.
...If you like to remove the ship's homebase:
...Only set the fire missile probability of this TS to ZERO and then choose "Supply Sector".
* The ships avoid to make unneccessary flights. If a TS arrive at a seller and the
...seller raised it's price or hasn't enough ware anymore the TS don't fly back to homebase.
...It stays at the seller, search for a new seller and if a new seller was found fly to this one.
...The same by selling ware. If not all of the product in cargo bay could be sold at
...the buyer, or buyers price lowered during the flight, the TS seek for another
...buyer and sell the ware at this one. This goes on and on until all ware in cargo is sold.
* You can define more than one TS for a given count of factories to buy for or sell for.
...If more than one TS sell ware for the same factories, all of these TS try to avoid selling
...for the same factory. Every Seller-TS proof first if another TS is at selling
...for this factory in the moment. If this is the case and the TS got more than one
...fab to sell for, it choose another factory to work for.
...If more than one TS are buying for the same factories, they all buy. With this
...case you can fill up a factory with resources very fast if you let work two or more TS
...for the same factory with fire probability setting about 80% or more.
...Also you can define a 'Backup-TS' for factories. For example: A Boron Dolphin is
...buying for 3 crystal factories with a fire probability setting of 60%. May be sometimes
...several resources (Silicon/BoFu/Cahoona) lower down to 40% because the TS is not that fast.
...So you can setup a second TS (eg. Argon Mercury) with a fire probability of 45% which will
...start buying too if one of the resources at one of the factories is lower than 45%.
* The TS avoid visiting the same buyer or visiting the same seller if another TS is on the way
...During the process of searching a buyer or seller the TS proof if there is another TS
...owned by the player with this station as target AND the same ware as target.
...If this is the case, the TS choose another buyer or another seller.
...There is one exception of this behavior: If you are the owner of seller or buyer factory.
...Because the price don't change at players factories if a buyer or seller was there
...it doesn't matter (most it's better) to get parallel visits of your own ships.
...And sometimes it happens that two TS find the same buyer/seller in the same second.
...In this case both TS fly to the factory but only one (the first arrives) can buy/sell.
...The other TS then search automatically for another buyer or seller.
* The TS don't visit sectors which are unknown for the player.
...They don't visit stations which are foe to the player. Don't confuse this with your own
...settings of friend or foe in the command menue of your ships or stations.
* The TS recognize if target stations (including their homebase) got destroyed
...during the flight. If a foreign station was destroyed the TS scan for a new target.
...If the homebase is destroyed the TS stops it's command and send a message to the player log.
* The TS send audio messages and messages to your log to inform you.
- How you should equip your TS.
I prefer to setup TS with maximum cargo space, maximum speed and max. agility.
If you need to save money setup only about 70% of cargo space and agility. Then buy
- Shield 3x 5MW OR 1x 25 MW (that's enough)
- Duplex or Triplex Scanner
- Navigation Software ST1
- Supply Software ST1
This TS will cost you about 1.000.000 Credits. But think about that this TS is able to buy for SEVEN factories all of their resources. If you own 7 crystal fabs and work with standard X2 trade commands you need 21 "normal" TS to buy all of the resources. They cost you about 7.000.000 Credits (even more, depends on equipment) and they are not so 'smart' and they cannot use jumpdrive with automatic fueling.
If you like to collect ore and sell it by use of the fifth command "Sell from cargo.." buy additional
- Ore collector
- Special Software MK1
- Navigation Software MK1
If you like to enhance the speed of your TS equip them with
Ships with installed boost-extension perform the In-Sector jump with my "Navigation Software ST1" (first seen in Version 6.xx).
If you like to buy only at your own factories equip TS with
- Ecliptic projector
Ships with Ecliptic projector installed and Goner=Foe Setting will never buy at alien stations.
This setting is exchanged with 'Formation setting' in X3 version of my scripts! Refer to viewtopic.php?t=300339
If you don't like to get arrival messages of remote controlled ships into your log. Equip your ships with
Ships with SETA installed give no message at arrival. This is a function of "Navigation Software ST1" only. No need for the trade software.
Read more about "Navigation Software ST1" here:
I would prefer to use the 'jump inside the sector' function (Boost extension installed) not for all ships (don't equip all TS with Boost drive). One reason is the money consumption. Another reason is that, if the ships are not so fast, the price might decrease until the ship arrives at the seller. In my opinion, best practice is to prefer the equipment of Seller-TS with boost drive to perform the internal sector jump. And, -may be- the slow Dolphin-/Vulture-TS which shall buy for 4 to 7 factories all of their resources .
How to use the different types of TS
To buy crystal for up to 7 energy fabs use Argon Mercury or Paranid Demeter
with less cargo space (max. 1000) and a fire probability setting of about 25%.
I'm using 2 Paranid TS for 10 energy fabs (five factories each).
To sell energy use Boron Dolphin with fire probability of 55% or 60% and 3000 cargo space.
To sell silicon use Paranid Demeter or Argon Mercury with cargo space of 1100
To buy resources for level 3 factories (all fabs with 3 resources) use Teladi Vulture
with fire probability not less than 70% and 2500 cargo space.
For level 3 factories you can alternate work in this way (example):
Setup 1 Argon Mercury with "Supply with Resources" to buy only silicon. Set it's fire probability to 70%.
Setup 1 Boron Dolphin with fire probability 50% for the same factories with command "Supply Factories".
The Dolphin will only buy Energy and Eat in reason of the lower setting of missile fire probability.
It's funny too to buy for seven level-3 factories with 3 different TS. Each TS buy another ware for the seven factories with command "Supply with resources". For example one Boron Dolphin for energy, one Argon Mercury for ore/silicon and one Teladi Vulture or Boron Dolphin for Food.
...to be continued (may be )