ref: 09289d049b77858fe4c60935722a14cd91f50fd5
parent: 5173776c1af2caace5f2215e7fe9d688d8003fcd
author: Bryan Bishop <kanzure@gmail.com>
date: Tue Jan 10 21:15:37 EST 2012
calculate usage count for undone texts hg-commit-id: d3d02d17f44b
--- a/extras/analyze_texts.py
+++ b/extras/analyze_texts.py
@@ -469,6 +469,7 @@
return False
def find_undone_texts():
+ usable_table = {}
if analyze_incbins.asm == None:
analyze_incbins.load_asm()
@@ -492,6 +493,15 @@
if not is_label_in_asm(label):
print label + " map_id=" + str(map_id) + " text_id=" + str(text_id) + " at " + hex(address) + " byte is: " + hex(ord(extract_maps.rom[address]))
+ if not address in usable_table.keys():
+ usable_table[address] = 1
+ else:
+ usable_table[address] += 1
+
+ print "\n\n which ones are priority?"
+ sorted_results = sorted(usable_table.iteritems(), key=itemgetter(1), reverse=True)
+ for result in sorted_results:
+ print str(result[1]) + " times: " + hex(result[0])
if __name__ == "__main__":
extract_maps.load_rom()
--- a/pokered.asm
+++ b/pokered.asm
@@ -1147,6 +1147,7 @@
UnknownDungeon1Text3:
SilphCo10Text4:
SilphCo10Text5:
+SilphCo10Text6:
Route2Text2: ; 0x24f4
db $08 ; asm
ld a, $5c