ScanMountGoat / ultimate_tex

Texture conversion utilities for Smash Ultimate
MIT License
11 stars 0 forks source link

Exported chara BNTX crashes game #6

Closed DevorySSBU closed 1 year ago

DevorySSBU commented 1 year ago

Ult Tex can make and export BNTX files from and into PNG/DDS files fine, but whenever it is loaded into Smash, it crashes. I don't think I know exactly what's wrong, surface-wise, but hopefully it won't be too difficult to remedy.

Nutexb files are completely fine of course, to and from PNG/DDS files, if it's worth knowing for the other filetype. Only BNTX conversion seems strange.

If your "improve BNTX support" issue/tab already includes this as one of the known issues and will fix it when finished, I apologize for making a new unneeded issue tab, lol..

ScanMountGoat commented 1 year ago

What specific BNTX file are you trying to convert? Have you narrowed down the cause of the crash to a single file?

DevorySSBU commented 1 year ago

I'm basically trying to convert chara UI files (renders) into BNTX, and it seems to crash when that file is being called. I can for sure confirm that only when this file exists, it crashes when called.

EX: Converted a PNG/DDS file called "chara_1_zelda_02" into a BNTX and that crashes only when loaded in the CSS. Tried DDS first, then PNG. Same result.

Stage UI files also seem to crash similarly (ex: stage_1_end.bntx) if converted with Ult Tex. Here's my Ult Tex setup: image

ScanMountGoat commented 1 year ago

I'm able to recreate the crash in Ryujinx by converting chara_1_mario_00.bntx to PNG and back to BNTX. I'll try and look into this to see what's causing the crash.

ScanMountGoat commented 1 year ago

This appears to be a field alignment issue. This should be fixed for the next release with an update to the bntx library.