leamsii / Shovel-Knight-Toolkit

Tools for unpacking and repacking Shovel Knight files and editing game sprites.
6 stars 0 forks source link

"Something wen't wrong" when unpacking anb #5

Closed blargsnarf closed 4 years ago

blargsnarf commented 4 years ago

I managed to unpack a .pak file, but when I go to unpack the .anb within, I get this error: https://i.imgur.com/rX0vA9X.png

Log: Decompressing WFLZ chunks.. Log: Cleaning up.. Log: Creating images.. Error: Something wen't wrong when converting the image frame_0.png 16777215 12

I think I have Python and Pillow installed properly. I've tried a few different anb files.

leamsii commented 4 years ago

Can you send me a sample file, the anb file

On Tue, Dec 10, 2019, 6:49 PM blargsnarf notifications@github.com wrote:

I managed to unpack a .pak file, but when I go to unpack the .anb within, I get this error: https://i.imgur.com/rX0vA9X.png http://url

Log: Decompressing WFLZ chunks.. Log: Cleaning up.. Log: Creating images.. Error: Something wen't wrong when converting the image frame_0.png 16777215 12

I think I have Python and Pillow installed properly. I've tried a few different anb files.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/leamsii/Shovel-Knight-Toolkit/issues/5?email_source=notifications&email_token=ACSRSFU3PM2PNB6W6TASIS3QYATIHA5CNFSM4JZGO5OKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H7TTYVA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSRSFQDTDMJYPHYBN7IOYDQYATIHANCNFSM4JZGO5OA .

blargsnarf commented 4 years ago

Can you send me a sample file, the anb file On Tue, Dec 10, 2019, 6:49 PM blargsnarf @.***> wrote: I managed to unpack a .pak file, but when I go to unpack the .anb within, I get this error: https://i.imgur.com/rX0vA9X.png http://url Log: Decompressing WFLZ chunks.. Log: Cleaning up.. Log: Creating images.. Error: Something wen't wrong when converting the image frame_0.png 16777215 12 I think I have Python and Pillow installed properly. I've tried a few different anb files.

Sure thing: https://www.dropbox.com/s/9huwvy8hfa2wk0e/cardMaster.anb?dl=0

Also worth noting is if I run it from a directory that has spaces in it (i was trying to run it from E:/Game Stuff/shovelknight) it gets as far as Game and then breaks.

But even moving it to a root folder (in this case E:/shvknght) returns this "something wen't wrong" error.

Hopefully it's just me installed python/pillow wrong - let me know if it works for you.

leamsii commented 4 years ago

Found out what the problem is, this particular file has slightly different offsets for its image width and height and threw the whole thing off. I'm soon going to be updating this tool to be more efficient and easier to use, but for now here are the images. CardMaster.zip

blargsnarf commented 4 years ago

That's great, I'm glad it's something solvable.

Unfortunately I tried it with a lot of different paks/anbs, and they all returned the same error... paks work fine, but none of the anbs extract. The game did just update yesterday, so maybe they changed something with the general offsets.

Regardless, looking forward to an updated version, a lot of the new areas have some really beautiful sprites and it'd be great to take a look at them.

leamsii commented 4 years ago

Thank you for letting me know

leamsii commented 4 years ago

Updated the tool to work with the newer version of SK, sprite swapping functionality will later be added.