MarkAusten / TDHelper

GUI for Trade Dangerous and EDDBlink
MIT License
7 stars 4 forks source link

CMDR profile #48

Closed CecilFF4 closed 5 years ago

CecilFF4 commented 5 years ago

"Commander profile data file not found or unreadable."

This message always appears whenever I press the "CMDR Profile" button. I even manually edited the INI to include my CMDR name, but that still yields the same error. There is no info in the FAQ about this issue.

MarkAusten commented 5 years ago

Are you using the latest version of TDH2 and TD? If not then please update with and try again. If you do not wish to do this then what version are u=you using?

Thanks.

CecilFF4 commented 5 years ago

Sorry for not leaving those details before. TDH2 v2.1.0.2. TD commit from 2Mar2018. I just downloaded and set these up today. All other functions in TDH2 work as normal.

Running on Win10 x64, Python 3.6.

MarkAusten commented 5 years ago

2Mar2018! That's interesting since I posted that version on 1st January 2019!

Still, that's not relevant. I've just tried my game installation of TDH2 and got the expected response.

The reason that you are getting the message is that TDH2 is unable to log onto the Companion API in order to retrieve your commander profile. Do you use EDMC? If so then is that able to connect to the cAPI? If EDMC cannot connect then it gives a message at the bottom of the icon saying that the servers at Frontier are down. If this cannot connect either then you'll need to investigate why your setup is not able to connect to Frontier.

If you do not have EDMC or it is working correctly, then go to the folder in which you installed tradedangerous and open the "data" folder. In there you should find a file named "edapi.config". Delete this file and retry the "Cmdr Profile" in TDH2 again. You should get a browser window opening which asks you to log in an authorise access to your profile after which the profile should load.

You may want to try deleting this file anyway, just in case it has the incorrect authorisation stored for some reason.

CecilFF4 commented 5 years ago

The changes.txt said that date, so that's where I got it from.

Anyhoo, nope, not using EDMC (yet). I also don't have any edapi.config file within the data folder. No browser window opens when I click the button, btw.

MarkAusten commented 5 years ago

Ah, that's where you got the date from, I'll update that. Thanks.

As for the problem, it seems as though TDH2 is not getting the information from the edapi plugin for tradedangerous and because there is no edapi.config file I would guess that you either do not have the latest version of TD installed or that TDH2 is not pointing to it.

Eyeonus has made some recent changes to tradedangerous so ensure that you have the latest version of tradedangerous installed (labelled dc82a20 and released yesterday). The latest release is available from here: https://github.com/eyeonus/Trade-Dangerous

Finally, once you are certain that you have the latest tradedangerous installed, please ensure that your trade.py path in the TDH2 settings is pointing to this latest release.

CecilFF4 commented 5 years ago

Yes, I have the latest commit. No joy. TDH2, I must reiterate, is working in every other respect, using TD to plot routes for me and recommending trades, for example.

MarkAusten commented 5 years ago

I understand what you are saying, the thing is that TDH2 will work without the user touching the commander profile at all. Please try the follow:

Open a terminal window, CD to the tradedangerous folder and the enter:

python -V

You should be using version 3.4 as a minimum.

If you have the correct version of python enter:

python trade.py import -P edapi -O tdh

This should run the edapi plugin and retrieve the commander profile. If you get a request not installed error at this point, install the requests package into python and try the command above again.

If the command does not work at the terminal, then it's not going to work in TDH2 either since all the TDH2 does is to issue the above command and then read in the resulting text file that contains the profile.

CecilFF4 commented 5 years ago

Python 3.6.

Ran the cmd you specified and a tab opened in Firefox for authorization. I used my Steam account for that, the tab said to close it, and the cmd window said "PLUGIN ERROR: Couldn't get frontier authorization." I ran it a second time and I verified in the auth tab that Firefox indeed recognized that I was logged into Steam.

MarkAusten commented 5 years ago

Do you have normal Frontier Store account that you could try and see if that works? I'm assuming that you still get the error. Otherwise it would seem that the Companion API may not accept authorisation from a steam account. It's not a TDH2 problem but one withe EDAPI plug of trade dangerous. I'll raise the issue with the commander that made the recent plugin changes and see what he can come up with.

I have posted a question about this to gazelle on the forum,

eyeonus commented 5 years ago

TD commit from 2Mar2018.

Update TD. You're still using the bgol branch that hasn't been updated in nearly a year. eyeonus/Trade-Dangerous

CecilFF4 commented 5 years ago

Do you have normal Frontier Store account

No, I don't. I only have Steam. And since I didn't plan on buying anything from the Frontier store, I had no plans to create an account over there. I can live without being able to pull the CMDR info. If you'd like to close this issue because of this, it's understandable.

Update TD. You're still using the bgol branch that hasn't been updated in nearly a year. eyeonus/Trade-Dangerous

That's precisely the link I've gone to to download TD. I have that one already installed and is the only one that I've had during this issue (commit dc82a20).

MarkAusten commented 5 years ago

I won't close it for the moment since if it has happened with you then it may also happen with another and I'd really like to try and figure out what is causing this. I'l wait and see if gazelle has anything to offer.

eyeonus commented 5 years ago

python trade.py import -P edapi -O tdh -w

Post the output of that command after removing 'any "access_token" and "refresh_token"'.

Listatta commented 5 years ago

SOOooooo yep, me too! and the basics: windows 10 64bit python 3.7.2 normal ED account though the frontier store (not steam) trade dangerous Latest commit dc82a20 4 days ago ED market connector installed and running and working fine read and followed along with above conversation for the following:

deleted the edapi.config file in the data folder...still no luck

opened command prompt as admin and ran your to command lines:

