In-Development TradeDangerous: power-user trade optimizer

Today's big news -

I've been in touch with Bernd (aka bgol aka Gazelle). He's no longer interested in working with Trade Dangerous. Many thanks to him for all his work.

That means as far as the work that Eyeonus & I are doing, the new "official" fork is at https://github.com/eyeonus/Trade-Dangerous and is taken from Bernd's Horizon's branch.

This is why I've been a bit cagey about your math updates, Avi, as I knew I was waiting to hear back from Bernd. If you would like to resubmit them as a PR to the new respository, we'll get them incorporated.

Current plan is to fix up the repository, with documentation and eddblink plugin, then we will re-release on a new thread in the "released and active" section of the forum.
 
Today's big news -

I've been in touch with Bernd (aka bgol aka Gazelle). He's no longer interested in working with Trade Dangerous. Many thanks to him for all his work.

That means as far as the work that Eyeonus & I are doing, the new "official" fork is at https://github.com/eyeonus/Trade-Dangerous and is taken from Bernd's Horizon's branch.

This is why I've been a bit cagey about your math updates, Avi, as I knew I was waiting to hear back from Bernd. If you would like to resubmit them as a PR to the new respository, we'll get them incorporated.

Current plan is to fix up the repository, with documentation and eddblink plugin, then we will re-release on a new thread in the "released and active" section of the forum.

Indeed. I am currently working on integrating the plugin into TD. Basically, that means I'm taking all the changes the plugin makes when you run it and updating the code itself so the plugin doesn't need to, and then removing the code in the plugin that makes those changes.

I'm also going to strip down the maddavo plugin to be just a shell that always says something to the effect of "This thing doesn't work anymore, use eddblink plugin instead" whenever it gets run. I would remove it entirely, but I don't know how that would affect TD Helper, so better safe than sorry.

DON'T switch to using this repo just yet. We'll let you know when it's ready for prime time.
 
Last edited:
Added a new feature to the plugin: default setting.

Now, if the plugin is run without any options passed, it will run as if the option 'listings' was passed. This excludes the options 'skipvend', 'force', and 'fallback', as they don't direct the plugin to import anything.

('trade.py import -P eddblink' == 'trade.py import -P eddblink -O listings')

If at least one of 'item', 'system', 'station', 'ship', 'shipvend', 'upgrade', 'upvend', 'listings', 'all', or 'clean' are passed, it will run just as it always has.

(For example, '-O skipvend' acts as '-O skipvend,listings', '-O force,fallback' acts as '-O force,fallback,listings', etc. I'm sure you get the idea.)

Upgrading is completely optional, there's no need to. I mostly added the feature for new users who aren't yet familiar with how the plugin works. (I.e., more idiot-proofing.)

Plugin version: 0.28
 
Last edited:
Indeed. I am currently working on integrating the plugin into TD. Basically, that means I'm taking all the changes the plugin makes when you run it and updating the code itself so the plugin doesn't need to, and then removing the code in the plugin that makes those changes.

I'm also going to strip down the maddavo plugin to be just a shell that always says something to the effect of "This thing doesn't work anymore, use eddblink plugin instead" whenever it gets run. I would remove it entirely, but I don't know how that would affect TD Helper, so better safe than sorry.

DON'T switch to using this repo just yet. We'll let you know when it's ready for prime time.

Ah, okay then. I'll stop working on removing the maddavo calls from TD Helper until you are done with the updates on eddblink/Trade Dangerous..
 
Last edited:
No, by all means, go ahead. I'm not making any changes to the functionality. I'm just integrating together.

Anything that works with current state of bgol TD + EDDBlink will work with the eyeonus TD/EDDBlink merged fork. Mostly what we're doing is updating the documentation, not so much on the code front.
 
Last edited:
No, by all means, go ahead. I'm not making any changes to the functionality. I'm just integrating together.

Anything that works with current state of bgol TD + EDDBlink will work with the eyeonus TD/EDDBlink merged fork. Mostly what we're doing is updating the documentation, not so much on the code front.

Indeed. We are at the point of having a working solution, so the first thing is to pull the existing bits and pieces together under once roof. We have no immediate plans to start expanding functionality or refactoring any code. First thing is a nice clean release of the essentials of TD which means nothing more than the command line utility with a working plugin for the data import.

That doesn't preclude anyone from working with other addons in the meantime, so long as it doesn't require changing TD, EDDBLink or the server.
 
Today's big news -

I've been in touch with Bernd (aka bgol aka Gazelle). He's no longer interested in working with Trade Dangerous. Many thanks to him for all his work.

That means as far as the work that Eyeonus & I are doing, the new "official" fork is at https://github.com/eyeonus/Trade-Dangerous and is taken from Bernd's Horizon's branch.

This is why I've been a bit cagey about your math updates, Avi, as I knew I was waiting to hear back from Bernd. If you would like to resubmit them as a PR to the new respository, we'll get them incorporated.

Current plan is to fix up the repository, with documentation and eddblink plugin, then we will re-release on a new thread in the "released and active" section of the forum.

I've been lurking in this thread for years, but I have to thank gazelle for his work. I used TD extensively in the past. He will be missed :)

And seeing what you guys are doing now will perhaps entice me to start playing again. So thanks as well for your enthusiasm, I know how time consuming these projects are, especially user support :) Kudos!
 
No, by all means, go ahead. I'm not making any changes to the functionality. I'm just integrating together.

Anything that works with current state of bgol TD + EDDBlink will work with the eyeonus TD/EDDBlink merged fork. Mostly what we're doing is updating the documentation, not so much on the code front.

Indeed. We are at the point of having a working solution, so the first thing is to pull the existing bits and pieces together under once roof. We have no immediate plans to start expanding functionality or refactoring any code. First thing is a nice clean release of the essentials of TD which means nothing more than the command line utility with a working plugin for the data import.

That doesn't preclude anyone from working with other addons in the meantime, so long as it doesn't require changing TD, EDDBLink or the server.

Very well, I'll continue.

For those that are interested, all the maddavo calls issued by TD Helper will be removed as well as most of the buttons and checkboxes at the bottom of the form except for one 'Update DB'. This will cause python to run 'trade.py import -P' with the plugin and parameters saved in the configuration file which will default to 'eddblink'.

Setting this to something else will be a matter of opening the settings form, changing the plugin and parameter string and saving the settings.
 
I have come across a problem with TD that someone may be able to help solve. I tried what I thought would be a simple route only to find that TD seems to stop working. I added the --progress option and found that TD worked up to a point and then entered an infinite loop or similar with the last two '=' of the progress bar short of completion.

The command I ran was:

python trade.py run --fr="Orang/Bessel Gateway" --cap=720 --cr=11b --ly=24.73 --empty=37.61 --pad=L --hops=2 --jum=3 --max-days-old=2 --loop --summary -vv --progress

