In-Development TradeDangerous: power-user trade optimizer

By being "in sync with EDMC" I meant that they are translating the API names to the ingame names very quickly, because of the large user base.

The EDMC does support some sort of flight log? I don't use it, but I think you can upload your netLog file and they are allready extracting the new coords form the log.

I still don't know the response json schema for the distance submit. I can update "submit-distances.py" for EDSM but only for retrieving data, not submitting it. Also EDSM is case sensitive for system names and TD only stores them UPPERCASE.
 
I think we've discussed this over a year ago, but wouldn't it be a good idea to add to the EDDN schema the FD system/module/commodity id's that are present in the API JSON to help corrections and maybe even localization? Seems to me relying on string matching could be unreliable.
 
Last edited:
"Low Temperature Diamond" is now "Low Temperature Diamonds"

Now, that's just nitpicking ;)

I think we've discussed this over a year ago, but wouldn't it be a good idea to add to the EDDN schema the FD system/module/commodity id's that are present in the API JSON to help corrections and maybe even localization? Seems to me relying on string matching could be unreliable.

Yeah, I was thinking in the same direction. The EDDN commodity v2 schema does allready allow IDs (system, station and item) to be send. EDDN could also be the central repo for ID mapping (see https://github.com/jamesremuscat/EDDN/tree/master/doc).
 
Yes, still need the EDSM update.

Ok, I've checked in a first version of edsmupdate.py (in the horizon branch). It does not send anything to EDSM, just gets data.

I've added the switch "--max-ly" which filters out distances larger to the specified reference system.

This will only show systems which are within 500ly of SOL and shows the distance to Azrael:
Code:
edsmupdate.py --add --distance --max-ly 500 --date "2016-06-28 15:40:00" --ref "SOL" "Azrael"

This will only show systems which are within 500ly of Azrael:
Code:
edsmupdate.py --add --distance --max-ly 500 --date "2016-06-28 15:40:00" "Azrael"
 
Wow, I just run some test while programming it, but now I made a full run.

I changed the script to answer "yes" to all questions and had to run it multiple times to get all data. It updated 45 and added another 47653 systems. Good luck in checking all the distances ;)
 
I made some changes for the EDDN support of the EDAPI plugin. If you use the new version of the horizon branch you must first run the command:
Code:
trade.py import -P edapi -O edcd
to fill the new FDevID mapping tables.

I also added the "--planetary" argument now. It can be a combination of "YN?" (like SML? for --pad-size).
 
Last edited:
And now I've just pushed the new "netlog" plugin.

Code:
$ trade.py import --plug netlog --option help
Plugin that parses the netLog file and add or update the system.

Options supported by this plugin:
--opt=date          Only parse netLog files from date, format=[YY]YY[-MM[-DD]].
--opt=last          Only parse the last (newest) netLog file.
--opt=show          Only show the system name and position.  Don't update the DB.
Code:
$ trade.py import --plug netlog -O date=2016-06,show
NOTE: FDEVLOGDIR=C:\Program Files (x86)\Frontier\Products\elite-dangerous-64\logs\
NOTE: using date: 2016-06
NOTE: using pattern: netLog.1606*.log
NOTE: Found 17 logfiles.
...
NOTE: parsing 'netLog.160630224955.01.log'
NOTE: Found 5 System(s).
NOTE: New system 'Puppis Sector HW-W b1-1' (72.75, -1.6875, -43.25, '2016-06-03 14:47:18')
NOTE: New system 'Puppis Sector HW-W b1-5' (61.90625, 0.625, -38.6875, '2016-06-22 20:48:01')
NOTE: New system 'Col 285 Sector TT-H c10-9' (144.09375, -48.25, 69.1875, '2016-06-04 14:45:21')
NOTE: New system 'Core Sys Sector GW-N a6-1' (10.28125, -42.59375, 23.5, '2016-06-25 07:34:54')
NOTE: New system 'Col 285 Sector PI-P b20-3' (159.09375, -53.71875, 76.34375, '2016-06-04 14:42:44')
NOTE: New system 'Shui Wei Sector MN-S b4-2' (95.5, -50.625, 52.1875, '2016-06-04 14:49:57')
NOTE: New system 'Col 285 Sector OS-T d3-148' (104.84375, -2.375, -53.5, '2016-06-03 14:45:38')
NOTE: New system 'Col 285 Sector AW-E a41-2' (142.0, -41.375, 89.09375, '2016-06-04 13:20:48')
NOTE: New system 'Col 285 Sector VP-G a40-6' (127.40625, -40.6875, 81.84375, '2016-06-04 13:20:00')
NOTE: New system 'Crucis Sector ON-K a8-3' (95.5625, -33.6875, 72.96875, '2016-06-04 13:11:20')
NOTE: New system 'Col 285 Sector CW-E a41-1' (155.4375, -44.5625, 93.34375, '2016-06-04 13:22:08')
NOTE: Ignoring system: 'Destination'
NOTE: Ignoring system: 'Training'
NOTE: Found 150 System(s) altogether.
NOTE:       137 old
NOTE:        11 new

