MAD MAX (.arc/.tab) archives

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: MAD MAX (.arc/.tab) archives

Post by aluigi »

Just FYI, I have updated my justcause2 script to work with these archives and I replaced unzip_dynamic with deflate_noerror so now you can even try to reimport them.
That doesn't mean that it will reimport all the files because unzip_dynamic, zlib_noerror and deflate_noerror automatically compress every file, even those that weren't compressed in the original archive because I use only "clog" instead of "log" and "clog" due to some files in JC2.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: MAD MAX (.arc/.tab) archives

Post by Ekey »

Don't works. Tested on game1.tab
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: MAD MAX (.arc/.tab) archives

Post by aluigi »

I tried the script with the sample provided and it worked.
Are there other samples available with which it doesn't work?
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: MAD MAX (.arc/.tab) archives

Post by Ekey »

Same with game31.

Image

Files with size 0 + does not work correctly string NAME p= "%08x.%s" NAME_CRC EXT
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: MAD MAX (.arc/.tab) archives

Post by aluigi »

I don't have the game, can you upload game31.tab?
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: MAD MAX (.arc/.tab) archives

Post by Ekey »

Ops forgot attach it, sorry :)

Offzip log

Code: Select all

Offset file unzipper 0.3.5
by Luigi Auriemma
e-mail: aluigi@autisticiorg
web:    aluigiorg
- open input file:    e:\Games\Mad Max\archives_win64\game31.arc
- enter in directory: test
- zip data to check:  32 bytes
- zip windowBits:     -15
- seek offset:        0x00000000  (0)

+------------+-------------------------+
| hex_offset | zip_size --> unzip_size |
+------------+-------------------------+

  0x00000000  22914270 --> 46137344
  0x015da4de  26705353 --> 46137344
  0x02f522a7  18924651 --> 36568520
  0x0415e800  22863296 --> 46137344
  0x0572c5c0  26899543 --> 46137344
  0x070d3a17  18331342 --> 35523844
  0x0824f800  22908790 --> 46137344
  0x09828776  26705310 --> 46137344
  0x0b1a0514  18824593 --> 36256228
  0x0c394800  22185524 --> 43374904
  0x0d8bd000  21125198 --> 41946504
  0x0ece3000  21697968 --> 42747164
  0x10194800  22015430 --> 43033276
  0x11693800  25300568 --> 46137344
  0x12eb4658  1630516 --> 4358208
  0x13042800  25236898 --> 46137344
  0x14853da2  1744532 --> 4456620
  0x149fe000  7830350 --> 18290532
  0x15176000  18006909 --> 32343996
  0x162a2800  9669499 --> 21051404
  0x16bdb800  18450412 --> 33139908
  0x17d74000  18272506 --> 32872140
  0x18ee1800  27351459 --> 44189000
  0x1a8f7800  16203710 --> 23338084
  0x1b86b800  12002048 --> 17748084
  0x1c3de000  21009688 --> 46137344
  0x1d7e7518  22264065 --> 37497312
  0x1ed23000  21894390 --> 46137344
  0x202044f6  12088510 --> 22169884
  0x20d8c000  21689064 --> 46137344
  0x2223b2e8  11904337 --> 21474760
  0x22d96000  21699647 --> 46137344
  0x24247c3f  11457136 --> 20484848
  0x24d35000  21676828 --> 46137344
  0x261e131c  11752865 --> 21049952
  0x26d17000  21700191 --> 46137344
  0x281c8e5f  11444579 --> 20444960
  0x28cb3000  20255521 --> 46137344
  0x2a004321  13496877 --> 23034324
  0x2ace3800  21624001 --> 46137344
  0x2c182cc1  11704575 --> 22617184
  0x2ccac800  19661018 --> 46137344
  0x2df6c8da  6596692 --> 12404600
  0x2e5b7800  19662332 --> 46137344
  0x2f877dfc  6606417 --> 12452592
  0x2fec5000  19592140 --> 46137344
  0x311743cc  5693853 --> 10743944
  0x316e2800  19592646 --> 46137344
  0x32991dc6  5722613 --> 10826740
  0x32f07000  19592257 --> 46137344
  0x341b6441  5633785 --> 10642712

- 51 valid zip blocks found
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: MAD MAX (.arc/.tab) archives

Post by aluigi »

Ok I have updated the script and now it should work correctly.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: MAD MAX (.arc/.tab) archives

