Realm Research


Writes what the team has researched (technologies, recipes and the machines it can build) to a JSON file on the server, for planners such as FFlowsheet. Read-only: it changes nothing in the game.

Tweaks
4 hours ago
2.1
0
Owner:
resnickio
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
4 hours ago
Latest Version:
0.1.0 (4 hours ago)
Factorio version:
2.1
Downloaded by:
0 users

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 game tick, and the game and mod versions.

The file follows the fflowsheet-research format, version 1, used by the FFlowsheet planner. 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.

Credits

Part of a larger, experimental "Realm" project for the hacktorio server. Works alongside Realm Kits and Realm Director.

MIT licence.