Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PVR texture file size in a PVM must be divisible by 16? #29

Open
PiKeyAr opened this issue Apr 9, 2021 · 0 comments
Open

PVR texture file size in a PVM must be divisible by 16? #29

PiKeyAr opened this issue Apr 9, 2021 · 0 comments
Labels

Comments

@PiKeyAr
Copy link

PiKeyAr commented Apr 9, 2021

Hello Nick,

I was wondering if you could help me with an issue I'm running into with PuyoTools.Modules' PVM archive reader. It seems to crash if the PVM contains textures whose file size isn't divisible by 16. Puyo Tools is able to decode these textures and add them to a PVM just fine, but attempting to read the PVM results in a crash. However, it works if the PVM contains only one texture, so I'm wondering if it's a bug.

Steps to reproduce the crash: Run Archive Creator, add 007.pvr and 008.pvr to the archive, save as PVM, open the created PVM in Archive Explorer. I've uploaded the textures and the crashing PVM here:
pvm.zip

The crash doesn't occur if I add bytes at the end of the PVRs to make their size divisible by 16 (and adjust the PVRT chunk size in the header accordingly).

It's entirely possible that these textures are invalid, but I haven't been able to find any mentions of limitations for PVR texture sizes in a PVM, and the standalone PVR textures seem to work fine in Sega's WinPVR tool, so I thought I should report this just in case. Do you think this can be resolved? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants