ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Nov 18, 2017 11:34 pm

All times are UTC




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Tue Apr 14, 2015 1:31 pm 

Joined: Tue Apr 14, 2015 1:12 pm
Posts: 1
Welcome Zenhax. I tried your QuickBMS software to extract CPK files, and it succeed, but sadly, when I want to extract .pak files from PS3 game j-stars vs+ by Bandai Namco. And It failed, I've tried :

A.I.M Racing .pak script - Failed ( 0 files found in 0 seconds )
Another world .pak script - Failed ( 0 files found in 0 seconds )
Artogon Games .pak script - Failed ( ( 0 files found in 0 seconds )
Battleforge .pak script - Failed ( 0 files found in 0 seconds )
Bus Simulator .pak script - Failed ( 0 files found in 0 seconds )
Blur .pak script - Failed ( 0 files found in 0 seconds )
C4 .pak script - Failed ( 0 files found in 0 seconds )
Cakemania .pak script - Failed ( 0 files found in 0 seconds )
Citiesxl.pak script - Failed ( 0 files found in 0 seconds )

There are more pak files, but i don't feel like if anyone of them will work... So please help. There's a sample pak files below the post. Please take a look.


Attachments:
sample pak.zip [3.25 MiB]
Downloaded 141 times
Top
   
PostPosted: Tue Apr 14, 2015 9:16 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7110
Basically it's a STPK archive compressed as STPZ in chunks ($CL0) of max 0x3c00 bytes.
The only problem at the moment is the compression algorithm used for compressing these chunks because, after a scanning, the only algorithm similar to the original one is 230 (COMPRLIB_RLE3) but it's not the correct one.

The following is a work-in-progress just for study, the final uncompressed size doesn't match because the algorithm is wrong:
Code:
# WORK-IN-PROGRESS
# DO NOT USE IT

comtype COMPRLIB_RLE3

endian big
idstring "STPZ"
get DUMMY long
get CHUNKS long
get OFFSET long
idstring "$CMP"
get ZSIZE long
get ZERO long
get ZERO long
get SIZE long
get ZSIZE long
get ZERO long
get DUMMY long

putvarchr MEMORY_FILE SIZE 0
log MEMORY_FILE 0 0
append
for MEM_SIZE = 0 < SIZE
    #idstring "$CL0"
    getdstring SIGN 4
    if SIGN != "$CL0"
        break
    endif
    get CHUNK_SIZE long
    get CHUNK_ZSIZE long
    get ZERO long
    savepos CHUNK_OFFSET
    math CHUNK_ZSIZE - 0x10
    clog MEMORY_FILE CHUNK_OFFSET CHUNK_ZSIZE CHUNK_SIZE
    math CHUNK_OFFSET + CHUNK_ZSIZE
    goto CHUNK_OFFSET
    get MEM_SIZE asize MEMORY_FILE
next i
append

get NAME basename
string NAME + ".stpk"
log NAME 0 MEM_SIZE MEMORY_FILE


Top
   
PostPosted: Thu Dec 22, 2016 10:48 am 

Joined: Thu Aug 07, 2014 10:28 pm
Posts: 132
Here is a compressed and decompressed file to look at for these file types.


Attachments:
character_000.npk.scz.7z [164.63 KiB]
Downloaded 98 times
character_000.7z [103.41 KiB]
Downloaded 111 times
Top
   
PostPosted: Thu Mar 09, 2017 11:05 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7110
The algorithm will be available in the upcoming quickbms 0.7.8 with the name DRV3_SRD.


Top
   
PostPosted: Sun Mar 12, 2017 3:02 pm 

Joined: Thu Aug 07, 2014 10:28 pm
Posts: 132
I tried new version and I get a crash

Code:
  offset   filesize   filename
--------------------------------------
  00000030 15360      NAME

-------------------
*EXCEPTION HANDLER*
-------------------
An error or crash occurred:

*EH* ExceptionCode      80000001 guard page violation
*EH* ExceptionFlags     00000000
*EH* ExceptionAddress   00f9bd13
                        00F70000 + 0002bd13 quickbms.exe
*EH* NumberParameters   00000002
*EH*                    00000000
*EH*                    0d6a1ff0

Last script line before the error or that produced the error:
  6   clog NAME 0x30 0x2514 0x3C00


comtype DRV3_SRD

clog NAME 0x30 0x2514 0x3C00


Top
   
PostPosted: Sun Mar 12, 2017 4:54 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7110
Try this example:
Code:
comtype DRV3_SRD
get ZSIZE asize
xmath SIZE "ZSIZE * 10"
clog "dump.dat" 0 ZSIZE SIZE


Top
   
PostPosted: Sun Mar 12, 2017 5:06 pm 

Joined: Thu Aug 07, 2014 10:28 pm
Posts: 132
That seems to work correctly :)


Top
   
PostPosted: Wed Mar 29, 2017 9:27 am 

Joined: Wed Mar 29, 2017 9:23 am
Posts: 2
:!:


Top
   
PostPosted: Fri May 26, 2017 1:28 am 

Joined: Fri May 26, 2017 1:24 am
Posts: 1
Is it possible to unpack J stars archives?


Top
   
PostPosted: Tue May 30, 2017 6:29 pm 

Joined: Wed Mar 29, 2017 9:23 am
Posts: 2
:geek:


Last edited by hora on Tue Nov 07, 2017 7:27 pm, edited 3 times in total.

Top
   
PostPosted: Thu Sep 28, 2017 8:01 pm 

Joined: Thu Sep 28, 2017 7:58 pm
Posts: 1
aluigi wrote:
The algorithm will be available in the upcoming quickbms 0.7.8 with the name DRV3_SRD.

I look for it but it doesn't show up, did something happen? I really would like this game's files
Sorry if this is bothersome


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 11 posts ] 

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