If I reduce the max-days-old parameter to 1 then the command completes, anything else and the command does not complete.

The progress shows that with max-days-old=1 the number of origins in the second hop is 298 whereas with max-days-old=2 there are 452 origins in the second hop neither of which is an excessive number. By setting --max-days-old=2 and adding --ls-max=500 the number of second hop origins is 249 and in this case the command stalls with the progress at about 25% Setting the days old parameter to 1 allows the command to complete with 156 second hop origins. Removing the max days parameter entirely made the progress stop at around 50% with 682 origins.

I played around with other parameters for a while and found that with jumps > 3 the command stalled and with max-days-old > 1 the command stalled unless jumps = 1.

To be sure that this is not my set up I deleted trade dangerous, EDDBlink and EDDBlink-listener, reinstalled them and then ran EDDBink to repopulate the database. The problem remained.

Any suggestions?

[Edit] I should note that the command above is one that I have used regularly over the last 18 months or so and until recently has worked every time.
 
Last edited:
Mark, You could try using the --prune-score switch. My understating is that this will basically cut that number of origins by whatever percentage you use to only use the most likely ones. Use it in conjunction with --prune-hops which needs to have a minimum of 2. This will start the pruning after the number of hops that you input.

I copied this from Bgol's page on bitbucket -

--prune-score N.NN DEFAULT: 0
After a number of hops (controlled by --prune-hops), eliminate
a percentage of the routes from the lowest up by score.
NOTE: This can speed up long run calculations, but it can also
cause you to miss gold-mines that are a just a few hops away…
e.g.
--prune-score 12.5 Removes the bottom 1/8th of (12.5%) of routes
--prune-score 50 Only keep the upper 50% of routes


--prune-hops N
DEFAULT: 3
Being applying "--prune-score" from this hop onward. Set 0 to disable.
NOTE: This can speed up long run calculations, but it can also
cause you to miss gold-mines that are a just a few hops away…
e.g.
--prune-hop 4 --prune-score 22.5

Hope it helps. I use it all the time!
 
Mark, You could try using the --prune-score switch. My understating is that this will basically cut that number of origins by whatever percentage you use to only use the most likely ones. Use it in conjunction with --prune-hops which needs to have a minimum of 2. This will start the pruning after the number of hops that you input.

I copied this from Bgol's page on bitbucket -

--prune-score N.NN DEFAULT: 0
After a number of hops (controlled by --prune-hops), eliminate
a percentage of the routes from the lowest up by score.
NOTE: This can speed up long run calculations, but it can also
cause you to miss gold-mines that are a just a few hops away…
e.g.
--prune-score 12.5 Removes the bottom 1/8th of (12.5%) of routes
--prune-score 50 Only keep the upper 50% of routes


--prune-hops N
DEFAULT: 3
Being applying "--prune-score" from this hop onward. Set 0 to disable.
NOTE: This can speed up long run calculations, but it can also
cause you to miss gold-mines that are a just a few hops away…
e.g.
--prune-hop 4 --prune-score 22.5

Hope it helps. I use it all the time!

I'll give this a go to see what happens but what concerns me is that the initial command I used is one that I have used many times before and this is the first time that it has failed to complete.

Ergo, something has changed. The possibilities are that my PC has changed or the database has changed or the analysis code has changed, or a combination of them all. Now I don't think that the code has changed, I'm still using the bgol version but the database schema has changed and so has my PC. I've installed Sourcetree to download the commits, for example.

But, I doubt that the database changes will have caused the problem since I know that Eyeonus has been using the new structure with TD.

So, I'm not sure what is going on here.
 
I would suggest leaving the "Update DB" button, and having it call '-O all', leaving the checkbox next to it, and having it make the 'Update DB' button call '-O clean' instead when it is checked, and leaving the 'Import' button, having it call '-O listings'. That way we have have build, rebuild, and fetch, which I would consider the minimum commands needed to be able to use EDDBlink through TD Helper and not have to run it directly from a command line.

Even better, IMO:
Replace the dropdown list with the import commands EDDBlink has. ('item', 'system', 'station', 'ship', 'shipvend', 'upgrade', 'upvend', 'all')
Make the checkbox next to the dropdown be labelled 'skipvend', which adds that option when checked.
Make the checkbox next to the 'Update DB' button be labelled 'force', which adds that option when checked.
Make the 'Update DB' button call '-O ' with the option selected from the dropdown plus the options from the checked checkboxes.
Make the 'Import' button call '-O listings'
Replace the 'Upload' button with a 'Rebuild' button, which calls '-O clean'.
 
Last edited:
Not sure. I haven't made any changes to the 'run' code. Let me see what happens when I run your command on my machine.

('python trade.py run --fr="Orang/Bessel Gateway" --cap=720 --cr=11b --ly=24.73 --empty=37.61 --pad=L --hops=2 --jum=3 --max-days-old=2 --loop --summary -vv --progress')

EDIT: Added '-www > run_log.txt'. Looks like it's getting hung up trying to find a hop from "Cemiess/Meech Dock".

Whenever I force quit it, I get something along these lines output:
Code:
>python trade.py run --fr="Orang/Bessel Gateway" --cap=720 --cr=11b --ly=24.73 --empty=37.61 --pad=L --hops=2 --jum=3 --max-days-old=2 --loop --summary -vv --progress -www > run_log.txt
Traceback (most recent call last):
  File "trade.py", line 104, in <module>
    main(sys.argv)
  File "trade.py", line 77, in main
    results = cmdenv.run(tdb)
  File "S:\Elite Dangerous Programs\Trade Dangerous\commands\commandenv.py", line 81, in run
    return self._cmd.run(results, self, tdb)
  File "S:\Elite Dangerous Programs\Trade Dangerous\commands\run_cmd.py", line 1220, in run
    newRoutes = calc.getBestHops(routes, restrictTo=restrictTo)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 909, in getBestHops
    trade = fitFunction(items, startCr, capacity, maxUnits)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 700, in fastFit
    return _fitCombos(0, credits, capacity)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 635, in _fitCombos
    qtyCeil = min(maxUnits, cap)
KeyboardInterrupt
Whatever station it's checking at the time, it's having trouble filling your hold. Each one of those "subLoad = ..." calls means that whatever cargo it found, that station doesn't have enough of it to fill your capacity, so it's looking to see what to buy next.

The log_run.txt is, unfortunately, not much help. It's obviously getting hung up somewhere, but the log doesn't really indicate where.

I think what you need to do is, instead of pruning, add a minimum required amount of items required. You have a 720 tonne cargo hold. I doubt you want to be carrying less than 20 or so of a single item.

On that note, I added some code to print the name of the station it's currently looking at, and it's been looking at "HIP 112113/Nomen Vision" for about 3 minutes now. So that's probably the station that's freezing the run.

Here's a video showing two runs using your settings, both freezing at the same point, and a third run with the same settings but with '--supply=20' added:
https://youtu.be/GyT0XE6TYXQ
 
Last edited:
I'm guessing. I looked at the DB and it has the same information.

Weirdly, though, this:
Code:
Command line: -u "...\trade.py" market -vvv "HIP 112113/Nomen Vision"
    Item                          Buying     Avg     Demand Selling     Avg   Supply Age/Days
---------------------------------------------------------------------------------------------
+CHEMICALS
    Explosives                                                                               
    Hydrogen Fuel                                                                            
    Hydrogen Peroxide              1,153   1,152   183,129H                              0.01
    Liquid Oxygen                                                                            
    Mineral Oil                      542     434   131,480M                              0.01
    Pesticides                                                                               
    Surface Stabilisers                                                                      
    Synthetic Reagents             7,561   6,961     2,326H                              0.01
    Water                            548     363    48,861M                              0.01
+CONSUMER ITEMS
    Clothing                         742     513    73,295M                              0.01
    Consumer Technology                                                                      
    Domestic Appliances              527     752     7,409L                              0.01
    Evacuation Shelter                                                                       
+FOODS
    Animal Meat                    1,842   1,736    19,134M                              0.01
    Coffee                         1,286   1,693     1,720L                              0.01
    Fish                             884     774    57,702M                              0.01
    Food Cartridges                  141     311     1,832L                              0.01
    Fruit and Vegetables             325     641     6,942L                              0.01
    Grain                            595     525   116,356M                              0.01
    Synthetic Meat                                                                           
    Tea                            1,800   1,898    12,672M                              0.01
+INDUSTRIAL MATERIALS
    CMM Composite                  6,701   6,496    46,510H                              0.01
    Ceramic Composites               707     766    50,386H                              0.01
    Insulating Membrane           11,647  10,914    29,353H                              0.01
    Meta-Alloys                   93,761  95,075    14,729H                              0.01
    Neofabric Insulation           5,944   5,940    51,161H                              0.01
    Polymers                                                                                 
    Semiconductors                                                                           
    Superconductors                7,065   6,666    91,442M                              0.01
+LEGAL DRUGS
    Beer                             578     516    79,029M                              0.01
    Bootleg Liquor                   567     650       335H                              0.01
    Liquor                           844     960     3,592M                              0.01
    Narcotics                                                                                
    Tobacco                        5,541   5,386     9,807H                              0.01
    Wine                             671     499    54,239M                              0.01
+MACHINERY
    Articulation Motors            7,561   7,473     7,559H                              0.01
    Energy Grid Assembly           3,179   3,131    16,860H                              0.01
    HN Shock Mount                 1,766   1,708     5,524L                              0.01
    Heatsink Interlink             2,578   2,528    20,931H                              0.01
    Magnetic Emitter Coil          1,761   1,737    31,395H                              0.01
    Microbial Furnaces                                                                       
    Modular Terminals              2,453   2,303    22,093H                              0.01
    Power Converter                1,842   1,788    29,651H                              0.01
    Power Generators                 527     727    14,196L                              0.01
    Water Purifiers                  300     470     8,964L                              0.01
+MEDICINES
    Advanced Medicines                                                                       
    Agri-Medicines                                                                           
    Basic Medicines                                                                          
    Combat Stabilisers                                                                       
    Performance Enhancers                                                                    
    Progenitor Cells                                                                         
+METALS
    Aluminium                                                                                
    Beryllium                      9,015   8,217    87,761H                              0.01
    Bismuth                        3,016   2,367   141,852H                              0.01
    Cobalt                         1,243     740   981,624H                              0.01
    Copper                                                                                   
    Gallium                        5,907   5,153   253,013H                              0.01
    Gold                          10,919   9,839   151,557H                              0.01
    Indium                         6,214   5,806    99,633M                              0.01
    Lanthanum                      9,671   8,589   169,758H                              0.01
    Lithium                        2,153   1,715   607,684M                              0.01
    Osmium                        10,294  11,104   161,231H                              0.01
    Palladium                     14,095  13,161   124,271H                              0.01
    Platinum                      42,404  41,314     9,303H                              0.01
    Praseodymium                   8,549   8,574    93,793H                              0.01
    Samarium                       8,039   8,058    99,219H                              0.01
    Silver                         5,559   4,812   265,558H                              0.01
    Tantalum                       4,569   3,992   608,296M                              0.01
    Thallium                       4,439   3,644   165,107H                              0.01
    Thorium                       12,423  11,765   137,976H                              0.01
    Titanium                                                                                 
    Uranium                        3,327   2,780   423,228H                              0.01
+MINERALS
    Bauxite                          532     259   213,790M                              0.01
    Bertrandite                    2,642   2,578     4,215L                              0.01
    Bromellite                     8,548   8,205    93,793H                              0.01
    Coltan                         1,541   1,538     6,686L                              0.01
    Cryolite                       2,860   2,809   523,806H                              0.01
    Gallite                        2,436   1,999   587,346M                              0.01
    Goslarite                      1,429   1,356    40,308H                              0.01
    Indite                         2,773   2,315   109,322M                              0.01
    Lepidolite                       727     745    13,711L                              0.01
    Lithium Hydroxide              5,600   5,643   144,953H                              0.01
    Low Temperature Diamonds      93,761  93,546     9,498H                              0.01
    Methane Clathrate                899     875   290,487H                              0.01
    Methanol Monohydrate           2,453   2,469   290,680H                              0.01
    Painite                       67,301  69,904     2,375H                              0.01
    Pyrophyllite                   2,116   2,047   957,888H                              0.01
    Rutile                           821     447 1,523,679H                              0.01
    Uraninite                      1,323   1,029    93,193M                              0.01
+SALVAGE
    Ancient Casket                 8,039   8,021     1,217H                              0.01
    Ancient Orb                    9,089   9,073     1,217H                              0.01
    Ancient Relic                 13,235  13,215     1,217H                              0.01
    Ancient Tablet                 9,089   9,074     1,217H                              0.01
    Ancient Totem                 10,958  10,940     1,217H                              0.01
    Ancient Urn                    6,310   6,292     1,217H                              0.01
    Assault Plans                    824   1,346     1,212H                              0.01
    Commercial Samples               749     616     1,212H                              0.01
    Data Core                      3,748   3,138     1,212H                              0.01
    Diplomatic Bag                   993   1,058     1,212H                              0.01
    Earth Relics                  11,669  11,761     1,212H                              0.01
    Encrypted Correspondence         761   1,248     1,212H                              0.01
    Encrypted Data Storage         1,278   1,582     1,212H                              0.01
    Fossil Remnants               10,958   9,310     1,212H                              0.01
    Geological Samples               824     765     1,212H                              0.01
    Large Survey Data Cache      223,223 163,658     1,212H                              0.01
    Mysterious Idol               17,073  14,539     1,212H                              0.01
    Precious Gems                139,821 123,642     1,212H                              0.01
    Rare Artwork                   5,280   8,174     1,212H                              0.01
    Scientific Research            1,082   2,625     1,212H                              0.01
    Scientific Samples             1,233   1,254     1,212H                              0.01
    Small Survey Data Cache       10,958  10,342     1,212H                              0.01
    Space Pioneer Relics           8,549   7,248     1,212H                              0.01
    Tactical Data                    841   1,316     1,212H                              0.01
    Unstable Data Core             3,179   2,929     1,212H                              0.01
+SLAVERY
    Imperial Slaves               16,769  17,069     3,822L                              0.01
+TECHNOLOGY
    Advanced Catalysers                                                                      
    Animal Monitors                                                                          
    Aquaponic Systems                                                                        
    Auto-Fabricators                                                                         
    Bioreducing Lichen                                                                       
    Computer Components              939     566    49,513M                              0.01
    H.E. Suits                                                                               
    Hardware Diagnostic Sensor     7,561   7,464    10,078H                              0.01
    Land Enrichment Systems                                                                  
    Medical Diagnostic Equipment                                                             
    Micro Controllers                                                                        
    Nanobreakers                   2,333   2,326    30,232H                              0.01
    Resonating Separators                                                                    
    Robotics                                                                                 
    Structural Regulators                                                                    
    Telemetry Suite                3,179   3,174    22,480H                              0.01
+TEXTILES
    Conductive Fabrics               951     869   357,033M                              0.01
    Military Grade Fabrics                                                                   
    Synthetic Fabrics                                                                        
+WASTE
    Biowaste                                                                                 
    Chemical Waste                   652     484    15,847H                              0.01
    Scrap                                                                                    
+WEAPONS
    Battle Weapons                                                                           
    Non-lethal Weapons                                                                       
    Personal Weapons                                                                         
    Reactive Armour

Maybe it's just how the market command works, but it doesn't show the sell price, avg, or supply for ANY station when running the market command.

This is why I don't want to work on TD itself. I didn't write the code, so I don't know what it's doing, and it's stupid hard to figure it out, especially with the lack of helpful commenting. I don't even know if the 'market' weirdness is intended or a bug!

All I know is that adding the 'supply' option makes it not stall, although, if you watch the video, it does go exceedingly slow in places. It's either because it's having a hard time finding enough stuff to fill the hold, or it's having a hard time figuring out which stuff is better to fill it with.

I noticed in the code there's actually two "what do we fill the hold with" methods, Best Fit and Brute Force. I know it defaults to Best Fit, I have no idea what makes it use Brute Force, and I have no idea if it would be less or more likely to lock up than Best Fit does- although at a guess I'd say less.
 
Last edited:
Not sure. I haven't made any changes to the 'run' code. Let me see what happens when I run your command on my machine.

('python trade.py run --fr="Orang/Bessel Gateway" --cap=720 --cr=11b --ly=24.73 --empty=37.61 --pad=L --hops=2 --jum=3 --max-days-old=2 --loop --summary -vv --progress')

EDIT: Added '-www > run_log.txt'. Looks like it's getting hung up trying to find a hop from "Cemiess/Meech Dock".

Whenever I force quit it, I get something along these lines output:
Code:
>python trade.py run --fr="Orang/Bessel Gateway" --cap=720 --cr=11b --ly=24.73 --empty=37.61 --pad=L --hops=2 --jum=3 --max-days-old=2 --loop --summary -vv --progress -www > run_log.txt
Traceback (most recent call last):
  File "trade.py", line 104, in <module>
    main(sys.argv)
  File "trade.py", line 77, in main
    results = cmdenv.run(tdb)
  File "S:\Elite Dangerous Programs\Trade Dangerous\commands\commandenv.py", line 81, in run
    return self._cmd.run(results, self, tdb)
  File "S:\Elite Dangerous Programs\Trade Dangerous\commands\run_cmd.py", line 1220, in run
    newRoutes = calc.getBestHops(routes, restrictTo=restrictTo)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 909, in getBestHops
    trade = fitFunction(items, startCr, capacity, maxUnits)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 700, in fastFit
    return _fitCombos(0, credits, capacity)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 676, in _fitCombos
    subLoad = _fitCombos(iNo+1, crLeft, capLeft)
  File "S:\Elite Dangerous Programs\Trade Dangerous\tradecalc.py", line 635, in _fitCombos
    qtyCeil = min(maxUnits, cap)
KeyboardInterrupt
Whatever station it's checking at the time, it's having trouble filling your hold. Each one of those "subLoad = ..." calls means that whatever cargo it found, that station doesn't have enough of it to fill your capacity, so it's looking to see what to buy next.

The log_run.txt is, unfortunately, not much help. It's obviously getting hung up somewhere, but the log doesn't really indicate where.

I think what you need to do is, instead of pruning, add a minimum required amount of items required. You have a 720 tonne cargo hold. I doubt you want to be carrying less than 20 or so of a single item.

On that note, I added some code to print the name of the station it's currently looking at, and it's been looking at "HIP 112113/Nomen Vision" for about 3 minutes now. So that's probably the station that's freezing the run.

Here's a video showing two runs using your settings, both freezing at the same point, and a third run with the same settings but with '--supply=20' added:
https://youtu.be/GyT0XE6TYXQ

Wierd because there's loads of stuff there

https://inara.cz/market/8278/3204/

I mean loads of cheap basic medicines which is usually a decent option

That was most useful, many thanks.

This does suggest, however, that the algorithm needs some sort of watchdog to catch this sort of problem. The obvious one wold be a time based limit but that could also limit obscure 'gold-rush' routes. A better solution would be a watch on the progress of the algorithm itself. Perhaps if it remains on one particular station for more than a set period of time or for a set number of iterations. I don't know the ins and outs of the trading algorithm so I can't really suggest how this should be done or even if it is possible but it may be worth looking into, perhaps at a later date.

That station output is a very good idea, could that also be a command line option?

Maybe a note in the FAQs or the operating instructions to say that if the route calculation is taking more than 5 minutes then perhaps cancelling and setting the supply limit might prevent this happening.

Anyway, many thanks for your time, at least I can try out some trade routes now with TD Helper.
 
If you add '-ww' to the command line options it spits out the station, and also a bunch of other stuff.

I literally just added a print statement to the code so I didn't have to deal with all the other stuff:

Code:
>python trade.py run --fr="Orang/Bessel Gateway" --cap=720 --cr=11b --ly=24.73 --empty=37.61 --pad=L --hops=2 --jum=3 --max-days-old=2 --loop --summary -vv --progress -ww
# Command line was: ['trade.py', 'run', '--fr=Orang/Bessel Gateway', '--cap=720', '--cr=11b', '--ly=24.73', '--empty=37.61', '--pad=L', '--hops=2', '--jum=3', '--max-days-old=2', '--loop', '--summary', '-vv', '--progress', '-ww']
# DB Cache is up to date.
# Loading data
# Connecting to DB
# Loaded 36 Addeds
# Loaded 20,520 Systems
# Loaded 67,859 Stations
# Loaded 33 Ships
# Loaded 16 Categories
# Loaded 200 Items
# Loaded 0 RareItems
# loading trades
# TradeCalc loading StationItem values
# Loaded 451860 buys, 126354 sells
# origPlace: Station: Orang/Bessel Gateway
# Using all available destinations
# Via: set()
# numHops 2, vias 0, adhocHops 1
* Hop   1: .........1 origins
[=========================] # Route = Orang/Bessel Gateway -> Orang/Bessel Gateway
# destSys Delta Phoenicis, destStn Trading Post, jumps Orang->Wepawegana->Facece->Delta Phoenicis, distLy 68.64327189865246
# destSys Devaku, destStn Howe Terminal, jumps Orang->Sigma Hydri->Piorimudjar->Devaku, distLy 46.574115374305684
# destSys Ngalkin, destStn Frechet Station, jumps Orang->Calea->Angi->Ngalkin, distLy 56.16548982913227
# destSys Ceronir, destStn Juan de la Cierva Orbital, jumps Orang->Untun->Sokariang->Ceronir, distLy 55.122352371252205
# destSys Ceronir, destStn Nomura Vision, jumps Orang->Untun->Sokariang->Ceronir, distLy 55.122352371252205
# destSys HIP 106213, destStn Tanaka Terminal, jumps Orang->Timbarichs->Tjakulcade->HIP 106213, distLy 51.23902697409598
# destSys HIP 106213, destStn Forward Hub, jumps Orang->Timbarichs->Tjakulcade->HIP 106213, distLy 51.23902697409598
# destSys Salitat, destStn Anderson Vision, jumps Orang->Beta Octantis->Hun Nongga->Salitat, distLy 60.91878096298104
# destSys LP 214-1, destStn Geston Gateway, jumps Orang->Timbarichs->Phiagre->LP 214-1, distLy 58.50242873909555
# destSys Samata, destStn Duque Barracks, jumps Orang->CD-77 45->Rauraci->Samata, distLy 49.2738090185316
# destSys Velliep, destStn Ikeya Plant, jumps Orang->Clayahu->Velliep, distLy 40.15334530878356
# destSys Venetet, destStn Eisinga Ring, jumps Orang->Venetet, distLy 14.778210575455338
# destSys Venetet, destStn Westerhout Lab, jumps Orang->Venetet, distLy 14.778210575455338
# destSys HR 2283, destStn Musgrave Dock, jumps Orang->Clayahu->Velliep->HR 2283, distLy 54.11776018419098
# destSys CD-74 632, destStn Simmons Port, jumps Orang->CD-86 4->Aracente->CD-74 632, distLy 62.39558463867181
# destSys Vequess, destStn Agnews' Folly, jumps Orang->Rata Bares->Vequess, distLy 44.035753552394254
# destSys HIP 52351, destStn Boyajian Colony, jumps Orang->Apino->Misthajani->HIP 52351, distLy 70.1228430515164
# destSys Dievat, destStn Bothezat City, jumps Orang->Rind->Jimavi->Dievat, distLy 61.99571655687025
# destSys Ngun, destStn Thiele Orbital, jumps Orang->Wepawegana->Apathaam->Ngun, distLy 67.63081651865164
# destSys Marines, destStn Friedman Ring, jumps Orang->Hollos->He Xingo->Marines, distLy 46.691494382588424
# destSys Kamocan, destStn Gasparis Vision, jumps Orang->Selkande->Kamocan, distLy 46.8122815242922
# destSys Kamocan, destStn Littrow Gateway, jumps Orang->Selkande->Kamocan, distLy 46.8122815242922
# destSys Kamocan, destStn Charlier City, jumps Orang->Selkande->Kamocan, distLy 46.8122815242922
# destSys Kamocan, destStn Miller Gateway, jumps Orang->Selkande->Kamocan, distLy 46.8122815242922
# destSys Kamocan, destStn Leckie Lab, jumps Orang->Selkande->Kamocan, distLy 46.8122815242922
# destSys Viroman, destStn Tully Prospect, jumps Orang->Untun->Viroman, distLy 47.76766854008732
# destSys Nijuna, destStn Potez Station, jumps Orang->Segoveduwa->Cegreeth->Nijuna, distLy 55.160072130104936
# destSys Bese, destStn Lewis Dock, jumps Orang->Mehuenomici->Bese, distLy 26.264491584434577
# destSys Vistaenis, destStn Naburimannu Ring, jumps Orang->Sigma Hydri->Wakea->Vistaenis, distLy 44.10492601172483
# destSys Vistaenis, destStn Uto Port, jumps Orang->Sigma Hydri->Wakea->Vistaenis, distLy 44.10492601172483
# destSys Vistaenis, destStn Merritt Landing, jumps Orang->Sigma Hydri->Wakea->Vistaenis, distLy 44.10492601172483
# destSys Beta Octantis, destStn Bassford Hub, jumps Orang->Beta Octantis, distLy 24.669732530471425
# destSys Beta-1 Tucanae, destStn Adams Orbital, jumps Orang->Segoveduwa->Beta-1 Tucanae, distLy 32.917973543448824
# destSys Beta-2 Tucanae, destStn Mouchez Orbital, jumps Orang->CD-73 12->CD-68 29->Beta-2 Tucanae, distLy 53.34758817976946
# destSys Asphodel, destStn John Irving Station, jumps Orang->Rata Bares->Vequess->Asphodel, distLy 64.73689142872848
# destSys Kao Thewi, destStn Rodrigues Bastion, jumps Orang->Clayahu->Seharis->Kao Thewi, distLy 64.09636943813582
# destSys Kao Wanga, destStn De City, jumps Orang->Lepchaimyu->Kao Wanga, distLy 38.77689687226176
# destSys HIP 112049, destStn Ball Silo, jumps Orang->HIP 112049, distLy 22.813998238471925
# destSys HIP 112113, destStn Nomen Vision, jumps Orang->Selkande->HIP 112113, distLy 32.771037222018364
# destSys Tapones, destStn Krigstein Vision, jumps Orang->Belaba->Tapones, distLy 29.606555535297336
# destSys Bharaba, destStn Helffrich Station, jumps Orang->Hollos->Amarigeni->Bharaba, distLy 47.42628606835129
# destSys Bharaba, destStn Hubble Ring, jumps Orang->Hollos->Amarigeni->Bharaba, distLy 47.42628606835129
# destSys Bharaba, destStn Pennington Port, jumps Orang->Hollos->Amarigeni->Bharaba, distLy 47.42628606835129
# destSys Karadjari, destStn Dufay Vision, jumps Orang->Segoveduwa->Fotla->Karadjari, distLy 41.55055135030375
# destSys Secoya, destStn Nagata Hub, jumps Orang->Psi Octantis->Secoya, distLy 34.97541915785723
# destSys Secoya, destStn Resnik Hub, jumps Orang->Psi Octantis->Secoya, distLy 34.97541915785723
# destSys Secoya, destStn Common Reach, jumps Orang->Psi Octantis->Secoya, distLy 34.97541915785723
# destSys Karama, destStn i Sola Ring, jumps Orang->Karama, distLy 23.768948033621513
# destSys Hunza, destStn Frazetta Port, jumps Orang->Lepchaimyu->HIP 23824->Hunza, distLy 55.51132224012062
# destSys Karbudj, destStn Shirazi Station, jumps Orang->Mirdia->Ponti->Karbudj, distLy 47.65850924118959
# destSys Segoveduwa, destStn Mason Hub, jumps Orang->Segoveduwa, distLy 15.91171320717854
# destSys Adnoartina, destStn Cleve Works, jumps Orang->CD-77 45->Rauraci->Adnoartina, distLy 64.92991790046264
# destSys Sekh, destStn Abel Market, jumps Orang->CD-77 45->CD-72 190->Sekh, distLy 67.51263357687398
# destSys Karid, destStn Araki Port, jumps Orang->Karid, distLy 6.359816477304986
# destSys Duberdicus, destStn Foster Hub, jumps Orang->Timbarichs->Phiagre->Duberdicus, distLy 63.540237368849766
# destSys Selkande, destStn Lewis Gateway, jumps Orang->Selkande, distLy 23.596833407790122
# destSys Miphifa, destStn Happis, jumps Orang->Rata Bares->Cemiess->Miphifa, distLy 57.3003309652056
# destSys Miphifa, destStn Kludze Lab, jumps Orang->Rata Bares->Cemiess->Miphifa, distLy 57.3003309652056
# destSys Dulos, destStn Smith Port, jumps Orang->Timbarichs->Atfero->Dulos, distLy 59.36303502651386
# destSys LTT 2337, destStn Bowen Terminal, jumps Orang->Clayahu->Braman->LTT 2337, distLy 60.625900567670605
# destSys Coquiabayo, destStn Kubokawa Dock, jumps Orang->HIP 112049->Kusang->Coquiabayo, distLy 66.84931663319773
# destSys Dvorsi, destStn Chernykh Ring, jumps Orang->Marki->Laedla->Dvorsi, distLy 50.45552534709479
# destSys Dvorsi, destStn Fowler Orbital, jumps Orang->Marki->Laedla->Dvorsi, distLy 50.45552534709479
# destSys Dvorsi, destStn Alfven Prospect, jumps Orang->Marki->Laedla->Dvorsi, distLy 50.45552534709479
# destSys Kaiakul, destStn Barlowe Station, jumps Orang->Wepawegana->Nehet->Kaiakul, distLy 51.83896646315351
# destSys Wakea, destStn Valdeaguas, jumps Orang->Sigma Hydri->Wakea, distLy 31.16501077823122
# destSys NLTT 7856, destStn Hussey Survey, jumps Orang->Wepawegana->Facece->NLTT 7856, distLy 66.3752937504131
# destSys Kaukhe, destStn Bauman Port, jumps Orang->Apino->Almudji->Kaukhe, distLy 52.134020524346184
# destSys Walka, destStn Gregory City, jumps Orang->Timbarichs->Phiagre->Walka, distLy 63.73860490244064
# destSys Eburnakura, destStn Parkinson Terminal, jumps Orang->Eburnakura, distLy 14.746589913010398
# destSys Kausan, destStn Lyulka Ring, jumps Orang->Jeterait->Kausha->Kausan, distLy 69.74886622601952
# destSys Kausan, destStn Panshin Vision, jumps Orang->Jeterait->Kausha->Kausan, distLy 69.74886622601952
# destSys Egovae, destStn Endate Market, jumps Orang->Calea->Egovae, distLy 32.96817772721171
# destSys Egovae, destStn Henslow Lab, jumps Orang->Calea->Egovae, distLy 32.96817772721171
.
.
.
# destSys CD-75 661, destStn Neujmin Station, jumps Fuelum->Gl 606.1 B->CD-75 661, distLy 35.85607115930668
# destSys CD-77 45, destStn Irrelon Orbital, jumps Fuelum->Bese->Mehuenomici->CD-77 45, distLy 67.84180603377814
# destSys CD-79 950, destStn Emma Jayne Wells Orbital, jumps Fuelum->Bese->Maityan->CD-79 950, distLy 52.02479655052973
# destSys CD-79 950, destStn Alex Prior High, jumps Fuelum->Bese->Maityan->CD-79 950, distLy 52.02479655052973
# destSys CD-82 331, destStn Lee Dock, jumps Fuelum->CD-82 331, distLy 19.21554851383379
# destSys CD-87 103, destStn Shajn City, jumps Fuelum->CD-82 331->CD-87 103, distLy 29.348165247679002
# destSys Cegreeth, destStn Volta Orbital, jumps Fuelum->Luluwala->Firdaus->Cegreeth, distLy 67.32486339346079
# destSys LTT 7488, destStn Rubin Vision, jumps Fuelum->LTT 7669->Kuwemargl->LTT 7488, distLy 58.74856044330271
Traceback (most recent call last):
  File "trade.py", line 104, in <module>
    main(sys.argv)
  File "trade.py", line 77, in main
    results = cmdenv.run(tdb)
  File "S:\Elite Dangerous Programs\Trade-Dangerous\commands\commandenv.py", line 81, in run
    return self._cmd.run(results, self, tdb)
  File "S:\Elite Dangerous Programs\Trade-Dangerous\commands\run_cmd.py", line 1220, in run
    newRoutes = calc.getBestHops(routes, restrictTo=restrictTo)
  File "S:\Elite Dangerous Programs\Trade-Dangerous\tradecalc.py", line 906, in getBestHops
    items = self.getTrades(srcStation, dstStation, srcSelling)
  File "S:\Elite Dangerous Programs\Trade-Dangerous\tradecalc.py", line 717, in getTrades
    minGainCr = max(1, self.tdenv.minGainPerTon or 1)
