The VG Resource

Full Version: Ripping sprites using HxD
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
I ripped them for you - I'm short on time so I'll write an explanation tomorrow.

(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
(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.