In-Development TradeDangerous: power-user trade optimizer

With the low supply of some items in near-to-spawn systems, the supply number is very important. I have edited the .prices file with any supply that is less than around 200. But I think there is something amiss.

It wants me to buy 98 Tantalum at Dahan Gateway when there is only 1. I have checked the .prices file and the supply value is 1L1 . Is this bit not implemented yet or am I doing something wrong? Also, is there a way to enter supply values during an update?
 

ShadowGar

Banned
With the low supply of some items in near-to-spawn systems, the supply number is very important. I have edited the .prices file with any supply that is less than around 200. But I think there is something amiss.

It wants me to buy 98 Tantalum at Dahan Gateway when there is only 1. I have checked the .prices file and the supply value is 1L1 . Is this bit not implemented yet or am I doing something wrong? Also, is there a way to enter supply values during an update?

The issue is that supply is dynamic. Without a source of auto updating, IE. Scraping the client data, keeping track of supply will be to much of a hassle. Now if scraping is allowed or an API is implemented by the devs, then keeping track of supply wouldn't be so bad.

Right now, you'll have to do it by hand.
 

ShadowGar

Banned
I think there is something up with the coords of the HAGALAZ system and PAUL-FRIEDRICHS STAR.

I was told to go from WOLF 1409 -> HAGALAZ -> DEMETER. I think the in-between system is meant to be PAUL-FRIEDRICHS STAR.



PAUL-FRIEDRICHS STAR was just added tonight. It should route properly once I push this update.
 
The issue is that supply is dynamic. Without a source of auto updating, IE. Scraping the client data, keeping track of supply will be to much of a hassle. Now if scraping is allowed or an API is implemented by the devs, then keeping track of supply wouldn't be so bad.

Right now, you'll have to do it by hand.

Sorry, I don't think I was clear. I mean that the trade run is asking me to purchase more than is listed as available in the .prices . Sometimes it seems to take the supply into account and only tells me to purchase what is available, sometimes it tells me to purchase more than is available. I can't lock down the circumstances.

So I guess from this I have a questions - is it supposed to take the supply value into account? If so, then I think there may be an issue.
 
Just getting into ED, and this tool has helped a lot with basic navigation on top of trading. Right now, I'm using a rift and an x52pro. The system map/ galaxy map is a bit tricky to use with these, so anything that helps me get in and get out of the maps faster is a godsend!

I spent a while looking at the code trying to figure out if there was a way to change the key that progresses the checklist to the next step aside from Enter. It was shortly made apparent that I have no idea what I'm doing, so I'm wondering if there is a way to implement a global hook for the Enter key in the python script instead? I have to take the rift off to look at the next step anyway, but not having to Alt+Tab would stop some rift related issues.
 
I found a market station in Meliae that is not in the list.

Code:
INSERT INTO "Station" VALUES(286,'Dupuy De Lomes Pride',40,0.0);

It has a similar name to the one in Sigma Bootis.
 
Sorry, I don't think I was clear. I mean that the trade run is asking me to purchase more than is listed as available in the .prices . Sometimes it seems to take the supply into account and only tells me to purchase what is available, sometimes it tells me to purchase more than is available. I can't lock down the circumstances.

So I guess from this I have a questions - is it supposed to take the supply value into account? If so, then I think there may be an issue.

The TradeDangerous "thinks" that there will be a restock of 5% every 5 minutes (or so) and is basing its suggestion accordingly to the timestamp of the item.

Line 145 and 146 of tradecalc.py:
Code:
stockIncreaseRate = 0.05
stockIncreaseInterval = 5 * 60

Setting the stockIncreaseRate to "0.0" will solve your problem (which is what I have done).
 
Just getting into ED, and this tool has helped a lot with basic navigation on top of trading. Right now, I'm using a rift and an x52pro. The system map/ galaxy map is a bit tricky to use with these, so anything that helps me get in and get out of the maps faster is a godsend!

I spent a while looking at the code trying to figure out if there was a way to change the key that progresses the checklist to the next step aside from Enter. It was shortly made apparent that I have no idea what I'm doing, so I'm wondering if there is a way to implement a global hook for the Enter key in the python script instead? I have to take the rift off to look at the next step anyway, but not having to Alt+Tab would stop some rift related issues.

The Saitek API is failing to send me keypresses, and I'm still waiting to hear back from them.

Don't have a Rift yet but ... I may have soon.

-Oliver
 
own trilateration

As i wrote in another thread I got interested in this trilateration stuff and wrote my own programm, which also takes the 1/32 rule into account (I spent more time programming than playing).

