From ab7a5b07ebc361ca933cd03bde86aca96dd02b15 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 9 Aug 2021 23:00:28 +0200 Subject: [PATCH] YAML: Make player pick a game, error out if step is skipped. --- Main.py | 4 ++-- playerSettings.yaml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Main.py b/Main.py index 77ac4c44..d83c411b 100644 --- a/Main.py +++ b/Main.py @@ -10,7 +10,7 @@ import tempfile import zipfile from typing import Dict, Tuple -from BaseClasses import MultiWorld, CollectionState, Region +from BaseClasses import MultiWorld, CollectionState, Region, RegionType from worlds.alttp.Items import item_name_groups from worlds.alttp.Regions import lookup_vanilla_location_to_entrance from Fill import distribute_items_restrictive, flood_items, balance_multiworld_progression, distribute_planned @@ -257,7 +257,7 @@ def main(args, seed=None): # collect ER hint info er_hint_data = {player: {} for player in world.get_game_players("A Link to the Past") if world.shuffle[player] != "vanilla" or world.retro[player]} - from worlds.alttp.Regions import RegionType + for region in world.regions: if region.player in er_hint_data and region.locations: main_entrance = get_entrance_to_region(region) diff --git a/playerSettings.yaml b/playerSettings.yaml index bcc56980..8365bd99 100644 --- a/playerSettings.yaml +++ b/playerSettings.yaml @@ -23,13 +23,13 @@ name: YourName{number} # Your name in-game. Spaces will be replaced with undersc #{PLAYER} will be replaced with the player's slot number if that slot number is greater than 1. #{number} will be replaced with the counter value of the name. #{NUMBER} will be replaced with the counter value of the name if the counter value is greater than 1. -game: - A Link to the Past: 1 - Factorio: 1 - Minecraft: 1 - Subnautica: 1 +game: # Pick a game to play + A Link to the Past: 0 + Factorio: 0 + Minecraft: 0 + Subnautica: 0 requires: - version: 0.1.5 # Version of Archipelago required for this yaml to work as expected. + version: 0.1.6 # Version of Archipelago required for this yaml to work as expected. # Shared Options supported by all games: accessibility: items: 0 # Guarantees you will be able to acquire all items, but you may not be able to access all locations