In-Development TradeDangerous: power-user trade optimizer

Hi,

I quess that there's several commanders with some bontys for minor factions here and there, but no recollection what star system this must be claimed. Is there any possibility or even mind to implement the factions somehow example to the station information? Then you can do some another magic trick with trade.py

How the new data will impact the performance or db size?

The data is not available on OCR-tools, so the validity of the data is our hands as users of TD

Lead factions can change in stations. I know, we flipped a station last week. But the factions remain within the system, and you can cash in bounties I believe in any station in a system where the faction is.

Long winded way of saying that I think the factions should be stored with a system rather than a station.

(Even then, factions can expand into new systems).
 
I thought it was about time to run edscupdate.py again, but running edscupdate.py "Aganippe" --random is giving an error this week!


Hit enter to continue:
At the prompt enter:
q
to indicate you've suffered enough,
y
to accept the name/value and confirm with EDSC,
n (or anything else)
to skip the name/value (no confirmation),
=name (e.g. =SOL)
to accept the distance but correct spelling,
~dist (e.g. ~104.49)
to submit a distance correction for the system,

Traceback (most recent call last):
File "D:\Trade\edscupdate.py", line 418, in <module>
main()
File "D:\Trade\edscupdate.py", line 360, in main
clip = misc.clipboard.SystemNameClip()
AttributeError: 'module' object has no attribute 'SystemNameClip'

Has something changed and I'm doing it wrong now? CMDR is set and so is NOTK as per the warning!
 
I thought it was about time to run edscupdate.py again, but running edscupdate.py "Aganippe" --random is giving an error this week!


Hit enter to continue:
At the prompt enter:
q
to indicate you've suffered enough,
y
to accept the name/value and confirm with EDSC,
n (or anything else)
to skip the name/value (no confirmation),
=name (e.g. =SOL)
to accept the distance but correct spelling,
~dist (e.g. ~104.49)
to submit a distance correction for the system,

Traceback (most recent call last):
File "D:\Trade\edscupdate.py", line 418, in <module>
main()
File "D:\Trade\edscupdate.py", line 360, in main
clip = misc.clipboard.SystemNameClip()
AttributeError: 'module' object has no attribute 'SystemNameClip'

Has something changed and I'm doing it wrong now? CMDR is set and so is NOTK as per the warning!

This feature requires you to have the clipboard functionality, which means it needs the Tk support you are disabling with NOTK.

You appear to be running under Windows, so tk shouldn't be a problem. Common cause of a tk issue is having mixed 32 and 64 bit Pythons which you can fix by uninstalling and then deleting the c:\python34 folder, then reinstall python (ideally 64 bit 3.4.2 or 3.4.3)

(Blame kindle autocorrect for any typos)
 
Last edited:
You're right. The system is the right place for that information.

But each station is controlled by ONE faction. This faction also gets influence through trading with its markets.
So all factions saved in a system and one faction per station. That way not only bounty hunters will benefit from those data but also players who chose a specific faction for their gameplay. (currently partially stored at eddb.io)
 
You appear to be running under Windows, so tk shouldn't be a problem. Common cause of a tk issue is having mixed 32 and 64 bit Pythons which you can fix by uninstalling and then deleting the c:\python34 folder, then reinstall python (ideally 64 bit 3.4.2 or 3.4.3)

That fixed it, thanks
 
Current code is case-insensitive about item names when reading .prices files (AI or Ai relics) and has over 100 new systems.

I've been off-line for PSU and health reasons.
 
If you take a look at the screenshot (see 1.2 New Goods) it seems AI is written in UPPERCASE in the description.

I guess your "lower case" variant comes from EliteOCR, which does a title() translation of the uppercase text.

I imagine you're right. This then propagates into Maddavo, so we need to support it - and now we do :)
 
Code:
v6.15.0 Mar 27 2015
. (kfsone) Refresh .prices file after removing a station that had items
. (kfsone) Maddavo Plugin
   - Added support for "corrections"
     "--opt=corrections" and "--opt=csvs" will read Maddavo's correction data
     correction data is read first and is applied to existing data,
   - Support for Category, Item, System, Station, Ship, ShipVendor and
     RareItem name changes and deletions,
   - System, Item and Station deletions can be very slow if there are prices
     in the database, be patient,
   - "--opt=csvs" now also enables "exportcsvs"
   - "--opt=exportcsvs" not exports
API:
. (kfsone) transfers.CSVStream will give a line-by-line report of utf-8
     decode errors but continue streaming.

In other words:

Code:
  tdimad -O csvs

or if you're not using scripts

   trade.py import --plug=maddavo --opt=csvs
or
   trade.py import --plug maddavo -O csvs

will now import mad's correction list (name changes and deletions). This includes items, rares, ships, etc.

This will also refresh your local .csv files to make it less likely that you'll find yourself getting clobbered by stuff post import.
 
Last edited:
Just added another 100+ systems from EDSC. Hopefully Mad will pick them up soon and then if you're using -O csvs you'll get them regardless of how you're getting your data :)
 
For your enjoyment: The 50 stations with the oldest price data in Maddavo's database...

Code:
SYSTEM/Station                      Days Old  Date
===================================|=========|===================
LHS 1914/Schirra Orbital            103.0699  2014-12-16 05:27:56
V401 HYDRAE/Swanwick Terminal       102.9888  2014-12-16 07:24:42
MAFDETELA/Vinge Beacon              102.1946  2014-12-17 02:28:21
LHS 3877/W*ng Ring                  101.4228  2014-12-17 20:59:45
COSI/Marshall Hub                   101.3286  2014-12-17 23:15:27
G 180-18/Bamford Terminal           100.7940  2014-12-18 12:05:17
MAGEC/Arrhenius Colony              100.7918  2014-12-18 12:08:26
MAGEC/Trumpler Dock                 100.7916  2014-12-18 12:08:44
FAUST 3566/Perry Dock               100.5226  2014-12-18 18:36:01
FAUST 3566/Murphy Gateway           100.4993  2014-12-18 19:09:38
MOMBALUMA/Hughes-Fulford Terminal   100.2710  2014-12-19 00:38:22
UOLUSKAS/Moisuc Dock                100.0779  2014-12-19 05:16:21
BELALANS/Shoemaker City             100.0705  2014-12-19 05:27:00
OVIMBAIA/Morris City                99.59604  2014-12-19 16:50:21
HIP 84255/Land Port                 99.43569  2014-12-19 20:41:15
BD+08 1303/Wescott Terminal         99.37279  2014-12-19 22:11:50
PARAUDIKA/Mouhot Port               99.08795  2014-12-20 05:02:00
SHAKAPA/Gibson Dock                 99.05114  2014-12-20 05:55:00
TIMOCANI/Pennington Terminal        99.02619  2014-12-20 06:30:56
11 CEPHEI/Cook Gateway              99.01434  2014-12-20 06:48:00
AKNANGO/Pinto Hub                   99.00323  2014-12-20 07:04:00
AKNANGO/Skolem Landing              98.99211  2014-12-20 07:20:00
SHOTEP/Walters Refinery             98.86720  2014-12-20 10:19:53
HIP 85010/Volynov Platform          98.65045  2014-12-20 15:32:00
CHACOBOG/Trinh Enterprise           98.51086  2014-12-20 18:53:00
JARILDEKALD/Elvstrom Platform       98.50253  2014-12-20 19:05:00
JARILDEKALD/Reed Stop               98.49836  2014-12-20 19:11:00
DELPHIN/Swigert Orbital             98.42752  2014-12-20 20:53:01
GAMMA MENSAE/Koch Installation      98.33170  2014-12-20 23:11:00
TOOG/Bosch Mines                    98.32961  2014-12-20 23:14:00
CUPIAT/Phillips City                98.30253  2014-12-20 23:53:00
EL/Titov Station                    98.27823  2014-12-21 00:28:00
LHS 3388/Hauck Port                 98.20670  2014-12-21 02:11:00
REDONESSES/Ellern Orbital           98.18170  2014-12-21 02:47:00
KOSENA/Gwynn Enterprise             98.13239  2014-12-21 03:58:00
WOLF 287/Boas Terminal              97.87059  2014-12-21 10:15:00
BD+08 1303/Chomsky Ring             97.57544  2014-12-21 17:20:01
DJOWENET/Lichtenberg Dock           97.36225  2014-12-21 22:27:00
MARAMOVOY/Melnick Gateway           97.34420  2014-12-21 22:53:00
HR 8170/Vasilyev Vision             97.33170  2014-12-21 23:11:00
KAMBAIAMBO/Vonarburg Platform       97.30392  2014-12-21 23:51:00
MCC 467/Ron Hubbard Ring            97.27884  2014-12-22 00:27:07
CEBALRAI/Hornblower Dock            97.13934  2014-12-22 03:48:00
BD+29 2405/Benyovszky Station       96.86905  2014-12-22 10:17:13
ULURI/Parker Beacon                 96.68100  2014-12-22 14:48:00
MALANNHER/Khan City                 96.65253  2014-12-22 15:29:00
ACKWADA/Smith Vision                96.63170  2014-12-22 15:59:00
MOMBALUMA/Bennett Colony            96.61790  2014-12-22 16:18:52
ACKWADA/Birminghamport              96.59559  2014-12-22 16:51:00
ROSS 210/Fernandes de Queiros Dock  96.58104  2014-12-22 17:11:57
 
