In-Development TradeDangerous: power-user trade optimizer

wolverine2710

Tutorial & Guide Writer
Several people have asked if they can have the scripts I've been using to make TD easier to run myself.

Unfortunately, these are bash scripts which means they work on a Linux or Mac box but Windows users will need to install "bash" - the easiest way to do that is to install "msysgit". I refer to this as "git bash" because I hit the Windows key and type "git" to access it.

As of v6.1.7 you'll find a "scripts" directory, which includes a README.txt. These are my scripts.

Thanks a lot. Bash rules ;-) Going to have a look at it - when that pesky 3rd party tool thread is nearing its completion. Talking about time sinks.....
 
Last edited:

wolverine2710

Tutorial & Guide Writer
A commander needs our help. Seebek has created EliteOCR, a viable OCR-solution for getting the prices of the commodities market. zxctypo
is looking into a method to increase the accuracy of the numbers/digits with ML (machine learning). He is getting darn good results, atm his method is 99.94% accurate. He however needs more data to improve the ML solution. If you all want a good OCR solution might I suggest installing EliteOCR and provide zxctypo with the data he needs!!
 
v6.1.7 with scripts

Several people have asked if they can have the scripts I've been using to make TD easier to run myself.

Unfortunately, these are bash scripts which means they work on a Linux or Mac box but Windows users will need to install "bash" - the easiest way to do that is to install "msysgit". I refer to this as "git bash" because I hit the Windows key and type "git" to access it.

As of v6.1.7 you'll find a "scripts" directory, which includes a README.txt. These are my scripts.

They're nothing special, the only "magic" is that there's a "config.sh" which you copy into the same folder as "trade.py" and then edit with YOUR settings.

FWIW (and it's probably very little) I have some very simple DOS .bat files I use.

Code:
trade.py buy -vvv  %1 --near %2

Code:
trade.py sell -vvv  %1 --near %2

Code:
trade.py run -vvv --ship cobra --insurance 56500 --ly-per 9.18 --jumps-per %1 --hops %2 --capacity %3 --credits %4 --from %5

Hopefully the buy and sell are self-explanatory. As for the run.bat the ship, insurance and maximum jump distance are fairly static (I edit the run.bat if I need to change them)
 
Last edited:
If you grab the latest code, the "import --maddavo" now has a download progress bar, but there are also some import fixes.

One side effect of this is that you'll get an error about "ZAMKA" station. What's happening is that mad's data has both the old name "ZAMK" and the new name "ZAMKA" and TD doesn't currently like it when it happens that way around. The problem here is that, for efficiency, I write everything to the database at the end, and it's all in one big unsorted list.

In order to fix this situation, I'll have to go through and rebuild the list of updates (very slow) or write to the database every time we switch stations (may actually turn out to be faster, but requires a big chunk of work).

While I figure this out, the work around is to remove the entry for "Opala/Zamk" station from the import.prices file and do

Code:
$ trade.py import -i --maddavo
.. get your error here ...
$ start notepad import.prices 
.. take out the Opala/Zamk station ..
$ trade.py import -i import.prices
 
One side effect of this is that you'll get an error about "ZAMKA" station. What's happening is that mad's data has both the old name "ZAMK" and the new name "ZAMKA" and TD doesn't currently like it when it happens that way around. The problem here is that, for efficiency, I write everything to the database at the end, and it's all in one big unsorted list.

I've done some cleaning on the prices data and incorporated the fixes in corrections.py . Double-ups should be eliminated now.
 
Welcome, one of the options that you've implemented in my project, for exports of goods identified with the format of your project. Here is a video from the initial version of the product.
[video=youtube_share;0RMeELTtWcE]http://youtu.be/0RMeELTtWcE[/video]
 
Welcome, one of the options that you've implemented in my project, for exports of goods identified with the format of your project. Here is a video from the initial version of the product.
[video=youtube_share;0RMeELTtWcE]http://youtu.be/0RMeELTtWcE[/video]
Fabulous, man !!!!!!!
Congratulations !
 
Is it possible to --avoid systems with trade.py nav? I keep getting routes that have permit systems in them, and can't figure out how to tell TradeDangerous that I don't want those systems.
 
Is it possible to --avoid systems with trade.py nav? I keep getting routes that have permit systems in them, and can't figure out how to tell TradeDangerous that I don't want those systems.

Ah, sorry, I thought it already did. I put in an feature issue for it: https://bitbucket.org/kfsone/tradedangerous/issue/79/make-avoid-work-for-nav-sub-command

- - - - - Additional Content Posted / Auto Merge - - - - -

Ah, sorry, I thought it already did. I put in an feature issue for it: https://bitbucket.org/kfsone/tradedangerous/issue/79/make-avoid-work-for-nav-sub-command

And implemented it in the latest code.

Code:
$ tdnav aritimi sol ; echo ; tdnav aritimi sol --avoid guangul
$ "/c/dev/trade/trade.py" nav --ly 11.16 aritimi sol
System          JumpLy
----------------------
ARITIMI           0.00
G 205-47         10.07
LHS 3409          8.56
G 205-38         10.09
NLTT 46621       10.32
LP 103-294        8.41
GUANGUL          10.96
LP 71-165         7.34
LHS 450           9.12
WISE 1506+7027    5.11
SOL              10.52

$ "/c/dev/trade/trade.py" nav --ly 11.16 aritimi sol --avoid guangul
System          JumpLy
----------------------
ARITIMI           0.00
G 205-47         10.07
LHS 3409          8.56
G 205-38         10.09
LFT 1421          6.33
CULANN           10.27
CAER BRAN         4.79
AUSTERN           7.62
G 203-51         10.65
LHS 450           9.05
WISE 1506+7027    5.11
SOL              13.05
 
I'm not sure if TD already can do this, but I would like information on stations/systems close to me that need their market data updating.

e.g. I'm in the MOKOSH system, and I want to see a list of stations I need to visit to update because the data I have is 3+ days out of date.

Looking at the table structures for StationBuying and StationCarrying the last modified date is stored there, so I'm assuming it shouldn't be too hard to add if it doesn't exist already.
 
I'm not sure if TD already can do this, but I would like information on stations/systems close to me that need their market data updating.

e.g. I'm in the MOKOSH system, and I want to see a list of stations I need to visit to update because the data I have is 3+ days out of date.

Looking at the table structures for StationBuying and StationCarrying the last modified date is stored there, so I'm assuming it shouldn't be too hard to add if it doesn't exist already.

Get latest code,

Code:
$ trade.py local --ly 4 mokosh --ages
System        Dist
  +  Station                          Age/days
----------------------------------------------
MOKOSH        0.00
  +  Bethe Station                        1.54
  +  Lubin Orbital                        0.38
GRANTHAIMI    2.24
  +  Parmitano Colony                     4.81
 
Get latest code,

Code:
$ trade.py local --ly 4 mokosh --ages
System        Dist
  +  Station                          Age/days
----------------------------------------------
MOKOSH        0.00
  +  Bethe Station                        1.54
  +  Lubin Orbital                        0.38
GRANTHAIMI    2.24
  +  Parmitano Colony                     4.81

Thank you, just what I needed
 
it will be a start. means i can update the local systems near me for more accurate data. Some of it is 14 or so days old, which probably shouldn't be relied upon. Markets seem to fluctuate widely in shorter time spans.
 
it will be a start. means i can update the local systems near me for more accurate data. Some of it is 14 or so days old, which probably shouldn't be relied upon. Markets seem to fluctuate widely in shorter time spans.

I'm percolating some ideas for better use of the data-age into route calculations, along with station distances, see the latest post in the facebook group.
 
One of the updates listed for Gamma 2 says "Slavery missions and commodities added". Anyone know what the new commodities are and what categories they are in?
 
One of the updates listed for Gamma 2 says "Slavery missions and commodities added". Anyone know what the new commodities are and what categories they are in?

Oh, I see one:
Code:
+ Slaves
    Imperial Slaves            10277  10380          ?    270700H
 
Last edited:
Back
Top Bottom