shithub: pokecrystal

Download patch

ref: 7dd429fdf461082d04a518f3186d7b20d38c035b
parent: 6ff6f93397f18f8764caa4e4de4a85c23942ef81
author: Bryan Bishop <[email protected]>
date: Thu May 10 05:18:23 EDT 2012

debugging to figure out the TextScript at 0x5daf1

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -490,6 +490,11 @@
         # (actually i think this might be the next byte after??)
         self.last_address = current_address
 
+        # just some debugging..
+        last_address = self.last_address
+        print "TextScript last_address == " + hex(last_address)
+        #assert last_address != 0x5db06, "TextScript.parse somehow has a text with a last_address of 0x5db06 instead of 0x5db07"
+
         # store the script in the global table/map thing
         script_parse_table[start_address:current_address] = self
         all_texts.append(self)