Format IDX

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
cover1995
Posts: 15
Joined: Sun Nov 02, 2014 9:17 pm

Format IDX

Post by cover1995 »

Good day. Help unpack format .IDX
I think it stores the text files for the game ...
Throw off 2 files
https://mega.co.nz/#!L9lSnTiI!kabBT0Qxy ... sfv8slEJ3g

https://mega.co.nz/#!ngNwCbqK!8M5E3_s3K ... yRLvGVLZHo
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Format IDX

Post by aluigi »

Name of the game?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Format IDX

Post by aluigi »

cover1995
Posts: 15
Joined: Sun Nov 02, 2014 9:17 pm

Re: Format IDX

Post by cover1995 »

Thank you very much. but how to repack back?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Format IDX

Post by aluigi »

You can't reimport because the compression is applied on the whole data file, in fact the script uses MEMORY_FILE
cover1995
Posts: 15
Joined: Sun Nov 02, 2014 9:17 pm

Re: Format IDX

Post by cover1995 »

That is, you can not back pack?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Format IDX

Post by aluigi »

No, you can't.
cover1995
Posts: 15
Joined: Sun Nov 02, 2014 9:17 pm

Re: Format IDX

Post by cover1995 »

Then unpack it makes no sense((
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Format IDX

Post by aluigi »

In reality there is a solution.

It's not quick as using that script but it should work perfectly.

Step 1:
open data.cnt with 7-zip and unpack it, the output file will be just "data" without extension.

Step 2:
Use this script, it's just the same of the website but without automatic decompression of data.cnt

Code: Select all

open FDDE "" 1
open FDDE "IDX"
set PATH string ""
set NAME string ""
math SUB_ENTRIES = 1
callfunction EXTRACT

startfunction EXTRACT
    string PATH += NAME
    string PATH += /
    math ENTRIES = SUB_ENTRIES
    for i = 0 < ENTRIES
        get TYPE long
        get NAME string
        if TYPE == 0
            get SUB_ENTRIES long
            callfunction EXTRACT
        else
            get OFFSET long
            get SIZE long
            set FNAME string PATH
            string FNAME += NAME
            log FNAME OFFSET SIZE 1
        endif
    next i
endfunction


Step 3
edit your files and delete those that have not been modified

Step 4
use reimport.bat

Step 5
use gzip on the modified "data" file.
If you don't have gzip or don't know how to use it, use this script:

Code: Select all

comtype gzip_compress
get SIZE asize
get NAME basename
string NAME += ".cnt"
clog NAME 0 SIZE SIZE


Done, it should work perfectly.

Maybe the game is even able to use the extracted files without archive, have you tried it?

And remember that extracting the files makes EVER sense.
cover1995
Posts: 15
Joined: Sun Nov 02, 2014 9:17 pm

Re: Format IDX

Post by cover1995 »

You will not believe what I just did not try .. I can give you a link to download the game, there's a lot of that has to be interesting for you, I'm already half a year I suffer to translated into Russian

The problem ?
reomport.bms

Code: Select all

comtype gzip_compress
get SIZE asize
get NAME basename
string NAME += ".cnt"
clog NAME 0 SIZE SIZE


This data are text files that I need to change, but there is no text at unpacking
cover1995
Posts: 15
Joined: Sun Nov 02, 2014 9:17 pm

Re: Format IDX

Post by cover1995 »

I was given the text in binary form(
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Format IDX

Post by aluigi »

As far as I remember the INI are compiled.
cover1995
Posts: 15
Joined: Sun Nov 02, 2014 9:17 pm

Re: Format IDX

Post by cover1995 »

I do not understand
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Format IDX

Post by aluigi »

Basically the INI files are not in clear text, they are in binary form.
If you open them with a hex editor you can see that each file is divided in at least two parts, one with numbers and one with text.
I can't help with decompilers.
cover1995
Posts: 15
Joined: Sun Nov 02, 2014 9:17 pm

Re: Format IDX

Post by cover1995 »

Thanks for the help, I would like to stop at the last as pack files back? You can be more specific?
cover1995
Posts: 15
Joined: Sun Nov 02, 2014 9:17 pm

Re: Format IDX

Post by cover1995 »

UP
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Format IDX

Post by aluigi »

Personally I can't help further.
cover1995
Posts: 15
Joined: Sun Nov 02, 2014 9:17 pm

Re: Format IDX

Post by cover1995 »

No, I mean to repack more back pack files
cover1995
Posts: 15
Joined: Sun Nov 02, 2014 9:17 pm

Re: Format IDX

Post by cover1995 »

There is a problem if the file is large, then it does not repack
Image
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Format IDX

Post by aluigi »

That's a rule of the reimport feature, the file or re-compressed file must be the same or smaller than the original file.