I ran z-pdriver again the next day and it didn't tell me to run z-sectorlister. I manually made a list of ports, told it to use that list, and I told it to upgrade ports this time and it did, but it also only sold about half us much product as the day before, actually spending about 200M more than it made.
I tried again today and not only did it tell me to run z-sectorlister, but it ZTMed again.
Then quit without trading.
I tried it again and it ZTMed and quit without trading.
I started looking into that LS script, but I kept thinking that I should be able to make mine work. I based it on 1_Trade.ts, but didn't get anywhere, and pulled up 1_Ports.ts, and started taking pieces from that.
Right now I have what I call a semi-automatic planetary trader, which is all that I really wanted, at least for now.
I can't just run it and hop in the bathtub!
Everybody knows that semi-automatic means 700-900 rounds per minute, and is exactly the same thing as full-automatic.
Of course, I am not fully-automatic, so I vastly slowed down everything.
This bolt-action user looked up the nearest port, entered it into the game, and my script took care of the rest.
I haven't figured out how to use Elder Prophet's haggler yet, so I am using SWATH's negotiator. There are too many variables to really compare anything, but I made 790M in 2.5 hours 2 days ago with Z-pdriver and 789M in 20-30 minutes today with Grey Gamer's Super Awesome Semi-Automatic Planetary Trader™.
Okay, my boastful and imaginative mind called it 0_ptrader.
I would like to work out a route, save that as a file, and feed that into my script, so that it can go fully automatic. but it would be better if it read my list of ports into an array, found the nearest, and deleted each one after use.
I used to be able to do the first one.
I would need to figure out the second one.
This seems to work great, except that occasionally it will send my planet number twice, so instead of trading 32,760 of each product it sells 5 or 10.
I don't know what is going on there.
It fails when SWATH fails and the port says it isn't interested. My script sends it some number. I don't know if it is the amount of product it wants to sell, some bid, or what. I tried to account for that and it didn't work.
The script doesn't tell this to the port, the port isn't interested. It sends it to the game and the game tries to navigate to that sector.
I think that I sold millions each of organics and equipment and SWATH only failed to sell 5 times. I went to the rest of the SSS ports, almost 30, and ran my script again.
Maybe I should write a traveling buydown script so I can keep trying, but I would need to troubleshoot that.
It took me 7 hours to buy down everything, but I don't have any idea how much of that was the game waiting on me.
I realized that I had enough fighters, so I invaded the last planet left behind by Z and then warped it to the same sector as my last minimally-colonized planet.
There were so many excess colonists on the planet that I just captured that there wasn't enough room on the planet I created without reducing production.
I pulled up a list of bubbles and was about to look for sectors still missing ports in the second bubble, but this game only gives us 8 hours a day, and wasting 7 hours buying down stock to test out my script was a waste of time.
It seems that the ports had already regenerated and it looked like there were dozens of ports in the second bubble that didn't have fighters.
I guess that I need to avoid the entrance and run a gridder.
Then if I can get z-pdriver to work it will upgrade them.
The worst part of running out of time is that I have at least 2 full planets, so they won't be producing anything until I can sell their product.
Anyway, my script. Please feel free to make suggestions, like why the Transwarp check that came directly from 1_Trade doesn't work or how to handle the port not being interested.
Code:
# check if we can run it from here
cutText CURRENTLINE $location 1 14
if ($location <> "Planet command")
clientMessage "This script must be run from the surface of a planet"
halt
end
logging off
# show script banner
echo "**" ANSI_3 " --" ANSI_11 "===| " ANSI_15 "Grey Gamer's Super Awesome Semi-Automatic Planetary Trader™! :D" ANSI_11 " |===" ANSI_3 "--**" ANSI_7
echo ANSI_7 "By reading this line you agree to pay Grey Gamer one billion bars of gold-pressed latinum."
echo "The Jem'Hadar are rapidly approaching your location."
echo "**" ANSI_15 "For your own safety, please wear a mask, seatbelt, eye protection, and don't run my script!*"
# Set trigger to stop script if disconnected
setEventTrigger 0 :End "Connection lost"
# get the planet number
send "d"
setTextLineTrigger 1 :GetPlanetNumber "Planet #"
#setTextLineTrigger 2 :HasTwarp "TransWarp power"
pause
:GetPlanetNumber
setVar $line CURRENTLINE
stripText $line "#"
getWord $line $planetNumber 2
# away we go!
:Sub_Trade
killTrigger 1
killTrigger 2
killTrigger 3
# if ($twarp = 1)
send "cp"
waitfor "Planetary TransWarp Drive Engaged!"
send "qq"
:Load
send "pn" $planetNumber "*"
waitfor "-----"
setTextLineTrigger 1 :selectHoldsSell "We are buying up to"
setTextTrigger 2 :done "Command [TL="
setTextTrigger 3 :Load "We're not interested."
pause
# else
# echo "*" "You need planetary transwarp you nerf herder!" "*" $twarp "*"
# halt
#end
:selectHoldsSell
killTrigger 1
setTextLineTrigger 1 :selectHoldsSell "We are buying up to"
send "*"
pause
:done
send "l" $planetNumber "*"
killTrigger 1
killTrigger 2
setTextTrigger 1 :sub_Trade "Planet #"
pause
:HasTwarp
setVar $twarp 1
pause
killTrigger 1
#killTrigger 2
:End