Allow pre-rolling yaml settings, and re-using the exact same pre-rolled settings later, for different actual seeds.

This commit is contained in:
CaitSith2
2021-03-03 02:20:37 -08:00
parent 7ac893f3e0
commit 6ddfbdf709
4 changed files with 39 additions and 4 deletions

View File

@@ -61,6 +61,8 @@ if __name__ == "__main__":
player_name = multi_mystery_options["player_name"]
meta_file_path = multi_mystery_options["meta_file_path"]
weights_file_path = multi_mystery_options["weights_file_path"]
pre_roll = multi_mystery_options["pre_roll"]
use_pre_rolled = multi_mystery_options["use_pre_rolled"]
teams = multi_mystery_options["teams"]
rom_file = options["general_options"]["rom_file"]
host = options["server_options"]["host"]
@@ -119,6 +121,10 @@ if __name__ == "__main__":
command += f" --meta {os.path.join(player_files_path, meta_file_path)}"
if os.path.exists(weights_file_path):
command += f" --weights {weights_file_path}"
if pre_roll:
command += " --pre_roll"
if use_pre_rolled:
command += " --use_pre_rolled"
logging.info(command)
import time