Release TCE-Relay, a helper tool for TCE Mk. II

am i doing this right

Maybe you missing the "--i-know-the-risks" parameter? Don't know for sure.

Yes you were right as usual Eventure as the 2nd and 3rd examples did not have this parameter on them I thought it was just a warning and not a actual parameter
Thankyou
I can now use this as I feel it should be used which is to just add local stations (just like I would if buying a new car check prices online, look in local paper,etc and then goto the place with best offers)
although personally I still feel that using it to scrape for prices in a 20,30 or even a 1000 ly radius is still wrong.

Cmdr Bupu
 
Still something not quite right with my setup (i think)

ok using SOL as a starting block (all stations around here are known)
tce is in d:\tce
relay is in d:\tcerelay

I enter
D:\tcerelay>TCE-RelayClient.exe --i-know-the-risks -A "SOL,2,2000,Y" --tce-path D:\tce

==========================================================================
Enabling experimental features. I hope you made a backup first. Take care.
==========================================================================
Searching for markets near SOL 0.0 0.0 0.0 within 2 LY, maxDistanceToStar 2000 LS , withPlanetary True
100 near stars found!
10 near markets found!
1 Adding market ABRAHAM LINCOLN SOL
Adding Market 0 40001
2 Adding market GALILEO SOL
Adding Market 1 40002
3 Adding market LI QING JAO SOL
Adding Market 2 40003
4 Adding market M.GORBACHEV SOL
Adding Market 3 40004
5 Adding market DAEDALUS SOL
Adding Market 4 40005
6 Adding market MARS HIGH SOL
Adding Market 5 40025
7 Adding market BURNELL STATION SOL
Adding Market 6 40114
8 Adding market EHRLICH CITY SOL
Adding Market 7 40825
9 Adding market FURUKAWA ENTERPRISE SOL
Adding Market 8 40838
10 Adding market WALZ DEPOT SOL
Adding Market 9 40839
Added 10 Markets to TCE DB
STATUS:preparing request
MaxTradegoodId is 145
Parsing TCE date: 0 00:00:00
Parsing TCE date: 0 00:00:00
Parsing TCE date: 0 00:00:00
Parsing TCE date: 0 00:00:00
Parsing TCE date: 0 00:00:00
Parsing TCE date: 0 00:00:00
Parsing TCE date: 0 00:00:00
Parsing TCE date: 0 00:00:00
Parsing TCE date: 0 00:00:00
Parsing TCE date: 0 00:00:00
Requesting data for 10 markets
getJsonRequest took 0.0006880369260122698 seconds
STATUS:Sending request
Compressed JsonRequest from 366 to 183 bytes
200
{'Connection': 'keep-alive', 'Server': 'nginx/1.6.2', 'Transfer-Encoding': 'chunked', 'Content-Encoding': 'gzip', 'Date': 'Sat, 03 Sep 2016 10:55:10 GMT', 'Content-Type': 'application/json'}
sendRequest took 0.41258920512736563 seconds
STATUS:processing response
ServerProcessTime 0.011522000000000254
Got prices for 10 markets
Updating LastDate for localMarketId 7 to 1472894010
Parsing unixtime to TCE: 1472894010
tceBase 512317 days, 9:13:30
tceDate 512317
tceTime 9:13:30 AM
Updating LastDate for localMarketId 3 to 1472839013
Parsing unixtime to TCE: 1472839013
tceBase 512316 days, 17:56:53
tceDate 512316
tceTime 5:56:53 PM
Updating LastDate for localMarketId 2 to 1472839558
Parsing unixtime to TCE: 1472839558
tceBase 512316 days, 18:05:58
tceDate 512316
tceTime 6:05:58 PM
Updating LastDate for localMarketId 4 to 1472873131
Parsing unixtime to TCE: 1472873131
tceBase 512317 days, 3:25:31
tceDate 512317
tceTime 3:25:31 AM
Updating LastDate for localMarketId 1 to 1472898181
Parsing unixtime to TCE: 1472898181
tceBase 512317 days, 10:23:01
tceDate 512317
tceTime 10:23:01 AM
Updating LastDate for localMarketId 6 to 1472672337
Parsing unixtime to TCE: 1472672337
tceBase 512314 days, 19:38:57
tceDate 512314
tceTime 7:38:57 PM
Traceback (most recent call last):
File "TCE-RelayClient.py", line 637, in <module>
File "TCE-RelayClient.py", line 411, in processJsonResponse
File "TCE-RelayClient.py", line 423, in updateTcePriceData
File "TCE-RelayClient.py", line 260, in getLocalMarketId
KeyError: 18


ERROR:Unable to parse response!

what am I doing wrong..
Cmdr Bupu
 
1 Adding market ABRAHAM LINCOLN SOL
Adding Market 0 40001

Are you using a completely empty DB, i.e. were there no registered markets in TCE before?

In this case, TCE-Relay will create the first station with ID 0, but TCE uses ID=1.

I'll change the code to use ID=1 for the first station if no registered markets are present.
 
Are you using a completely empty DB, i.e. were there no registered markets in TCE before?

In this case, TCE-Relay will create the first station with ID 0, but TCE uses ID=1.

I'll change the code to use ID=1 for the first station if no registered markets are present.

No not a empty database . It does not have many stations in it of mine but it does include the default ones as well.
 
