diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-01-05 00:16:00 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-01-05 00:16:00 -0600 |
commit | 48284ccd22620362db1023dbc93158bb8010bd86 (patch) | |
tree | 945fa7e92808062b713fc9e16f40a43bdbf7981a /extras/extract_maps.py | |
parent | cd587686b2e4b84db398057809c7ed9c2d721b8f (diff) |
tiny update to print out a list of referenced text counts
hg-commit-id: 92ed453f1b47
Diffstat (limited to 'extras/extract_maps.py')
-rw-r--r-- | extras/extract_maps.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/extras/extract_maps.py b/extras/extract_maps.py index 82bfbe56..57a62ad0 100644 --- a/extras/extract_maps.py +++ b/extras/extract_maps.py @@ -20,6 +20,8 @@ start_map_header_pointer_banks = 0xC23D #number of maps in this list map_count = 0xF8 #including the 0th the total is is 248 or 0xF8 +bad_maps = [0x0b, 0x45, 0x4b, 0x4e, 0x69, 0x6a, 0x6b, 0x6d, 0x6e, 0x6f, 0x70, 0x72, 0x73, 0x74, 0x75, 0xad, 0xcc, 0xcd, 0xce, 0xe7, 0xed, 0xee, 0xf1, 0xf2, 0xf3, 0xf4] + maps = { 0x00: "Pallet Town", 0x01: "Viridian City", @@ -659,5 +661,9 @@ if __name__ == "__main__": read_all_map_headers() #print json.dumps(map_headers) - print map_headers[37] + #print map_headers[37] + + for header in map_headers: + if header in bad_maps: continue + print "map " + str(header) + " has " + str(map_headers[header]["number_of_referenced_texts"]) + " referenced texts" |