Users browsing this thread: 1 Guest(s)
Descrambling Unity Spritesheets/Images
#1
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!
Reply
Thanked by:
#2
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.
Reply
Thanked by:
#3
Nope, I've never quite seen that protection method outside of select Unity games, but that's interesting!
Reply
Thanked by:
#4
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.
Once there was a way to get back homeward
Reply
Thanked by: Resistiv
#5
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
Reply
Thanked by:


Forum Jump: