just installed this and when i run trade.py this is what I get - http://i.imgur.com/GJwmjyk.png
Which version of Python do you have?
just installed this and when i run trade.py this is what I get - http://i.imgur.com/GJwmjyk.png
>>> trade.py --sh hauler --fr chan --cr 20000
File "<stdin>", line 1
trade.py --sh hauler --fr chan --cr 20000
^
SyntaxError: invalid syntax
>>> trade.py --sh hauler --fr chan --cr 20000
File "<stdin>", line 1
trade.py --sh hauler --fr chan --cr 20000
^
SyntaxError: invalid syntax
Okay, I'm obviously doing something wrong here. I installed Python 3.4.1 and downloaded TD using SourceTree. I fired up the game and input the simple line from the readme to test it out, this is what I got:
Code:>>> trade.py --sh hauler --fr chan --cr 20000 File "<stdin>", line 1 trade.py --sh hauler --fr chan --cr 20000 ^ SyntaxError: invalid syntax
Trying it a few minutes later, I got this:
Code:>>> trade.py --sh hauler --fr chan --cr 20000 File "<stdin>", line 1 trade.py --sh hauler --fr chan --cr 20000 ^ SyntaxError: invalid syntax
What am I doing wrong? I'm using a Win7 64 bit(x86) operating system.
C:\Python34\python.exe trade.py
Looks like you're trying run it from interactive mode.
Try opening a cmd prompt and doing something like:
Code:C:\Python34\python.exe trade.py
Yep that >>> prompt suggests that you have started python in interactive mode. You don't need to start python at all. From the DOS prompt, you just need to type trade.py and then your parameters.
Okay, I'll try that. Also, am I supposed to put that in my Python folder's "Tools" subfolder?
[assuming you put the trade.py and other files into c:\trade]
C:\trade\> trade.py
./trade.py: TradeDangerous provides a set of trade database facilities for Elite:Dangerous
{help text}
c:\trade\> trade.py import --maddavo -i -q
c:\trade\> trade.py local aulin --ly 10
c:\trade\> trade.py buy gold --near beagle2 --ly 50
c:\trade\> trade.py nav beagle2 sol --ly 15
c:\trade\> trade.py run --from beagle2 --to sol --cap 40 --ly 15 --cr 50000 --hops 2 --jumps 3
c:\trade\> trade.py run -vvv --from beagle2 --to sol --cap 40 --ly 15 --cr 50000 --hops 2 --jumps 3
c:\trade\> trade.py run --checklist --from beagle2 --to sol --cap 40 --ly 15 --cr 50000 --hops 2 --jumps 3
c:\trade\> trade.py run --from beagle2 --to sol --cap 40 --ly 15 --cr 50000 --hops 2 --jumps 3 --ch --x52
@kfsone
Trying to get my feet wet using TradeDangerous in my own applications. Hopefully I'll be able to contribute more!
Is they are clean way to tell TradeDB where the data directory is? Looking at TradeDB, there are a dozen or so paths that point to ./data/somefile. I can modify each individually, but that seems fragile. Any way to just tell it where /data resides along with all the .csv, .db, .prices, etc?
I was thinking about submitting a patch for this if there's not already a way to do it.
Items apparently at 10cr each. Any ideas? Just updated all files from maddavo's site.
...
+ Technology
Advanced Catalysers 10 10 ? 10? 2014-11-26 19:39:29
Animal Monitors 10 10 ? 10? 2014-11-26 19:39:29
Aquaponic Systems 10 10 ? 10? 2014-11-26 19:39:29
...
Ive just started to get a lot an anomalous results;
.
NINSUN/Ramanujan Dock -> SINANN/Jones Point:
Load from NINSUN/Ramanujan Dock:
10 x Advanced Catalysers 10cr each, 100cr total
Jump NINSUN -> LHS 3333 -> MOKOSH => Gain 30,460cr (3,046cr/ton) => 248,46
Load from MOKOSH/Bethe Station:
16 x Superconductors 6,277cr each, 100,432cr total
Jump MOKOSH -> LHS 3333 -> NINSUN => Gain 19,952cr (1,247cr/ton) => 268,41
Load from NINSUN/Ramanujan Dock:
10 x Advanced Catalysers 10cr each, 100cr total
Jump NINSUN -> G 139-50 -> SINANN => Gain 33,520cr (3,352cr/ton) => 301,93
--------------------------------------------------------------------------
Finish at SINANN/Jones Point gaining 83,932cr => est 301,932cr total
.
Items apparently at 10cr each. Any ideas? Just updated all files from maddavo's site.
Looks like someone uploaded bogus market data for Ninsun/Ramanujan Dock to maddavo's site. You can check the "TradeDangerous.prices" file with an text editor and remove those items.
Code:... + Technology Advanced Catalysers 10 10 ? 10? 2014-11-26 19:39:29 Animal Monitors 10 10 ? 10? 2014-11-26 19:39:29 Aquaponic Systems 10 10 ? 10? 2014-11-26 19:39:29 ...
Can I get that command to auto upload the prices? It looks like it wants me to type them all in.
I get it. Sorry for daft questions, but I only got it working yesterday. I don't see a "submit" button when the data entry window pops up. Is that another command line thing?
Typing them all would take ages, so I guess I wont bother with low value commodities first. Stick to the potential high earners.
I get it. Sorry for daft questions, but I only got it working yesterday. I don't see a "submit" button when the data entry window pops up. Is that another command line thing?
Typing them all would take ages, so I guess I wont bother with low value commodities first. Stick to the potential high earners.
Press One Zero Three tab Two six One tab three seven eight ELL tab down arrow down arrow ...
Station names must only be unique within a system for some time now. Or do you mean something else?
see: Restrict station names to unique-per-star
How do we reference them uniquely on the command line? I couldn't work out how to do an update or a run --from <station>
sqlite> .mode col
sqlite> SELECT sys.name, stn.name, itm.name,
...> ss.price - sb.price AS diff
...> FROM Item as itm
...> INNER JOIN StationSelling AS ss
...> USING (item_id)
...> INNER JOIN StationBuying AS sb
...> USING (station_id, item_id)
...> INNER JOIN Station AS stn
...> USING (station_id)
...> INNER JOIN System AS sys
...> USING (system_id)
...> ORDER BY diff DESC
...> LIMIT 10
...> ;
HIP 72353 Caidin Station Beryllium 69093
Lu Yupik Bagian Survey Supercondu 3073
Hahgwe Skripochka Hor Tantalum 2045
Gulngaba Galindo Dock Indite 1040
Kivah Sadi Carnot Ri Uraninite 427
LP 448-41 Hopkins Landin Uranium 391
70 Ophiuch Luk Station Semiconduc 323
Sinann Jones Point Beryllium 201
LHS 3447 Fairbairn Stat Palladium 189
LP 448-41 Bhabha Refiner Gallium 148
Beryllium 7677 76770 ? 8542? 2014-11-22 18:46:42
Superconductors 3761 6834 ? 5? 2014-11-24 13:10:54
Tantalum 4063 6108 ? 4076L 2014-11-29 21:52:19
Indite 1843 2883 ? 140812? 2014-11-23 10:39:54
-- Calculate 90th percentile of price diffs
CREATE TEMPORARY TABLE differences AS
SELECT sys.name, stn.name, itm.name,
ss.price - sb.price AS diff
FROM Item as itm
INNER JOIN StationSelling AS ss
USING (item_id)
INNER JOIN StationBuying AS sb
USING (station_id, item_id)
INNER JOIN Station AS stn
USING (station_id)
INNER JOIN System AS sys
USING (system_id)
;
SELECT diff FROM differences ORDER BY diff LIMIT 1
OFFSET (SELECT COUNT(*) FROM differences) * 90 / 100 - 1;