grunt-lucas / porytiles

Overworld tileset compiler for Pokémon Generation 3 decompilation projects
MIT License
30 stars 3 forks source link

Secondary compilation writes to last palette, which could break on some maps #20

Open grunt-lucas opened 5 months ago

grunt-lucas commented 5 months ago

Apparently, certain maps that use overworld vendors (see Slateport Market for an example) make use of BG palette 12 for the mart menu. If any tiles are using palette 12, they will end up looking distorted. Porytiles should support an option like -forbid-hardware-palette=12 so that the compilation algorithm is forced to keep palette 12 unused. Users can specify this option on specific maps where they intend to have an overworld vendor. For maps with no vendors, then palette 12 (or whatever the top palette is based on fieldmap settings) can be used with no issues.

https://discord.com/channels/976252009114140682/976252039380209694/1223264978010902588