shithub: pokecrystal

Download patch

ref: 94e486be8983dfea18cb97b767447e0c2a551877
parent: 90cee9191e01720656819eef906fb5053108e606
author: Bryan Bishop <[email protected]>
date: Fri Apr 27 14:50:13 EDT 2012

still having trouble with UnknownText_0x580c7 not in main.asm

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -1523,6 +1523,8 @@
         address = calculate_pointer_from_bytes_at(self.address, bank=self.bank)
         if address != None and address != 0:
             self.text = parse_text_engine_script_at(address, map_group=self.map_group, map_id=self.map_id, force=self.force, debug=self.debug)
+            if not self.text:
+                self.text = script_parse_table[address]
     
     def get_dependencies(self, recompute=False, global_dependencies=set()):
         if self.text:
@@ -1799,7 +1801,7 @@
     0x49: ["loadmovesprites"],
     0x4A: ["loadbytec1ce", ["byte", SingleByteParam]], #not pksv
     0x4B: ["3writetext", ["text_pointer", PointerLabelBeforeBank]],
-    0x4C: ["2writetext", ["text_pointer", TextPointerLabelParam]],
+    0x4C: ["2writetext", ["text_pointer", RawTextPointerLabelParam]],
     0x4D: ["repeattext", ["byte", SingleByteParam], ["byte", SingleByteParam]], #not pksv
     0x4E: ["yesorno"],
     0x4F: ["loadmenudata", ["data", MenuDataPointerParam]],