r/X4Foundations • • 13d ago • Bravo 1

Update on my X4 planner: it now reads your save and tells you what’s wrong with your empire (runs in the browser, no download)

A couple of months ago I shared a little production-chain planner, and the most common question was basically “how is this different from Station Calculator or the station planners?” Fair question. Back then the honest answer was “it’s a worse version” lol. So I kept working on it, and it’s turned into something pretty different.

The short version: station planners help you design one station. This looks at your whole empire as it actually is in your save.

You load your save file and it reads every station you own: modules, workforce, stock, trade prices, your ships, and the game’s own trade log. Then it tells you stuff the game doesn’t really show in one place:

  • What to fix first. A ranked list like “add habitats at 27 stations: +28M/h”, “you need about 27 more ore miners”, “adjust these 4 prices”.
  • What’s actually broken. Stalled modules and what they’re waiting for, stock about to run out, full storage, stations short on workers.
  • Mining coverage. How much ore, silicon and gas you use versus what your miners actually deliver.
  • Logistics. If you run distribution hubs, it shows what flows in and out, how many traders work each hub, and which factories still run their own transporters.
  • Idle ships. Freighters and miners sitting on Wait or stuck making no trades.
  • Your prices versus the NPC market in your universe, not wiki averages.
  • What your market wants. Wares NPCs are short of, and what one module would earn.
  • Real earnings from the trade log, next to the estimate.
  • Missions and blueprints. What you’re on (with progress), what’s on offer, and which blueprints you’re missing and who sells them.

The original chain planner is still there too. Pick a ware, set how much you want, and it works out every input down to raw materials, with race recipes and sunlight. Now it also shows what your save says, like which of your factories are stalled.

And there’s a silly little empire rank, from Space Toddler to Super Mega Duper Huge Empire, with badges, because why not.

No download anymore: it runs right in your browser. Your save is read on your own computer and never uploaded anywhere. It works best on a desktop or a second monitor next to the game.

👉 https://arsarsar.github.io/X4Foundations_FactoryStationsTracker/

It’s free and open source (MIT) if anyone wants to poke at it or send a PR: https://github.com/ArsArsAr/X4Foundations_FactoryStationsTracker

It’s still a hobby project, so let me know if you hit bugs or have ideas. Fan-made, not affiliated with Egosoft.

99 Upvotes

21 comments sorted by

5

u/magniciv 13d ago

How do you measure how mouch the miners deliver if they are not assigned to a specific station?

(so they are on local automine to supply multiple stations)

4

u/Patternoise 12d ago

Good question! It doesn’t rely on assignments at all. X4 keeps a trade log in the save covering roughly the last in-game day, and every time a miner drops off ore it’s logged as a trade: which ship, which station, what ware, how much.

So the tool just adds up every delivery your mining ships made to any of your stations. Assigned miners, local auto-mine, advanced auto-mine, it doesn’t matter, they all show up. It goes by the ship’s current order, so a mining ship you’ve set to trade (hauling ore between stations) isn’t counted as mining, otherwise the same ore would get counted twice.

If your auto-miners sell to NPC stations instead, that ore doesn’t count toward covering your own stations (you never got it), but the credits still show up under actual earnings.

The one catch is that it’s a snapshot of that last stretch of the log, so if you just added a bunch of miners, play a bit and load a newer save for the numbers to catch up.

4

u/smdvogrin 12d ago

Very cool! A good deal of data that I needed to see about some of what is going on.

One question - how you estimate how many more miners are needed for a station in your recommendations? Is it based on an average amount coming in from the existing miners, or do you have some number of "expected mining per hour" that you're basing that recommendation on?

2

u/Patternoise 12d ago

Good question! It’s based on your own miners, not a fixed number. The tool looks at the trade log in your save (roughly the last in-game day), adds up everything your mining ships delivered, and works out the average per miner. It does that by cargo volume, separately for solid miners (ore, silicon, ice) and gas miners (hydrogen, helium, methane).

Then for each ware it takes what your stations need (with every module running, plus what the workers eat), subtracts what your miners delivered and what you bought from NPCs, and divides the gap by what one of your miners brings in per hour. That’s the “about N more miners” number.

So it’s an average of your fleet as it is: if you mostly run M miners in far-away fields and then add L miners in a rich sector next door, you’ll need fewer than it says. It’s also an empire-wide number per ware, not per station, since miners on auto-mine feed whoever needs it anyway.

On a real note, that's actually a good find. I just updated it so it says both how many M size OR L size miners you need.

2

u/excelentPolio 13d ago

Cool!
Apparently I am Cluster Baron with 39,7M credits per hour. |
Is there any other status which i can reach?

3

u/Patternoise 12d ago

You got 13 more levels to go 😄

1

u/excelentPolio 10d ago

Oh man I thought I am done with this game. Turns out I am half way there...
Let mes see how much vacation days I still have left this year...

Anyway, that's a great work creating a tool like this. Really great! Thank you!

9

u/Shadrach77 13d ago

Galactic Industrialist. Level 8 of 20. I've got over 2000 hours in this game. I guess I'm not getting any sleep tonight.

8

u/msc0nfig2 13d ago

This is cool!

8

u/Flash_Lando 13d ago

Just had a quick look, not playing right now but at a glance it looks like exactly what I've been looking for.

"Here's what you should fix. Here's what you're doing wrong."

Brilliant!

7

u/TheZaal 13d ago

I know how I'm messing up most of my stations. It's nice to get confirmation of how badly I'm messing up. Good tool.

4

u/crick14 13d ago

Sounds great, gonna try it when I get home tonight

3

u/Mikluu 13d ago

I have to say this is very impressive work! But I also have to say it is not for me. This is the very core of the gameplay, and you are doing away with it almost entirely - can't have that.

2

u/Nuxi0477 13d ago

This is amazing. I love seeing stats and improvements. Well done!

2

u/Artess 13d ago

I really like seeing this analysis of the universe. Something that would surely be readily available in an advanced technological society, given that all prices are known.

2

u/adrielluiz5 11d ago

This is really good! I have 32 stations with 472 production modules, making around 31M credits per hour (Cluster Baron, level 7), and had no idea one of my miners hadn't made a single trade in the last 25 hours.

I probably would never have noticed this on my own lol.

Thanks for making this!

3

u/Sufficient-Bed6510 4d ago

Wondering how many IRL Big corporations that had the exactly same problem. Someone not doing anything for years and just never getting noticed. I’m pretty sure it’s more common then one wish

2

u/AdOther4530 10d ago

Commenting just to save this post for my next playthrough

2

u/evemeatay 13d ago

Well, I guess I’m firing up x4 again

1

u/Veetus 9d ago

Love this!

1

u/JBrody 8d ago

This is awesome!