One of the updates listed for Gamma 2 says "Slavery missions and commodities added". Anyone know what the new commodities are and what categories they are in?
I've just gotten done implementing a plugin architecture, right now only for "Import".
This will allow us to move forward with better ways to import and export data, e.g. using json to download just recent updates from a site like Maddavo's, and allowing stand-alone groups to make their own little plugin to up/download data between each other, etc.
The upshot of this is that "import --maddavo" becomes "import --plug=madadvo" (or import --plug maddavo).
Next target will be "update" macros.
I've also overhauled the readme and wiki and I've created a "CookBook" for people to record the tricks they've found to make TD do clever things.
I've just gotten done implementing a plugin architecture, right now only for "Import".
JSON for prices Brilliant. Indeed makes import/export for others much easier. I hope once that works well you could implement optional JSON out for the other commands as well, especially "run". That would probably make life much easier for those commanders working on a GUI for TD. A JSOn structure is much easier to manipulate then the current text output of run ;-)
from commands import *
import tradedb
import json
cmdIndex = commands.CommandIndex()
cmdenv = cmdIndex.parse([
__name__,
"run",
"--from", "Bethe Station",
"--hops", "2",
"--cr", "5000",
"--cap", "16",
"--ly", "10.5",
])
tdb = tradedb.TradeDB(cmdenv, load=cmdenv.wantsTradeDB)
results = cmdenv.run(tdb)
json.dumps(results)
Argl, just when I'm finished with the TD_Export plugin for EliteOCR![]()
Thanks for this great tool. I have some questions though...
Is there a way to import additional Systems/Stations? Right now I'm modifying the corresponding .csv files by hand, which is rather painful. Downloading updated source files would overwrite this too, right? I'm fairly new to this whole shared coding thing and don't want to break anything.
I am also teaching myself a bit of python and just hacked together a converter for EliteOCR .csv output to .prices format, but the new plugin system may be a way to integrate this into trade dangerous, right?
I can't figure this out keeps here is what it says
trade.py import TradeDangerous.prices
trade.py: TradeDangerous.prices:1891 Unrecognized STAR/Station, 'ALACARAKMO/WEYL GATEWAY'.
trade.py update -G -F LP 254-40/JACOBIDOCK
trade.py: ERROR: unrecognized arguments
: 254-40/JACOBI DOCK
...and when i tried importing it says
trade.py import -i http://kfs.org/td/prices
Connecting to server: http://kfs.org/td/prices
Download: 2,735,863/2,735,863 bytes | 60.53KB/s | 100.00%
import.prices:3781 Unrecognized STAR/Station, 'ALACARAKMO/WEYL GATEWAY'.
import.prices:27487 Unrecognized STAR/Station, 'HELVETITJ/FRIEND ORBITAL'.
import.prices:42007 Unrecognized STAR/Station, 'LHS 6309/JONES STATION'.
import.prices:42097 Unrecognized STAR/Station, 'LHS 6309/NOETHER CITY'.
import.prices:50833 Unrecognized STAR/Station, 'MANNONA/THORNYCROFY PENAL COLONY'.
trade.py import -i --maddavo
Connecting to server: http://www.davek.com.au/td/prices.asp
Download: 2,735,863/2,735,863 bytes | 68.57KB/s | 100.00%
import.prices:3781 Unrecognized STAR/Station, 'ALACARAKMO/WEYL GATEWAY'.
import.prices:27487 Unrecognized STAR/Station, 'HELVETITJ/FRIEND ORBITAL'.
import.prices:42007 Unrecognized STAR/Station, 'LHS 6309/JONES STATION'.
import.prices:42097 Unrecognized STAR/Station, 'LHS 6309/NOETHER CITY'.
import.prices:50833 Unrecognized STAR/Station, 'MANNONA/THORNYCROFY PENAL COLONY'.
Not that I know of.also is there an GUI version yet?
You need a later Station.csv file that has that station in it, OR you can add that station to your Station.csv . It's probably worthwhile getting a later Station.csv since you may also be missing other stations.
Spaces on the command line in the name of the system might be causing issues there, also the system should have a @ before it. But it probably isn't necessary to put the system anyway. You could try:
trade.py update -F @lp25440/jacobidock
trade.py update -F jacobid
See comment above regarding Station.csv .
Not that I know of.
i just got the program today, shouldnt it grabbed the latest 1? how do i update the station.csv ? im using source tree when i went to the site i clicked the button that says "clone"
The Station.csv changes all the time - less often than the prices, but whenever someone adds prices for a new station then you need a new Station.csv. See http://www.davek.com.au/td/ for the prices file and the Station.csv required for viewing the prices. The Station.csv there is automatically updated when prices for new stations are added to the database.
I thought the trade.py import -i --maddavo command automaticaly pulls all that?
It imports prices, not stations.
o well it would be cool if it imported everything needed