[PS2] Samurai Western - volume.dat

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
hnnewgames
Posts: 148
Joined: Sat Dec 16, 2017 8:58 pm

[PS2] Samurai Western - volume.dat

Post by hnnewgames »

Image

Hello. I would like help to extract this file. It is very similar to the PSP Techu volume.dat

Image

volume.dat
https://drive.google.com/file/d/1qRWxLaZVApGQvhU6xU5FQf5Oyn4tbzm8/view?usp=sharing
aaa801
Posts: 48
Joined: Wed Oct 12, 2016 12:22 pm

Re: [PS2] Samurai Western - volume.dat

Post by aaa801 »

Is this the full file?

This script does about 40% before erroring
http://aluigi.org/bms/hakuouki.bms
hnnewgames
Posts: 148
Joined: Sat Dec 16, 2017 8:58 pm

Re: [PS2] Samurai Western - volume.dat

Post by hnnewgames »

aaa801 wrote:Is this the full file?

This script does about 40% before erroring
http://aluigi.org/bms/hakuouki.bms


Yes, it is the complete file. This script was made for the Tenchu Shadow Assassins file, but it doesn't work 100% on Samurai ... :(
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: [PS2] Samurai Western - volume.dat

Post by Delutto »

hnnewgames wrote:Yes, it is the complete file. This script was made for the Tenchu Shadow Assassins file, but it doesn't work 100% on Samurai ... :(
Change the line 8 of the script and see if works:

Code: Select all

get FILES long
get FILES long
for:

Code: Select all

get FILES long
get DUMMY long
hnnewgames
Posts: 148
Joined: Sat Dec 16, 2017 8:58 pm

Re: [PS2] Samurai Western - volume.dat

Post by hnnewgames »

Oops, Delutto! Follows the error after making the change;
Image
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [PS2] Samurai Western - volume.dat

Post by aluigi »

It's so weird.
There is a FLAGS field that if equal than 2 or 4 gives some problems since the SIZE doesn't match the size in the archive.
Indeed it can be smaller or larger than the original size but I don't see a real compression used, the content of these files (whatever flag 2 or 4) has often clear content.
I updated the script for dumping these files as-is using the whole size in the archive.
Samdou
Posts: 16
Joined: Mon Jul 19, 2021 12:48 am

Re: [PS2] Samurai Western - volume.dat

Post by Samdou »

aaa801 wrote:Is this the full file?

This script does about 40% before erroring
http://aluigi.org/bms/hakuouki.bms

I noticed when using the new version of this script on Way of the Samurai 2, the script
ends abruptly with an error as well, whereas the old version of the script worked fine. Perhaps the
old version will work with Samurai western.

Here's the old version of the script

Code: Select all

# Hakuoki Shinsengumi Kitan / Way of the Samurai 2
#   maybe other games developed by Idea Factory
# script for QuickBMS http://quickbms.aluigi.org

endian big
idstring "\xfa\xde\xba\xbe"
get FILES long
get FILES long
get DATA_OFF long
get DATA_SIZE long
for i = 0 < FILES
    get NAME_HASH long
    get OFFSET long
    get SIZE long
    get ZERO long
    get NAME_OFF long
    get NAMESZ long

    math OFFSET + DATA_OFF
    math NAME_OFF + DATA_OFF

    savepos TMP
    goto NAME_OFF
    getdstring NAME NAMESZ
    goto TMP

    log NAME OFFSET SIZE
next i