Skip to content

Commit 4aa03da

Browse files
authored
Factorio: fix attempting to create savegame with not filename safe characters (ArchipelagoMW#2842)
1 parent 24a03bc commit 4aa03da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

worlds/factorio/Client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from CommonClient import ClientCommandProcessor, CommonContext, logger, server_loop, gui_enabled, get_base_parser
2222
from MultiServer import mark_raw
2323
from NetUtils import ClientStatus, NetworkItem, JSONtoTextParser, JSONMessagePart
24-
from Utils import async_start
24+
from Utils import async_start, get_file_safe_name
2525

2626

2727
def check_stdin() -> None:
@@ -120,7 +120,7 @@ def on_print_json(self, args: dict):
120120

121121
@property
122122
def savegame_name(self) -> str:
123-
return f"AP_{self.seed_name}_{self.auth}_Save.zip"
123+
return get_file_safe_name(f"AP_{self.seed_name}_{self.auth}")+"_Save.zip"
124124

125125
def print_to_game(self, text):
126126
self.rcon_client.send_command(f"/ap-print [font=default-large-bold]Archipelago:[/font] "

0 commit comments

Comments
 (0)