igorciz777 / RBC1GP-Translation-Pipeline

A set of tools and instructions to allow easy work on translating the game
GNU General Public License v3.0
15 stars 0 forks source link

Texture CLUT related bug #2

Closed igorciz777 closed 1 month ago

igorciz777 commented 2 months ago

Describe the bug Incorrect colors displayed on two icons visible in: tuning shop, super autobacs, car item packs menu, car items list

Expected behavior Same color scheme as unmodified icons

Screenshots aaa

Device Both emulation and hardware

Additional context Related to how genki defines multiple color palettes in a tm2 file Available TIM2 modifying tools do not see those palettes which makes it hard to modify Tried to fix the colors by manually editing the hex values but to no avail

igorciz777 commented 1 month ago

For whatever reason, most of the textures report more colors per palette than the actual size, for example here one palette is stated to have 48 colors but it has 16 instead tm2

This is why Rainbow doesn't load all the palettes and only keeps the first one, resulting in cut-off CLUTs and broken transparency when using the import feature of that tool

When the values gets changed to 16 through a hex editor, the texture now properly exports with multiple palettes, allowing us to edit it properly

tm2fixed