Skip to content

Commit

Permalink
Factorio: fix attempting to create savegame with not filename safe ch…
Browse files Browse the repository at this point in the history
…aracters (ArchipelagoMW#2842)
  • Loading branch information
Berserker66 authored Apr 1, 2024
1 parent 24a03bc commit 4aa03da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worlds/factorio/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from CommonClient import ClientCommandProcessor, CommonContext, logger, server_loop, gui_enabled, get_base_parser
from MultiServer import mark_raw
from NetUtils import ClientStatus, NetworkItem, JSONtoTextParser, JSONMessagePart
from Utils import async_start
from Utils import async_start, get_file_safe_name


def check_stdin() -> None:
Expand Down Expand Up @@ -120,7 +120,7 @@ def on_print_json(self, args: dict):

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

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

0 comments on commit 4aa03da

Please sign in to comment.