The results seems to be pretty accurate:
Code:
INSERT INTO "System" VALUES(313,'GD 356',-50.9375,44.15625,7.3125,'2014-10-10 14:28:17');
INSERT INTO "System" VALUES(314,'Ross 52',-8.4375,29.15625,13.3125,'2014-10-10 14:28:24');
INSERT INTO "System" VALUES(315,'Rigel',385.78125,-360.40625,-682.53125,'2014-10-10 14:40:18');
INSERT INTO "System" VALUES(316,'SDSS J1416+1348',-0.6875,27.15625,12,'2014-10-10 14:28:41');
INSERT INTO "System" VALUES(317,'Etamin',-132.46875,74.875,25.53125,'2014-10-10 14:28:17');
INSERT INTO "System" VALUES(318,'Alpha Cygni',-1405,46.125,132.5,'2014-10-10 14:42:22');
INSERT INTO "System" VALUES(319,'Polaris',-322.6875,194.59375,-212.4375,'2014-10-10 14:28:23');
INSERT INTO "System" VALUES(320,'Taran',-42.5,45.46875,-3,'2014-10-10 14:28:47');
INSERT INTO "System" VALUES(321,'Achenar',67.5,-119.46875,24.84375,'2014-10-10 14:28:10');
--INSERT INTO "System" VALUES(322,'Sagittarius A*',-7347.392697,-21555.77139,12282.29906,'2014-10-07 17:24:42');
INSERT INTO "System" VALUES(323,'Hagalaz',-50.59375,45.15625,11.09375,'2014-10-10 14:28:18');
INSERT INTO "System" VALUES(324,'Alphard',138.84375,88.46875,-73.5,'2014-10-10 14:28:11');
INSERT INTO "System" VALUES(325,'Enif',-536.59375,-363.03125,236.1875,'2014-10-10 14:28:16');
INSERT INTO "System" VALUES(326,'Sol',0,0,0,'2014-10-10 14:28:42');
INSERT INTO "System" VALUES(327,'16 Cephei',-108,30.03125,-42.25,'2014-10-10 14:28:05');
INSERT INTO "System" VALUES(328,'4 Cephei',-132.09375,35.5,-27.875,'2014-10-10 14:28:06');
INSERT INTO "System" VALUES(329,'HIP 103014',-132.46875,33.25,-28.5625,'2014-10-10 14:28:19');
INSERT INTO "System" VALUES(330,'HIP 109479',-127.5,29.875,-48.5,'2014-10-10 14:28:19');
INSERT INTO "System" VALUES(331,'HIP 111494',-106.9375,30.0625,-48.4375,'2014-10-10 14:28:20');
INSERT INTO "System" VALUES(332,'HIP 94802',-114.59375,51.40625,-25.90625,'2014-10-10 14:28:20');
INSERT INTO "System" VALUES(333,'LP 180-17',-56.84375,37.71875,12.71875,'2014-10-10 14:28:22');
INSERT INTO "System" VALUES(334,'Austern',-25.15625,15.34375,9.375,'2014-10-10 14:28:16');
INSERT INTO "System" VALUES(335,'Culan',-36.0625,14.625,13.8125,'2014-10-10 14:28:16');
INSERT INTO "System" VALUES(336,'LHS 457',-31.75,16.65625,15.5,'2014-10-10 14:28:21');
INSERT INTO "System" VALUES(337,'Mirphak',-274.96875,-47.625,-422.65625,'2014-10-10 14:28:22');
INSERT INTO "System" VALUES(338,'Veren''s Stop',-12.96875,21.96875,20.28125,'2014-10-10 16:04:25');
 
Lovely work you are doing here. One question re updating prices... Atm its gotta be done via and editor of some kind which is fine. I assume the first is price you sell at and second is price you buy at.
Is there no way to enter demand and supply values into the prices section when amending data for a station?

Sorry if its mentioned elsewhere but not been able to find it as of yet.
 

wolverine2710

Tutorial & Guide Writer
Lovely work you are doing here. One question re updating prices... Atm its gotta be done via and editor of some kind which is fine. I assume the first is price you sell at and second is price you buy at.
Is there no way to enter demand and supply values into the prices section when amending data for a station?

Sorry if its mentioned elsewhere but not been able to find it as of yet.

I had the same thing a while back. See post 143,144 and 145 for the question and the answer. You can either update the .prices table directly or use the trade.py update <station> command. If you leave out thing there like demand, supply it will be set to -1 in the .prices file. Hope this helps - a bit.
 
Lovely work you are doing here. One question re updating prices... Atm its gotta be done via and editor of some kind which is fine. I assume the first is price you sell at and second is price you buy at.
Is there no way to enter demand and supply values into the prices section when amending data for a station?

Sorry if its mentioned elsewhere but not been able to find it as of yet.

tl:dr; it's designed to match the UI display in-game.

The way I use TD is that I have ED in windowed mode filling the screen.

When I dock, I do "trade.py update --subl Aulin", for example. And then I put the .prices file on the left side of the screen and the in-game market UI on the right side, it's then very easy to quickly scroll through and spot changes.

