Added filesafe player name function and updated generator functions in all worlds to use filesafe player name during output

Thanks Windows for your bad filesystem.
This commit is contained in:
Zach Parks
2022-04-02 22:47:42 -05:00
committed by Fabian Dill
parent 05e267a0bd
commit 37d9eb2752
10 changed files with 13 additions and 9 deletions

View File

@@ -773,7 +773,7 @@ class OOTWorld(World):
# Seed hint RNG, used for ganon text lines also
self.hint_rng = self.world.slot_seeds[self.player]
outfile_name = f"AP_{self.world.seed_name}_P{self.player}_{self.world.get_player_name(self.player)}"
outfile_name = f"AP_{self.world.seed_name}_P{self.player}_{self.world.get_file_safe_player_name(self.player)}"
rom = Rom(file=get_options()['oot_options']['rom_file'])
if self.hints != 'none':
buildWorldGossipHints(self)