Struggling With Super Paper Mario’s .bin and .dat files

Started by Rexius55, May 19, 2021, 08:51:16 AM

Previous topic - Next topic

Rexius55

For those just seeing this thread, I've found what I need to out.


So I've been searching everywhere on how to do what I'd like to do with Super Paper Mario for the Wii's files, which I extracted using Dolphin. I know everything about the .tpl, .txt, .brstm, and .brsar files- easy stuff. But I have binary and data files in the mix, and I've heard they need to be decoded with an LZ10 decompressor, but the ones I found are super tricky, and the source was vague. Does anybody know how I can extract and/or decode those files in order to access the content within the .bin files and .dat files in order to edit them? If you need me to elaborate on anything, completely fine, I just need someone who can help.

Jorpho

Quote from: Rexius55 on May 19, 2021, 08:51:16 AMIf you need me to elaborate on anything, completely fine
Well, how about you start with that?

QuoteI've heard they need to be decoded with an LZ10 decompressor, but the ones I found are super tricky, and the source was vague.
Perhaps you could provide some links to what you've found to be "super tricky" and "vague"? That way people don't have to waste their time repeating stuff that is "super tricky" and "vague".
This signature is an illusion and is a trap devisut by Satan. Go ahead dauntlessly! Make rapid progres!

Rexius55

I appreciate your response. Here: http://kuribo64.net/board/thread.php?id=1230 I know they weren't exactly discussing it for all to see, it was more their own discussion, but it was a bit hard for me to get. Also, whenever I open the .bin or .dat files in a hex editor (I'm using HxD), there's only a bunch of gibberish, not much to help me decipher what all the code does and means. There are a few documents on the code of Super Paper Mario, however, the majority of what I need is stuck behind these symbols, which I don't know how to put into an understandable format. (The link's top picture is describing the stuff I see in the hex editor.)

https://imgur.com/a/Ghx6GQN

Not only that, but whenever I attempt to open the files in Notepad++, I get these: (middle picture of link is a .bin, bottom picture of link is a .dat file).

Also, here's the LZ decompressor I was talking about, which I semi-figured out, but the directions both in the Github link and Python scripts themselves are vague or just not there. https://github.com/magical/nlzss

I just want to know how to get that code into a readable format, however that may be done. I've already tried to look up a ton of stuff about LZSS and everything, I just want a clear, concise answer on what I must do from someone who for sure knows.

Jorpho

Quote from: Rexius55 on May 20, 2021, 12:12:24 AMNot only that, but whenever I attempt to open the files in Notepad++, I get these:
Yes, binary data normally does not display properly in Notepad++.  That's what the hex editor is for.

QuoteI just want to know how to get that code into a readable format
A "clear, concise answer" would be greatly aided by knowing the question.  Are you looking for the text? I see your other link suggests that it is "plain text with an XML-like syntax". Or are you looking for something else?

If you haven't seen it already, you may enjoy:
The Newbie Package of REQUIRED Material

ROMHacking.net FAQ: You ask, we answer!
ROMHacking.net Getting Started Section: Newbies Go HERE!
ROMHacking.net Documents Section!
How to ask questions the smart way.
On the Essence of ROM Hacking
Talk with experienced people in our IRC chat and ask specific questions there.
This signature is an illusion and is a trap devisut by Satan. Go ahead dauntlessly! Make rapid progres!

Rexius55

Quote from: Jorpho on May 20, 2021, 01:49:21 AM
Yes, binary data normally does not display properly in Notepad++.  That's what the hex editor is for.
That's basic hacking knowledge. Not my point. My point is that I wanted to know how to decompress that data, because whenever I open the .bin files in BrawlBox, I get some textures and other files hidden inside.

Quote from: Jorpho on May 20, 2021, 01:49:21 AM
A "clear, concise answer" would be greatly aided by knowing the question.  Are you looking for the text? I see your other link suggests that it is "plain text with an XML-like syntax". Or are you looking for something else?
I'm looking for several other things. They're talking about a .txt file there with every bit of text in the game. But thanks for the links, I should look elsewhere.