Realm Research
Writes what your team has researched to a JSON file on the server, so a planner outside the game can default to the machines you can actually build.
It's read-only: it adds nothing to the game, changes nothing, and works in any save.
What it writes
script-output/realm-research/research.json, on the server only (never on players' machines), with:
- the player force's researched technologies,
- every recipe it can use, including those enabled from the start,
- the machines it can build: assemblers, furnaces, drills, pumps, boilers, the rocket silo and the agricultural tower whose items an enabled recipe makes,
- the level of each multi-level or infinite technology, such as mining productivity,
- the force's research bonuses: mining productivity, worker robot speed, cargo and battery, inserter and bulk inserter capacity, belt stack size, lab speed and productivity, train braking and follower robot count,
- the recipes that have research productivity, and how much,
- the game tick, and the game and mod versions.
The file follows the fflowsheet-research format, version 1, used by the FFlowsheet planner and the Hacktorio cheat sheet. The levels, bonuses and recipe productivity are optional extras (since 0.2.0) that readers which don't know them ignore. It has every field except time, because the game can't read the clock; whatever publishes the file fills that in from when the file was written.
It's rewritten when research finishes or is reversed, when technology effects or the force are reset, when the mod set changes, and every ten minutes.
Since 0.3.0 it also writes script-output/realm-research/stats.json, every two minutes of play: the team's kills, by kind (enemies, nests, worms, asteroids) and by planet, and how many engineers it has lost, from the force's kill statistics. The format is realm-stats, version 1. The Hacktorio homepage shows it as a kill counter.
Credits
Part of a larger, experimental "Realm" project for the hacktorio server. Works alongside Realm Kits and Realm Director.
MIT licence.