In-Development TradeDangerous: power-user trade optimizer

Hi

I'm struggling with the horizon release. I pulled the new horizon branch (bitbucket.../branches/horizon) and copied items.csv from maddavos website to data/ directory. But when I run python3 trade.py import -P maddavo -O csvs I get loads of errors:
WARNING: import.prices:1343046 ERROR Unrecognized item name: "SURFACE STABILISERS"
WARNING: import.prices:1343047 ERROR Unrecognized item name: "SYNTHETIC REAGENTS"
WARNING: import.prices:1343052 ERROR Unrecognized item name: "EVACUATION SHELTER"
WARNING: import.prices:1343063 ERROR Unrecognized item name: "CERAMIC COMPOSITES"
WARNING: import.prices:1343064 ERROR Unrecognized item name: "META-ALLOYS"
WARNING: import.prices:1343070 ERROR Unrecognized item name: "BOOTLEG LIQUOR"
WARNING: import.prices:1343088 ERROR Unrecognized item name: "BISMUTH"
WARNING: import.prices:1343094 ERROR Unrecognized item name: "LANTHANUM"
WARNING: import.prices:1343101 ERROR Unrecognized item name: "THALLIUM"
WARNING: import.prices:1343102 ERROR Unrecognized item name: "THORIUM"
WARNING: import.prices:1343109 ERROR Unrecognized item name: "CRYOLITE"
WARNING: import.prices:1343111 ERROR Unrecognized item name: "GOSLARITE"
WARNING: import.prices:1343115 ERROR Unrecognized item name: "PYROPHYLLITE"
WARNING: import.prices:1343132 ERROR Unrecognized item name: "STRUCTURAL REGULATORS"

and if I try to update station prices (-P edapi -O eddn), I still get more errors like these:
@MARRALLANG/Stromgren Dock
<tradedb.Station object at 0x7fcab467bd58>
WARNING: import.prices:29 ERROR Unrecognized item name: "CERAMIC COMPOSITES"
WARNING: import.prices:31 ERROR Unrecognized item name: "META ALLOYS"
WARNING: import.prices:41 ERROR Unrecognized item name: "BUILDING FABRICATORS"
WARNING: import.prices:45 ERROR Unrecognized item name: "GEOLOGICAL EQUIPMENT"
WARNING: import.prices:53 ERROR Unrecognized item name: "SKIMER COMPONENTS"
WARNING: import.prices:55 ERROR Unrecognized item name: "THERMAL COOLING UNITS"
WARNING: import.prices:99 ERROR Unrecognized item name: "BOOTLEG LIQUOR"
NOTE: Import complete: 56 updated items over 1 stations in 1 systems
Posting prices to EDDN...

Are those warnings valid, am I doing something wrong or what is happening?
 
Hi

I'm struggling with the horizon release. I pulled the new horizon branch (bitbucket.../branches/horizon) and copied items.csv from maddavos website to data/ directory. But when I run python3 trade.py import -P maddavo -O csvs I get loads of errors:
WARNING: import.prices:1343046 ERROR Unrecognized item name: "SURFACE STABILISERS"
WARNING: import.prices:1343047 ERROR Unrecognized item name: "SYNTHETIC REAGENTS"
WARNING: import.prices:1343052 ERROR Unrecognized item name: "EVACUATION SHELTER"
WARNING: import.prices:1343063 ERROR Unrecognized item name: "CERAMIC COMPOSITES"
WARNING: import.prices:1343064 ERROR Unrecognized item name: "META-ALLOYS"
WARNING: import.prices:1343070 ERROR Unrecognized item name: "BOOTLEG LIQUOR"
WARNING: import.prices:1343088 ERROR Unrecognized item name: "BISMUTH"
WARNING: import.prices:1343094 ERROR Unrecognized item name: "LANTHANUM"
WARNING: import.prices:1343101 ERROR Unrecognized item name: "THALLIUM"
WARNING: import.prices:1343102 ERROR Unrecognized item name: "THORIUM"
WARNING: import.prices:1343109 ERROR Unrecognized item name: "CRYOLITE"
WARNING: import.prices:1343111 ERROR Unrecognized item name: "GOSLARITE"
WARNING: import.prices:1343115 ERROR Unrecognized item name: "PYROPHYLLITE"
WARNING: import.prices:1343132 ERROR Unrecognized item name: "STRUCTURAL REGULATORS"

and if I try to update station prices (-P edapi -O eddn), I still get more errors like these:
@MARRALLANG/Stromgren Dock
<tradedb.Station object at 0x7fcab467bd58>
WARNING: import.prices:29 ERROR Unrecognized item name: "CERAMIC COMPOSITES"
WARNING: import.prices:31 ERROR Unrecognized item name: "META ALLOYS"
WARNING: import.prices:41 ERROR Unrecognized item name: "BUILDING FABRICATORS"
WARNING: import.prices:45 ERROR Unrecognized item name: "GEOLOGICAL EQUIPMENT"
WARNING: import.prices:53 ERROR Unrecognized item name: "SKIMER COMPONENTS"
WARNING: import.prices:55 ERROR Unrecognized item name: "THERMAL COOLING UNITS"
WARNING: import.prices:99 ERROR Unrecognized item name: "BOOTLEG LIQUOR"
NOTE: Import complete: 56 updated items over 1 stations in 1 systems
Posting prices to EDDN...

Are those warnings valid, am I doing something wrong or what is happening?

Hi @Jagge,
It looks like you may have an old Item.csv . Try the one from MMS at http://www.davek.com.au/td/Item.csv
Put that into your data folder and have another go.
Cheers,
Maddavo
 
nope, didn't help. When I do station update with -P edapi -O eddn, the following ensues.
@MARRALLANG/Stromgren Dock
<tradedb.Station object at 0x7f6cd1a27178>
WARNING: import.prices:29 ERROR Unrecognized item name: "CERAMIC COMPOSITES"
WARNING: import.prices:31 ERROR Unrecognized item name: "META ALLOYS"
WARNING: import.prices:41 ERROR Unrecognized item name: "BUILDING FABRICATORS"
WARNING: import.prices:45 ERROR Unrecognized item name: "GEOLOGICAL EQUIPMENT"
WARNING: import.prices:53 ERROR Unrecognized item name: "SKIMER COMPONENTS"
WARNING: import.prices:55 ERROR Unrecognized item name: "THERMAL COOLING UNITS"
WARNING: import.prices:99 ERROR Unrecognized item name: "BOOTLEG LIQUOR"
NOTE: Import complete: 1 removed and 55 updated items over 1 stations in 1 systems
Posting prices to EDDN...
Current location: MARRALLANG/Stromgren Dock

Quick check shows that Items.csv contains e.g. "Meta-Alloys" and not "Meta Alloys". Either the file is wrong or edapi plugin does not work, needs more investigating, but it's hard for me with baby over my shoulder typing one handed :)
 

wolverine2710

Tutorial & Guide Writer
Can anyone tell me what is the default radius used by TD to calculate runs is - from a certain starting point system. I've tried to do RTFM and checked the TD wiki but can't find it. Somehow the number 100 LY comes to mind but absolutely not sure. As the number of systems/stations is to big to solve the knapsack problem for TD has to reduce the bubble/sphere its working on. Hopefully the question makes sense. I need the info for an upcoming post in the "Open Letter to Frontier Developments" thread to put things a bit in perspective.

I already got an estimate for the size of the bubble/eclipse/pill of the systems which have markets. See also the thread "Does anyone know about the size/volume of the bubble/pill of inhabited systems"
 
Can anyone tell me what is the default radius used by TD to calculate runs is - from a certain starting point system. I've tried to do RTFM and checked the TD wiki but can't find it. Somehow the number 100 LY comes to mind but absolutely not sure.

There is no default. You must specify a jump range (--ly-per parameter) and if you do not specify a number of jumps, it defaults to 2.
 
Can anyone tell me what is the default radius used by TD to calculate runs is - from a certain starting point system. I've tried to do RTFM and checked the TD wiki but can't find it. Somehow the number 100 LY comes to mind but absolutely not sure. As the number of systems/stations is to big to solve the knapsack problem for TD has to reduce the bubble/sphere its working on. Hopefully the question makes sense. I need the info for an upcoming post in the "Open Letter to Frontier Developments" thread to put things a bit in perspective.

I already got an estimate for the size of the bubble/eclipse/pill of the systems which have markets. See also the thread "Does anyone know about the size/volume of the bubble/pill of inhabited systems"

My understanding is that if you give TD a source station, then the search is limited to a 100Ly sphere around that system. BUT if you give no source or destination station, then the search will be galaxy-wide (hence it is significantly longer to generate a run with no specific source or destination). BUT that's just my recollection from discussions here over a year ago - it may well have changed over different versions.
 
