New Trading Tool - Cmdr's Log v1.1!

Status
Thread Closed: Not open for further replies.
I'd love to do an Android version of this app, at least the general concept of having lists of commodities per station where you choose low/med/high for supply and demand. The fans on my machine go bananas when in windowed mode and I can't be bothered to tab out all the time. I guess I thought I'd ask here first out of principle, you never know :p
.
edit
repping either way :)
 
Last edited:
Maybe a small tutorial? Like how to put commodities in the list? There is also nothing listed in the dropdown boxes. I may not be doing something correctly.

I can do that for you since I'm not playing right now. :)

This all assumes you are using a windows machine not a Mac, and that you have a basic understanding of how to do simple file manipulation and text file editing using notepad. At the time of writing (version 1.3a) you need to download the most current .zip file (listed in the first message of this thread), and unzip it (I unzip it to desktop, you can put it wherever you like). You'll have a folder "Cmdr's Log" and inside it you'll see three files named Cmdr's Log.exe, commodity_data.txt, and station_data.txt. The app will also created a fourth file called system_data.txt which is where it records all the information you enter. The .exe file is the one you double click to make the program run, commodity_data.txt holds a list of all known commodities, and station_data.txt holds a list of three variables: economies, allegiances, and governments. You may add items to either of the .txt files as you see fit (while the app is NOT running) and they will appear in the app with two caveats: if you CHANGE EXISTING INFORMATION in the commodities_data.txt you must make THE SAME CHANGES in the system_data.txt file (assuming you've already entered one or more stations data), and you must follow THE SAME FORMAT as is already in the files.

To explain that, in the station data file you will see the following:


  • Station Data
    {
    Economies​
    {​
    "Item 1"
    "Item 2"
    "Item 3"​
    }

    Allegiances
    {​
    "Item 1"
    "Item 2"
    "Item 3"
    }

    Governments
    {​
    "Item 1"
    "Item 2"
    "Item 3"​
    }​
    }
You may change any of the "items" or add any items to the list as long as they stay within the brackets { } but you may not add any new groups.

Similarly the commodity file looks like this:

  • Commodities
    {
    Group Name
    {​
    "Item 1"
    "Item 2"
    "Item 3"​
    }
    Another Group Name
    {​
    "Item 1"
    "Item 2"
    "Item 3"​
    }​
    }

You may add groups, and add items to groups as you wish as long as you keep to this format, but CHANGING EXISTING ITEMS requires you to change the same items in the system data file. EG: If you rename "Slaves" to "ycats" in the commodity file you must find every instance of "Slaves" in the system file and change that to "ycats" as well.

To use it

The recommended method is to run ED in borderless mode and alt-tab to the cmdr's log app, or use a second computer, but whatever method works for you is fine. Double click the Cmdr's Log file to start the program, then start ED. You'll see the main window open but the System/Station list will be empty if this is the first time you've run it. In ED go to a station and open the commodity market, then alt-tab to the log. At the bottom of the list click "Add" and a new window will open asking for Star System and Station Name which you can enter here then press OK. (Note that if you're adding a second station at a previously visited system you can use the pulldown to select that system.) The Station you've entered should now appear on the list. You can also enter the station's Economy, Government, and Allegiance types and whether it has a black market, as well as your own notes by pressing the "Notes" button.

To enter commodities, left click the station name (and if you're not using a separate computer click "Data Entry Mode" below the middle column. This will open a window which will stay on top and allow you to see both ED and the window at the same time. Useful eh?). Now Look at the ED market window and if it says Animal Meat is in High Demand, right click Animal Meat on the log and select High Demand. If Biowaste is in Low Supply, copy that information to the log. (You can also use the radio buttons to set demand levels if you're not using the "data entry mode" window, this works well if you prefer keyboard entry instead of mouse). If you look at ED's system map and click on the station you'll find what items are prohibited there and you can enter these into the log as "Illegal!". You don't have to copy it all, you can copy as much or as little as you want. When you're finished press the "close" button if you're using the separate data entry window.

If you're returning to a previously visited station, quickly scan the market and the log to see if any items have changed. If so copy those changes across. It's a good idea to "refresh" all the items once you've checked them - to do this mark them all (clock the top one, then hold down shift and click the bottom one) and press "Mark Current", which will list them all as new entries. Again, only if you want.

Once you've entered a few stations it becomes usable. For simple trading runs highlight the station you're at in the left column. In the right column you can tell it to select High/Med/Low Supply/Demand products to trade - High to High gives the best profit generally. If it shows several commodities you can trade look in ED's market window and compare the "buy" and "galactic average" prices for those items - generally the item with the biggest difference will make you the best profit PER ITEM (but remember if you're short on money - it may be better to carry 10 cheaper items with a 200cr profit than one expensive one with a 500cr profit). If you want to go to a particular station (eg: you're at an industrial station and you get a mission to bring back fruit & veg, so you want an agricultural station but you don't want to go there empty) select it in the Pull Down in the right side. The window in the right will select goods that are sold in the station you're at and are bought in the station you wish to go to... and if you've selected to go to "anywhere" it will suggest the stations to go to for those trades. If you need a certain commodity (eg: for a mission) you can select that in your list and press "NEED" and it'll tell you stations which supply it. If you have a commodity you wish to get rid of, select it and press "HAVE" and it'll tell you who wants it.

