MineCraft .tga

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
lllccc
Posts: 32
Joined: Thu Apr 02, 2015 3:07 pm

MineCraft .tga

Post by lllccc »

hey guys i just wanted to know if anyone can take a look at this file? (im not sure if i posted this in the right place)
http://www.mediafire.com/download/ydp7m ... le0036.tga
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: MineCraft .tga

Post by aluigi »

In my opinion there is something missing because there is no size field for the archive PNG and the file seems incomplete.

I have made something to extract the files, don't worry for the error at the end:

Code: Select all

for
    get ZERO short
    callfunction EXTRACT

    get ZERO byte
    savepos OFFSET

    findloc END_OFF binary "IEND"
    math END_OFF + 8
    goto END_OFF
    get DUMMY byte
    get DUMMY short
    get DUMMY long
    if DUMMY == 0x5845741f
        getdstring DUMMY 0x24
        savepos END_OFF
    endif

    xmath SIZE "END_OFF - OFFSET"
    log "" OFFSET SIZE

    math END_OFF + 1
    goto END_OFF
next

startfunction EXTRACT
    get STRINGS long
    get DUMMY long
    get NAMESZ short
    xmath NAMESZ "(NAMESZ + 1) * 2"
    getdstring NAME NAMESZ
    set NAME unicode NAME
    print "%NAME%"
    for i = 1 < STRINGS # work-around
        callfunction EXTRACT
    next i
endfunction

Anyway I suggest you to use a file ripper that supports the PNG files
MerlinSVK
Posts: 165
Joined: Wed Aug 13, 2014 10:00 am

Re: MineCraft .tga

Post by MerlinSVK »

Open it in some hex editor. You will find it's PNG with some data at beginning.

Edit: Luigi overtook me :D
lllccc
Posts: 32
Joined: Thu Apr 02, 2015 3:07 pm

Re: MineCraft .tga

Post by lllccc »

hmm can you guys recommend a ripper? i tired x-ripper and it got 1 file like this
Image
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: MineCraft .tga

Post by aluigi »

lllccc
Posts: 32
Joined: Thu Apr 02, 2015 3:07 pm

Re: MineCraft .tga

Post by lllccc »

hmm when i tired most the programs they say its looking at the bitmap and nothing happens seems like the only one that kinda works was x-ripper
the script did extract the images
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: MineCraft .tga

Post by aluigi »

x-ripper extracted nothing because what you are watching is just the file you posted "as-is".

And Hyper Ripper of Dragon Unpacker works perfectly extracting all the png, just like my script did.
I don't know why you say it doesn't work. I guess you didn't select Hyper Ripper:
CTRL-H, go on Search, select the tga file in Source and then press the Search button, all the results will be available in the main window.

Direct links to the latest versions of Dragon Unpacker:
http://sourceforge.net/projects/dragonu ... z/download
http://download.elberethzone.net/dup5/n ... svn-708.7z
lllccc
Posts: 32
Joined: Thu Apr 02, 2015 3:07 pm

Re: MineCraft .tga

Post by lllccc »

hmm okay yea i didn't choose that i will try it

It Worked thank you so much guys
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: MineCraft .tga

Post by aluigi »

You are welcome :)
I agree that the usage of Hyper Ripper is not so intuitive, I'm going to add the previous steps in the other thread.