Post by Ekey »

Well, yes now it works.

Code: Select all

  00000000 68544274   a5e950b4.sarc
  0415e800 68094181   881e3912.sarc
  0824f800 68438693   04c579f5.sarc
  0c394800 22185524   1ee03416.sarc
  0d8bd000 21125198   cb1f9029.sarc
  0ece3000 21697968   b81c8c49.sarc
  10194800 22015430   f659fd98.sarc
  11693800 26931084   0a8f202a.sarc
  13042800 26981430   cd6e5af6.sarc
  149fe000 7830350    68287759.sarc
  15176000 18006909   90b3bdcf.sarc
  162a2800 9669499    ad674d6d.sarc
  16bdb800 18450412   3f684d41.sarc
  17d74000 18272506   a0205664.sarc
  18ee1800 27351459   771ebac9.sarc
  1a8f7800 16203710   8aabe826.sarc
  1b86b800 12002048   ad54c566.sarc
  1c3de000 43273753   58904414.sarc
  1ed23000 33982900   a57941d2.sarc
  20d8c000 33593401   c81f28c1.sarc
  22d96000 33156783   df73d38f.sarc
  24d35000 33429693   911e46a8.sarc
  26d17000 33144770   210192b1.sarc
  28cb3000 33752398   c833ea13.sarc
  2ace3800 33328576   87d6ec7a.sarc
  2ccac800 26257710   d1e3e74e.sarc
  2e5b7800 26268749   4033b3bf.sarc
  2fec5000 25285993   1c77809c.sarc
  316e2800 25315259   303af287.sarc
  32f07000 25226042   0db34954.sarc

- 30 files found in 70 seconds
  coverage file 0   100%   952        944
  coverage file 1   199%   1759633404 879845376
  coverage file -9    0%   330        46137344


But as you can see offzip dump 51 blocks.

Image

Additional 21 blocks it's DDS's.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: MAD MAX (.arc/.tab) archives

Post by aluigi »

Now I have an idea of what are those 0x12 additional fields, they are chunks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: MAD MAX (.arc/.tab) archives

Post by aluigi »

It's a bit chaotic in my opinion because I don't see offsets for these chunks and the sizes are expressed in an incremental way.
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: MAD MAX (.arc/.tab) archives

Post by michalss »

aluigi wrote:Now I have an idea of what are those 0x12 additional fields, they are chunks!


I was actually think about this, coz if you look at the files extracted from script written by Ekey, they always starts some strange way... nasty format it is :(

. - i would not use same script like for JC2, can you please separe it ?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: MAD MAX (.arc/.tab) archives

Post by aluigi »

yeah I agree that it would be better to have a separate script but the format is not fully covered yet, we don't have the offset of the chunks.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: MAD MAX (.arc/.tab) archives

Post by Ekey »

aluigi wrote:we don't have the offset of the chunks.

The additional headers have this information. I will share info later, after several tests
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: MAD MAX (.arc/.tab) archives

Post by michalss »

Ekey wrote:
aluigi wrote:we don't have the offset of the chunks.

The additional headers have this information. I will share info later, after several tests



Uff nice, also doing some research on my own, but not luck yet :( Just need proper script and huraaa/..
ShadowEagle
Posts: 9
Joined: Fri Aug 07, 2015 3:21 pm

Re: MAD MAX (.arc/.tab) archives

Post by ShadowEagle »

Is there any perfectly working script to unpack the files?

What should a bat file contain to reimport for example game0.arc?

Possible to reimportant using only the extracted directory (means no game0.arc does exists)?
ShadowEagle
Posts: 9
Joined: Fri Aug 07, 2015 3:21 pm

Re: MAD MAX (.arc/.tab) archives

Post by ShadowEagle »

Any news on this?
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: MAD MAX (.arc/.tab) archives

Post by Ekey »

Here updated script for unpack with names :)

Image
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: MAD MAX (.arc/.tab) archives

Post by michalss »

any news about chunks ?
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: MAD MAX (.arc/.tab) archives

Post by spider91 »

anyone knows what file contains texts?

upd.

Texts are in .stringlookup files.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: MAD MAX (.arc/.tab) archives

Post by Ekey »

michalss wrote:any news about chunks ?

nope

Note: About file names : Use Process Monitor while playing game. After, save log to XML and post here for rebuild relative list.