ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon Jun 21, 2021 4:32 pm

All times are UTC




Post new topic  Reply to topic  [ 82 posts ]  Go to page Previous 1 2 3 4 5 Next
Author Message
PostPosted: Sat Sep 05, 2015 10:12 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12297
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.


Top
   
PostPosted: Sat Sep 05, 2015 11:36 am 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 1198
Don't works. Tested on game1.tab


Attachments:
game1.rar [1.98 KiB]
Downloaded 527 times
Top
   
PostPosted: Sat Sep 05, 2015 11:37 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12297
I tried the script with the sample provided and it worked.
Are there other samples available with which it doesn't work?


Top
   
PostPosted: Sat Sep 05, 2015 11:46 am 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 1198
Same with game31.

Image

Files with size 0 + does not work correctly string NAME p= "%08x.%s" NAME_CRC EXT


Top
   
PostPosted: Sat Sep 05, 2015 11:47 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12297
I don't have the game, can you upload game31.tab?


Top
   
PostPosted: Sat Sep 05, 2015 11:51 am 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 1198
Ops forgot attach it, sorry :)

Offzip log

Code:
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


Attachments:
game31.rar [748 Bytes]
Downloaded 375 times
Top
   
PostPosted: Sat Sep 05, 2015 12:08 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12297
Ok I have updated the script and now it should work correctly.


Top
   
PostPosted: Sat Sep 05, 2015 12:27 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 1198
Well, yes now it works.

Code:
  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.


Top
   
PostPosted: Sat Sep 05, 2015 12:33 pm 
Site Admin
User avatar

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


Top
   
PostPosted: Sat Sep 05, 2015 12:45 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12297
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.


Top
   
PostPosted: Sat Sep 05, 2015 1:13 pm 

Joined: Sun Aug 10, 2014 12:49 pm
Posts: 292
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 ?


Top
   
PostPosted: Sat Sep 05, 2015 3:01 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12297
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.


Top
   
PostPosted: Sat Sep 05, 2015 3:36 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 1198
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


Top
   
PostPosted: Sat Sep 05, 2015 5:39 pm 

Joined: Sun Aug 10, 2014 12:49 pm
Posts: 292
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/..


Top
   
PostPosted: Mon Sep 07, 2015 5:15 pm 
User avatar

Joined: Fri Aug 07, 2015 3:21 pm
Posts: 9
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)?


Top
   
PostPosted: Thu Sep 10, 2015 2:05 pm 
User avatar

Joined: Fri Aug 07, 2015 3:21 pm
Posts: 9
Any news on this?


Top
   
PostPosted: Thu Sep 10, 2015 5:26 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 1198
Here updated script for unpack with names :)

Image


Attachments:
MadMax_Hashes_0.3a.rar [539.03 KiB]
Downloaded 1758 times
Top
   
PostPosted: Thu Sep 10, 2015 6:02 pm 

Joined: Sun Aug 10, 2014 12:49 pm
Posts: 292
any news about chunks ?


Top
   
PostPosted: Thu Sep 10, 2015 6:28 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 233
anyone knows what file contains texts?

upd.

Texts are in .stringlookup files.


Top
   
PostPosted: Thu Sep 10, 2015 7:45 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 1198
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 82 posts ]  Go to page Previous 1 2 3 4 5 Next

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited