0

I hope I am in the correct place, so to start I have extracted this archive named "main.pak" from the 2008 Nintendo DS game titled, "SpongeBob SquarePants Featuring Nicktoons - Globs of Doom" and need help figuring out how to extract it or at least understand how to make a tool to extract it. I also have Googled every possible term to find information on this archive and have come up with nothing as I understand .pak is a common and specific to the format extension and could be anything.

Anyway, upon opening the file in a hex editor, it has the magic header "50 41 4B 00" or "PAK0", and has multiple of these "PAK0" headers within it like other PAKs inside of the main archive? or directories perhaps? There even seems to be filenames of assets in this archive! Below are some hex editor screenshots of this. the file in a hex editor

I believe the archive is LZ77Wii compressed or maybe even uncompressed! So, here is a link to a sample of the archive for if anyone can look at it and help me determine its format. Thanks very much in advance! 😊 link to the file: https://drive.google.com/file/d/1YwThV6YzKrzuijTJ9rBlWpnCfgQmCXQ_/view?usp=sharing

4
  • have you tried opening it with 7zip?
    – jsotola
    Commented May 20 at 18:16
  • @jsotola Yes, I have. I have also tried every possible tool to extract or open it, and they all throw an error of some sort due to this format being what it is. It isn't a Quake PAK, it isn't any of the PAK formats I see online, so I believe it's a specific proprietary format. Commented May 20 at 18:53
  • When you say filenames do you mean the strings like c201_ ? I don't see anything else obvious. There's also the string "CellAnime" but it's never in one piece, and the byte splitting it is in different places, so that does look like there's some compression here (but not one that obscures bytes like LZW), but then I don't recognise the just-one-bytes here. You could try picking one of those and treating the byte in the middle as a Wii LZ77 control byte and seeing if you can unpick the compression before and after.
    – Rup
    Commented May 20 at 23:57
  • @Rup Yes, those are strings for assets in the game, and the "CellAnime" string is actually names of animation banks used in the game as NANR "Nintendo Animation Resource" files. I have also through hex found that there is many openable DS formats like that. if it helps any, this archive seems to respond well to "LZ77Wii" compression, using that I can get some files understandable from it, but not what I believe should or could be extracted. Commented May 21 at 0:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.