This is why TD will even remember if you change the order of items within their category at a given station, and I strongly recommend you do that.

The aim is to make it easy to spot changes, not just for editing purposes because I feel that helps me better learn the markets.

Calculators have a fundamental flaw: They can only present you the price now, or a prediction of what the price will be when you arrive. If you make a 5-hop route plan, you need to think about how much the destination price at hop 5 is going to be.

FD are doing a reasonably good job of making the market somewhat fluid, and sure, you could probably use machine learning to do a fairly good job of estimating and predicting potential market shifts during travel time.
 
Let me add this:

I didn't write TD to be an Elite:ATM. "If BPCs can't be relied on, what's the point?"

For the most part, I do my trading by hand. I'm able to do that because I edit the price lists and I get familiar with where the shifts are. It's not unusual for me to ignore TD's recommendation on a trade run because I decide not to trust a particular price's stability.

But, especially with the enlarged universe, I do find it is sometimes a great way to spin the roulette wheel and find a different area of space to go to. In the absence of story-line or quests or anything of that nature, I become human and stick to what I know; TD is that little Fiji post-card it takes to inspire me to leave my comfort zone without just feeling like I'm embarking on yet another pointless space tourism trip.
 
Thanks to everyone who's used the issue tracker on bitbucket, v4.0.3 pushed with multiple bug fixes:

Issue #17 "--avoid gold" conflicted with "Goldstein Mines"
Issue #13 "Nelson Port" was listed as "Nelson Point"
Issue #12 "-w" was failing because Rigel has no links
Issue #11 Partial name matches weren't generating an ambiguity (e.g. 'ra' or 'ross')
Issue #19 Beryllium and Gallium were incorrectly identified as Minerals

I'm probably going to re-address the change I made in #19 later on, but until we have a case where we have items with the same name under multiple categories, this fix should be good enough.
 

wolverine2710

Tutorial & Guide Writer
Installed git -which install gitBash also, which gives me a pretty good Linux environment. Have downloaded repository manually. Tried to use git to update. This is the message I'm receiving. I have NOT registered myself at bitbucket. Could that be the cause of the problem? Or am I doing something wrong here?

Message. Removed my Ip-address.

wolverine@WOLVERINE-PC /c/Data/Games/Elite Dangerous/TD 4.0.2
$ !git
git clone git@bitbucket.org:kfsone/tradedangerous.git
Cloning into 'tradedangerous'...
Warning: Permanently added the RSA host key for IP address 'xxx.xxx.xxx.xxx' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
 
$ git clone git@bitbucket.org:kfsone/tradedangerous.git
Cloning into 'tradedangerous'...
Warning: Permanently added the RSA host key for IP address 'xxx.xxx.xxx.xxx' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

I had the same problem, just use the https link:
Code:
$ git clone [URL="https://bitbucket.org/kfsone/tradedangerous.git"]https://bitbucket.org/kfsone/tradedangerous.git[/URL]

This will create a new directory with the name "tradedangerous" in which the repository (source code) will be downloaded.

And for further updates, you just have to:
Code:
$ git pull
in the previously created directory (tradedangerous)

edit: some more details, for others who won't have figured it out ;)
 
Last edited:

wolverine2710

Tutorial & Guide Writer
I had the same problem, just use the https link:
$ git clone https://bitbucket.org/kfsone/tradedangerous.git

And for further updates, you just have to:
$ git pull

Perfect. git clone https://bitbucket.org/kfsone/tradedangerous.git works for me. I'm however having some troubles with git pull. I tried the beneath. Could you help me further with this?
wolverine@WOLVERINE-PC /c/Data/Games/Elite Dangerous/TD
$ git clone https://bitbucket.org/kfsone/tradedangerous.git
Cloning into 'tradedangerous'...
remote: Counting objects: 1539, done.
remote: Compressing objects: 100% (1082/1082), done.
remote: Total 1539 (delta 983), reused 710 (delta 452)
Receiving objects: 100% (1539/1539), 1.42 MiB | 154.00 KiB/s, done.
Resolving deltas: 100% (983/983), done.
Checking connectivity... done.

wolverine@WOLVERINE-PC /c/Data/Games/Elite Dangerous/TD
$ git pull
fatal: Not a git repository (or any of the parent directories): .git

wolverine@WOLVERINE-PC /c/Data/Games/Elite Dangerous/TD
$ git pull https://bitbucket.org/kfsone/tradedangerous.git
fatal: Not a git repository (or any of the parent directories): .git

Edit: I figured it out. My bad. Works a bit like subversion. Git clone creates a tradedangerous directory (and a hidden .git directory in that one for git admin) and when I go into that directory and do "git pull" I get the message "Already up-to-date". So it works. Many thanks for your help, really appreciated.
 
Last edited:
Back
Top Bottom