I just ran this and it looks like it completed, but I got alot of the below messages:

C:\TCE\TCE-Relay>tce-relayclient
STATUS:preparing request
RUSSELL RING LHS 3505 -1 ID not found!
JAHN HANGER 110 HERCULIS -1 ID not found!
EYHARTS HANGER LFT 1504 -1 ID not found!
WOLF ENTERPRISE G 141-21 -1 ID not found!
ANDREAS ORBITAL G 141-21 -1 ID not found!
FEOKTISTOV ENTERPRISE G 141-21 -1 ID not found!
RAY ORBITAL G 141-21 -1 ID not found!
TOGNINI TERMINAL G 141-21 -1 ID not found!
KIMBROUGH ENTERPRISE G 141-21 -1 ID not found!
CLEMENT TERMINAL G 141-21 -1 ID not found!
BIRDSEYE DOCK G 141-21 -1 ID not found!
HOBAUGH HANGER V816 HERCULIS -1 ID not found!
LAZUTKIN CONONY V774 HERCULIS -1 ID not found!
BELTRAMI'S INHERITANCE MARRALLANG : B 11 B -1 ID not found!
WIENER HORIZONS MARRALLANG : B 11 A -1 ID not found!

At the end I received this message:

Requesting data for 349 markets
getJsonRequest took 0.14703600881848616 seconds
STATUS:Sending request
Compressed JsonRequest from 10912 to 2775 bytes
200
{'Server': 'nginx/1.6.2', 'Connection': 'keep-alive', 'Date': 'Thu, 08 Sep 2016 23:46:34 GMT', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/json', 'Content-Encoding': 'gzip'}
sendRequest took 6.090016042344104 seconds
STATUS:processing response
ServerProcessTime 0.4381189999999986
Got prices for 289 markets
processJsonResponse took 0.6920863572831761 seconds
Updated 289 stations with 20598 prices
Total runtime: 6.989880775123799 seconds

So it appears that it worked, I think. Are the ID not found messages bad? What are they telling me?
 
ID=-1 (i.e. station not found) will happen if the station is not in the local TCE-Relay database.
This database is created from EDDB data, so it really means that the station is/was not in the EDDB database.

Either because there is a typo in the name:

JAHN HANGER in 110 HERCULIS
is called
JAHN HANGAR in 110 HERCULIS
in EDDB.
See https://eddb.io/system/28

Or because the station is missing completely in EDDB:

RUSSELL RING in LHS 3505
See https://eddb.io/system/12029

If you want to help, you can add the missing infos in EDDB through ROSS:
https://ross.eddb.io/faq

I will import the new station from EDDB on every TCE-Relay release.
 
hi I like this addon to tce. could someone give instructions on how to write a bat file to ececute the cmd code to same opening a cmd window thanks for any help.
 
hi I like this addon to tce. could someone give instructions on how to write a bat file to ececute the cmd code to same opening a cmd window thanks for any help.
I'm not sure what you want to do with the bat file?
Do you want to call TCE-Relay with some parameters?

Let's say you've installed TCE in D:\TCE and TCE-Relay in D:\TCE\TCE-Relay.

You could create a .bat/.cmd file like this:

Code:
@echo off
D:\TCE\TCE-Relay\TCE-RelayClient.exe --tce-path D:/TCE
pause

If you start this .cmd file, it will call TCE-Relay with the specified parameters (and pause afterwards to review the output).

Does this help?
 
Last edited:
I just cant get this to work.

I open a CMD type this "m:\tce-relay>TCE-RelayClient.exe --i-know-the-risks -A "SOL,2,2000,Y" --tce-path m:\tce" but it just says

M:\TCE>m:\tce-relay>TCE-RelayClient.exe --i-know-the-risks -A "SOL,2,2000,Y" --tce-path m:\tce
'm:\tce-relay' is not recognized as an internal or external command,
operable program or batch file.

M:\TCE>

What am I doing wrong


TIA
 
I just cant get this to work.

I open a CMD type this "m:\tce-relay>TCE-RelayClient.exe --i-know-the-risks -A "SOL,2,2000,Y" --tce-path m:\tce" but it just says

M:\TCE>m:\tce-relay>TCE-RelayClient.exe --i-know-the-risks -A "SOL,2,2000,Y" --tce-path m:\tce
'm:\tce-relay' is not recognized as an internal or external command,
operable program or batch file.

M:\TCE>

What am I doing wrong


TIA

Change "m:\tce-relay>TCE-RelayClient.exe --i-know-the-risks -A "SOL,2,2000,Y" --tce-path m:\tce" to "m:\tce-relay\TCE-RelayClient.exe --i-know-the-risks -A "SOL,2,2000,Y" --tce-path m:\tce". See the difference(\ instead of >)?
 
Last edited:
Hey guys,

sorry for not being around lately, but I was quite busy IRL.

I'm updating TCE-Relay at the moment to reflect the changes in Elite 1.7/2.2, TCE 1.4, EDDN commodity schema v3 and EDDB export schema v5.

Stay tuned. :)

/flat
 
Thank you, but now Windows 10 is saying This app cant run on this PC. And I can only close it. arrrggghhhhh

I assume you have TCE installed in m:\TCE and TCE-Relay installed in m:\TCE-Relay, right?

What happens if you start cmd.exe and run:

m:\tce-relay\TCE-RelayClient.exe --version
 
Top Bottom