READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

[PS1] Tenchu VOL file.

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Stickman
ultra-n00b
Posts: 4
Joined: Sat Mar 16, 2013 11:23 pm
Has thanked: 2 times
Been thanked: 4 times

[PS1] Tenchu VOL file.

Post by Stickman » Sat Apr 12, 2014 9:11 am

The japanese Version of Tenchu (SLPS 01272) contains a "TENCHU.VOL" file, with "AFS_VOL_200\0" as a magic number.

Since I couldn't find any information of this format on the Internet, I've decided to try figuring it out by myself, and share my results. :)

Here is what I've figured out so far:

Code: Select all

header

offset 	length 	value
---------------------
0	12	 Magic number - always "AFS_VOL_200\0" (0x4146535F564F4C5F32303000)
12	4	Number of files
16	4	Offset of file table
20	20	all zeroes


file entry

offset 	length	value
---------------------
0	2	 Always "IX" (0x4958)
2	2	 Index type  - is 0x0002 if the entry is a directory - is 0x0001 if the entry is a file
4	4	 File offset - is 0xcdcdcdcd if the entry is a directory
8	4	 File size   - is 0xcdcdcdcd if the entry is a directory
12	4	 Is also the file size? don't know why.
16	20	 File name in ASCII

If the file name starts with @ it points to the parent directory.
i.e. If you have three entries, one is named "files", the second is named "@0_images", and the third is named "@1_photo.jpg", the full structure of the third entry is "files\images\photo.jpg"
Based on these findings I wrote an unpacker in C# which can sucessfully unpack the TENCHU.VOL file from the disc. I've attached it here plus it's source code.
If you don't want to download files, I've pasted the source code here: http://pastebin.com/uvttWqJc

Sorry, it's C# only - I have yet to learn QuickBMS.

What I'd like to know: Have I missed something - and are there other games using this archive format?
You do not have the required permissions to view the files attached to this post.

leosilvas
ultra-n00b
Posts: 1
Joined: Sun May 27, 2018 4:37 am
Has thanked: 1 time

Re: [PS1] Tenchu VOL file.

Post by leosilvas » Sun May 27, 2018 4:53 am

Great tool!!! How could I repack the extracted files into a DATA.VOL file?

Post Reply