Skip to content

Commit

Permalink
Merged kfsone/tradedangerous into master
Browse files Browse the repository at this point in the history
  • Loading branch information
maddavo committed Dec 9, 2014
2 parents ff0f0df + 05cba02 commit 01d519d
Show file tree
Hide file tree
Showing 33 changed files with 3,204 additions and 2,500 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ market/

wip/
pycallgraph.png
/config.sh
41 changes: 41 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,47 @@
TradeDangerous, Copyright (C) Oliver "kfsone" Smith, July 2014
==============================================================================

v6.1.8 [wip]
. (kfsone) Download counter to "import", use -q to silence it
. (kfsone) Fixed case-sensitivity matching station names that changed
. (kfsone) 48 new stations
. (kfsone) "update -G" now takes "-wx" and "-wy" arguments for setting the
position of the GUI window. Try -wx=-220 -wy=220
. (kfsone) Updated config.sh and tdupd to take advantage of -wx and -wy

v6.1.7 Dec 07 2014
. (kfsone) Added "scripts" directory with bash scripts
See scripts/README.txt
. (kfsone) Allow bigger price differences for most costly items in the UI,
thanks to Bariri for the reports
. (eggplant) More station data

v6.1.6 Dec 06 2014
. (gulasch) Station additions, corrections and distances
. (kfsone) Added '--ages' option to "buy" command to show data age
. (kfsone) Fix for line-numbers in .prices files sometimes being incorrect
. (kfsone) Added "--start-jumps" (-s) option to "run" command which will
use actively trading stations within that number of jumps of your
specified system/station.
. (kfsone) Added "--empty" to "run" command to tell it how far you can
jump when carrying zero cargo.
. (kfsone) Include origin system in "local" command output (works well
with -v to list local stations)
. (kfsone) ui_order is now specified in Item.csv rather than per-item
(Microbial Furnaces and Mineral Extractors should now be in UI order :)
. (gazelle) More Station data and some distances
. (eggplant) Made it possible to override the path to data files, etc,
by specifying a dataDir= argument to TradeEnv(). Default is still ./data

v6.1.5 Dec 04 2014
. (kfsone) "run" --from will now accept a System name
. (kfsone) "update" GUI will now do some sanity checking on prices
. (kfsone) "nav" with -vv will show direct distance left to destination
. (kfsone) Minor speed improvements to "nav"
. (kfsone) Startup optimizations,
. (kfsone) "update" command now always exposes supply and demand,
. (kfsone) "--supply" (-S) is now deprecated for "update" command,

v6.1.4 Dec 01 2014
. (kfsone) "updated.prices" will now contain line removals
. (kfsone) 155 new systems from RedWizard
Expand Down
81 changes: 50 additions & 31 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,9 @@ RUN sub-command:
--from <station or system>
Lets you specify the starting station
e.g.
--from Dahan
--from Gateway
--from @Asellus/Beagle2
--fr beagle2
--fr asellusprim

--to <station or system>
Lets you specify the final destination. If you specify a station, it
Expand All @@ -204,14 +205,11 @@ RUN sub-command:
--to Beagle2
--to lhs64

--end <station or system>
Instead of --to, allows you to specify multiple destinations and
TD will attempt to find a route that ends at one of them:
e.g.
--end beagle2
^_ equivalent to "--to beagle2"
--end beagle2 --end freeport
^_ finds a route terminating at EITHER beagle2 OR freeport
--start-jumps N
-s N
Considers stations from stations upto this many jumps from your
specified start location.
--from beagle2 --ly-per 7.56 --empty 10.56 -s 2

--via <station or system>
Lets you specify a station that must be between the second and final hop.
Expand Down Expand Up @@ -246,6 +244,11 @@ RUN sub-command:
--ly-per 19.1
--ly-per 3

--empty-ly N.NN
--emp N.NN
DEFAULT: same as --ly-per
How far your ship can jump when empty (used by --start-jumps)

Ship/Trade options:
--capacity N
--cap N
Expand Down Expand Up @@ -322,10 +325,6 @@ UPDATE sub-command:
Saves the prices in a human-readable format and loads that into
an editor. Make changes and save to update the database.

--supply
-S
Exposes the "demand" and "stock" columns.

--timestamps
-T
Exposes the "timestamp" column.
Expand Down Expand Up @@ -656,37 +655,60 @@ is designed to closely resemble what we see in the market screens in-game.

To edit the data for a single station, use the "update" sub-command, e.g.

trade.py update --notepad Aulin
trade.py update --notepad beagle2

This will open notepad with the data for Aulin, which will look something like:

@ AULIN/Aulin Enterprise
@ I BOOTIS/Beagle 2 Landing
+ Chemicals
Explosives 50 0
Hydrogen Fuels 19 0
Mineral Oil 100 0
Pesticides 21 0
Explosives 50 0 ? -
Hydrogen Fuels 19 0 ? -
Mineral Oil 100 0 ? -
Pesticides 21 0 ? -
+ Consumer Items
Clothing 300 0
Consumer Tech 1112 1111
Clothing 300 0 ? -
Consumer Tech 1112 1111 ? 30L

"@" lines specify a system/station.
"+" lines specify a category.
The remaining lines are items.

Explosives 50 0
Explosives 50 0 ? -

These fields are:
<item name>
<sale price> (how much the station pays)
<buying price> (how much the station charges)
<demand> ('?' means "we don't care")
<stock> ('-' means "not available")

So you can see the only item this station is selling is Consumer Tech, which
the station wants 1111 credits for.

TradeDangerous can also leverage the "DEMAND" and "STOCK" values from the
market UI. To expose those when using "trade.py update", use the "--all"
option. For more details of the extended format, see the Prices wiki page:
the station wants 1111 credits for. The demand wasn't recorded (we generally
aren't interested in demand levels since E:D doesn't seem to use them) and
the items wasn't available for purchase *from* the station.

TD will use the 'stock' values to limit how many units it can buy. For
example, if you have money to buy 30 units from a station but the .prices
data says only 10 are available, TD only tell you to buy 10 units and it
will fill the rest of your hold up with other stuff.

Demand and Stock both take a "supply level" value which is either "?", "-"
or the number of units followed by the level: L for Low, M for Medium,
H for High or ? for "don't care".

?
-
1L
23M
3402H
444?

Best Practice:

- Leave demand as ?, neither E:D or TD use it,
- Stock quantities over 10k are usuall irrelevant, leave them as ?,

For more details of the .prices format, see the wiki page:
https://bitbucket.org/kfsone/tradedangerous/wiki/Price%20Data

NOTE: The order items are listed within their category is saved between edits,
Expand All @@ -695,9 +717,6 @@ will show that way when you edit this station again.

See "trade.py update -h" for more help with the update command.

Note: My personal editor of choice is "Sublime Text", which is why there is
a command line option (--sublime or just --subl) for invoking it.


==============================================================================
== That's nice, but I'm a programmer and I want to ...
Expand Down
Loading

0 comments on commit 01d519d

Please sign in to comment.