My understanding is that if you give TD a source station, then the search is limited to a 100Ly sphere around that system. BUT if you give no source or destination station, then the search will be galaxy-wide (hence it is significantly longer to generate a run with no specific source or destination). BUT that's just my recollection from discussions here over a year ago - it may well have changed over different versions.

'trade.py run' wil not ermm... run unless you specify a --ly-per parameter. This limits the size of the sphere. If yo3u specify a start point then you have a 'centre' for your sphere specified. If you do not specify a start point, it looks for the best start point it can find. The command line help suggests that ony capacity and credits are mandatory, but this is not the case as far as I can tell.

Code:
>rem 'mandatory' parameters
>trade.py run --cap 64 --cr 1000000
trade.py: ERROR: Missing '--ly-per'


>rem source system specified
>trade.py run --cap 64 --cr 1000000 --fr sol
trade.py: ERROR: Missing '--ly-per'

>rem no source system but jump range specified. (Note the default of 2 trades)
>trade.py run --cap 64 --cr 1000000 --ly-per 8
LAUMA/Foda Port -> ANEKALITI/Hutton Park
  LAUMA/Foda Port: 64 x Beryllium,
  EHECATL/Hackworth Orbital: 64 x Imperial Slaves,
  ANEKALITI/Hutton Park +264,832cr (2,069/ton)

>rem source and jump range specified
>trade.py run --cap 64 --cr 1000000 --ly-per 8 --fr sol
SOL/Daedalus -> ROSS 490/Citi Dock
  SOL/Daedalus: 64 x Superconductors,
  WOLF 424/Pontes Terminal: 64 x Battle Weapons,
  ROSS 490/Citi Dock +133,568cr (1,043/ton)
 
'trade.py run' wil not ermm... run unless you specify a --ly-per parameter. This limits the size of the sphere. If yo3u specify a start point then you have a 'centre' for your sphere specified. If you do not specify a start point, it looks for the best start point it can find. The command line help suggests that ony capacity and credits are mandatory, but this is not the case as far as I can tell.

Hi @DRY411S,

I'm not referring to the --ly-per parameter, I am talking about a hard-coded search limit that is independent of the parameters given - apart from the circumstances of whether a source/destination is given or not. I acknowledge that the --ly-per parameter in combination with the --hops and --jumps will further limit the search criteria. But I recall @kfsone talking at one point about a dataset restriction that is implemented prior to searching - essentially the run command is run against a sub-set of the price data and my understanding is that subset is based on a 100Ly sphere around source system.

Cheers,
Maddavo
 
Hai guise, starting casually playing again a bit and doing some trading. Is there any way to filter out surface installations, and just get orbital stations? Landing on theses surface installations takes too much time :D

I looked at --avoid, but can't seem to figure out how to filter them out.
 
Last edited:
Hai guise, starting casually playing again a bit and doing some trading. Is there any way to filter out surface installations, and just get orbital stations? Landing on theses surface installations takes too much time :D

I looked at --avoid, but can't seem to figure out how to filter them out.

Nvm, got the Horizon Branch and it works, thanks Bernd (and kfsone ofc).
 
Hi @DRY411S,

I'm not referring to the --ly-per parameter, I am talking about a hard-coded search limit that is independent of the parameters given - apart from the circumstances of whether a source/destination is given or not. I acknowledge that the --ly-per parameter in combination with the --hops and --jumps will further limit the search criteria. But I recall @kfsone talking at one point about a dataset restriction that is implemented prior to searching - essentially the run command is run against a sub-set of the price data and my understanding is that subset is based on a 100Ly sphere around source system.

Cheers,
Maddavo

But my point is that trade.py run will not run unless you give it a --ly argument, whether or not you specify a source system. Thus there is no default, you must constrain it with --ly + hops + jumps. Whether it then constrains that combination hop/skip/jump to never exceed an upper limit, I don't know.
 
Hello,

How do I get TD and TD helper to stop returning planetary stations and 2.0 commodities?
It's a bit cumbersome to keep entering planetary stations and 2.0 commodities into the avoid list.

Thank you and best regards.
 
Hello,

How do I get TD and TD helper to stop returning planetary stations and 2.0 commodities?
It's a bit cumbersome to keep entering planetary stations and 2.0 commodities into the avoid list.

Thank you and best regards.

TDHelper has not been updated yet to handle the bgol/horizons branch version of TradeDangerous which has the --no-planet switch in the buy/sell/run/rares/local/nav commands.

