diff --git a/fast64_internal/z64/importer/scene.py b/fast64_internal/z64/importer/scene.py index 621696846..f350dfcd4 100644 --- a/fast64_internal/z64/importer/scene.py +++ b/fast64_internal/z64/importer/scene.py @@ -114,14 +114,21 @@ def parseScene( file_path = Path(sceneFolderPath).resolve() / f"{sceneName}.c" is_single_file = True + tried_file_paths = [file_path] + if not file_path.exists(): file_path = Path(sceneFolderPath).resolve() / f"{sceneName}_scene_main.c" is_single_file = False + tried_file_paths.append(file_path) if not file_path.exists(): - raise PluginError("ERROR: scene not found!") + raise PluginError(f"ERROR: scene not found at {' nor '.join(map(str, tried_file_paths))}!") - sceneData = file_path.read_text() + try: + sceneData = file_path.read_text() + except Exception: + print("file_path =", file_path) + raise if not is_single_file: # get the other scene files for non-single file fast64 exports