From eafae03566e33a51c895d660ba0d3318753bbc82 Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Wed, 19 Aug 2026 08:09:16 +0200 Subject: [PATCH 1/2] [oot] parseScene: show failed path on error --- fast64_internal/z64/importer/scene.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/fast64_internal/z64/importer/scene.py b/fast64_internal/z64/importer/scene.py index 621696846..1a9b56a0d 100644 --- a/fast64_internal/z64/importer/scene.py +++ b/fast64_internal/z64/importer/scene.py @@ -114,14 +114,22 @@ def parseScene( file_path = Path(sceneFolderPath).resolve() / f"{sceneName}.c" is_single_file = True + tried_file_paths = [] + tried_file_paths.append(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 From 3e6891cd7361d2ea292b8527d84ece6b21632f5b Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Wed, 19 Aug 2026 14:24:54 +0200 Subject: [PATCH 2/2] Update fast64_internal/z64/importer/scene.py Co-authored-by: Yanis <35189056+Yanis002@users.noreply.github.com> --- fast64_internal/z64/importer/scene.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fast64_internal/z64/importer/scene.py b/fast64_internal/z64/importer/scene.py index 1a9b56a0d..f350dfcd4 100644 --- a/fast64_internal/z64/importer/scene.py +++ b/fast64_internal/z64/importer/scene.py @@ -114,8 +114,7 @@ def parseScene( file_path = Path(sceneFolderPath).resolve() / f"{sceneName}.c" is_single_file = True - tried_file_paths = [] - tried_file_paths.append(file_path) + tried_file_paths = [file_path] if not file_path.exists(): file_path = Path(sceneFolderPath).resolve() / f"{sceneName}_scene_main.c"