I consider bgol's horizon branch to be the latest version of TD as Oliver (@kfsone) seems to have dropped interest in ED/TD.
 
Can anyone help (a Atlassian noob), I have "Tradedangerous" added in Atlassian SourceTree, via "https://bitbucket.org/kfsone/tradedangerous.git"
under Branches it only show master how do I Add the horizon branch?
 
Can anyone help (a Atlassian noob), I have "Tradedangerous" added in Atlassian SourceTree, via "https://bitbucket.org/kfsone/tradedangerous.git"
under Branches it only show master how do I Add the horizon branch?
Look at page 139 of this forum. Post 2075 will give you a link to what you want.
 
  • Like (+1)
Reactions: NE1
When I execute ...

trade.py import -P maddavo -O corrections,stations,exportcsv


It returns a bunch of .....
........
WARNING: import.prices:280073 ERROR CRYOLITE
WARNING: import.prices:280075 ERROR GOSLARITE
WARNING: import.prices:280079 ERROR PYROPHYLLITE
WARNING: import.prices:280101 ERROR NERVE AGENTS
WARNING: import.prices:280102 ERROR SURFACE STABILISERS
WARNING: import.prices:280103 ERROR SYNTHETIC REAGENTS
WARNING: import.prices:280108 ERROR EVACUATION SHELTER
WARNING: import.prices:280120 ERROR CERAMIC COMPOSITES
...

Where in the code can I disable the code to display the warnings?

THX
 
Where in the code can I disable the code to display the warnings?

THX

You need to add --ignore-unknown or -i

There is help....

Code:
>trade.py import --help

trade.py: TradeDangerous help


usage: trade.py import [--plug PLUG] [--url URL] [--download]
                       [--ignore-unknown] [--option PLUGINOPTIONS]
                       [--reset-all | --merge-import] [-h] [--debug]
                       [--detail] [--quiet] [--db DBFILENAME] [--cwd CWD]
                       [--link-ly MAXSYSTEMLINKLY]
                       [filename]


Optional Switches:
  filename              Name of the file to read.
  --plug PLUG, -P PLUG  Use the specified import plugin.
  --url URL             Name of the file to read.
  --download            Stop after downloading.
  --ignore-unknown, -i  Data for systems, stations and items that are not
                        recognized is reported as warning but skipped.
  --option PLUGINOPTIONS, -O PLUGINOPTIONS
                        Provides a way to pass additional arguments to
                        plugins.
  --reset-all           Clear the database before importing.
  --merge-import, -M    Merge the import file with the existing local
                        database: only loads values that have an explicit
                        entry with a newer timestamp than the existing data.
                        Local values are only removed if there is an explicit
                        entry with a 0/0 demand/supply price.


Common Switches:
  -h, --help            Show this help message and exit.
  --debug, -w           Enable/raise level of diagnostic output.
  --detail, -v          Increase level of detail in output.
  --quiet, -q           Reduce level of detail in output.
  --db DBFILENAME       Specify location of the SQLite database.
  --cwd CWD, -C CWD     Change the working directory file accesses are made
                        from.
  --link-ly MAXSYSTEMLINKLY, -L MAXSYSTEMLINKLY
                        Maximum lightyears between systems to be considered
                        linked.


This sub-command provides a plugin infrastructure, and comes with a module to
import data from Maddavo's Market Share ([URL]http://www.davek.com.au/td/[/URL]). See
"import -P maddavo -O help" for more help.
 
Last edited:
Look at page 139 of this forum. Post 2075 will give you a link to what you want.
Reped you thinking that post would have what i need.

Thats not what im looking for - I want to add the branch to Atlassian Under Tradedangerous

I have branch but only Master shows up in the dropdown, I'm looking for info on how to add horizons branch to that so i can continue to use atlassian to pull updates from the horizons branch. Pulling master only gives me last update from kfsone

thanks anyway.
 
Last edited:
Reped you thinking that post would have what i need.

Thats not what im looking for - I want to add the branch to Atlassian Under Tradedangerous

I have branch but only Master shows up in the dropdown, I'm looking for info on how to add horizons branch to that so i can continue to use atlassian to pull updates from the horizons branch. Pulling master only gives me last update from kfsone

thanks anyway.

Yep, the branch is not part of the original master. I don't understand how to make it work with Atlassian, but I do know how to download it and overwrite what I've got.

I haven't actually done it yet though. :)
 
Back
Top Bottom