soopercool101 / BrawlCrate

BrawlBox/BrawlTools Fork, Wii File Editor
https://discord.gg/s7c8763
GNU Lesser General Public License v3.0
154 stars 40 forks source link

PAT0 problem #89

Open JuncK2957 opened 10 months ago

JuncK2957 commented 10 months ago

Description of Bug: When I change an animation texture list, no matter what texture the bottom frame index in an animation texture section is set to, when I tell the program to save the ARC file, it always automatically sets the the bottom frame index texture to the texture on the top of the list of the textures in the "PAT0 Texture Entry" settings section, then saves, and I only see it the next time I open the file.

To Reproduce Steps to reproduce the behavior:

  1. Change the list in, say, "D:\stuff\Wii Modding\New Super Mario Bros. Wii\NSMBWMV\DATA\files\MovieDemo\KDB.arc\g3d\model.brres\AnmTexPat(NW4R)\000_030KDB0\mat_player_eye\Texture0\" for instance
  2. Click on "File: Save"
  3. Close the ARC file
  4. Go to "File: Open..."
  5. Click on "D:\stuff\Wii Modding\New Super Mario Bros. Wii\NSMBWMV\DATA\files\MovieDemo\KDB.arc"
  6. Scroll down to "KDB.arc\g3d\model.brres\AnmTexPat(NW4R)\000_030KDB0\mat_player_eye\Texture0\"
  7. See error

Expected Behavior: I want the bottom frame index texture in an animation texture section to remain the same when I save the ARC file.

Example Screenshots: Capture

Desktop:

Crash Log There was no crash report.

Additional Context Here are some relevant files I was working on when that happened: ‪D:\stuff\Wii Modding\New Super Mario Bros. Wii\NSMBWMV\DATA\files\MovieDemo\KDB.arc; D:\stuff\Wii Modding\New Super Mario Bros. Wii\NSMBWMV\DATA\files\MovieDemo\KYB.arc; D:\stuff\Wii Modding\New Super Mario Bros. Wii\NSMBWMV\DATA\files\MovieDemo\KBB.arc; D:\stuff\Wii Modding\New Super Mario Bros. Wii\NSMBWMV\DATA\files\Object\Kinopio.arc