Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ripping sprites and textures from Lego Mario/Luigi/Peach #6

Open
ghost opened this issue Apr 3, 2022 · 26 comments
Open

Ripping sprites and textures from Lego Mario/Luigi/Peach #6

ghost opened this issue Apr 3, 2022 · 26 comments

Comments

@ghost
Copy link

ghost commented Apr 3, 2022

Not an issue, but yes a request: being able to extract sprites/textures that are only visible/usable on their chest, like flag animation among others.

I know the app has similar sprites, but are not equal and they aren't animated as they show up in the toy itself.

Thanks.

@jeffyjeffy1023
Copy link

If we can figure out some way to read the figure's firmware, it might be possible. I also wanna see this happen.

@jeffyjeffy1023
Copy link

There's probably some way to do it with a chip reader and a cracked-apart Luigi/Peach/Mario but that seems a bit impractical to me

@ghost
Copy link
Author

ghost commented Apr 4, 2022

I hope you or someone else make this possible.

@ghost
Copy link
Author

ghost commented Apr 11, 2022

@jeffyjeffy1023 Are you able to (if is the case) decrypt and extract files from lego mario and luigi .bin files?

I uploaded them, so, you can check them by yourself:

lego mario bin: https://cdn.discordapp.com/attachments/493153303551541258/963065479369478224/Mario_AssetPack-4-0-0-202.bin

lego luigi bin: https://cdn.discordapp.com/attachments/493153303551541258/963065570947919882/Luigi_AssetPack-4-0-0-215.bin

Thanks.

@jeffyjeffy1023
Copy link

jeffyjeffy1023 commented Apr 12, 2022 via email

@jeffyjeffy1023
Copy link

jeffyjeffy1023 commented Apr 12, 2022 via email

@jeffyjeffy1023
Copy link

jeffyjeffy1023 commented Apr 12, 2022 via email

@ghost
Copy link
Author

ghost commented Apr 12, 2022

Very well done on that! Nice news, indeed!

How can i export each track as .wav, for example? I'm new to that app!

I got those files from ios app, simple! lol

The next step is extract sprites from those bin files! =]

@ghost
Copy link
Author

ghost commented Apr 14, 2022

This time i used watto's game extractor tool to extract files from bins, but they are still encrypted: https://www.mediafire.com/file/lgjoq7707y0uqyg/Lego_Mario_Luigi_files_%2528extracted_and_encrypted%2529.zip/file

But, this time will be better to just decrypt files instead of trying to find a way of dumping them.

@jeffyjeffy1023
Copy link

jeffyjeffy1023 commented Apr 15, 2022 via email

@ghost
Copy link
Author

ghost commented Apr 15, 2022

All the files are the same? Did you try to open all them in audacity to be sure?

@ghost
Copy link
Author

ghost commented Apr 15, 2022

Other good news: someone create a quickbms script which had let me extract files from those bins, this time being real files, not as you described.

This time, they are .dat files. I hope for the best that there is a tool which can extract their files or you can do that: https://cdn.discordapp.com/attachments/522932519524368404/964511022662680636/Lego_Mario_Luigi_files_dat.rar

@jeffyjeffy1023
Copy link

jeffyjeffy1023 commented Apr 16, 2022 via email

@ghost
Copy link
Author

ghost commented Apr 16, 2022

Alright!

I thank you for helping me with all this!

Beyond Audacity, are you using another tool to try to extract sounds and textures from those files?

@ghost
Copy link
Author

ghost commented Apr 16, 2022

Should be better and more direct to just extract them from the toy, since they may be uncompressed in order to run on toy's simple hardware.

Try that.

@ghost
Copy link
Author

ghost commented Apr 16, 2022

Idk if this will help, but, i found a dummy bin from game files: https://cdn.discordapp.com/attachments/493153303551541258/964946774466899998/DummyAssetPack.bin

@jeffyjeffy1023
Copy link

jeffyjeffy1023 commented Apr 17, 2022 via email

@jeffyjeffy1023
Copy link

jeffyjeffy1023 commented Oct 11, 2022 via email

@BLiNXthetimesweeperGOD
Copy link

Late response, but these files aren't encrypted. The graphics are stored in 15 (or 16?) bits per pixel. I was able to get all of this with a tool known as tilemolester almost 2 years ago:
LEGO Luigi progress

@BLiNXthetimesweeperGOD
Copy link

BLiNXthetimesweeperGOD commented May 11, 2023

Oh, wait. That one had a ton of chunks deleted as I was assembling the sprites here:
LEGO Luigi
I might also start work on reversing the firmwares as well as the asset packages. The firmware also might've identified the hardware LEGO Mario runs on:
https://docs.zephyrproject.org/2.5.0/boards/arm/cc26x2r1_launchxl/doc/index.html
Oh, one more thing. I'm getting every single (known) firmware and asset package for Mario, Luigi and Peach uploaded to the Internet Archive:
https://archive.org/details/lego-mario-firmwares-and-asset-packs

@ghost
Copy link
Author

ghost commented May 12, 2023

@BLiNXthetimesweeperGOD

Wow! Amazing job! =D

Can you tell me stuff like software version, needed palette, steps to do/follow and which files you got those sprites from, exactly? =]

@BLiNXthetimesweeperGOD
Copy link

BLiNXthetimesweeperGOD commented May 12, 2023

These don't use a palette, the mode is 2-Dimensional (makes data act more like variable width bitmaps than tilesets) and the codec is one of the 15bpp/16bpp ones. To get the right colors, you might need to go forward or back by a byte. Those sprites came from an asset package (all of the packages should have sprites and audio in them. I'm currently trying to figure those out too.) You'll have to mess with the width of the displayed graphics to get things to appear correctly.

@ghost
Copy link
Author

ghost commented May 13, 2023

@BLiNXthetimesweeperGOD

Which tool did you use to extract those bin files from the base ones?

@BLiNXthetimesweeperGOD
Copy link

@Machow8 I forgot to reply, but this is what I use
https://github.com/toruzz/TileMolester

@ghost
Copy link
Author

ghost commented Jun 29, 2023

@Machow8 I forgot to reply, but this is what I use https://github.com/toruzz/TileMolester

Alright!

So, what is all the setup you use in Tile Molester to properly rip those sprites with correct aspect ratio/size and color palette? =]

@JUDEPLAYS
Copy link

@BLiNXthetimesweeperGOD please upload Lego Marios and peaches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants