Statorio

by chksm

Experimental! Export realtime game statistics to disk in JSON and other formats. See homepage for usage

Utilities
1 year, 11 months ago
1.1
216

FAQ

Can I see a list of available metrics?

Print a list of recently produced entities:

/stat test game.forces.player.item_production_statistics.get_flow_count.*.count.one_minute

Recently produced fluids:

/stat test game.forces.player.fluid_production_statistics.get_flow_count.*.count.one_minute

Recent player entities destroyed by the enemy:

/stat test game.forces.player.kill_count_statistics.get_flow_count.*.count.one_minute

Recent enemy entities destroyed by the player:

/stat test game.forces.enemy.kill_count_statistics.get_flow_count.*.count.one_minute

Recently built entities:

/stat test game.forces.player.entity_build_count_statistics.get_flow_count.*.count.one_minute

Error "please check API reference" when adding/testing a metric

Metrics are just dot-notation strings which are parsed by the mod to traverse the Factorio API. If an unexpected outcome occurs during that traversal then this error shows, usually meaning an object property does not exist, or a function is not callable. See the mod documentation for good examples of tested metrics.

Supported functions at the moment are get_entity_count and get_flow_count. Functions that accept no arguments can also be called. Post a thread in the mod portal to request more function support.

Error "Unknown item name" when adding/testing a metric

Use an entity's "Internal name" from the right sidebar of the official wiki. For example "ammo" is internally called "firearm-magazine" which can be referred to like this:

game.forces.player.item_production_statistics.get_flow_count.firearm-magazine.count.one_minute

Error "Statorio commands are only available to admins"

If you're in a multiplayer game hosted by another player or on a dedicated server, then your player doesn't have admin rights to use the Statorio command. Ask an existing admin to /promote you (or yourself through the headless server console).

When I load a game Statorio forgets recently added metrics

Like other mods your settings are stored in the save game, so be sure to save the game if you make changes to mod settings.