The environment variable "FDEVLOGDIR" must be set.
 
Same basic question as Karunamon. https://bitbucket.org/kfsone/tradedangerous/ hasn't been updated since January and I don't see any mention of the Horizon branch.

It's a branch on my fork of TD, not on kfsone's.

You can go to the Download page on bitbucket, select "Branches" and click on the "zip" link (in the download column on the right) of the "horizon" line. This will give you the code you can place into its own subdir and use it like the original TD.

Or if you are a git user you can do it in an shell:
Code:
$ cd "[TO YOUR DIR WHERE YOU WANT IT]"
$ git clone https://bgol@bitbucket.org/bgol/tradedangerous.git "[NAME YOU WANT]"
$ cd "[NAME YOU WANT]"
$ git checkout horizon

Hope this helps.
 
Yo,

I'm trying to find trade routes to Sothis with this command, but I'm failing. Maybe it's too far? I'm using Maddavo's imported data and I have market data for Sothis. Any ideas?

Code:
trade.py run --cap 672 --cr 90000000 --ly-p 22 --empty-ly 31 --to "Sothis" --pad l -vvv
 
Yo,

I'm trying to find trade routes to Sothis with this command, but I'm failing. Maybe it's too far? I'm using Maddavo's imported data and I have market data for Sothis. Any ideas?

Code:
trade.py run --cap 672 --cr 90000000 --ly-p 22 --empty-ly 31 --to "Sothis" --pad l -vvv
I'm not an expert on this program, but I think the problem might be that -p. I'll check on my PC tonight but try this:-

trade.py run --cap 672 --cr 90000000 --ly 22 --empty 31 --to "Sothis" --pad l -vvv

As I said, I'll confirm it when I can get to my PC later today and let you know!
 
Last edited:
I'm not an expert on this program, but I think the problem might be that -p. I'll check on my PC tonight but try this:-

trade.py run --cap 672 --cr 90000000 --ly 22 --empty 31 --to "Sothis" --pad l -vvv

As I said, I'll confirm it when I can get to my PC later today and let you know!

Hmm, --ly and --ly-p are correct, they are short for --ly-per. I've been using that for ages, works for closer systems. It's probably because the search for trades only occurs within a certain distance, and Sothis is too far.
 
I'm trying to find trade routes to Sothis with this command, but I'm failing. Maybe it's too far? I'm using Maddavo's imported data and I have market data for Sothis. Any ideas?

Do you even have a route to sothis with 22ly?
Code:
trade.py nav --ly-per 22 sol sothis

You may also need to set a high "--jumps-per" value, so you can even reach sothis between hops or use "--direct" to ignore jump ranges.
 
Do you even have a route to sothis with 22ly?
Code:
trade.py nav --ly-per 22 sol sothis

You may also need to set a high "--jumps-per" value, so you can even reach sothis between hops or use "--direct" to ignore jump ranges.

Oh yeah, 22 ly easy, I've done it quite a few times with a laden Cutter. Will probably hit Elite trader today. :D

However, --direct seems to have done the trick, so something must've snagged the algorithm without it.

EDIT: And trading to Sothis is not worth it, compared to the long range trade missions. that net 100K-400K per ton...
 
Last edited:
Cross-posted from TDHelper thread.
The TDHelper GUI has not get any updates in the last year and I don't think someone is still working on it. WombatfromHells last post in this forum was on 07/09/2015.
Due to changes in the netlog format the program was not able to read the Pilot's log anymore. I created a fork of the source code and updated the netlog function. The new package is available here: https://bitbucket.org/olklei/trade-dangerous-helper-horizon/
Have fun


Cmdr Olklei
Black Hand of Jaaka
 
Back
Top Bottom