Wow! This is exactly what I was looking for! Thanks a lot!!!
Had to do make some minor adjustements, but this works:
local default_export_file = "export.json"
local function onExportCommand(event)
local output = {}
-- basic info
output["active_entities_count"] = game.get_active_entities ...
Search found 2 matches
- Fri Jul 29, 2022 2:01 pm
- Forum: Modding help
- Topic: Export data to json
- Replies: 2
- Views: 1118
- Wed Jul 27, 2022 3:49 pm
- Forum: Modding help
- Topic: Export data to json
- Replies: 2
- Views: 1118
Export data to json
Hi all,
My (grid-structured) base is getting larger and larger, and I have trouble keeping up with the trains (>3700) and the available train stations (>2250). Now and then I want to know which stations need more trains assigned, or where supply is not keeping up etc. The available list in factorio ...
My (grid-structured) base is getting larger and larger, and I have trouble keeping up with the trains (>3700) and the available train stations (>2250). Now and then I want to know which stations need more trains assigned, or where supply is not keeping up etc. The available list in factorio ...