LADX-Disassembly
LADX-Disassembly copied to clipboard
Regarding tilemap and attrmap encoding
peach.tilemapandpeach.attrmapare committed, but none of the other decoded files are; should they be?- Running
convert_background.py decodeonmenu_file_selection.tilemap.encodedandmenu_file_selection.attrmap.encodedfails with anIndexError. I think this is because they fallthrough into the subsequenttilemap03data. It might be more useful to combine those files, and instead of theTilemap03andAttrmap03pointers, store either a raw address (like the._07 dw $D651) or an offset from the base pointer (e.g.dw MenuFileSelectionAttrmap + $0123). Tilemap06andTilemap09might also belong combined with another file. This would explain why some decoded files fail to open in Tilemap Studio, e.g.inventory.tilemapcomplains "Attrmap is longer than tilemap."
Indeed, the decoded tilemaps and attrmaps are there by mistake, and should not have been included in the project. I opened #346 to remove them.
As for the combined/fallthrough tilemaps, merging them and storing them as an offset from a base pointer would definitely be a good idea, yes.