[SCR] Trade Software ST1 - Version 2.02 29/04/2011
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
I've set up a TS to buy energy cells for my 2 mines. Max buying price is set to 12 on both mines, there are 2 solar power plants (computer owned) in the sector who sell at 12, but my TS keeps travelling 3 sectors away to buy ECells for 16 at a military outpost.
I"ve noticed the selling command has a "bestprice" options, but not the supply one. Maybe it's just bot made for that.
I also have a "readtext2010-411" line in my trade commands menu, tho I'm not if it's your script that is responsible or another one...
Anything I forgot?
I"ve noticed the selling command has a "bestprice" options, but not the supply one. Maybe it's just bot made for that.
I also have a "readtext2010-411" line in my trade commands menu, tho I'm not if it's your script that is responsible or another one...
Anything I forgot?
- SpaceTycoon
- Posts: 1190
- Joined: Wed, 6. Nov 02, 20:31
'Readtext2010-411' isnt related to my script.
Typically this error happens
- if there is a setup-script inside your 'scripts' folder which define a command.
- but the textfile for this script in folder 't' do not exist (deleted or never installed).
For example, my script 'setup.tradesoftwareST1.xml' use the script-command 'load text: id=7077'
to load the textfile '7077-L044' in folder 't' which includes the neccessary text output for my scripts.
So you should search your scripts folder for scripts called 'setup.....' and look inside the script for command 'load text: id xxxx'.
Then compare the number with the numbers of the file names in your folder 't'.
If you find a script 'setup....' which refers to a not exisiting textfile-number in your folder 't' you've found the reason for the 'readtext2010-411'.
Regarding your buy problem...
My scripts for buying resources always look for best price.
So the 'bestprice' isn't especially declared in the commands.
If the script isn't able to find a seller factory in the given jump range which sells for the best price (the price defined in your mine or a lower price),
it falls back to search Docks (like the military outpost) to buy there for the avarage price.
The thought behind this is, to keep the factory (your mine) working, even if resources for the cheapest price are not to find.
One reason that the script don't find the solar power plants to buy there.
- They can be foe to the ship (TS) or to you. So docking at the SPP isn't allowed for you (or for the TS).
In this case the script search other SPP in range of the mine and if none to find, it searches docks in range.
Actually have no other clue, what reason can prevent the TS from buying at the SPP.
But if the friend/foe thing isn't the reason, try a higher price (13) or try out a lower jump range (1 or 2) at the mines and look what happens.
Typically this error happens
- if there is a setup-script inside your 'scripts' folder which define a command.
- but the textfile for this script in folder 't' do not exist (deleted or never installed).
For example, my script 'setup.tradesoftwareST1.xml' use the script-command 'load text: id=7077'
to load the textfile '7077-L044' in folder 't' which includes the neccessary text output for my scripts.
So you should search your scripts folder for scripts called 'setup.....' and look inside the script for command 'load text: id xxxx'.
Then compare the number with the numbers of the file names in your folder 't'.
If you find a script 'setup....' which refers to a not exisiting textfile-number in your folder 't' you've found the reason for the 'readtext2010-411'.
Regarding your buy problem...
My scripts for buying resources always look for best price.
So the 'bestprice' isn't especially declared in the commands.
If the script isn't able to find a seller factory in the given jump range which sells for the best price (the price defined in your mine or a lower price),
it falls back to search Docks (like the military outpost) to buy there for the avarage price.
The thought behind this is, to keep the factory (your mine) working, even if resources for the cheapest price are not to find.
One reason that the script don't find the solar power plants to buy there.
- They can be foe to the ship (TS) or to you. So docking at the SPP isn't allowed for you (or for the TS).
In this case the script search other SPP in range of the mine and if none to find, it searches docks in range.
Actually have no other clue, what reason can prevent the TS from buying at the SPP.
But if the friend/foe thing isn't the reason, try a higher price (13) or try out a lower jump range (1 or 2) at the mines and look what happens.
Thanks for your quick answer
I changed the price to 13, and the TS began to go to the solar plants, even tho they did sell at 12
as for the command line, I have a bunch of scripts installed and can't read a programming line, so I'll leave it as it is
Now to try and prevent them to cross Xenon sectors
I changed the price to 13, and the TS began to go to the solar plants, even tho they did sell at 12
as for the command line, I have a bunch of scripts installed and can't read a programming line, so I'll leave it as it is
Now to try and prevent them to cross Xenon sectors
- SpaceTycoon
- Posts: 1190
- Joined: Wed, 6. Nov 02, 20:31
Oh, this sounds like I have a little mistake in coding.Zeripper wrote:Thanks for your quick answer
I changed the price to 13, and the TS began to go to the solar plants, even tho they did sell at 12
Have to check the buy script, may be I mistyped a price check.
May be I typed "<" (lower as) instead of "<="... Will have a look...
I dont know if you still support this script, but i bought a ship outfitted it and put it at my station hub, and then i told it to sell Fabproduct for best price, then i set my station, but then it wants me to choose another station or sector, why is that? I thought i can just have it sell all my products or am i missing something?
- SpaceTycoon
- Posts: 1190
- Joined: Wed, 6. Nov 02, 20:31
In this case you need to choose the same station 7 times repeated.
Refer to this topic (its nearly a complete manual of the script)
http://forum.egosoft.com/viewtopic.php?t=46022
and read the information at the underlined headlines "Supply Factories", "Sell FabWare for best price", Sell Dockware for best price", aso...
Refer to this topic (its nearly a complete manual of the script)
http://forum.egosoft.com/viewtopic.php?t=46022
and read the information at the underlined headlines "Supply Factories", "Sell FabWare for best price", Sell Dockware for best price", aso...
- SpaceTycoon
- Posts: 1190
- Joined: Wed, 6. Nov 02, 20:31