KeyboardInterrupt
(Spat out about 1000 lines in less than a second.)
 
Last edited:
If you add '-ww' to the command line options it spits out the station, and also a bunch of other stuff.

I literally just added a print statement to the code so I didn't have to deal with all the other stuff:

Code:
>python trade.py run --fr="Orang/Bessel Gateway" --cap=720 --cr=11b --ly=24.73 --empty=37.61 --pad=L --hops=2 --jum=3 --max-days-old=2 --loop --summary -vv --progress -ww
# Command line was: ['trade.py', 'run', '--fr=Orang/Bessel Gateway', '--cap=720', '--cr=11b', '--ly=24.73', '--empty=37.61', '--pad=L', '--hops=2', '--jum=3', '--max-days-old=2', '--loop', '--summary', '-vv', '--progress', '-ww']
# DB Cache is up to date.
# Loading data
# Connecting to DB
# Loaded 36 Addeds
# Loaded 20,520 Systems
# Loaded 67,859 Stations
# Loaded 33 Ships
# Loaded 16 Categories
# Loaded 200 Items
# Loaded 0 RareItems
# loading trades
# TradeCalc loading StationItem values
# Loaded 451860 buys, 126354 sells
# origPlace: Station: Orang/Bessel Gateway
# Using all available destinations
# Via: set()
# numHops 2, vias 0, adhocHops 1
* Hop   1: .........1 origins
[=========================] # Route = Orang/Bessel Gateway -> Orang/Bessel Gateway
# destSys Delta Phoenicis, destStn Trading Post, jumps Orang->Wepawegana->Facece->Delta Phoenicis, distLy 68.64327189865246
# destSys Devaku, destStn Howe Terminal, jumps Orang->Sigma Hydri->Piorimudjar->Devaku, distLy 46.574115374305684
# destSys Ngalkin, destStn Frechet Station, jumps Orang->Calea->Angi->Ngalkin, distLy 56.16548982913227
# destSys Ceronir, destStn Juan de la Cierva Orbital, jumps Orang->Untun->Sokariang->Ceronir, distLy 55.122352371252205
# destSys Ceronir, destStn Nomura Vision, jumps Orang->Untun->Sokariang->Ceronir, distLy 55.122352371252205
# destSys HIP 106213, destStn Tanaka Terminal, jumps Orang->Timbarichs->Tjakulcade->HIP 106213, distLy 51.23902697409598
# destSys HIP 106213, destStn Forward Hub, jumps Orang->Timbarichs->Tjakulcade->HIP 106213, distLy 51.23902697409598
# destSys Salitat, destStn Anderson Vision, jumps Orang->Beta Octantis->Hun Nongga->Salitat, distLy 60.91878096298104
# destSys LP 214-1, destStn Geston Gateway, jumps Orang->Timbarichs->Phiagre->LP 214-1, distLy 58.50242873909555
# destSys Samata, destStn Duque Barracks, jumps Orang->CD-77 45->Rauraci->Samata, distLy 49.2738090185316
# destSys Velliep, destStn Ikeya Plant, jumps Orang->Clayahu->Velliep, distLy 40.15334530878356
# destSys Venetet, destStn Eisinga Ring, jumps Orang->Venetet, distLy 14.778210575455338
# destSys Venetet, destStn Westerhout Lab, jumps Orang->Venetet, distLy 14.778210575455338
# destSys HR 2283, destStn Musgrave Dock, jumps Orang->Clayahu->Velliep->HR 2283, distLy 54.11776018419098
# destSys CD-74 632, destStn Simmons Port, jumps Orang->CD-86 4->Aracente->CD-74 632, distLy 62.39558463867181
# destSys Vequess, destStn Agnews' Folly, jumps Orang->Rata Bares->Vequess, distLy 44.035753552394254
# destSys HIP 52351, destStn Boyajian Colony, jumps Orang->Apino->Misthajani->HIP 52351, distLy 70.1228430515164
# destSys Dievat, destStn Bothezat City, jumps Orang->Rind->Jimavi->Dievat, distLy 61.99571655687025
# destSys Ngun, destStn Thiele Orbital, jumps Orang->Wepawegana->Apathaam->Ngun, distLy 67.63081651865164
# destSys Marines, destStn Friedman Ring, jumps Orang->Hollos->He Xingo->Marines, distLy 46.691494382588424
# destSys Kamocan, destStn Gasparis Vision, jumps Orang->Selkande->Kamocan, distLy 46.8122815242922
# destSys Kamocan, destStn Littrow Gateway, jumps Orang->Selkande->Kamocan, distLy 46.8122815242922
# destSys Kamocan, destStn Charlier City, jumps Orang->Selkande->Kamocan, distLy 46.8122815242922
# destSys Kamocan, destStn Miller Gateway, jumps Orang->Selkande->Kamocan, distLy 46.8122815242922
# destSys Kamocan, destStn Leckie Lab, jumps Orang->Selkande->Kamocan, distLy 46.8122815242922
# destSys Viroman, destStn Tully Prospect, jumps Orang->Untun->Viroman, distLy 47.76766854008732
# destSys Nijuna, destStn Potez Station, jumps Orang->Segoveduwa->Cegreeth->Nijuna, distLy 55.160072130104936
# destSys Bese, destStn Lewis Dock, jumps Orang->Mehuenomici->Bese, distLy 26.264491584434577
# destSys Vistaenis, destStn Naburimannu Ring, jumps Orang->Sigma Hydri->Wakea->Vistaenis, distLy 44.10492601172483
# destSys Vistaenis, destStn Uto Port, jumps Orang->Sigma Hydri->Wakea->Vistaenis, distLy 44.10492601172483
# destSys Vistaenis, destStn Merritt Landing, jumps Orang->Sigma Hydri->Wakea->Vistaenis, distLy 44.10492601172483
# destSys Beta Octantis, destStn Bassford Hub, jumps Orang->Beta Octantis, distLy 24.669732530471425
# destSys Beta-1 Tucanae, destStn Adams Orbital, jumps Orang->Segoveduwa->Beta-1 Tucanae, distLy 32.917973543448824
# destSys Beta-2 Tucanae, destStn Mouchez Orbital, jumps Orang->CD-73 12->CD-68 29->Beta-2 Tucanae, distLy 53.34758817976946
# destSys Asphodel, destStn John Irving Station, jumps Orang->Rata Bares->Vequess->Asphodel, distLy 64.73689142872848
# destSys Kao Thewi, destStn Rodrigues Bastion, jumps Orang->Clayahu->Seharis->Kao Thewi, distLy 64.09636943813582
# destSys Kao Wanga, destStn De City, jumps Orang->Lepchaimyu->Kao Wanga, distLy 38.77689687226176
# destSys HIP 112049, destStn Ball Silo, jumps Orang->HIP 112049, distLy 22.813998238471925
# destSys HIP 112113, destStn Nomen Vision, jumps Orang->Selkande->HIP 112113, distLy 32.771037222018364
# destSys Tapones, destStn Krigstein Vision, jumps Orang->Belaba->Tapones, distLy 29.606555535297336
# destSys Bharaba, destStn Helffrich Station, jumps Orang->Hollos->Amarigeni->Bharaba, distLy 47.42628606835129
# destSys Bharaba, destStn Hubble Ring, jumps Orang->Hollos->Amarigeni->Bharaba, distLy 47.42628606835129
# destSys Bharaba, destStn Pennington Port, jumps Orang->Hollos->Amarigeni->Bharaba, distLy 47.42628606835129
# destSys Karadjari, destStn Dufay Vision, jumps Orang->Segoveduwa->Fotla->Karadjari, distLy 41.55055135030375
# destSys Secoya, destStn Nagata Hub, jumps Orang->Psi Octantis->Secoya, distLy 34.97541915785723
# destSys Secoya, destStn Resnik Hub, jumps Orang->Psi Octantis->Secoya, distLy 34.97541915785723
# destSys Secoya, destStn Common Reach, jumps Orang->Psi Octantis->Secoya, distLy 34.97541915785723
# destSys Karama, destStn i Sola Ring, jumps Orang->Karama, distLy 23.768948033621513
# destSys Hunza, destStn Frazetta Port, jumps Orang->Lepchaimyu->HIP 23824->Hunza, distLy 55.51132224012062
# destSys Karbudj, destStn Shirazi Station, jumps Orang->Mirdia->Ponti->Karbudj, distLy 47.65850924118959
# destSys Segoveduwa, destStn Mason Hub, jumps Orang->Segoveduwa, distLy 15.91171320717854
# destSys Adnoartina, destStn Cleve Works, jumps Orang->CD-77 45->Rauraci->Adnoartina, distLy 64.92991790046264
# destSys Sekh, destStn Abel Market, jumps Orang->CD-77 45->CD-72 190->Sekh, distLy 67.51263357687398
# destSys Karid, destStn Araki Port, jumps Orang->Karid, distLy 6.359816477304986
# destSys Duberdicus, destStn Foster Hub, jumps Orang->Timbarichs->Phiagre->Duberdicus, distLy 63.540237368849766
# destSys Selkande, destStn Lewis Gateway, jumps Orang->Selkande, distLy 23.596833407790122
# destSys Miphifa, destStn Happis, jumps Orang->Rata Bares->Cemiess->Miphifa, distLy 57.3003309652056
# destSys Miphifa, destStn Kludze Lab, jumps Orang->Rata Bares->Cemiess->Miphifa, distLy 57.3003309652056
# destSys Dulos, destStn Smith Port, jumps Orang->Timbarichs->Atfero->Dulos, distLy 59.36303502651386
# destSys LTT 2337, destStn Bowen Terminal, jumps Orang->Clayahu->Braman->LTT 2337, distLy 60.625900567670605
# destSys Coquiabayo, destStn Kubokawa Dock, jumps Orang->HIP 112049->Kusang->Coquiabayo, distLy 66.84931663319773
# destSys Dvorsi, destStn Chernykh Ring, jumps Orang->Marki->Laedla->Dvorsi, distLy 50.45552534709479
# destSys Dvorsi, destStn Fowler Orbital, jumps Orang->Marki->Laedla->Dvorsi, distLy 50.45552534709479
# destSys Dvorsi, destStn Alfven Prospect, jumps Orang->Marki->Laedla->Dvorsi, distLy 50.45552534709479
# destSys Kaiakul, destStn Barlowe Station, jumps Orang->Wepawegana->Nehet->Kaiakul, distLy 51.83896646315351
# destSys Wakea, destStn Valdeaguas, jumps Orang->Sigma Hydri->Wakea, distLy 31.16501077823122
# destSys NLTT 7856, destStn Hussey Survey, jumps Orang->Wepawegana->Facece->NLTT 7856, distLy 66.3752937504131
# destSys Kaukhe, destStn Bauman Port, jumps Orang->Apino->Almudji->Kaukhe, distLy 52.134020524346184
# destSys Walka, destStn Gregory City, jumps Orang->Timbarichs->Phiagre->Walka, distLy 63.73860490244064
# destSys Eburnakura, destStn Parkinson Terminal, jumps Orang->Eburnakura, distLy 14.746589913010398
# destSys Kausan, destStn Lyulka Ring, jumps Orang->Jeterait->Kausha->Kausan, distLy 69.74886622601952
# destSys Kausan, destStn Panshin Vision, jumps Orang->Jeterait->Kausha->Kausan, distLy 69.74886622601952
# destSys Egovae, destStn Endate Market, jumps Orang->Calea->Egovae, distLy 32.96817772721171
# destSys Egovae, destStn Henslow Lab, jumps Orang->Calea->Egovae, distLy 32.96817772721171
.
.
.
# destSys CD-75 661, destStn Neujmin Station, jumps Fuelum->Gl 606.1 B->CD-75 661, distLy 35.85607115930668
# destSys CD-77 45, destStn Irrelon Orbital, jumps Fuelum->Bese->Mehuenomici->CD-77 45, distLy 67.84180603377814
# destSys CD-79 950, destStn Emma Jayne Wells Orbital, jumps Fuelum->Bese->Maityan->CD-79 950, distLy 52.02479655052973
# destSys CD-79 950, destStn Alex Prior High, jumps Fuelum->Bese->Maityan->CD-79 950, distLy 52.02479655052973
# destSys CD-82 331, destStn Lee Dock, jumps Fuelum->CD-82 331, distLy 19.21554851383379
# destSys CD-87 103, destStn Shajn City, jumps Fuelum->CD-82 331->CD-87 103, distLy 29.348165247679002
# destSys Cegreeth, destStn Volta Orbital, jumps Fuelum->Luluwala->Firdaus->Cegreeth, distLy 67.32486339346079
# destSys LTT 7488, destStn Rubin Vision, jumps Fuelum->LTT 7669->Kuwemargl->LTT 7488, distLy 58.74856044330271
Traceback (most recent call last):
  File "trade.py", line 104, in <module>
    main(sys.argv)
  File "trade.py", line 77, in main
    results = cmdenv.run(tdb)
  File "S:\Elite Dangerous Programs\Trade-Dangerous\commands\commandenv.py", line 81, in run
    return self._cmd.run(results, self, tdb)
  File "S:\Elite Dangerous Programs\Trade-Dangerous\commands\run_cmd.py", line 1220, in run
    newRoutes = calc.getBestHops(routes, restrictTo=restrictTo)
  File "S:\Elite Dangerous Programs\Trade-Dangerous\tradecalc.py", line 906, in getBestHops
    items = self.getTrades(srcStation, dstStation, srcSelling)
  File "S:\Elite Dangerous Programs\Trade-Dangerous\tradecalc.py", line 717, in getTrades
    minGainCr = max(1, self.tdenv.minGainPerTon or 1)
KeyboardInterrupt
(Spat out about 1000 lines in less than a second.)

Good Lord! I see what you mean.

That's a debug listing that would take some time to figure out!

I don't think I'll be using that option anytime soon.
 
I think it might pay for someone to look at the station data for the stations that it slows down on in the video I linked and see if they can find anything in common that might be the cause of it, because even though it only locked up on Nemen, it got really slow in other stations too, so maybe figuring out why and how to fix would be the solution we want for preventing lockup.

Any volunteers?
 
Last edited:
Back
Top Bottom