That's pretty much it. You can set any items with no data in them to be "none" if you want, you can elect to hide items that are "not set" or have "none" if you wish. You can delete and rename stations (though I'm told there's some issues if you need to rename the system it's in if you put the wrong system - not done that myself). Oh and you can search through the station data and the notes you entered for a string in the top left corner.

Hope this helps. Have fun. :)
 
Protip!

Do NOT, I repeat, NOT run 2 or more instances of this tool simultaneously, enter a bunch of data in one of them, and then close then down at random ;o)

I just lost 2 hours of data, by shutting down a "rogue" one I had runningc, last.

If you happen to notice you've run 2 or more instances, shut down the "unimportant" ones first, and then, as the last instance of the program, the one you've changed data in.

Oh well, back to entering data ;o)
 
Last edited:
Nevermind on the tutorial. I found the one on page 5 of this thread and got it working. Also I had to delete my first extraction as no commodities were populating. It worked the second time. Thank you for the hard work on this.
 
Nice tool, good work :)

A few comments for 1.3:

I noticed when I add a new system+station, this new entry cannot be selected as a target in the drop down menu. I recon this is because the menu is only populated on program load - maybe reread the system file every time a new system is added?

Every time I add a new system+station not all default values are "Not set". Rather they seem random (some are "Not set", others are "MD", "LS" etc.). Looks like it's using garbage values, perhaps variables are not properly initialized?

Also, I added a few missing commodities to the commodities file. Will this be overwritten come the next update?
 
Thanks for all the continued updates! But please don't forget about the keyboard shortcuts. =)

Do NOT, I repeat, NOT run 2 or more instances of this tool simultaneously, enter a bunch of data in one of them, and then close then down at random ;o)
I just lost 2 hours of datac, by shutting down a "rogue" one I had runningc, last.

I guess running more than one instance with separate databases could work if you'd copy the whole folder to another location for each instance, thus duplicating the database files.
 
Last edited:
very time I add a new system+station not all default values are "Not set". Rather they seem random (some are "Not set", others are "MD", "LS" etc.). Looks like it's using garbage values, perhaps variables are not properly initialized?

Fixed in V1.3a. Link's on the first message in this thread.

Also, I added a few missing commodities to the commodities file. Will this be overwritten come the next update?

Only if you use the commodity file that comes with the new version. If you continue using your old commodity file, no.
 
You may add groups, and add items to groups as you wish as long as you keep to this format, but CHANGING EXISTING ITEMS requires you to change the same items in the system data file. EG: If you rename "Slaves" to "ycats" in the commodity file you must find every instance of "Slaves" in the system file and change that to "ycats" as well
Ok, say I'd previously updated my data file, created a new group called "Slaves" and a item called "Imperial Slaves", then used this for some systems.
Then I overwrite it with the new commodity file, containing group called "Slavery" and item called "Imperial Slaves". Then what happens?
Will the program crash as it cannot recognize the commodity names from the data file?
Will it list the now invalid data entries?
Will it simply ignore entries from the datafile which do not match valid entries in the commodities file?
Will it match "Slaves -> Imperial Slaves" with the new/proper "Slavery -> Imperial Slaves" and display normally?
 
Ok, say I'd previously updated my data file, created a new group called "Slaves" and a item called "Imperial Slaves", then used this for some systems.
Then I overwrite it with the new commodity file, containing group called "Slavery" and item called "Imperial Slaves". Then what happens?
Will the program crash as it cannot recognize the commodity names from the data file?
Will it list the now invalid data entries?
Will it simply ignore entries from the datafile which do not match valid entries in the commodities file?
Will it match "Slaves -> Imperial Slaves" with the new/proper "Slavery -> Imperial Slaves" and display normally?

No idea. At a guess I'd say it'd show you two groups called slavery and slaves, and rewrite the old group into the new file. Or it might just bomb out. Not sure. Why don't you try it and let us know. :)
 
Because the programmer can answer this one easily (if he has the time of course). Otherwise I'll give it a try, luckily data is easy to back up first :)

Well just tried it for the sh**s and giggles... renaming the group seems to do nothing. Not surprising as the group name's not referenced in the system data file. That does beg the question though, what happens if you have two items with identical names? Might ry that next. I also tried adding slaves to one of my station entries as in supply then renaming the item (not group) slaves to salves. When I started the program it showed salves as not set and no reference to slaves at all, but it didn't alter the slaves listing in the system data files. This means that the program is probably going through the list of commodities for each station and going "ok, item 1 is bananas. Station one do you have an entry for bananas? Yes, ok display HD. Next item is apples, station one do you have an entry for apples? No? Ok display "not set"". It doesn't care about erroneous entries and in fact won't see them because they never get "called" by the commodity file. At least that's how I'm guessing it's done.
 
first of all: thanks for that tool - well done :)

sry if its already been written - too lazy to read all posts:
i would like to have a simple history function to track my travel trough the galaxy - just a date/time, system name, station name, comment that logs into an extra file

and maybe a little section where we can put current notes which is not related to system data
 
Last edited:
i would like to have a simple history function to track my travel trough the galaxy - just a date/time, system name, station name, comment that logs into an extra file

This would be a really useful addition, if possible. I currently write this down on paper.
 
That does beg the question though, what happens if you have two items with identical names?
I recon it'd read the values for both and only display the latter match. Luckily this wont likely be an issue ever.
I also tried adding slaves to one of my station entries as in supply then renaming the item (not group) slaves to salves ... It doesn't care about erroneous entries and in fact won't see them because they never get "called" by the commodity file. At least that's how I'm guessing it's done.
That makes perfect sense, and it's the way I hoped it would work :) I recon the old, invalid data disappears from the file once you make a change and the file is rewritten.
 
That makes perfect sense, and it's the way I hoped it would work :) I recon the old, invalid data disappears from the file once you make a change and the file is rewritten.

You'd hope so, but no. In my case I was left with an erroneous, ignored entry for "slaves" and a current entry for "salves".
 
This a must have tool mate, thanks for all your hard work on this.

[Feature Requests]

1. Add options so we can log Mining Rings etc type or ring & level of quality.
2. Blackmarket Available so its searchable. (Currently im listing in Notes, but I have over 100 systems in it now so its a chore to look for them).
 
1. Add options so we can log Mining Rings etc type or ring & level of quality.

While that's not STRICTLY in it, you could do that now in a roundabout way. Add an extra group in the commodity_data.txt file called Ores, then add the commodities Gold Ore, Silver Ore, Palladium Ore etc, then add asteroid belts the way you would stations eg: "Rasalhague System/Belt 1A" and put in the minerals you find there. You could even add a group called "Asteroid Belt" to the Economy list in station_data.txt

[edit] or even just use the existing mineral entries, which would then tell you the best planets to sell the minerals you're mining at too.
 
Last edited:
Status
Thread Closed: Not open for further replies.
Back
Top Bottom