The VG Resource

Full Version: Descrambling Unity Spritesheets/Images
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all!

Recently, I've encountered some trouble with descrambling some Unity-based images and spritesheets that I've extracted using Asset Studio.
As you may know, many of these sheets tend to come out all cut-up and out of order and not really human readable, see below.
[Image: heianjie_scrambled.png]


For an image like this, it can be truly difficult to hand-assemble the picture in a way that is representative of what is shown in-game (see my best attempt below, which left out some small transparent edges that I couldn't faithfully position).
[Image: heianjie_assembled.png]

Sure, while this looks absolutely fine and the little edges could go easily unnoticed, I just can't brush off the fact that this is technically incorrect. So, is there a way to extract a script or something from the game files that properly assembles these images, or even a standardized algorithm for reassembly?

Thanks!
Reminds me of the kind of protection that mangas are known to have in reading sites. Have you seen that before?

[Image: 357lhxj.png]
BTW you did a fine job by putting her together.
Nope, I've never quite seen that protection method outside of select Unity games, but that's interesting!
If the pieces are there, the instructions on how to reassemble the pieces are there as well. The game must know how to pack them back up together again, so the data has to exist.
I went to some (albeit maybe too little) detail about a similar issue here.
But basically, I'd start by manually writing down numbers about the coordinates and widths and heights and doing a hex search for said bytes in the file(s). You're bound to find a table somewhere and that information is enough to piece that stuff back up.
Thanks Sam!

I took some time to look through the files, but only found atlases and tables for the Live2D sprites. However, I did find a rather suspect file just called "scripts". Took a quick look in a hex editor and, to my surprise, it lacked the regular UnityFS header that most files in the app had. I've provided it down below if anyone can help!

scripts