Code:
v6.16.0 Mar 29 2015
. (tKe) "run" command
   - "--loop" option
     Looks for routes which loop back to the origin station,
   - Optimizations,
   - Minor bug fix in destination culling,
 
In-case you want to check for old data yourself, there's the "old" command:

Code:
$ ./trade.py old
Station                           Age/days      StnLs Pad
---------------------------------------------------------
LHS 1914/Schirra Orbital            103.75      1.41K Med
V401 HYDRAE/Swanwick Terminal       103.67      3.84K Med
LHS 3877/ Ring                  102.11      2.08K Lrg
COSI/Marshall Hub                   102.01        13K Med
G 180-18/Bamford Terminal           101.48      1.82K Med
MAGEC/Arrhenius Colony              101.48         16 Med
MAGEC/Trumpler Dock                 101.48      4.54K Lrg
FAUST 3566/Perry Dock               101.21      1.18K Lrg
FAUST 3566/Murphy Gateway           101.18        648 Lrg
MOMBALUMA/Hughes-Fulford Terminal   100.96        539 Lrg
UOLUSKAS/Moisuc Dock                100.76        429 Lrg
BELALANS/Shoemaker City             100.76         78 Lrg
OVIMBAIA/Morris City                100.28          ?   ?
HIP 84255/Land Port                 100.12          ?   ?
BD+08 1303/Wescott Terminal         100.06          ?   ?
PARAUDIKA/Mouhot Port                99.77          ?   ?
SHAKAPA/Gibson Dock                  99.74          ?   ?
TIMOCANI/Pennington Terminal         99.71          ?   ?
11 CEPHEI/Cook Gateway               99.70          ? Lrg
AKNANGO/Pinto Hub                    99.69          ? Lrg

And you can check for data near your current location:

Code:
$ ./trade.py old --near sol --limit 10 --ly 100
Station                           DistLy Age/days      StnLs Pad
----------------------------------------------------------------
LHS 1914/Schirra Orbital           77.67   103.76      1.41K Med
V401 HYDRAE/Swanwick Terminal      82.18   103.67      3.84K Med
LHS 3877/ Ring                 81.17   102.11      2.08K Lrg
COSI/Marshall Hub                  76.38   102.01        13K Med
G 180-18/Bamford Terminal          53.45   101.48      1.82K Med
MAGEC/Arrhenius Colony             51.27   101.48         16 Med
MAGEC/Trumpler Dock                51.27   101.48      4.54K Lrg
MOMBALUMA/Hughes-Fulford Terminal  33.06   100.96        539 Lrg
UOLUSKAS/Moisuc Dock               99.40   100.76        429 Lrg
BD+08 1303/Wescott Terminal        67.86   100.06          ?   ?
 
EDDN feed seems to be down/intermittant at the moment. Best to upload updated prices manually at the moment.

If you've forgotten how do to that then check below

If you use EliteOCR, export to TD and use this cmd:
Code:
python -m misc.madupload import.prices

If you send to EDDN from EliteOCR then you can see if ur prices get through to Maddavo Market Share by looking at the front page - I've added an EDDN tracker.

If you update prices with TD, then use this cmd:
Code:
python -m misc.madupload updated.prices
 
EDDN feed seems to be down/intermittant at the moment. Best to upload updated prices manually at the moment.

If you've forgotten how do to that then check below

If you use EliteOCR, export to TD and use this cmd:
Code:
python -m misc.madupload import.prices

If you send to EDDN from EliteOCR then you can see if ur prices get through to Maddavo Market Share by looking at the front page - I've added an EDDN tracker.

If you update prices with TD, then use this cmd:
Code:
python -m misc.madupload updated.prices

Also, if anyone is using my GUI frontend (link in my sig) there is an Upload button at the bottom of the window for uploading to Maddavo's database. The latest version available accepts .prices and .csv files. Ctrl+Click'ing it also allows you to set a custom path (to EliteOCR's output directory for instance).
 
Is TD ever going to have a filter for Demand/Supply Quantity and Level? It would be useful to filter out systems that have, say, under 30000 Stock on hand and are not High level...

Also, isn't there a command to base on distance, not jump range? I thought I seen one, but forgot where....
 
Last edited:
Back
Top Bottom