The UI doesnt let me search for trades in ways I wanted to. So I made X4Trade, an app to let me do it anyway!

This forum is the ideal place for all discussion relating to X4. You will also find additional information from developers here.

Moderator: Moderators for English X Forum

InternetCrank
Posts: 4
Joined: Thu, 18. Jul 24, 15:07
x4

The UI doesnt let me search for trades in ways I wanted to. So I made X4Trade, an app to let me do it anyway!

Post by InternetCrank »

Hi, nice to be here.

You might remember me as the guy that made some resource maps and posted them up for people to view them here:

https://x4-maps.neocities.org/

One thing that started irritating me was I was spending too much time trying to find good trades and there wasn't a good way to search for them in the games UI.

I was always trying to find a trade and sectors were popping up as results that were nearby on the UI but far away in number of jumps, and there's no visibility on big differences between buys and sells on the map, if there are multiple options to buy from it only lists one and a few more things.

So at the weekend I did something about it. I had a look in the save files and reverse engineered them as best I could (don't do this to yourself by the way, egosoft, how many different things can you call connection or component??), and I wrote a little console app that lets me trawl my save file for things I'm interested in.

Search for
  • All sellers/buyers within X sectors of a sector
  • Max % profit
  • Max profit / m3
  • Total available profit on a route
  • Net supply/demand for ware by sector
  • Net supply/demand in a sector by ware
  • Option exists if you want to toggle the ability to search stations you haven't discovered yet (off by default)
Things I haven't done (yet?)
  • The 2-5% reputation discounts aren't accounted for, I'm not sure how to map the reputation in the save file to a %, so didnt
  • I havent filtered out stations from your enemies, or your blocklists, as I don't have any in my game and am lazy
  • I havent filtered out by how recently you visited the station/have visibility on it, same as above
I leave it running in another window, hit quicksave, hit refresh in the app and a minute later its ready to search for profitsss.

Give it a go, I've put it up as a link on the page above. You can put requests for features and so on below but I'll most likely not do anything about it.

Before a second round of people complain my maps are laid out in weird places, yes, I know, thats the point. Its was to learn the connections between the sectors better, so its layout is completely random every time. Sometimes it will look pretty much like the map you're used to, sometimes it will be upside down, sometimes bits of it will be moved around in surprising ways. Given two or three minutes, you can drag all the nodes to the same positions you are used to though and just leave it open like that in a browser forever. It's actually a good exercise, doing it will make you learn how it all fits together a bit better.
donzi
Posts: 1258
Joined: Mon, 12. Feb 07, 14:29
x4

Re: The UI doesnt let me search for trades in ways I wanted to. So I made X4Trade, an app to let me do it anyway!

Post by donzi »

:) This looks really great, thanks!

Manual trades in X4 I think has been baked in too deeply with visual/map/matchmaking ideas to be really useful. It discards the keep it simple concept.

(oops, see mining has been considered -- TL;DR issues here.. lol)
..maybe you can expand/suppliment this tool for mining data too? it's equally a PITA and even less functional/useful.
EG: why can't it set filter to mining target type (ore, sil, etc) or point to where the resource is on the map?! :roll:
sceic
Posts: 19
Joined: Sat, 5. Jan 19, 11:04
x4

Re: The UI doesnt let me search for trades in ways I wanted to. So I made X4Trade, an app to let me do it anyway!

Post by sceic »

google say:Sorry, this file is infected with a virus.

Only the owner can download a file infected with a virus.
donzi
Posts: 1258
Joined: Mon, 12. Feb 07, 14:29
x4

Re: The UI doesnt let me search for trades in ways I wanted to. So I made X4Trade, an app to let me do it anyway!

Post by donzi »

I was able to download it the other day. Today I see the same google block as you sceic..

Ironic, with all the google data mining and internet infestation it won't provide some detail on the alleged virus or what AV is making the accusation.. I guess there is money in that for google too.
QuasiMod
Posts: 6
Joined: Sun, 14. May 06, 15:05
x3tc

Re: The UI doesnt let me search for trades in ways I wanted to. So I made X4Trade, an app to let me do it anyway!

Post by QuasiMod »

Can someone please share this tool by some other means? I'd love to try it out, but google does not let me download it (infected???). Source code would be wonderful, but I won't push my luck here.
Thanks
QuasiMod
Posts: 6
Joined: Sun, 14. May 06, 15:05
x3tc

Re: The UI doesnt let me search for trades in ways I wanted to. So I made X4Trade, an app to let me do it anyway!

Post by QuasiMod »

Sorry for double posting and hijacking.
Did not get a response, so I made my own program.
My question was: What's the best deal in the universe? Now I know - kind of.
It's still in pre alpha, lacks features I want. Will post the source code sometime, but I'll make my own topic. This one is about x4trade, I'll try not to derail it further.

Return to “X4: Foundations”