Mini ninjas file help!

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Evidence dot 7z
Posts: 1
Joined: Thu Jun 22, 2017 7:39 pm

Mini ninjas file help!

Post by Evidence dot 7z »

I am having much trouble decrypting and extracting 2 types of files from Mini Ninjas. I am trying to open the TEX and PRM files. I tried to create a script for these, but the tutorials i saw and the scripts it tried just wouldn't work. Can anyone help me in either creating a script or showing me how to make some for these files? :(

Link to example files: http://www.mediafire.com/file/cy4abdek1 ... e_Main.zip

Note: same file structure as Hitman: Blood Money.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Mini ninjas file help!

Post by aluigi »

For the TEX files:

Code: Select all

endian big
get TEX_SIZE asize
get OFFSET long
math OFFSET + 0x200
goto OFFSET
for
    get OFFSET long
    if OFFSET == 0
        break
    endif
    savepos TMP
    goto OFFSET
    get SIZE long
    math SIZE   - 4
    math OFFSET + 4
    log "" OFFSET SIZE
    goto TMP
next