mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-14 09:06:41 +13:00
calculate usage count for undone texts
hg-commit-id: d3d02d17f44b
This commit is contained in:
parent
5173776c1a
commit
09289d049b
|
|
@ -469,6 +469,7 @@ def is_label_in_asm(label):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def find_undone_texts():
|
def find_undone_texts():
|
||||||
|
usable_table = {}
|
||||||
if analyze_incbins.asm == None:
|
if analyze_incbins.asm == None:
|
||||||
analyze_incbins.load_asm()
|
analyze_incbins.load_asm()
|
||||||
|
|
||||||
|
|
@ -492,6 +493,15 @@ def find_undone_texts():
|
||||||
|
|
||||||
if not is_label_in_asm(label):
|
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]))
|
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__":
|
if __name__ == "__main__":
|
||||||
extract_maps.load_rom()
|
extract_maps.load_rom()
|
||||||
|
|
|
||||||
|
|
@ -1147,6 +1147,7 @@ UnknownDungeon1Text2:
|
||||||
UnknownDungeon1Text3:
|
UnknownDungeon1Text3:
|
||||||
SilphCo10Text4:
|
SilphCo10Text4:
|
||||||
SilphCo10Text5:
|
SilphCo10Text5:
|
||||||
|
SilphCo10Text6:
|
||||||
Route2Text2: ; 0x24f4
|
Route2Text2: ; 0x24f4
|
||||||
db $08 ; asm
|
db $08 ; asm
|
||||||
ld a, $5c
|
ld a, $5c
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue