summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authoremilybrooks <emilybrooksemilybrooks@gmail.com>2024-03-16 08:09:26 -0700
committerGitHub <noreply@github.com>2024-03-16 08:09:26 -0700
commit87c30f66d2da533d524d67e45c775404f385fba0 (patch)
treeff40bdc9ebdce500b4b9ff4812caa978779d0632 /tools
parentd3623fca20aac5716174ce74c74b30eb48fac315 (diff)
1/2 of structure objects extracted (#156)
* house2 * split yamishop * split douzou * split kago * split dump * split uranai * split house * fixed names * obj_s_house3 * forgot * obj_s_house4 * house5 * started winter houses * w house3 * w_house4 * w_house5 * myhome2 * s myhome done * w_myhome1 * freedom * kouban * small fixes
Diffstat (limited to 'tools')
-rw-r--r--tools/splat_ext/ckf_je.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/splat_ext/ckf_je.py b/tools/splat_ext/ckf_je.py
index c48600c..ea95dec 100644
--- a/tools/splat_ext/ckf_je.py
+++ b/tools/splat_ext/ckf_je.py
@@ -30,7 +30,10 @@ class N64SegCkf_je(CommonSegCodeSubsegment):
if shape == 0:
shape_symbol = "NULL"
else:
- shape_symbol = self.get_symbol(addr=shape).name
+ symbol = self.get_symbol(addr=shape)
+ if symbol == None:
+ log.error(f"Error: Symbol for segment address 0x{shape:08X} in {self.name} doesn't exist.")
+ shape_symbol = symbol.name
lines.append(f" {{ {shape_symbol}, {numberOfChildren}, {displayBufferFlag}, {{{x}, {y}, {z}}} }},")