XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Wed Jun 20, 2018 12:00 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [PS1] Tenchu VOL file.
PostPosted: Sat Apr 12, 2014 9:11 am 
Offline
ultra-n00b

Joined: Sat Mar 16, 2013 11:23 pm
Posts: 4
Has thanked: 2 times
Have thanks: 3 times














You can make the ads go away by registering

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


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: [PS1] Tenchu VOL file.
PostPosted: Sun May 27, 2018 4:53 am 
Offline
ultra-n00b

Joined: Sun May 27, 2018 4:37 am
Posts: 1
Has thanked: 1 time
Have thanks: 0 time
Great tool!!! How could I repack the extracted files into a DATA.VOL file?


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 9 guests


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:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group