Users browsing this thread: 3 Guest(s)
Ripping sprites using HxD
#1
I tried using this thread to extract images from an app game called Unicorn's Wrath.
https://www.vg-resource.com/thread-33565.html
But the instructions they gave were unclear and I couldn't get the images. Can I have the clear and simple instructions for doing this? I'm autistic so I would be able to understand it better if it was simplified.
Reply
Thanked by:
#2
I ripped them for you - I'm short on time so I'll write an explanation tomorrow.

applecuckoo - ripper of sounds, sprites and models

Places to get help:
DYKG/VG Resource Discord - This is where most of the ripping experts on the VG Resource hang out these days, so you should probably start here. Any requests to rip stuff (i.e. "Please rip sounds/models/sprites from game X!") are only allowed here as per the rules.

ResHax forum - Another forum that is home to most of the reverse engineers who were on the old ZenHax and XenTax forums. A great place to get help for any mysterious files. I'm also there under the same username.

And remember, always upload example files. That way, people don't have to dig in and fetch them for you.
Reply
Thanked by: Coolkatisa
#3
(02-01-2024, 02:21 AM)applecuckoo Wrote: I ripped them for you - I'm short on time so I'll write an explanation tomorrow.


Thank you so much!!! I can't wait to hear how you did it
Reply
Thanked by: applecuckoo
#4
(02-01-2024, 06:23 PM)Coolkatisa Wrote:
(02-01-2024, 02:21 AM)applecuckoo Wrote: I ripped them for you - I'm short on time so I'll write an explanation tomorrow.


Thank you so much!!! I can't wait to hear how you did it

Ah rats, I got sidetracked by other stuff so I didn't realise you hopped online. I usually use ImHex on my Linux laptop, so I actually got HxD on a separate Windows 7 computer to make this super easy!

The starting header for a PNG file is 49 45 4E 44 AE 42 60 82 and the ending header is 49 45 4E 44 AE 42 60 82.
Here's what you need to do:
  1. We'll start by counting how many times we can find the starting header. Use Ctrl-F, then go into the 'Hex-values' tab and paste the hex. Set the search direction to 'All', and click 'Search All'. Note down the fact that you get five hits.
  2. Note down each of the hex codes in the Offset column in exact order. This will come in handy later.
  3. Repeat step 1 and 2, but with the ending header. You should get five hits again. That means we can reasonably say that our game.droid contains 5 hidden PNGs.
  4. Double click each row, select the comma next to 'IEND(copyright sign)B`' and note down the hex code next to 'Offset(h)'. Make sure to select just the comma.
  5. Okay, here's where we copy the images. Hit Ctrl-E and you will see a 'Select block' menu. Type in the start offset in 'Start-offset' and the end offset in 'End-offset'. Make sure the 'hex' and 'End-offset' boxes are selected (i.e. 'Length' and 'dec' or 'oct). Click OK.
  6. You should see a lot of stuff selected. Ctrl-C to copy it all. You'll probably get an intimidating warning that the data might not stay intact if we paste it outside of HxD. Don't worry, because we'll reconstruct the file in HxD.
  7. Ctrl-N to create a new file, then Ctrl-V to paste our PNG data. Click OK to the notice about changing the file size - this is what we want.
  8. Use Ctrl-S to save. Give your new file a name that ends with .PNG and open it up. Congratulations - you've reconstructed your first file!
  9. Now you just need to repeat all the steps from 5 onwards for the other four images.

I hope you enjoy the process - shoot me a reply if you have any questions.
applecuckoo - ripper of sounds, sprites and models

Places to get help:
DYKG/VG Resource Discord - This is where most of the ripping experts on the VG Resource hang out these days, so you should probably start here. Any requests to rip stuff (i.e. "Please rip sounds/models/sprites from game X!") are only allowed here as per the rules.

ResHax forum - Another forum that is home to most of the reverse engineers who were on the old ZenHax and XenTax forums. A great place to get help for any mysterious files. I'm also there under the same username.

And remember, always upload example files. That way, people don't have to dig in and fetch them for you.
Reply
Thanked by: Raccoon Sam


Forum Jump: