From e6184b6d7f2d4ed50b216a54bb080253025c59cc Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Fri, 29 May 2026 08:28:25 +0200 Subject: [PATCH 1/2] [OoT] fix scene_table.h parsing empty lines --- fast64_internal/z64/exporter/decomp_edit/scene_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fast64_internal/z64/exporter/decomp_edit/scene_table.py b/fast64_internal/z64/exporter/decomp_edit/scene_table.py index e153ba713..b8def37fe 100644 --- a/fast64_internal/z64/exporter/decomp_edit/scene_table.py +++ b/fast64_internal/z64/exporter/decomp_edit/scene_table.py @@ -119,8 +119,8 @@ def new(export_path: str): header = data[: header_end_index + 1] lines = data[header_end_index + 1 :].split("\n") - lines = list(filter(None, lines)) # removes empty lines lines = [line.strip() for line in lines] + lines = list(filter(None, lines)) # removes empty lines sections: list[SceneTableSection] = [] current_section: Optional[SceneTableSection] = None From 6eb97aa0dd081d25eda3335aa61ecb8922764412 Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Fri, 29 May 2026 08:30:23 +0200 Subject: [PATCH 2/2] also show the line SceneTableEntry.from_line chokes on --- fast64_internal/z64/exporter/decomp_edit/scene_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fast64_internal/z64/exporter/decomp_edit/scene_table.py b/fast64_internal/z64/exporter/decomp_edit/scene_table.py index b8def37fe..339ff6b73 100644 --- a/fast64_internal/z64/exporter/decomp_edit/scene_table.py +++ b/fast64_internal/z64/exporter/decomp_edit/scene_table.py @@ -51,7 +51,7 @@ def from_line(original_line: str): return SceneTableEntry(*params) else: - raise PluginError("ERROR: This line is not a scene table entry!") + raise PluginError("ERROR: This line is not a scene table entry! " + repr(original_line)) @staticmethod def from_scene(scene_name: str, draw_config: str, title_card_name: str):