Page 1 of 2 12 Last
Results 1 to 15 of 26

Thread: TDGUI: lightweight GUI for TradeDangerous

  1. #1

    TDGUI: lightweight GUI for TradeDangerous

    Hi all! I just released my lightweight GUI for TradeDangerous that I've been working on. It's not a full GUI, it just shows the TradeDangerous output in a scrollable window, but it's easier to use than the command line (at least for me ). It also has full auto-completion when typing system/station names and commodity items, and it can keep a log of your system jumps to a logfile (if enabled in the Settings tab). More information is in the readme.txt in the zip.

    It's written in C#, so it's Windows-only and requires Microsoft .NET Framework 4.5.1. You just drop it into your TradeDangerous folder and go. Screenshot is below:

    Attachment 16359

    There are a few other things I want to add to the next version, including a tab to enter or update station data. You can download TDGUI from my site's download page here.

    Happy Flying!

  2. #2
    Hi all,

    I just released the new 1.5 version of TDGUI. The release notes are below:

    • Added code to read the TradeDangerous database directly via SQLite 3.8.6 DLL now bundled with the EXE. This also allows TDGUI to read system, station, item, and price data directly from TradeDangerous.
    • Updated station drop-down tooltips to show the price data age for that station.
    • Added recent systems/stations popup menus for all system and station comboboxes.
    • Added tooltip for each 'Current' button showing the current system.
    • Implemented 'Auto-copy system names to clipboard for trade routes' feature (disabled by default; it is enabled via a checkbox on the settings page).
    • Added code to automatically write a newline between each hop's details for 'Trade Route' and 'Trade To' output to make it easier to read.
    • Added code to automatically write a space between the station distance number and the "ls" suffix in the 'Trade Route' and 'Trade To' output to make it easier to read. e.g., "(606ls/star, ..." becomes "(606 ls/star, ...".
    • Updated the 'Log System Jumps to Server' feature to send the jump distance in the 'Data' hash alongside the From_System and To_System parameters.
    • Now shows the distance between the 'From' and 'To' stations on the 'Nav' and 'Trade To' tabs.
    • Updated system jump logging to show the distance jumped.
    • Updated to use the new --direct switch in TradeDangerous for 'Trade To' when Hops == 1.
    • Added new 'Trade Info' button on the 'Trade To' tab that invokes [ trade <from station> <to station>].
    • Implemented 'Automatically check for TDGUI updates' feature.
    • Added 'Avoid' option to 'Trade Route' and 'Trade To' tabs.

    My favorite feature in the new version is the 'Auto-copy system names to clipboard for trade routes' option: if this setting is enabled TDGUI parses the output of the TradeDangerous 'Trade Route' and 'Trade To' commands and stores a jump list for the route. Then each time you jump to a new star system TDGUI automatically copies the next system in the route to the Windows clipboard so you can easily paste the system name into the in-game Galaxy Map (using CTRL-V) -- no more manually typing in your next jump destination in the Galaxy Map, you just hit CTRL-V and go.

    New screenshot is below:

    Name:  tdgui-1.5.png
Views: 466
Size:  84.9 KB

    As always, you can get the latest version of TDGUI from my download page.

  3. #3
    This is fantastic, thank you! Would it be possible to add an option to the GUI to output results to the X52 Pro MDF? I know it can be done from the command line and it would be great if the GUI supported that as well (and includes the fix that allows the MFD button presses to register to cycle between steps)

  4. #4
    Sure, I'll add a checkbox for that for the next version. I'll PM you a link to a prerelease build in the meantime.

  5. #5
    First time running you program and I am getting this error. I have .NET fully updated.

  6. #6
    According to the error message TDGUI.exe could not find System.Data.SQLite.dll. Did you extract the TDGUI zip file to your TradeDangerous folder? i.e., all these files must exist in the same directory:


  7. #7
    I encountered the same issue as LeoKesler. I did extract all files into my TradeDangerous directory, and am running TDGUI.exe as Administrator. I checked permissions on all the DLLs to make sure nothing was being blocked. Here's a snippet of my TD directory:
    Attachment 24422

    BTW I am running this in Win 8.1 and .NET is fully up-to-date.

  8. #8
    Hmm, can you please try installing the 32-bit Visual Studio 2013 Redistributable package? The link is and the file is vcredist_x86.exe. I suspect it needs MSVCR120.dll, which is installed by the redistributable package. If that solves the issue I'll update the install docs.

  9. #9
    Love this UI , +rep for the work , started to make my life a load better trying to use TradeDangerous

  10. #10
    Originally Posted by dbeachy1 View Post (Source)
    Sure, I'll add a checkbox for that for the next version. I'll PM you a link to a prerelease build in the meantime.
    That would be amazing. When do you think you can release the next version? I might finally have a use for that MFD!

  11. #11
    I have the UI for the X52 implemented and I've been doing some experimenting here with the --x52-pro switch with TradeDangerous, including running it under TDGUI with my X52 Pro joystick. If I am reading the TradeDangerous docs correctly the --x52-pro switch requires the --checklist switch as well, and so then TD outputs the current step in the checklist to the X52's MFD. However, none of the X52 MFD buttons or scroll wheels advance the checklist to the next step (???), so the only way to advance the checklist is to alt-tab back out of the game and press Enter on the console. (I have the same results if I run TradeDangerous without TDGUI.)

    Assuming everything I am seeing with TradeDangerous is working as designed, then the tricky part is that in order to advance the checklist to the next step the user has to manually press Enter in the console window -- and under TDGUI there is no console window in which to press Enter.

    The upshot of all this is that there is no simple way for the user to see the checklist in the TDGUI window nor press Enter to advance it. The ideal (and IMO, the correct) solution would be if TradeDangerous would advance the checklist when the user rolls the scroll wheel on the X52, but that simply doesn't work (for me, at least). If the pilot can't scroll through the checklist via the X52's scroll wheel it makes that feature pretty useless in-game. Is this a known TD issue?? Am I missing something?

  12. #12
    Sorry for the late response, RL called yes that did the trick, your GUI now works. I'll play with it a bit, now checking the 'Settings' tab so that I can get it configured to operate properly with my set-up. Thanks!

  13. #13
    Great! I updated the readme file with the details and uploaded the new TDGUI zip to my Web site. Thanks for the heads-up!

  14. #14
    I wish I would have found this two days again. Just found the program a couple days ago and spent my last game session perfecting using the python scripts with the Gitbash. I'm currently at work so I cant download the program without getting fired lol.

    Is there options for --insurance and --ls-max?

    The first time I used TD it sent me to a station that was waaaay out there and took about 10 mins to get to it. Thanks!

  15. #15
    Originally Posted by Trocx View Post (Source)
    Is there options for --insurance and --ls-max?

    The first time I used TD it sent me to a station that was waaaay out there and took about 10 mins to get to it. Thanks!
    It doesn't have those yet but I'll add them for the next TDGUI patch release. I'll add those two options and PM you a link to a beta version in an hour or two.

Page 1 of 2 12 Last