Skip to content

Fix palettized GVR texture roundtrip#1

Open
HeitorSpectre wants to merge 1 commit intoMaikelChan:mainfrom
HeitorSpectre:codex/fix-palettized-gvr-roundtrip
Open

Fix palettized GVR texture roundtrip#1
HeitorSpectre wants to merge 1 commit intoMaikelChan:mainfrom
HeitorSpectre:codex/fix-palettized-gvr-roundtrip

Conversation

@HeitorSpectre
Copy link
Copy Markdown

@HeitorSpectre HeitorSpectre commented Apr 6, 2026

What changed

  • export palettized GVR textures to indexed TGA files with the correct alpha descriptor
  • preserve palette metadata so edited true-color TGAs can be reinserted without losing the original palette
  • add a regression test covering indexed TGA export header handling

Why

Resident Evil: Code Veronica textures with transparency were breaking during the extract/edit/reinsert workflow. Edited TGAs were often saved as true-color images, which previously caused reinsertion to lose palette data or rebuild the wrong palette.

@HeitorSpectre HeitorSpectre changed the title [codex] Fix palettized GVR texture roundtrip Fix palettized GVR texture roundtrip Apr 6, 2026
@HeitorSpectre HeitorSpectre marked this pull request as ready for review April 6, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant