diff --git a/theater/conflicttheater.py b/theater/conflicttheater.py index 4095f2aa..373eb959 100644 --- a/theater/conflicttheater.py +++ b/theater/conflicttheater.py @@ -238,7 +238,7 @@ class NevadaTheater(ConflictTheater): overview_image = "nevada.gif" reference_points = {(nevada.Mina_Airport_3Q0.position.x, nevada.Mina_Airport_3Q0.position.y): (45 * 2, -360 * 2), (nevada.Laughlin_Airport.position.x, nevada.Laughlin_Airport.position.y): (440 * 2, 80 * 2), } - landmap = load_landmap("resources\\nev_landmap.p") + landmap = load_landmap("resources\\nevlandmap.p") daytime_map = { "dawn": (4, 6), "day": (6, 17), diff --git a/theater/landmap.py b/theater/landmap.py index b1503e38..0f7395c8 100644 --- a/theater/landmap.py +++ b/theater/landmap.py @@ -1,5 +1,6 @@ import pickle from typing import Collection, Optional, Tuple +import logging Zone = Collection[Tuple[float, float]] Landmap = Tuple[Collection[Zone], Collection[Zone], Collection[Zone]] @@ -10,6 +11,7 @@ def load_landmap(filename: str) -> Optional[Landmap]: with open(filename, "rb") as f: return pickle.load(f) except: + logging.exception(f"Failed to load landmap {filename}") return None