Export Factoriopedia for LLM


Writes most of the info in the Factoriopedia to a text file for LLM ingestion.

Utilities
10 days ago
2.0
32
Owner:
StephenB
Source:
https://github.com/StephenBarnes/Writ...
Homepage:
N/A
License:
MIT
Created:
6 months ago
Latest Version:
1.1.1 (10 days ago)
Factorio version:
2.0
Downloaded by:
32 users

To use:

  • Install the mod.
  • Start a new game. Just opening Factorio isn't enough, you have to actually start a game.
  • Find the folder script-output in the same place as your mods folder.
  • In that folder, you'll have a text-file called ExportFactoriopediaForLLM.txt.
  • Attach that text-file when talking to an LLM such as ChatGPT or Claude.

The text-file contains a list of all items, fluids, recipes, entities, and space locations/connections, organized by subgroup. Includes all descriptions and recipe ingredients and products (like 10 Uranium ore -> 0.7% 1 Uranium-235 + 99.3% 1 Uranium-238). There is also a list of all techs with their prereqs and unlocks.

The file includes localised names and internal IDs for everything. The IDs are useful if you're using an AI to write code. There is a setting to remove internal IDs if you don't need them, for example if you're only using an AI to design or examine a modpack. Thanks to Noisemaker111 for adding the IDs.

The file fits easily in a modern LLM's context window. For base Factorio, the file is 2000 lines and 21k tokens. With Space Age it's 37k tokens. GPT-5 has a context window limit of 128k tokens. Keep in mind that if you attach a file, many LLMs will only search it for keywords instead of reading the whole thing, so depending on what you're doing, you may get better results by copy-pasting the entire thing into the chat instead of attaching it.