User | Post |
HyperLamer
Posts: 5673/8210 |
There is no indication of a tileset's size. Each tileset contains 96 compressed 8x8 tiles (some aren't actually compressed, but still stored as if they were). Metatiles (the ones the maps are made of) can be from 0 to 255, there's no real defined limit. (Just don't use/edit the garbage tiles and you'll be fine. ) Keep in mind that metatile #0 gets replaced with whatever you define for the map's border tile. |
BlueSonic
Posts: 13/19 |
Tileset header has pointer to block data, but it seems there isn't any indication how many blocks each tileset have. Map data just points to blocks by number, and game builds the block from tiles on-the-fly.
I'm using following method on upcoming GoldMap 1.6 to detect end of tileset block data: -if tile number is higher than 0x60 -and highest nibble of tile number is not 0x6 (tilenumber AND 0x60 <> 0x60) -and highest nibble of tile number is not 0xF (tilenumber AND 0xF0 <> 0xF0) then tileset loading will be stopped... it seems to work farily well allthough some incorrect blocks will be still loaded
GoldMap 1.6 will load all tileset graphics and addresses from rom directly, without needing ini files |
94rf1eld
Posts: 88/99 |
.....where in pokemon gold does it indicate the size of the tilesets. |