Logistic network statistics

by priziv

Scans all drones for a certain time, collects data into a summary table, generates result about the load on the logistics network

Utilities
8 months ago
1.1
143
Logistic network

i Support multi-surfaces (Space Exploration)

7 months ago

I've been looking for a mod like this for awhile, cheers!

In my Space Exploration save, I have Robot Attrition enabled, which means I want to offload heavier bot workloads over to trains/belts, so statistics like this are great for prioritizing those replacements. However, v0.0.4 only scans the first surface (Nauvis).

I've extended your work to support:
- scanning the current viewed surface (eg. planet)
- per-player scans + prints
- multiple scans concurrently (per player/surface), so I can separately scan Nauvis Orbit and another planet.

Here's the updated control.lua if you want to use it for a v0.0.5: https://gist.github.com/Nebual/dac57f09552b6af41f21f0341c223a3f

7 months ago

Unfortunately, the game API does not provide events for drones (loading/unloading), so I decided to write a mod by scanning all the drones on the surface within a specified time. Although this is not entirely logical and correct from the point of view of mathematical statistics and can create many errors. But in general, the idea of the mod is clear and I don’t understand why it wasn’t written by someone with better skills than me.

Currently I've just decided to start a new game with K2+SE (for the first time) so scanning different surfaces hasn't crossed my mind yet. Thanks for your fork, I added a link to it!

7 months ago
(updated 7 months ago)

You're welcome to just take my fork's code if you want! I only uploaded it to Factorio Mods so my friends could autodownload it in Multiplayer.

This approach indeed seems suboptimal, and thus there is a slight bit of lag when a scan is running (which is likely much less noticeable on a smaller save, my 250h K2+SE run is pretty big!), but certainly still work using in my opinion!

New response