round of post-test fixes
This commit is contained in:
parent
c99a689504
commit
39a5921522
|
@ -125,7 +125,7 @@ def main(args=None, callback=ERmain):
|
||||||
erargs.create_spoiler = args.spoiler > 0
|
erargs.create_spoiler = args.spoiler > 0
|
||||||
erargs.glitch_triforce = options["generator"]["glitch_triforce_room"]
|
erargs.glitch_triforce = options["generator"]["glitch_triforce_room"]
|
||||||
erargs.race = args.race
|
erargs.race = args.race
|
||||||
erargs.skip_playthrough = args.spoiler == 0
|
erargs.skip_playthrough = args.spoiler < 2
|
||||||
erargs.outputname = seed_name
|
erargs.outputname = seed_name
|
||||||
erargs.outputpath = args.outputpath
|
erargs.outputpath = args.outputpath
|
||||||
erargs.teams = args.teams
|
erargs.teams = args.teams
|
||||||
|
|
|
@ -874,7 +874,7 @@ async def main():
|
||||||
logging.exception(e)
|
logging.exception(e)
|
||||||
asyncio.create_task(run_game(adjustedromfile if adjusted else romfile))
|
asyncio.create_task(run_game(adjustedromfile if adjusted else romfile))
|
||||||
|
|
||||||
ctx = Context(args.snes, args.connect, args.password, args.founditems)
|
ctx = Context(args.snes, args.connect, args.password)
|
||||||
input_task = asyncio.create_task(console_loop(ctx), name="Input")
|
input_task = asyncio.create_task(console_loop(ctx), name="Input")
|
||||||
|
|
||||||
if ctx.server_task is None:
|
if ctx.server_task is None:
|
||||||
|
|
2
Main.py
2
Main.py
|
@ -262,7 +262,7 @@ def main(args, seed=None):
|
||||||
patch_rom(world, rom, player, team, use_enemizer)
|
patch_rom(world, rom, player, team, use_enemizer)
|
||||||
|
|
||||||
if use_enemizer:
|
if use_enemizer:
|
||||||
patch_enemizer(world, team, player, rom, args.enemizercli)
|
patch_enemizer(world, team, player, rom, args.enemizercli, output_directory)
|
||||||
|
|
||||||
if args.race:
|
if args.race:
|
||||||
patch_race_rom(rom, world, player)
|
patch_race_rom(rom, world, player)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#define sourcepath "build_factorio\exe.win-amd64-3.8\"
|
#define sourcepath "build_factorio\exe.win-amd64-3.8\"
|
||||||
#define MyAppName "Archipelago Factorio Client"
|
#define MyAppName "Archipelago Factorio Client"
|
||||||
#define MyAppExeName "ArchipelagoGraphicalFactorioClient.exe"
|
#define MyAppExeName "ArchipelagoGraphicalFactorioClient.exe"
|
||||||
#define MyAppIcon "icon.ico"
|
#define MyAppIcon "data/icon.ico"
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
; NOTE: The value of AppId uniquely identifies this application.
|
; NOTE: The value of AppId uniquely identifies this application.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#define sourcepath "build\exe.win-amd64-3.8\"
|
#define sourcepath "build\exe.win-amd64-3.8\"
|
||||||
#define MyAppName "Archipelago"
|
#define MyAppName "Archipelago"
|
||||||
#define MyAppExeName "ArchipelagoLttPClient.exe"
|
#define MyAppExeName "ArchipelagoLttPClient.exe"
|
||||||
#define MyAppIcon "icon.ico"
|
#define MyAppIcon "data/icon.ico"
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
; NOTE: The value of AppId uniquely identifies this application.
|
; NOTE: The value of AppId uniquely identifies this application.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#define sourcepath "build\exe.win-amd64-3.9\"
|
#define sourcepath "build\exe.win-amd64-3.9\"
|
||||||
#define MyAppName "Archipelago"
|
#define MyAppName "Archipelago"
|
||||||
#define MyAppExeName "ArchipelagoLttPClient.exe"
|
#define MyAppExeName "ArchipelagoLttPClient.exe"
|
||||||
#define MyAppIcon "icon.ico"
|
#define MyAppIcon "data/icon.ico"
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
; NOTE: The value of AppId uniquely identifies this application.
|
; NOTE: The value of AppId uniquely identifies this application.
|
||||||
|
|
|
@ -279,11 +279,11 @@ def apply_random_sprite_on_event(rom: LocalRom, sprite, local_random, allow_rand
|
||||||
rom.write_bytes(0x307078 + (i * 0x8000), sprite.glove_palette)
|
rom.write_bytes(0x307078 + (i * 0x8000), sprite.glove_palette)
|
||||||
|
|
||||||
|
|
||||||
def patch_enemizer(world, team: int, player: int, rom: LocalRom, enemizercli):
|
def patch_enemizer(world, team: int, player: int, rom: LocalRom, enemizercli, output_directory):
|
||||||
check_enemizer(enemizercli)
|
check_enemizer(enemizercli)
|
||||||
randopatch_path = os.path.abspath(output_path(f'enemizer_randopatch_{team}_{player}.sfc'))
|
randopatch_path = os.path.abspath(os.path.join(output_directory, f'enemizer_randopatch_{team}_{player}.sfc'))
|
||||||
options_path = os.path.abspath(output_path(f'enemizer_options_{team}_{player}.json'))
|
options_path = os.path.abspath(os.path.join(output_directory, f'enemizer_options_{team}_{player}.json'))
|
||||||
enemizer_output_path = os.path.abspath(output_path(f'enemizer_output_{team}_{player}.sfc'))
|
enemizer_output_path = os.path.abspath(os.path.join(output_directory, f'enemizer_output_{team}_{player}.sfc'))
|
||||||
|
|
||||||
# write options file for enemizer
|
# write options file for enemizer
|
||||||
options = {
|
options = {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
|
|
||||||
with open('worlds/subnautica/items.json', 'r') as file:
|
with open(os.path.join(os.path.dirname(__file__), 'items.json'), 'r') as file:
|
||||||
item_table = json.loads(file.read())
|
item_table = json.loads(file.read())
|
||||||
|
|
||||||
lookup_id_to_name = {}
|
lookup_id_to_name = {}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
|
|
||||||
with open('worlds/subnautica/locations.json', 'r') as file:
|
with open(os.path.join(os.path.dirname(__file__), 'locations.json'), 'r') as file:
|
||||||
location_table = json.loads(file.read())
|
location_table = json.loads(file.read())
|
||||||
|
|
||||||
lookup_id_to_name = {}
|
lookup_id_to_name = {}
|
||||||
|
|
Loading…
Reference in New Issue