[SCRIPT]Station Freight Transporter v2.1.2 - 06/05/07
Posted: Sun, 22. Apr 07, 23:56
Station Freight Transporter V2.1.2
-------------------------------------
When activated from your trade station's command menu, this script will transfer products from player owned stations to other player owned stations in the sector that requires them as a resource. There is a 100,000cr activation fee every time the script is activated, as well as an additional fee for every unit of product transferred.
To use:
--------
Only available on Trading Stations, Equipment Docks and the PHQ
First ensure the trade station has a (recommended) minimum of 1,000,000 cr, then select 'Station Commands>SFS'
You will be asked 2 questions. The first is to determine the maximum range the station should transport goods from/to, so if you only want stations within your small loop to transfer between themselves and not transfer to your other stations in the sector, type something small like 10-15 (distances in Km). If you want your stations to transfer between all of your other stations in the sector, type a suitably large number, eg. 1000 to encompass the whole sector.
The second is how many goods the station should retain, in %, either for trading with free traders or for stockpiling purposes.
*Note* The charge for transferring products is now 5% of the wares average price (1cr min) * (distance from sending station). This means that although you set the max range to 1000 to encompass the whole sector, if the station is only 50Km away the cost per unit transferred will be (5% * 50).
*Note 2* Although I am working on a way to be able to change the values without being charged, I have so far been unable to to so this means you will have to restart the script (and therefore pay another 100,000cr) but I'll keep looking into it for the next release
The script transfers every 5 seconds (so it shouldn't massively slow down with lots of stations), if you want to change it the wait time is in 'HI.StationFreightTransporter' on line 1.
Link to my script:
http://www.xai-corp.net/en/files/xaicor ... V2.1.2.spk
Changelog:
-------------
2.1.2
Added a list of stations in range to the incomming message.
2.1.1
Working release.
2.1BETA
Further code refinements, only released so I could get help fixing a few little bugs
2.0BETA
Major update, command now only available on trade docks/PHQ
Arguement added for % ware to be retained
Pricing now 5% * dist per unit transferred, only charged for goods going from producing station to trade dock
Small code refinements
**Didn't work as planned, note the BETA**
1.2.1
Small update, now the command is visible when running from the station command menu.
1.2
Added a distance arguement to set the max distance for transfer,
Changed the pricing from 1cr/unit to 1%/unit * dist
1.1
A few code updates,
Small alterations to the text file,
No longer BETA
1.0
Initial BETA release
Possible Additions:
Add support for hubs and therefore multiple product wares. [Should be ok now..]
Question to allow player to change Max distance and Stored % without having to pay again
Thanks and look forward to your replies
-------------------------------------------
Resources Used
-------------------
Text file: 7666
Command slot: COMMAND_TYPE_STATION_40
Special thanks:
------------------
Tomcat: he began this script, I'm just changing it a bit. Original script here: http://forum.egosoft.com/viewtopic.php?t=125074
B-O'F: For help with the code when I made stupid mistakes and basically writing the script for me...ahem
-------------------------------------
When activated from your trade station's command menu, this script will transfer products from player owned stations to other player owned stations in the sector that requires them as a resource. There is a 100,000cr activation fee every time the script is activated, as well as an additional fee for every unit of product transferred.
To use:
--------
Only available on Trading Stations, Equipment Docks and the PHQ
First ensure the trade station has a (recommended) minimum of 1,000,000 cr, then select 'Station Commands>SFS'
You will be asked 2 questions. The first is to determine the maximum range the station should transport goods from/to, so if you only want stations within your small loop to transfer between themselves and not transfer to your other stations in the sector, type something small like 10-15 (distances in Km). If you want your stations to transfer between all of your other stations in the sector, type a suitably large number, eg. 1000 to encompass the whole sector.
The second is how many goods the station should retain, in %, either for trading with free traders or for stockpiling purposes.
*Note* The charge for transferring products is now 5% of the wares average price (1cr min) * (distance from sending station). This means that although you set the max range to 1000 to encompass the whole sector, if the station is only 50Km away the cost per unit transferred will be (5% * 50).
*Note 2* Although I am working on a way to be able to change the values without being charged, I have so far been unable to to so this means you will have to restart the script (and therefore pay another 100,000cr) but I'll keep looking into it for the next release
The script transfers every 5 seconds (so it shouldn't massively slow down with lots of stations), if you want to change it the wait time is in 'HI.StationFreightTransporter' on line 1.
Link to my script:
http://www.xai-corp.net/en/files/xaicor ... V2.1.2.spk
Changelog:
-------------
2.1.2
Added a list of stations in range to the incomming message.
2.1.1
Working release.
2.1BETA
Further code refinements, only released so I could get help fixing a few little bugs
2.0BETA
Major update, command now only available on trade docks/PHQ
Arguement added for % ware to be retained
Pricing now 5% * dist per unit transferred, only charged for goods going from producing station to trade dock
Small code refinements
**Didn't work as planned, note the BETA**
1.2.1
Small update, now the command is visible when running from the station command menu.
1.2
Added a distance arguement to set the max distance for transfer,
Changed the pricing from 1cr/unit to 1%/unit * dist
1.1
A few code updates,
Small alterations to the text file,
No longer BETA
1.0
Initial BETA release
Possible Additions:
Add support for hubs and therefore multiple product wares. [Should be ok now..]
Question to allow player to change Max distance and Stored % without having to pay again
Thanks and look forward to your replies
-------------------------------------------
Resources Used
-------------------
Text file: 7666
Command slot: COMMAND_TYPE_STATION_40
Special thanks:
------------------
Tomcat: he began this script, I'm just changing it a bit. Original script here: http://forum.egosoft.com/viewtopic.php?t=125074
B-O'F: For help with the code when I made stupid mistakes and basically writing the script for me...ahem