Microsoft` Windows [Version 10.0.17763.253]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd C:\Trade-Dangerous-master

C:\Trade-Dangerous-master>python -V
Python 3.7.2

C:\Trade-Dangerous-master>python trade.py import -P edapi -O tdh
Traceback (most recent call last):
  File "trade.py", line 107, in <module>
    main(sys.argv)
  File "trade.py", line 80, in main
    results = cmdenv.run(tdb)
  File "C:\Trade-Dangerous-master\commands\commandenv.py", line 81, in run
    return self._cmd.run(results, self, tdb)
  File "C:\Trade-Dangerous-master\commands\import_cmd.py", line 124, in run
    if not plugin.run():
  File "C:\Trade-Dangerous-master\plugins\edapi_plug.py", line 699, in run
    itemMap = mapping.FDEVMappingItems(tdb, tdenv)
  File "C:\Trade-Dangerous-master\mapping.py", line 27, in __init__
    self.mapLoad()
  File "C:\Trade-Dangerous-master\mapping.py", line 62, in mapLoad
    curs.execute(stmt)
sqlite3.OperationalError: no such table: Item

C:\Trade-Dangerous-master>

deleted all trade dangerous files and downloaded and extracted again, ran update DB

Command line: -u "C:\Trade-Dangerous-master\trade.py" import -P eddblink -O all,progbar
NOTE: Rebuilding cache file: this may take a few moments.
NOTE: Missing "C:\Trade-Dangerous-master\data\TradeDangerous.prices" file - no price data.
NOTE: Downloading file 'modules.json'.
NOTE: Requesting http://elite.ripz.org/files/modules.json

NOTE: Downloaded 366.1KB of gziped data 195.0KB/s
NOTE: Processing Upgrades: Start time = 2019-01-12 22:10:11.254391
NOTE: Finished processing Upgrades. End time = 2019-01-12 22:10:11.271271
NOTE: Downloading file 'index.json'.
NOTE: Requesting https://raw.githubusercontent.com/EDCD/coriolis-data/master/dist/index.json

NOTE: Downloaded   0.7MB of gziped data  18.0MB/s
NOTE: Processing Ships: Start time = 2019-01-12 22:10:11.516612
NOTE: Finished processing Ships. End time = 2019-01-12 22:10:11.534001
NOTE: Downloading file 'systems_populated.jsonl'.
NOTE: Requesting http://elite.ripz.org/files/systems_populated.jsonl
NOTE: Downloaded  27.2MB of gziped data   1.3MB/s
NOTE: Processing Systems: Start time = 2019-01-12 22:10:33.215644

NOTE: Finished processing Systems. End time = 2019-01-12 22:10:34.691270
NOTE: Downloading file 'stations.jsonl'.
NOTE: Requesting http://elite.ripz.org/files/stations.jsonl
NOTE: Downloaded 116.3MB of gziped data   3.8MB/s
NOTE: Processing Stations, this may take a bit: Start time = 2019-01-12 22:11:06.505298
NOTE: Simultaneously processing ShipVendors.
NOTE: Simultaneously processing UpgradeVendors, this will take quite a while.

[===========================================       ] 86% 

kept getting error the trade dangerous database is locked. try to connect again? kept clicking yes and it kept progressing...

NOTE: Finished processing Stations. End time = 2019-01-12 22:28:14.514241
NOTE: Downloading file 'commodities.json'.
NOTE: Requesting http://elite.ripz.org/files/commodities.json

NOTE: Downloaded 107.4KB of gziped data 117.2KB/s
NOTE: Processing Categories and Items: Start time = 2019-01-12 22:28:16.176960
NOTE: Checking for missing items....
NOTE: Missing item check complete.
NOTE: Finished processing Categories and Items. End time = 2019-01-12 22:28:16.478250
NOTE: C:\Trade-Dangerous-master\data\Category.csv exported.
NOTE: C:\Trade-Dangerous-master\data\Item.csv exported.
NOTE: C:\Trade-Dangerous-master\data\Ship.csv exported.
NOTE: C:\Trade-Dangerous-master\data\ShipVendor.csv exported.
NOTE: C:\Trade-Dangerous-master\data\Station.csv exported.
NOTE: C:\Trade-Dangerous-master\data\System.csv exported.
NOTE: C:\Trade-Dangerous-master\data\Upgrade.csv exported.

where is finally quit throwing the error

NOTE: C:\Trade-Dangerous-master\data\UpgradeVendor.csv exported.
NOTE: Downloading file 'listings.csv'.
NOTE: Requesting http://elite.ripz.org/files/listings.csv
NOTE: Downloaded 239.0MB of gziped data   4.9MB/s
NOTE: Processing market data from listings.csv: Start time = 2019-01-12 22:35:19.087801

NOTE: Finished processing market data. End time = 2019-01-12 22:45:33.874522
NOTE: Downloading file 'listings-live.csv'.
NOTE: Requesting http://elite.ripz.org/files/listings-live.csv
NOTE: Downloaded  18.4MB of gziped data   1.0MB/s
NOTE: Processing market data from listings-live.csv: Start time = 2019-01-12 22:45:52.642473

NOTE: Finished processing market data. End time = 2019-01-12 22:47:11.750526
NOTE: Regenerating .prices file.
NOTE: Import completed.

Data updated.

clicked the cmdr profile button web page opened in chrome, logged in, and clicked approve got the message:AUTHENTICATION You can close me now. in web browser and output said

Commander profile data file not found or unreadable.

entered eyeonus's command prompt command and got the following:

C:\Trade-Dangerous-master>python trade.py import -P edapi -O tdh -w
# Command line was: ['trade.py', 'import', '-P', 'edapi', '-O', 'tdh', '-w']
auth expires_at 2019-01-13 02:49:39
Traceback (most recent call last):
  File "trade.py", line 107, in <module>
    main(sys.argv)
  File "trade.py", line 80, in main
    results = cmdenv.run(tdb)
  File "C:\Trade-Dangerous-master\commands\commandenv.py", line 81, in run
    return self._cmd.run(results, self, tdb)
  File "C:\Trade-Dangerous-master\commands\import_cmd.py", line 124, in run
    if not plugin.run():
  File "C:\Trade-Dangerous-master\plugins\edapi_plug.py", line 754, in run
    saveFile.write('{{"profile":{}, "market":{}, "shipyard":{}}}'.format(*api.text))
IndexError: tuple index out of range

Hope this helps and really sorry it's soooo freaking long but.... the whole reason i've never learned any programming is because i'm dyslexic and if I don't just copy and paste P's turn into b's and things get scrambled. So, this way you all get to see most of what i'm seeing and hopefully it's helpful.

eyeonus commented 5 years ago

Okay, update TD and run 'trade.py import -P edapi -O tdh -w' again. You'll still probably get the same IndexError, but it'll print out something right before the Traceback that'll help figure out what's going on.

Listatta commented 5 years ago

wait, update trade dangerous again? but i just downloaded and extracted files like 2 hours ago from your github?

can I just download, extract to file without deleting the previous contents so i don't have to build the databases again?

eyeonus commented 5 years ago

Yes, just overwrite. You only have to rebuild the DB on update when I recommend 'doing a "clean" run' after an update. Which is rare. 99% of the time there is no need to rebuild the DB after updating TD. Just overwrite.

In this case, the only difference between the version you just downloaded 2 hours ago and the version now is that I added a debug message to print out the thing it errors on before the error happens.

eyeonus commented 5 years ago

The error will still happen, but I'll have the value of the thing that's causing the error, which will let me figure out how to handle that error.

So, update TD, run that command, paste the output.

Listatta commented 5 years ago

ahhh ok thanks and here ya go:

Microsoft Windows [Version 10.0.17763.253]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd C:\Trade-Dangerous-master

C:\Trade-Dangerous-master>trade.py import -P edapi -O tdh -w
# Command line was: ['C:\\Trade-Dangerous-master\\trade.py', 'import', '-P', 'edapi', '-O', 'tdh', '-w']
auth expires_at 2019-01-13 02:49:39
Traceback (most recent call last):
  File "C:\Trade-Dangerous-master\trade.py", line 107, in <module>
    main(sys.argv)
  File "C:\Trade-Dangerous-master\trade.py", line 80, in main
    results = cmdenv.run(tdb)
  File "C:\Trade-Dangerous-master\commands\commandenv.py", line 81, in run
    return self._cmd.run(results, self, tdb)
  File "C:\Trade-Dangerous-master\commands\import_cmd.py", line 124, in run
    if not plugin.run():
  File "C:\Trade-Dangerous-master\plugins\edapi_plug.py", line 754, in run
    tdenv.DEBUG0(api.text)
  File "C:\Trade-Dangerous-master\tradeenv.py", line 75, in __DEBUG_ENABLED
    print('#', outText.format(*args, **kwargs))
AttributeError: 'list' object has no attribute 'format'

C:\Trade-Dangerous-master>
Listatta commented 5 years ago

ok I also want to add that I'm one of the few that suffers from the commander journal file not being built by installing and running ED. I had to go in and create the file folders and then ED finally created the files after running the game. Documentation of that problem https://forums.frontier.co.uk/showthread.php/405782-Cannot-find-Player-Journal-log but i think that has nothing to do with this, but throwing that out there cause i'm not sure what is reading what, where.

eyeonus commented 5 years ago

Arg. Stupid debug. Let's try this again. Update TD again, run that command, give me the output.

It's choking on the API response for some reason. The debug is supposed to print out the API response, but it's being dumb. I've fixed the debug message, so now, when you update TD, again, it'll print out the API response before it gives you the IndexError.

Listatta commented 5 years ago
Microsoft Windows [Version 10.0.17763.253]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd C:\Trade-Dangerous-master

C:\Trade-Dangerous-master>trade.py import -P edapi -O tdh -w
# Command line was: ['C:\\Trade-Dangerous-master\\trade.py', 'import', '-P', 'edapi', '-O', 'tdh', '-w']
auth expires_at 2019-01-13 02:49:39
# ['{"commander":{"id":3784183,"name":"Annabella L","credits":30867786,"debt":0,"currentShipId":0,"alive":true,"docked":false,"rank":{"combat":0,"trade":4,"explore":5,"crime":0,"service":0,"empire":0,"federation":0,"power":0,"cqc":0}},"lastSystem":{"id":2557686518450,"name":"Arietis Sector DQ-Y c9","faction":null},"lastStarport":{"id":3221494784,"services":[],"name":"","faction":"","minorfaction":""},"ship":{"id":0,"name":"Asp","value":{"hull":5214890,"modules":15769449,"cargo":0,"total":20984339,"unloaned":134892},"free":false,"station":{"id":3221494784,"name":"MacLeod City"},"starsystem":{"id":2351,"name":"NLTT 2969","systemaddress":669880624529},"alive":true,"health":{"hull":951200,"shield":1000000,"shieldup":true,"integrity":236323,"paintwork":236323},"cockpitBreached":false,"oxygenRemaining":300000,"modules":{"TinyHardpoint1":{"module":{"id":128662529,"name":"Hpt_CloudScanner_Size0_Class5","locName":"Wake Scanner","locDescription":"Scanner that can calculate the destination of a hyperspace jump by analysis of frame shift energy wake.","value":932531,"free":false,"health":868685,"on":false,"priority":0}},"TinyHardpoint2":{"module":{"id":128668536,"name":"Hpt_ShieldBooster_Size0_Class5","locName":"Shield Booster","locDescription":"Strengthens the active shield if powered. Multiple boosters stack in effectiveness.","value":238850,"free":false,"health":917629,"on":true,"priority":0}},"TinyHardpoint3":{"module":{"id":128049519,"name":"Hpt_HeatSinkLauncher_Turret_Tiny","locName":"Heatsink","locDescription":"Purges ship\'s heat into a disposable sink block, which is then ejected. Requires ammunition.","value":2975,"free":false,"health":925723,"on":true,"priority":0}},"TinyHardpoint4":{"module":{"id":128049519,"name":"Hpt_HeatSinkLauncher_Turret_Tiny","locName":"Heatsink","locDescription":"Purges ship\'s heat into a disposable sink block, which is then ejected. Requires ammunition.","value":2975,"free":false,"health":945684,"on":true,"priority":0}},"Armour":{"module":{"id":128049304,"name":"Asp_Armour_Grade1","locName":"Lightweight Alloy","locDescription":"Standard protection against all types of attack.","value":0,"free":false,"health":1000000,"on":true,"priority":1}},"PowerPlant":{"module":{"id":128064052,"name":"Int_Powerplant_Size5_Class5","locName":"Power Plant","locDescription":"Consumes fuel to power all ship modules.","value":3675145,"free":false,"health":943143,"on":true,"priority":1}},"MainEngines":{"module":{"id":128064086,"name":"Int_Engine_Size5_Class4","locName":"Thrusters","locDescription":"Normal-space propulsion system.","value":1446121,"free":false,"health":920581,"on":true,"priority":0}},"FrameShiftDrive":{"module":{"id":128064122,"name":"Int_Hyperdrive_Size5_Class5","locName":"FSD","locDescription":"Device that allows supercruise travel and hyperspace jumps between star systems.","value":4338361,"free":false,"health":942984,"on":true,"priority":0},"engineer":{"engineerName":"Elvira Martuuk","engineerId":300160,"recipeName":"FSD_LongRange","recipeLocName":"Increased FSD Range","recipeLocDescription":"Longer range jumps are allowed with this modification, but at the cost of module integrity, power draw and higher mass.","recipeLevel":5},"WorkInProgress_modifications":{"OutfittingFieldType_PowerDraw":{"value":1.15,"LessIsGood":true,"locName":"Power draw","displayValue":"-15.00%","dir":"\\u02c5"},"OutfittingFieldType_Mass":{"value":1.3,"LessIsGood":true,"locName":"Mass","displayValue":"-30.00%","dir":"\\u02c5"},"OutfittingFieldType_Integrity":{"value":0.85,"LessIsGood":false,"locName":"Integrity","displayValue":"-15.00%","dir":"\\u02c5"},"OutfittingFieldType_FSDOptimalMass":{"value":1.55,"LessIsGood":false,"locName":"Optimised mass","displayValue":"55.00%","dir":"\\u02c4"}},"specialModifications":{"special_fsd_heavy":"special_fsd_heavy"}},"LifeSupport":{"module":{"id":128064153,"name":"Int_LifeSupport_Size4_Class1","locName":"Life Support","locDescription":"Regulates habitable ship atmosphere and provides emergency reservoir for pilot\'s Remlock system.","value":9646,"free":false,"health":846667,"on":true,"priority":4}},"PowerDistributor":{"module":{"id":128064197,"name":"Int_PowerDistributor_Size4_Class5","locName":"Power Distributor","locDescription":"Distribution system for ENG, SYS and WEP capacitors.","value":376829,"free":false,"health":941968,"on":true,"priority":0}},"Radar":{"module":{"id":128064239,"name":"Int_Sensors_Size5_Class2","locName":"Sensors","locDescription":"Standard suite providing basic detection, identification and targeting capabilities.","value":67528,"free":false,"health":900270,"on":true,"priority":0}},"FuelTank":{"module":{"id":128064350,"name":"Int_FuelTank_Size5_Class3","locName":"Fuel Tank","locDescription":"Storage container for fuel used by ship\'s power plant.","value":83090,"free":false,"health":1000000,"on":true,"priority":1}},"Slot01_Size6":{"module":{"id":128666665,"name":"Int_FuelScoop_Size6_Class3","locName":"Fuel Scoop","locDescription":"Fly close to the sun with an active fuel scoop to collect fuel.","value":1528068,"free":false,"health":918615,"on":true,"priority":0}},"Slot02_Size5":{"module":{"id":128667626,"name":"Int_Repairer_Size5_Class4","locName":"AFM Unit","locDescription":"Allows in-flight repair of internal ship modules. Can restore broken modules. Requires ammunition.","value":2409200,"free":false,"health":922567,"on":false,"priority":0}},"Slot03_Size3":{"module":{"id":128064272,"name":"Int_ShieldGenerator_Size3_Class5","locName":"Shield Generator","locDescription":"Forms a continually regenerating protective energy shield around the vessel.","value":431726,"free":false,"health":926658,"on":true,"priority":0}},"Slot04_Size3":{"module":{"id":128064340,"name":"Int_CargoRack_Size3_Class1","locName":"Cargo Rack","locDescription":"Standardised storage rack for use in automated cargo transfer system.","value":8979,"free":false,"health":1000000,"on":true,"priority":1}},"Slot05_Size3":{"module":{"id":128666634,"name":"Int_DetailedSurfaceScanner_Tiny","locName":"Surface Scanner","locDescription":"Advanced astronomical body scanner used during exploration. Capable of launching probes that reveal important information about planets and stellar bodies. Can only be used in supercruise and only functions in analysis mode.","value":212500,"free":false,"health":1000000,"on":true,"priority":1}},"Slot06_Size2":{"module":{"id":128049549,"name":"Int_DockingComputer_Standard","locName":"Docking Computer","locDescription":"Allows automated docking sequence at all starports and outposts.","value":4500,"free":false,"health":723962,"on":true,"priority":4}},"PlanetaryApproachSuite":{"module":{"id":128672317,"name":"Int_PlanetApproachSuite","locName":"Planetary Approach Suite","locDescription":"The required Thruster modifications, sensor package and avionics to allow a ship to fly effectively in close proximity to planets.","value":425,"free":false,"health":1000000,"on":true,"priority":1}},"VesselVoice":{"module":{"id":128824469,"name":"VoicePack_Verity","locName":"COVAS Verity","locDescription":"COVAS Verity","value":0,"free":false,"health":1000000,"on":true,"priority":1}}}},"ships":[{"id":0,"name":"Asp","value":{"hull":5214890,"modules":15769449,"cargo":0,"total":20984339,"unloaned":134892},"free":false,"station":{"id":3221494784,"name":"MacLeod City"},"starsystem":{"id":2351,"name":"NLTT 2969","systemaddress":669880624529}}]}']
Traceback (most recent call last):
  File "C:\Trade-Dangerous-master\trade.py", line 107, in <module>
    main(sys.argv)
  File "C:\Trade-Dangerous-master\trade.py", line 80, in main
    results = cmdenv.run(tdb)
  File "C:\Trade-Dangerous-master\commands\commandenv.py", line 81, in run
    return self._cmd.run(results, self, tdb)
  File "C:\Trade-Dangerous-master\commands\import_cmd.py", line 124, in run
    if not plugin.run():
  File "C:\Trade-Dangerous-master\plugins\edapi_plug.py", line 755, in run
    saveFile.write('{{"profile":{}, "market":{}, "shipyard":{}}}'.format(*api.text))
IndexError: tuple index out of range

C:\Trade-Dangerous-master>
eyeonus commented 5 years ago

Okay, I'm pretty sure I've figured out the problem.

You're not docked at a station, are you?

Listatta commented 5 years ago

no

Listatta commented 5 years ago

ok docked at Morgan relay and ran the cmdr profile again and still got Commander profile data file not found or unreadable.

ran the command prompt command again: Microsoft Windows [Version 10.0.17763.253]

(c) 2018 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd C:\Trade-Dangerous-master

C:\Trade-Dangerous-master>trade.py import -P edapi -O tdh -w
# Command line was: ['C:\\Trade-Dangerous-master\\trade.py', 'import', '-P', 'edapi', '-O', 'tdh', '-w']
auth expires_at 2019-01-13 02:49:39
auth expires_at 2019-01-13 02:49:39
# ['{"commander":{"id":3784183,"name":"Annabella L","credits":30853025,"debt":0,"currentShipId":0,"alive":true,"docked":true,"rank":{"combat":0,"trade":4,"explore":5,"crime":0,"service":0,"empire":0,"federation":0,"power":0,"cqc":0}},"lastSystem":{"id":64429,"name":"HIP 20577","faction":"federation"},"lastStarport":{"id":3221968896,"services":{"dock":"ok","contacts":"ok","exploration":"ok","commodities":"ok","refuel":"ok","repair":"ok","powerplay":"ok","searchrescue":"ok","stationmenu":"ok","engineer":"ok","facilitator":"ok"},"name":"Morgan Relay","faction":"federation","minorfaction":"HR 1354 Jet Netcoms Interstellar"},"ship":{"id":0,"name":"Asp","value":{"hull":5214890,"modules":15769449,"cargo":0,"total":20984339,"unloaned":134892},"free":false,"station":{"id":3221968896,"name":"Morgan Relay"},"starsystem":{"id":64429,"name":"HIP 20577","systemaddress":3652609624411},"alive":true,"health":{"hull":1000000,"shield":1000000,"shieldup":true,"integrity":249723,"paintwork":249723},"cockpitBreached":false,"oxygenRemaining":300000,"modules":{"TinyHardpoint1":{"module":{"id":128662529,"name":"Hpt_CloudScanner_Size0_Class5","locName":"Wake Scanner","locDescription":"Scanner that can calculate the destination of a hyperspace jump by analysis of frame shift energy wake.","value":932531,"free":false,"health":1000000,"on":false,"priority":0}},"TinyHardpoint2":{"module":{"id":128668536,"name":"Hpt_ShieldBooster_Size0_Class5","locName":"Shield Booster","locDescription":"Strengthens the active shield if powered. Multiple boosters stack in effectiveness.","value":238850,"free":false,"health":1000000,"on":true,"priority":0}},"TinyHardpoint3":{"module":{"id":128049519,"name":"Hpt_HeatSinkLauncher_Turret_Tiny","locName":"Heatsink","locDescription":"Purges ship\'s heat into a disposable sink block, which is then ejected. Requires ammunition.","value":2975,"free":false,"health":1000000,"on":true,"priority":0}},"TinyHardpoint4":{"module":{"id":128049519,"name":"Hpt_HeatSinkLauncher_Turret_Tiny","locName":"Heatsink","locDescription":"Purges ship\'s heat into a disposable sink block, which is then ejected. Requires ammunition.","value":2975,"free":false,"health":1000000,"on":true,"priority":0}},"Armour":{"module":{"id":128049304,"name":"Asp_Armour_Grade1","locName":"Lightweight Alloy","locDescription":"Standard protection against all types of attack.","value":0,"free":false,"health":1000000,"on":true,"priority":1}},"PowerPlant":{"module":{"id":128064052,"name":"Int_Powerplant_Size5_Class5","locName":"Power Plant","locDescription":"Consumes fuel to power all ship modules.","value":3675145,"free":false,"health":1000000,"on":true,"priority":1}},"MainEngines":{"module":{"id":128064086,"name":"Int_Engine_Size5_Class4","locName":"Thrusters","locDescription":"Normal-space propulsion system.","value":1446121,"free":false,"health":1000000,"on":true,"priority":0}},"FrameShiftDrive":{"module":{"id":128064122,"name":"Int_Hyperdrive_Size5_Class5","locName":"FSD","locDescription":"Device that allows supercruise travel and hyperspace jumps between star systems.","value":4338361,"free":false,"health":1000000,"on":true,"priority":0},"engineer":{"engineerName":"Elvira Martuuk","engineerId":300160,"recipeName":"FSD_LongRange","recipeLocName":"Increased FSD Range","recipeLocDescription":"Longer range jumps are allowed with this modification, but at the cost of module integrity, power draw and higher mass.","recipeLevel":5},"WorkInProgress_modifications":{"OutfittingFieldType_PowerDraw":{"value":1.15,"LessIsGood":true,"locName":"Power draw","displayValue":"-15.00%","dir":"\\u02c5"},"OutfittingFieldType_Mass":{"value":1.3,"LessIsGood":true,"locName":"Mass","displayValue":"-30.00%","dir":"\\u02c5"},"OutfittingFieldType_Integrity":{"value":0.85,"LessIsGood":false,"locName":"Integrity","displayValue":"-15.00%","dir":"\\u02c5"},"OutfittingFieldType_FSDOptimalMass":{"value":1.55,"LessIsGood":false,"locName":"Optimised mass","displayValue":"55.00%","dir":"\\u02c4"}},"specialModifications":{"special_fsd_heavy":"special_fsd_heavy"}},"LifeSupport":{"module":{"id":128064153,"name":"Int_LifeSupport_Size4_Class1","locName":"Life Support","locDescription":"Regulates habitable ship atmosphere and provides emergency reservoir for pilot\'s Remlock system.","value":9646,"free":false,"health":1000000,"on":true,"priority":4}},"PowerDistributor":{"module":{"id":128064197,"name":"Int_PowerDistributor_Size4_Class5","locName":"Power Distributor","locDescription":"Distribution system for ENG, SYS and WEP capacitors.","value":376829,"free":false,"health":1000000,"on":true,"priority":0}},"Radar":{"module":{"id":128064239,"name":"Int_Sensors_Size5_Class2","locName":"Sensors","locDescription":"Standard suite providing basic detection, identification and targeting capabilities.","value":67528,"free":false,"health":1000000,"on":true,"priority":0}},"FuelTank":{"module":{"id":128064350,"name":"Int_FuelTank_Size5_Class3","locName":"Fuel Tank","locDescription":"Storage container for fuel used by ship\'s power plant.","value":83090,"free":false,"health":1000000,"on":true,"priority":1}},"Slot01_Size6":{"module":{"id":128666665,"name":"Int_FuelScoop_Size6_Class3","locName":"Fuel Scoop","locDescription":"Fly close to the sun with an active fuel scoop to collect fuel.","value":1528068,"free":false,"health":1000000,"on":true,"priority":0}},"Slot02_Size5":{"module":{"id":128667626,"name":"Int_Repairer_Size5_Class4","locName":"AFM Unit","locDescription":"Allows in-flight repair of internal ship modules. Can restore broken modules. Requires ammunition.","value":2409200,"free":false,"health":1000000,"on":false,"priority":0}},"Slot03_Size3":{"module":{"id":128064272,"name":"Int_ShieldGenerator_Size3_Class5","locName":"Shield Generator","locDescription":"Forms a continually regenerating protective energy shield around the vessel.","value":431726,"free":false,"health":1000000,"on":true,"priority":0}},"Slot04_Size3":{"module":{"id":128064340,"name":"Int_CargoRack_Size3_Class1","locName":"Cargo Rack","locDescription":"Standardised storage rack for use in automated cargo transfer system.","value":8979,"free":false,"health":1000000,"on":true,"priority":1}},"Slot05_Size3":{"module":{"id":128666634,"name":"Int_DetailedSurfaceScanner_Tiny","locName":"Surface Scanner","locDescription":"Advanced astronomical body scanner used during exploration. Capable of launching probes that reveal important information about planets and stellar bodies. Can only be used in supercruise and only functions in analysis mode.","value":212500,"free":false,"health":1000000,"on":true,"priority":1}},"Slot06_Size2":{"module":{"id":128049549,"name":"Int_DockingComputer_Standard","locName":"Docking Computer","locDescription":"Allows automated docking sequence at all starports and outposts.","value":4500,"free":false,"health":1000000,"on":true,"priority":4}},"PlanetaryApproachSuite":{"module":{"id":128672317,"name":"Int_PlanetApproachSuite","locName":"Planetary Approach Suite","locDescription":"The required Thruster modifications, sensor package and avionics to allow a ship to fly effectively in close proximity to planets.","value":425,"free":false,"health":1000000,"on":true,"priority":1}},"VesselVoice":{"module":{"id":128824469,"name":"VoicePack_Verity","locName":"COVAS Verity","locDescription":"COVAS Verity","value":0,"free":false,"health":1000000,"on":true,"priority":1}}}},"ships":[{"id":0,"name":"Asp","value":{"hull":5214890,"modules":15769449,"cargo":0,"total":20984339,"unloaned":134892},"free":false,"station":{"id":3221968896,"name":"Morgan Relay"},"starsystem":{"id":64429,"name":"HIP 20577","systemaddress":3652609624411}}]}', '{"id":3221968896,"name":"Morgan Relay","outpostType":"industrial","imported":{"128049672":"BioReducingLichen","128049226":"HazardousEnvironmentSuits","128049160":"Uraninite","128049204":"Explosives","128049156":"Bertrandite","128049214":"Beer","128049203":"MineralOil","128049221":"MineralExtractors","128049180":"Grain","128049159":"Coltan","128672295":"Goslarite","128049231":"AdvancedCatalysers","128049241":"Clothing","128049183":"Fish","128049215":"Wine","128672294":"Cryolite","128049220":"HeliostaticFurnaces","128673854":"MethaneClathrate","128049671":"ResonatingSeparators","128049166":"Water","128049218":"WaterPurifiers","128049217":"PowerGenerators","128673850":"HydrogenPeroxide","128672297":"Pyrophyllite","128049178":"FruitAndVegetables","128049238":"DomesticAppliances","128682046":"AdvancedMedicines","128049248":"Scrap","128049209":"PerformanceEnhancers","128049182":"Animalmeat","128049188":"Tea","128049185":"SyntheticMeat","128049246":"ChemicalWaste","128049216":"Liquor","128049210":"BasicMedicines","128049184":"FoodCartridges","128049240":"ConsumerTechnology","128673853":"LithiumHydroxide","128049235":"ReactiveArmour","128049189":"Coffee","128049236":"NonLethalWeapons","128672123":"WreckageComponents","128732185":"AncientCasket","128672315":"GeologicalSamples","128672162":"GeneBank","128672810":"UnstableDataCore","128732188":"AncientTotem","128732187":"AncientUrn","128732184":"AncientOrb","128732186":"AncientTablet","128682049":"DataCore","128682051":"MysteriousIdol","128682054":"SpacePioneerRelics","128682055":"FossilRemnants","128732183":"AncientRelic","128672163":"TimeCapsule","128672134":"PoliticalPrisoner","128672161":"EarthRelics","128672131":"DiplomaticBag","128672160":"PreciousGems","128672124":"EncriptedDataStorage","128672127":"ComercialSamples","128672128":"TacticalData","128672129":"AssaultPlans","128672130":"EncryptedCorrespondence","128666757":"USSCargoRareArtwork","128672132":"ScientificResearch","128672136":"LargeExplorationDataCash","128672159":"AntiqueJewellery","128672137":"SmallExplorationDataCash","128672133":"ScientificSamples","128673848":"LowTemperatureDiamond","128049669":"ProgenitorCells","128924329":"Benitoite","128924330":"Grandidierite","128924328":"Musgravite","128924327":"Monazite","128924326":"Serendibite","128924325":"Rhodplumsite","128924331":"Alexandrite","128888499":"AncientKey","128666752":"USSCargoBlackBox","128672125":"OccupiedCryoPod","128672126":"PersonalEffects","128672135":"Hostage","128672811":"DamagedEscapePod","128924332":"Opal","128668550":"Painite"},"exported":{"128049165":"Bauxite","128049161":"Lepidolite","128049157":"Indite","128049163":"Rutile","128049202":"HydrogenFuel","128049175":"Copper","128049197":"Polymers","128049162":"Cobalt","128049158":"Gallite","128049193":"SyntheticFabrics","128049174":"Titanium","128049176":"Aluminium","128049170":"Gallium","128049169":"Indium","128049200":"Superconductors","128682044":"ConductiveFabrics","128672305":"SurfaceStabilisers","128049155":"Silver","128682045":"MilitaryGradeFabrics","128049199":"Semiconductors","128049173":"Lithium","128049244":"Biowaste","128049154":"Gold","128049172":"Uranium","128673851":"LiquidOxygen","128049153":"Palladium","128049171":"Tantalum","128049168":"Beryllium","128673855":"InsulatingMembrane"},"services":{"dock":"ok","contacts":"ok","exploration":"ok","commodities":"ok","refuel":"ok","repair":"ok","powerplay":"ok","searchrescue":"ok","stationmenu":"ok","engineer":"ok","facilitator":"ok"},"economies":{"50":{"name":"Refinery","proportion":0.17},"61":{"name":"Extraction","proportion":0.83}},"prohibited":{"128049670":"CombatStabilisers","128049212":"BasicNarcotics","128049213":"Tobacco","128672306":"BootlegLiquor","128049233":"PersonalWeapons","128049234":"BattleWeapons","128672312":"Landmines","128667728":"ImperialSlaves","128049243":"Slaves"},"commodities":[{"id":128049204,"name":"Explosives","legality":"","buyPrice":0,"sellPrice":2101,"meanPrice":420,"demandBracket":3,"stockBracket":0,"stock":0,"demand":29510,"statusFlags":[],"categoryname":"Chemicals","locName":"Explosives"},{"id":128049202,"name":"HydrogenFuel","legality":"","buyPrice":126,"sellPrice":120,"meanPrice":107,"demandBracket":0,"stockBracket":1,"stock":2329,"demand":1,"statusFlags":[],"categoryname":"Chemicals","locName":"Hydrogen Fuel"},{"id":128673850,"name":"HydrogenPeroxide","legality":"","buyPrice":0,"sellPrice":1245,"meanPrice":1210,"demandBracket":3,"stockBracket":0,"stock":0,"demand":2683,"statusFlags":[],"categoryname":"Chemicals","locName":"Hydrogen Peroxide"},{"id":128673851,"name":"LiquidOxygen","legality":"","buyPrice":384,"sellPrice":342,"meanPrice":432,"demandBracket":0,"stockBracket":1,"stock":148,"demand":1,"statusFlags":[],"categoryname":"Chemicals","locName":"Liquid oxygen"},{"id":128049203,"name":"MineralOil","legality":"","buyPrice":0,"sellPrice":1415,"meanPrice":396,"demandBracket":3,"stockBracket":0,"stock":0,"demand":25826,"statusFlags":[],"categoryname":"Chemicals","locName":"Mineral Oil"},{"id":128672305,"name":"SurfaceStabilisers","legality":"","buyPrice":1656,"sellPrice":1550,"meanPrice":675,"demandBracket":0,"stockBracket":1,"stock":355,"demand":1,"statusFlags":[],"categoryname":"Chemicals","locName":"Surface Stabilisers"},{"id":128049166,"name":"Water","legality":"","buyPrice":0,"sellPrice":722,"meanPrice":269,"demandBracket":3,"stockBracket":0,"stock":0,"demand":2610,"statusFlags":[],"categoryname":"Chemicals","locName":"Water"},{"id":128049241,"name":"Clothing","legality":"","buyPrice":0,"sellPrice":922,"meanPrice":460,"demandBracket":3,"stockBracket":0,"stock":0,"demand":7097,"statusFlags":[],"categoryname":"Consumer Items","locName":"Clothing"},{"id":128049240,"name":"ConsumerTechnology","legality":"","buyPrice":0,"sellPrice":7754,"meanPrice":6810,"demandBracket":3,"stockBracket":0,"stock":0,"demand":737,"statusFlags":[],"categoryname":"Consumer Items","locName":"Consumer Technology"},{"id":128049238,"name":"DomesticAppliances","legality":"","buyPrice":0,"sellPrice":1171,"meanPrice":659,"demandBracket":3,"stockBracket":0,"stock":0,"demand":2218,"statusFlags":[],"categoryname":"Consumer Items","locName":"Domestic Appliances"},{"id":128049182,"name":"Animalmeat","legality":"","buyPrice":0,"sellPrice":2038,"meanPrice":1527,"demandBracket":3,"stockBracket":0,"stock":0,"demand":1596,"statusFlags":[],"categoryname":"Foods","locName":"Animal Meat"},{"id":128049189,"name":"Coffee","legality":"","buyPrice":0,"sellPrice":2038,"meanPrice":1507,"demandBracket":3,"stockBracket":0,"stock":0,"demand":643,"statusFlags":[],"categoryname":"Foods","locName":"Coffee"},{"id":128049183,"name":"Fish","legality":"","buyPrice":0,"sellPrice":1027,"meanPrice":644,"demandBracket":3,"stockBracket":0,"stock":0,"demand":4909,"statusFlags":[],"categoryname":"Foods","locName":"Fish"},{"id":128049184,"name":"FoodCartridges","legality":"","buyPrice":0,"sellPrice":731,"meanPrice":225,"demandBracket":3,"stockBracket":0,"stock":0,"demand":868,"statusFlags":[],"categoryname":"Foods","locName":"Food Cartridges"},{"id":128049178,"name":"FruitAndVegetables","legality":"","buyPrice":0,"sellPrice":922,"meanPrice":531,"demandBracket":3,"stockBracket":0,"stock":0,"demand":2233,"statusFlags":[],"categoryname":"Foods","locName":"Fruit and Vegetables"},{"id":128049180,"name":"Grain","legality":"","buyPrice":0,"sellPrice":797,"meanPrice":437,"demandBracket":3,"stockBracket":0,"stock":0,"demand":11307,"statusFlags":[],"categoryname":"Foods","locName":"Grain"},{"id":128049185,"name":"SyntheticMeat","legality":"","buyPrice":0,"sellPrice":849,"meanPrice":490,"demandBracket":3,"stockBracket":0,"stock":0,"demand":1529,"statusFlags":[],"categoryname":"Foods","locName":"Synthetic Meat"},{"id":128049188,"name":"Tea","legality":"","buyPrice":0,"sellPrice":2232,"meanPrice":1696,"demandBracket":3,"stockBracket":0,"stock":0,"demand":1504,"statusFlags":[],"categoryname":"Foods","locName":"Tea"},{"id":128673855,"name":"InsulatingMembrane","legality":"","buyPrice":10266,"sellPrice":10149,"meanPrice":10695,"demandBracket":0,"stockBracket":1,"stock":5,"demand":1,"statusFlags":[],"categoryname":"Industrial Materials","locName":"Insulating Membrane"},{"id":128049197,"name":"Polymers","legality":"","buyPrice":2614,"sellPrice":1960,"meanPrice":308,"demandBracket":0,"stockBracket":1,"stock":1247,"demand":1,"statusFlags":[],"categoryname":"Industrial Materials","locName":"Polymers"},{"id":128049199,"name":"Semiconductors","legality":"","buyPrice":1415,"sellPrice":1355,"meanPrice":1093,"demandBracket":0,"stockBracket":1,"stock":182,"demand":1,"statusFlags":[],"categoryname":"Industrial Materials","locName":"Semiconductors"},{"id":128049200,"name":"Superconductors","legality":"","buyPrice":6809,"sellPrice":6729,"meanPrice":6473,"demandBracket":0,"stockBracket":1,"stock":367,"demand":1,"statusFlags":[],"categoryname":"Industrial Materials","locName":"Superconductors"},{"id":128049220,"name":"HeliostaticFurnaces","legality":"","buyPrice":0,"sellPrice":1919,"meanPrice":469,"demandBracket":3,"stockBracket":0,"stock":0,"demand":4251,"statusFlags":[],"categoryname":"Machinery","locName":"Microbial Furnaces"},{"id":128049221,"name":"MineralExtractors","legality":"","buyPrice":0,"sellPrice":1782,"meanPrice":729,"demandBracket":3,"stockBracket":0,"stock":0,"demand":12692,"statusFlags":[],"categoryname":"Machinery","locName":"Mineral Extractors"},{"id":128049217,"name":"PowerGenerators","legality":"","buyPrice":0,"sellPrice":1688,"meanPrice":628,"demandBracket":3,"stockBracket":0,"stock":0,"demand":5922,"statusFlags":[],"categoryname":"Machinery","locName":"Power Generators"},{"id":128049218,"name":"WaterPurifiers","legality":"","buyPrice":0,"sellPrice":2011,"meanPrice":411,"demandBracket":3,"stockBracket":0,"stock":0,"demand":5997,"statusFlags":[],"categoryname":"Machinery","locName":"Water Purifiers"},{"id":128682046,"name":"AdvancedMedicines","legality":"","buyPrice":0,"sellPrice":1868,"meanPrice":1479,"demandBracket":3,"stockBracket":0,"stock":0,"demand":2220,"statusFlags":[],"categoryname":"Medicines","locName":"Advanced Medicines"},{"id":128049210,"name":"BasicMedicines","legality":"","buyPrice":0,"sellPrice":922,"meanPrice":436,"demandBracket":3,"stockBracket":0,"stock":0,"demand":913,"statusFlags":[],"categoryname":"Medicines","locName":"Basic Medicines"},{"id":128049209,"name":"PerformanceEnhancers","legality":"","buyPrice":0,"sellPrice":7754,"meanPrice":6839,"demandBracket":3,"stockBracket":0,"stock":0,"demand":2091,"statusFlags":[],"categoryname":"Medicines","locName":"Performance Enhancers"},{"id":128049669,"name":"ProgenitorCells","legality":"","buyPrice":0,"sellPrice":7456,"meanPrice":6804,"demandBracket":3,"stockBracket":0,"stock":0,"demand":73,"statusFlags":[],"categoryname":"Medicines","locName":"Progenitor Cells"},{"id":128049176,"name":"Aluminium","legality":"","buyPrice":1201,"sellPrice":1114,"meanPrice":473,"demandBracket":0,"stockBracket":1,"stock":559,"demand":1,"statusFlags":[],"categoryname":"Metals","locName":"Aluminium"},{"id":128049168,"name":"Beryllium","legality":"","buyPrice":8062,"sellPrice":7969,"meanPrice":8130,"demandBracket":0,"stockBracket":1,"stock":66,"demand":1,"statusFlags":[],"categoryname":"Metals","locName":"Beryllium"},{"id":128049162,"name":"Cobalt","legality":"","buyPrice":953,"sellPrice":910,"meanPrice":752,"demandBracket":0,"stockBracket":1,"stock":2343,"demand":1,"statusFlags":[],"categoryname":"Metals","locName":"Cobalt"},{"id":128049175,"name":"Copper","legality":"","buyPrice":1178,"sellPrice":1101,"meanPrice":612,"demandBracket":0,"stockBracket":1,"stock":2978,"demand":1,"statusFlags":[],"categoryname":"Metals","locName":"Copper"},{"id":128049170,"name":"Gallium","legality":"","buyPrice":5421,"sellPrice":5292,"meanPrice":5065,"demandBracket":0,"stockBracket":1,"stock":912,"demand":1,"statusFlags":[],"categoryname":"Metals","locName":"Gallium"},{"id":128049154,"name":"Gold","legality":"","buyPrice":9945,"sellPrice":9831,"meanPrice":9842,"demandBracket":0,"stockBracket":1,"stock":164,"demand":1,"statusFlags":[],"categoryname":"Metals","locName":"Gold"},{"id":128049169,"name":"Indium","legality":"","buyPrice":6165,"sellPrice":6092,"meanPrice":5647,"demandBracket":0,"stockBracket":1,"stock":826,"demand":1,"statusFlags":[],"categoryname":"Metals","locName":"Indium"},{"id":128049173,"name":"Lithium","legality":"","buyPrice":2089,"sellPrice":2033,"meanPrice":1695,"demandBracket":0,"stockBracket":1,"stock":220,"demand":1,"statusFlags":[],"categoryname":"Metals","locName":"Lithium"},{"id":128049153,"name":"Palladium","legality":"","buyPrice":12781,"sellPrice":12637,"meanPrice":12956,"demandBracket":0,"stockBracket":1,"stock":102,"demand":1,"statusFlags":[],"categoryname":"Metals","locName":"Palladium"},{"id":128049155,"name":"Silver","legality":"","buyPrice":4919,"sellPrice":4802,"meanPrice":4764,"demandBracket":0,"stockBracket":1,"stock":422,"demand":1,"statusFlags":[],"categoryname":"Metals","locName":"Silver"},{"id":128049171,"name":"Tantalum","legality":"","buyPrice":4116,"sellPrice":4016,"meanPrice":3945,"demandBracket":0,"stockBracket":1,"stock":114,"demand":1,"statusFlags":[],"categoryname":"Metals","locName":"Tantalum"},{"id":128049174,"name":"Titanium","legality":"","buyPrice":1579,"sellPrice":1512,"meanPrice":1115,"demandBracket":0,"stockBracket":1,"stock":1120,"demand":1,"statusFlags":[],"categoryname":"Metals","locName":"Titanium"},{"id":128049172,"name":"Uranium","legality":"","buyPrice":3139,"sellPrice":3060,"meanPrice":2755,"demandBracket":0,"stockBracket":1,"stock":150,"demand":1,"statusFlags":[],"categoryname":"Metals","locName":"Uranium"},{"id":128924331,"name":"Alexandrite","legality":"","buyPrice":0,"sellPrice":340598,"meanPrice":273549,"demandBracket":3,"stockBracket":0,"stock":0,"demand":8,"statusFlags":[],"categoryname":"Minerals","locName":"Alexandrite"},{"id":128049165,"name":"Bauxite","legality":"","buyPrice":208,"sellPrice":156,"meanPrice":262,"demandBracket":0,"stockBracket":1,"stock":21658,"demand":1,"statusFlags":[],"categoryname":"Minerals","locName":"Bauxite"},{"id":128924329,"name":"Benitoite","legality":"","buyPrice":0,"sellPrice":389829,"meanPrice":195812,"demandBracket":3,"stockBracket":0,"stock":0,"demand":8,"statusFlags":[],"categoryname":"Minerals","locName":"Benitoite"},{"id":128049156,"name":"Bertrandite","legality":"","buyPrice":0,"sellPrice":3314,"meanPrice":2516,"demandBracket":3,"stockBracket":0,"stock":0,"demand":12023,"statusFlags":[],"categoryname":"Minerals","locName":"Bertrandite"},{"id":128049159,"name":"Coltan","legality":"","buyPrice":0,"sellPrice":2131,"meanPrice":1472,"demandBracket":3,"stockBracket":0,"stock":0,"demand":9405,"statusFlags":[],"categoryname":"Minerals","locName":"Coltan"},{"id":128672294,"name":"Cryolite","legality":"","buyPrice":0,"sellPrice":2989,"meanPrice":2325,"demandBracket":3,"stockBracket":0,"stock":0,"demand":3984,"statusFlags":[],"categoryname":"Minerals","locName":"Cryolite"},{"id":128049158,"name":"Gallite","legality":"","buyPrice":2081,"sellPrice":2027,"meanPrice":1959,"demandBracket":0,"stockBracket":1,"stock":1481,"demand":1,"statusFlags":[],"categoryname":"Minerals","locName":"Gallite"},{"id":128672295,"name":"Goslarite","legality":"","buyPrice":0,"sellPrice":1529,"meanPrice":1051,"demandBracket":3,"stockBracket":0,"stock":0,"demand":9398,"statusFlags":[],"categoryname":"Minerals","locName":"Goslarite"},{"id":128924330,"name":"Grandidierite","legality":"","buyPrice":0,"sellPrice":349086,"meanPrice":255839,"demandBracket":3,"stockBracket":0,"stock":0,"demand":8,"statusFlags":[],"categoryname":"Minerals","locName":"Grandidierite"},{"id":128049157,"name":"Indite","legality":"","buyPrice":2332,"sellPrice":2272,"meanPrice":2233,"demandBracket":0,"stockBracket":1,"stock":3683,"demand":1,"statusFlags":[],"categoryname":"Minerals","locName":"Indite"},{"id":128049161,"name":"Lepidolite","legality":"","buyPrice":809,"sellPrice":772,"meanPrice":711,"demandBracket":0,"stockBracket":1,"stock":8061,"demand":1,"statusFlags":[],"categoryname":"Minerals","locName":"Lepidolite"},{"id":128673853,"name":"LithiumHydroxide","legality":"","buyPrice":0,"sellPrice":7616,"meanPrice":5678,"demandBracket":3,"stockBracket":0,"stock":0,"demand":741,"statusFlags":[],"categoryname":"Minerals","locName":"Lithium Hydroxide"},{"id":128673848,"name":"LowTemperatureDiamond","legality":"","buyPrice":0,"sellPrice":792553,"meanPrice":93678,"demandBracket":3,"stockBracket":0,"stock":0,"demand":88,"statusFlags":[],"categoryname":"Minerals","locName":"Low Temperature Diamonds"},{"id":128673854,"name":"MethaneClathrate","legality":"","buyPrice":0,"sellPrice":982,"meanPrice":956,"demandBracket":3,"stockBracket":0,"stock":0,"demand":4262,"statusFlags":[],"categoryname":"Minerals","locName":"Methane Clathrate"},{"id":128924327,"name":"Monazite","legality":"","buyPrice":0,"sellPrice":333604,"meanPrice":239282,"demandBracket":3,"stockBracket":0,"stock":0,"demand":8,"statusFlags":[],"categoryname":"Minerals","locName":"Monazite"},{"id":128924328,"name":"Musgravite","legality":"","buyPrice":0,"sellPrice":343990,"meanPrice":255839,"demandBracket":3,"stockBracket":0,"stock":0,"demand":8,"statusFlags":[],"categoryname":"Minerals","locName":"Musgravite"},{"id":128924332,"name":"Opal","legality":"","buyPrice":0,"sellPrice":382820,"meanPrice":183160,"demandBracket":3,"stockBracket":0,"stock":0,"demand":8,"statusFlags":[],"categoryname":"Minerals","locName":"Void Opals"},{"id":128668550,"name":"Painite","legality":"","buyPrice":0,"sellPrice":218722,"meanPrice":67167,"demandBracket":3,"stockBracket":0,"stock":0,"demand":4,"statusFlags":[],"categoryname":"Minerals","locName":"Painite"},{"id":128672297,"name":"Pyrophyllite","legality":"","buyPrice":0,"sellPrice":2232,"meanPrice":1663,"demandBracket":3,"stockBracket":0,"stock":0,"demand":2299,"statusFlags":[],"categoryname":"Minerals","locName":"Pyrophyllite"},{"id":128924325,"name":"Rhodplumsite","legality":"","buyPrice":0,"sellPrice":312619,"meanPrice":209344,"demandBracket":3,"stockBracket":0,"stock":0,"demand":8,"statusFlags":[],"categoryname":"Minerals","locName":"Rhodplumsite"},{"id":128049163,"name":"Rutile","legality":"","buyPrice":518,"sellPrice":480,"meanPrice":448,"demandBracket":0,"stockBracket":1,"stock":3184,"demand":1,"statusFlags":[],"categoryname":"Minerals","locName":"Rutile"},{"id":128924326,"name":"Serendibite","legality":"","buyPrice":0,"sellPrice":389988,"meanPrice":223817,"demandBracket":3,"stockBracket":0,"stock":0,"demand":8,"statusFlags":[],"categoryname":"Minerals","locName":"Serendibite"},{"id":128049160,"name":"Uraninite","legality":"","buyPrice":0,"sellPrice":1589,"meanPrice":989,"demandBracket":3,"stockBracket":0,"stock":0,"demand":13685,"statusFlags":[],"categoryname":"Minerals","locName":"Uraninite"},{"id":128049214,"name":"Beer","legality":"","buyPrice":0,"sellPrice":763,"meanPrice":406,"demandBracket":3,"stockBracket":0,"stock":0,"demand":13164,"statusFlags":[],"categoryname":"Narcotics","locName":"Beer"},{"id":128049216,"name":"Liquor","legality":"","buyPrice":0,"sellPrice":1284,"meanPrice":794,"demandBracket":3,"stockBracket":0,"stock":0,"demand":1084,"statusFlags":[],"categoryname":"Narcotics","locName":"Liquor"},{"id":128049215,"name":"Wine","legality":"","buyPrice":0,"sellPrice":849,"meanPrice":486,"demandBracket":3,"stockBracket":0,"stock":0,"demand":4699,"statusFlags":[],"categoryname":"Narcotics","locName":"Wine"},{"id":128066403,"name":"Drones","legality":"","buyPrice":101,"sellPrice":100,"meanPrice":101,"demandBracket":0,"stockBracket":3,"stock":1486,"demand":1,"statusFlags":[],"categoryname":"NonMarketable","locName":"Drones_Name"},{"id":128732185,"name":"AncientCasket","legality":"","buyPrice":0,"sellPrice":7932,"meanPrice":7975,"demandBracket":3,"stockBracket":0,"stock":0,"demand":30,"statusFlags":[],"categoryname":"Salvage","locName":"Ancient Casket"},{"id":128888499,"name":"AncientKey","legality":"","buyPrice":0,"sellPrice":13110,"meanPrice":13161,"demandBracket":3,"stockBracket":0,"stock":0,"demand":8,"statusFlags":[],"categoryname":"Salvage","locName":"Ancient Key"},{"id":128732184,"name":"AncientOrb","legality":"","buyPrice":0,"sellPrice":8980,"meanPrice":9024,"demandBracket":3,"stockBracket":0,"stock":0,"demand":30,"statusFlags":[],"categoryname":"Salvage","locName":"Ancient Orb"},{"id":128732183,"name":"AncientRelic","legality":"","buyPrice":0,"sellPrice":13110,"meanPrice":13161,"demandBracket":3,"stockBracket":0,"stock":0,"demand":30,"statusFlags":[],"categoryname":"Salvage","locName":"Ancient Relic"},{"id":128732186,"name":"AncientTablet","legality":"","buyPrice":0,"sellPrice":8980,"meanPrice":9024,"demandBracket":3,"stockBracket":0,"stock":0,"demand":30,"statusFlags":[],"categoryname":"Salvage","locName":"Ancient Tablet"},{"id":128732188,"name":"AncientTotem","legality":"","buyPrice":0,"sellPrice":10840,"meanPrice":10888,"demandBracket":3,"stockBracket":0,"stock":0,"demand":30,"statusFlags":[],"categoryname":"Salvage","locName":"Ancient Totem"},{"id":128732187,"name":"AncientUrn","legality":"","buyPrice":0,"sellPrice":6209,"meanPrice":6250,"demandBracket":3,"stockBracket":0,"stock":0,"demand":30,"statusFlags":[],"categoryname":"Salvage","locName":"Ancient Urn"},{"id":128672159,"name":"AntiqueJewellery","legality":"","buyPrice":0,"sellPrice":159473,"meanPrice":159579,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Antique Jewellery"},{"id":128672129,"name":"AssaultPlans","legality":"","buyPrice":0,"sellPrice":378,"meanPrice":777,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Assault Plans"},{"id":128672127,"name":"ComercialSamples","legality":"","buyPrice":0,"sellPrice":678,"meanPrice":701,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Commercial Samples"},{"id":128672811,"name":"DamagedEscapePod","legality":"","buyPrice":0,"sellPrice":13110,"meanPrice":13136,"demandBracket":3,"stockBracket":0,"stock":0,"demand":17,"statusFlags":[],"categoryname":"Salvage","locName":"Damaged Escape Pod"},{"id":128682049,"name":"DataCore","legality":"","buyPrice":0,"sellPrice":3660,"meanPrice":3689,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Data Core"},{"id":128672131,"name":"DiplomaticBag","legality":"","buyPrice":0,"sellPrice":461,"meanPrice":945,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Diplomatic Bag"},{"id":128672161,"name":"EarthRelics","legality":"","buyPrice":0,"sellPrice":11548,"meanPrice":11587,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Earth Relics"},{"id":128672124,"name":"EncriptedDataStorage","legality":"","buyPrice":0,"sellPrice":1206,"meanPrice":1229,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Encrypted Data Storage"},{"id":128672130,"name":"EncryptedCorrespondence","legality":"","buyPrice":0,"sellPrice":689,"meanPrice":712,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Encrypted Correspondence"},{"id":128682055,"name":"FossilRemnants","legality":"","buyPrice":0,"sellPrice":10840,"meanPrice":10878,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Fossil Remnants"},{"id":128672162,"name":"GeneBank","legality":"","buyPrice":0,"sellPrice":15889,"meanPrice":13151,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Gene Bank"},{"id":128672315,"name":"GeologicalSamples","legality":"","buyPrice":0,"sellPrice":2262,"meanPrice":777,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Geological Samples"},{"id":128672135,"name":"Hostage","legality":"","buyPrice":0,"sellPrice":24988,"meanPrice":24945,"demandBracket":3,"stockBracket":0,"stock":0,"demand":17,"statusFlags":[],"categoryname":"Salvage","locName":"Hostages"},{"id":128672136,"name":"LargeExplorationDataCash","legality":"","buyPrice":0,"sellPrice":256278,"meanPrice":222973,"demandBracket":3,"stockBracket":0,"stock":0,"demand":148,"statusFlags":[],"categoryname":"Salvage","locName":"Large Survey Data Cache"},{"id":128682051,"name":"MysteriousIdol","legality":"","buyPrice":0,"sellPrice":16938,"meanPrice":16982,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Mysterious Idol"},{"id":128672125,"name":"OccupiedCryoPod","legality":"","buyPrice":0,"sellPrice":30396,"meanPrice":30359,"demandBracket":3,"stockBracket":0,"stock":0,"demand":17,"statusFlags":[],"categoryname":"Salvage","locName":"Occupied Escape Pod"},{"id":128672126,"name":"PersonalEffects","legality":"","buyPrice":0,"sellPrice":9559,"meanPrice":9541,"demandBracket":3,"stockBracket":0,"stock":0,"demand":17,"statusFlags":[],"categoryname":"Salvage","locName":"Personal Effects"},{"id":128672134,"name":"PoliticalPrisoner","legality":"","buyPrice":0,"sellPrice":6209,"meanPrice":6242,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Political Prisoners"},{"id":128672160,"name":"PreciousGems","legality":"","buyPrice":0,"sellPrice":139520,"meanPrice":139619,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Precious Gems"},{"id":128672132,"name":"ScientificResearch","legality":"","buyPrice":0,"sellPrice":15150,"meanPrice":1034,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Scientific Research"},{"id":128672133,"name":"ScientificSamples","legality":"","buyPrice":0,"sellPrice":17403,"meanPrice":1184,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Scientific Samples"},{"id":128672137,"name":"SmallExplorationDataCash","legality":"","buyPrice":0,"sellPrice":21678,"meanPrice":10878,"demandBracket":3,"stockBracket":0,"stock":0,"demand":148,"statusFlags":[],"categoryname":"Salvage","locName":"Small Survey Data Cache"},{"id":128682054,"name":"SpacePioneerRelics","legality":"","buyPrice":0,"sellPrice":8438,"meanPrice":8474,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Space Pioneer Relics"},{"id":128672128,"name":"TacticalData","legality":"","buyPrice":0,"sellPrice":386,"meanPrice":794,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Tactical Data"},{"id":128672163,"name":"TimeCapsule","legality":"","buyPrice":0,"sellPrice":4888,"meanPrice":4919,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Time Capsule"},{"id":128666752,"name":"USSCargoBlackBox","legality":"","buyPrice":0,"sellPrice":19272,"meanPrice":19245,"demandBracket":3,"stockBracket":0,"stock":0,"demand":17,"statusFlags":[],"categoryname":"Salvage","locName":"Black Box"},{"id":128666757,"name":"USSCargoRareArtwork","legality":"","buyPrice":0,"sellPrice":2593,"meanPrice":5217,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Rare Artwork"},{"id":128672810,"name":"UnstableDataCore","legality":"","buyPrice":0,"sellPrice":3096,"meanPrice":3123,"demandBracket":3,"stockBracket":0,"stock":0,"demand":72,"statusFlags":[],"categoryname":"Salvage","locName":"Unstable Data Core"},{"id":128672123,"name":"WreckageComponents","legality":"","buyPrice":0,"sellPrice":7932,"meanPrice":7983,"demandBracket":3,"stockBracket":0,"stock":0,"demand":141,"statusFlags":[],"categoryname":"Salvage","locName":"Wreckage Components"},{"id":128049231,"name":"AdvancedCatalysers","legality":"","buyPrice":0,"sellPrice":3318,"meanPrice":3118,"demandBracket":3,"stockBracket":0,"stock":0,"demand":14551,"statusFlags":["powerplay"],"categoryname":"Technology","locName":"Advanced Catalysers"},{"id":128049672,"name":"BioReducingLichen","legality":"","buyPrice":0,"sellPrice":1487,"meanPrice":1234,"demandBracket":3,"stockBracket":0,"stock":0,"demand":85590,"statusFlags":["powerplay"],"categoryname":"Technology","locName":"Bioreducing Lichen"},{"id":128049226,"name":"HazardousEnvironmentSuits","legality":"","buyPrice":0,"sellPrice":788,"meanPrice":575,"demandBracket":3,"stockBracket":0,"stock":0,"demand":67694,"statusFlags":["powerplay"],"categoryname":"Technology","locName":"H.E. Suits"},{"id":128049671,"name":"ResonatingSeparators","legality":"","buyPrice":0,"sellPrice":6424,"meanPrice":6059,"demandBracket":3,"stockBracket":0,"stock":0,"demand":8258,"statusFlags":["powerplay"],"categoryname":"Technology","locName":"Resonating Separators"},{"id":128682044,"name":"ConductiveFabrics","legality":"","buyPrice":969,"sellPrice":906,"meanPrice":657,"demandBracket":0,"stockBracket":1,"stock":432,"demand":1,"statusFlags":[],"categoryname":"Textiles","locName":"Conductive Fabrics"},{"id":128682045,"name":"MilitaryGradeFabrics","legality":"","buyPrice":1231,"sellPrice":1176,"meanPrice":911,"demandBracket":0,"stockBracket":1,"stock":199,"demand":1,"statusFlags":[],"categoryname":"Textiles","locName":"Military Grade Fabrics"},{"id":128049193,"name":"SyntheticFabrics","legality":"","buyPrice":1705,"sellPrice":1435,"meanPrice":359,"demandBracket":0,"stockBracket":1,"stock":894,"demand":1,"statusFlags":[],"categoryname":"Textiles","locName":"Synthetic Fabrics"},{"id":128049244,"name":"Biowaste","legality":"","buyPrice":153,"sellPrice":92,"meanPrice":342,"demandBracket":0,"stockBracket":1,"stock":231,"demand":1,"statusFlags":[],"categoryname":"Waste ","locName":"Biowaste"},{"id":128049246,"name":"ChemicalWaste","legality":"","buyPrice":0,"sellPrice":722,"meanPrice":676,"demandBracket":3,"stockBracket":0,"stock":0,"demand":1158,"statusFlags":[],"categoryname":"Waste ","locName":"Chemical Waste"},{"id":128049248,"name":"Scrap","legality":"","buyPrice":0,"sellPrice":763,"meanPrice":253,"demandBracket":3,"stockBracket":0,"stock":0,"demand":1646,"statusFlags":[],"categoryname":"Waste ","locName":"Scrap"},{"id":128049236,"name":"NonLethalWeapons","legality":"","buyPrice":0,"sellPrice":2373,"meanPrice":1927,"demandBracket":3,"stockBracket":0,"stock":0,"demand":268,"statusFlags":[],"categoryname":"Weapons","locName":"Non-Lethal Weapons"},{"id":128049235,"name":"ReactiveArmour","legality":"","buyPrice":0,"sellPrice":2841,"meanPrice":2220,"demandBracket":3,"stockBracket":0,"stock":0,"demand":635,"statusFlags":[],"categoryname":"Weapons","locName":"Reactive Armour"}]}']
Traceback (most recent call last):
  File "C:\Trade-Dangerous-master\trade.py", line 107, in <module>
    main(sys.argv)
  File "C:\Trade-Dangerous-master\trade.py", line 80, in main
    results = cmdenv.run(tdb)
  File "C:\Trade-Dangerous-master\commands\commandenv.py", line 81, in run
    return self._cmd.run(results, self, tdb)
  File "C:\Trade-Dangerous-master\commands\import_cmd.py", line 124, in run
    if not plugin.run():
  File "C:\Trade-Dangerous-master\plugins\edapi_plug.py", line 755, in run
    saveFile.write('{{"profile":{}, "market":{}, "shipyard":{}}}'.format(*api.text))
IndexError: tuple index out of range

C:\Trade-Dangerous-master>
eyeonus commented 5 years ago

Okay, update TD and you shouldn't have any more problems.

Listatta commented 5 years ago

Docked at Farseer Inc in Deciat. clicked on cmdr profile and got:

Command line: C:\Trade-Dangerous-master\trade.py import -P edapi -O tdh
API response saved to: tmp\tdh_profile.json

with pop up error "unhanded exception has occurred in your application. If you click continue the application will ignore the error and attempt to continue. If you click quit, the application will close immediately. Cannot access child value on Newtonsoft.Json.Ling.JProperty. details:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: Cannot access child value on Newtonsoft.Json.Linq.JProperty.
   at Newtonsoft.Json.Linq.JToken.get_Item(Object key)
   at TDHelper.MainForm.UpdateCommanderAndShipDetails()
   at TDHelper.MainForm.BackgroundWorker7_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
   at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
TDHelper
    Assembly Version: 2.1.0.2
    Win32 Version: 2.1.0.2
    CodeBase: file:///C:/TD%20Helper/TDHelper.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3314.0 built by: NET472REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data.SQLite
    Assembly Version: 1.0.109.0
    Win32 Version: 1.0.109.0
    CodeBase: file:///C:/TD%20Helper/System.Data.SQLite.DLL
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Deployment
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
SharpConfig
    Assembly Version: 3.2.8.0
    Win32 Version: 3.2.8.0
    CodeBase: file:///C:/TD%20Helper/SharpConfig.DLL
----------------------------------------
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Xml.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Data.DataSetExtensions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
----------------------------------------
Newtonsoft.Json
    Assembly Version: 11.0.0.0
    Win32 Version: 11.0.2.21924
    CodeBase: file:///C:/TD%20Helper/Newtonsoft.Json.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

so clicking on continue dismisses error and doesn't crash program :)

So one problem solved only to find another? But as for me, there is a pillow and blanket screaming my name but will check back after a nap and cup of tea

eyeonus commented 5 years ago

That's totally a TDH2 thing, so it's up to Mark to fix whatever that is.

At a guess, I'd say it's probably due to TDH2 expecting to find a "profile", "market", and "shipyard" section with all the fields filled out, and that's not what it's getting. The fix on TD's end is simply to not include the not-always-available-and-isn't-needed-anyway "market" and "shipyard" sections when writing the tdh profile file.

The good thing is, TDH2 only actually needs the "profile" part, the other two sections are useless (to TDH2).

Example (showing just the top-level structure underneath "profile") :

{
    "profile":{
        "commander":{
            <blah>
        },
        "lastSystem":{
            <blah>
        },
        "lastStarport":{
            <blah>
        },
        "ship":{
            <blah>
        },
        "ships":{
            <blah>
        }
    }
}
MarkAusten commented 5 years ago

@Listatta, would you please attach the "tdh_profile.json" to your next comment. I'll need the file to be able to reproduce the error you are now getting in order to fix the problem.

Thanks.

PharaohJoe commented 5 years ago

tdh_profile.txt

I'm getting the exact same error as @Listatta. "Cannot access child value on Newtonsoft.Json.Ling.JProperty"

Listatta commented 5 years ago

Morning everyone! The only tdh_profile file I have on my computer is the one in the trade-dangerous-master/tmp folder.

and of course github doesn't support .json files so.... tdh_profile.zip

Hope it helps

MarkAusten commented 5 years ago

@PharaohJoe: thanks for the text file. @Listata: thanks for the file.

I'll take a look at this later on today.

eyeonus commented 5 years ago

Listatta's is inaccurate, BTW. It still contains the market and shipyard sections, which means Listatta isn't on the latest TD commit, but the one immediately before it.

PharoahJoe's is the one to look at.

MarkAusten commented 5 years ago

Gentlemen,

I believe that with the recent work done by eyeonus and myself, the issue you have reported is now fixed. You should ensure that both tradedangerous and TDH2 are updated to the latest version, c29c9d0 and v2.1.0.3.

Thanks.