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

@@ -502,7 +502,10 @@ def main(args, seed=None):
minimum_versions = {"server": (0, 1, 1), "clients": client_versions}
games = {}
for slot in world.player_ids:
client_versions[slot] = (0, 0, 3)
if world.game[slot] == "Factorio":
client_versions[slot] = (1, 1, 2)
else:
client_versions[slot] = (0, 0, 3)
games[slot] = world.game[slot]
connect_names = {base64.b64encode(rom_name).decode(): (team, slot) for
slot, team, rom_name in rom_names}