Way of the Samurai 2 [PS2] [SLUS_208.93] "alltask" compression

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Samdou
Posts: 16
Joined: Mon Jul 19, 2021 12:48 am

Way of the Samurai 2 [PS2] [SLUS_208.93] "alltask" compression

Post by Samdou »

Does anyone have any tools or quickbms scripts that can decompress and extract the contents of this file?

It's from the American version of Way of the Samurai 2 [SLUS_208.93] for the PS2.

alltask
http://www.solidfiles.com/v/GWVn38MDLML3q
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Way of the Samurai 2 [PS2] [SLUS_208.93] "alltask" compression

Post by aluigi »

Can you use a better hoster? ("Sorry, we're temporarily unavailable")
Samdou
Posts: 16
Joined: Mon Jul 19, 2021 12:48 am

Re: Way of the Samurai 2 [PS2] [SLUS_208.93] "alltask" compression

Post by Samdou »

Is it working now?
If not, I'll upload it to a new host - do you know of any good ones?

Edit: I've just noticed that Solidfiles has added a .obj extension onto the file, it was originally just called "alltask".
I worry this may also change the contents of the file.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Way of the Samurai 2 [PS2] [SLUS_208.93] "alltask" compression

Post by aluigi »

Yes, it works but the format is weird or the file is corrupted.

The files seem to be compressed but I don't know what algorithm was used.
The other problem is the file 0000009a.dat that should be located at offset 0xca400 based on the 64bytes alignment but it's the only one to be non-aligned since it's shifted one byte before.

I leave my test script in case someone else wants to check what's up with this format:

Code: Select all

get FILES long
get DUMMY long
get OFFSET long
for i = 0 < FILES
    get XSIZE long

    savepos TMP
    goto OFFSET
    get ZSIZE long
    get SIZE long
    savepos OFFSET2
print "INFO %OFFSET2|x% %ZSIZE|x% %SIZE|x%"
    goto TMP

    log "" OFFSET SIZE
    math OFFSET + XSIZE
    math OFFSET x 0x40
next i
Samdou
Posts: 16
Joined: Mon Jul 19, 2021 12:48 am

Re: Way of the Samurai 2 [PS2] [SLUS_208.93] "alltask" compression

Post by Samdou »

Thanks for that.

I notice when I use your script on the American version of alltask, it only produces 155 files,
but when I use it on the Japanese version, it produces 182 files.

The 0000009a.dat seems to refer to the number of files that have been extracted; if you convert 9a to decimal
it becomes 154, which is the number of files not including this one.

The same is true of the Japanese version of alltask. It produces a file called 000000b5.dat; if you convert b5 to decimal it becomes 181.

Here's the alltask from the Japanese version of Way of the Samurai 2 Special Edition/Samurai dou 2 Kettouban [SLPM_742.09] for PS2.
http://www.solidfiles.com/v/NV3gppLnzMMYd

EDIT: The "alltask" file is where NPC dialogue is stored. It's in a folder called "task" where there are lots of individual files containing dialogue.
Changing the dialogue in these files doesn't change the dialogue in game, so I believe these are decompiled source files.
I believe the "alltask" file is an archive containing the compiled version of these source files.