MaKiPL / OpenVIII-monogame

Open source Final Fantasy VIII engine implementation in C# working on Windows and Linux (Android and iOS planned too!) [Monogame]
MIT License
631 stars 58 forks source link

Fix reswizzle #186

Closed Sebanisu closed 3 years ago

Sebanisu commented 3 years ago

Mcindus and Wade noticed something was wrong with bvtr_4 and bvtr_1, reswizzle wasn't giving us all the palette data. Turns out I was doubling the X value for 4 bit textures. And I didn't need to do that. So Now it's fixed. I also added some Try Catch Blocks around the save PNG code and put that all into a function. So all saving PNGs are the same code now instead of copy paste.

image

Sebanisu commented 3 years ago

I understand now. The source X is already the correct size. Just when you read the indexes they pack 2 of them in each bytes. Opps. :D