FactorioClient: Read Bridge file after a server log indicates that the file was written

This commit is contained in:
Fabian Dill
2021-05-25 01:03:04 +02:00
parent 0175c8ab8a
commit 252bb69808
5 changed files with 44 additions and 223 deletions

View File

@@ -134,7 +134,7 @@ end)
-- for testing
script.on_event(defines.events.on_tick, function(event)
if event.tick%600 == 300 then
if event.tick%3600 == 300 then
dumpInfo(game.forces["player"])
end
end)
@@ -186,6 +186,7 @@ function dumpInfo(force)
end
end
game.write_file("ap_bridge.json", game.table_to_json(data_collection), false, 0)
log("Archipelago Bridge File written for game tick ".. game.tick .. ".")
-- game.write_file("research_done.json", game.table_to_json(data_collection), false, 0)
-- game.print("Sent progress to Archipelago.")
end