02-22-2013, 04:44 PM
I do! And I can tell you that this will only work in a few cases!
Sorry for derailing, I'll keep this short.
First of all, a .jar is nothing but a renamed .zip thus you can unpack it by changing the extension and doing your usual unzipping (with the files) (some people can do it without renaming, yesyes).
Then you've got a bunch of files and more files and if you're lucky some of these files contain the graphics. Now this method basically tells you to check the files if they contain PNG or BMP files (ebmedded within them) (searching for "BMP" will most likely not help you with BMP files as their header says "BM6" if I'm not mistaken (probably other numbers, too)).
PNG files start with "PNG" in ASCII so searching for "PNG" will bring you to the start of a PNG file within the file you're checking (if there are any!!), same with "BM6" for BMPs. By deleting all the data in front of it (or copying everything starting from there), you get a file that starts with the image data you want so your image software can recognize it.
However this only works if they actually use PNG or BMP and the files aren't compressed!! (Aside of PNG's own interner compression, that is)
Many games, however, use different file formats and compression and mean tricks.
Oh my gosh I just read about JNG - PNG-like files that actually contain JPEG data. Eeeeeh.
Sorry for derailing, I'll keep this short.
First of all, a .jar is nothing but a renamed .zip thus you can unpack it by changing the extension and doing your usual unzipping (with the files) (some people can do it without renaming, yesyes).
Then you've got a bunch of files and more files and if you're lucky some of these files contain the graphics. Now this method basically tells you to check the files if they contain PNG or BMP files (ebmedded within them) (searching for "BMP" will most likely not help you with BMP files as their header says "BM6" if I'm not mistaken (probably other numbers, too)).
PNG files start with "PNG" in ASCII so searching for "PNG" will bring you to the start of a PNG file within the file you're checking (if there are any!!), same with "BM6" for BMPs. By deleting all the data in front of it (or copying everything starting from there), you get a file that starts with the image data you want so your image software can recognize it.
However this only works if they actually use PNG or BMP and the files aren't compressed!! (Aside of PNG's own interner compression, that is)
Many games, however, use different file formats and compression and mean tricks.
Oh my gosh I just read about JNG - PNG-like files that actually contain JPEG data. Eeeeeh.