Help us keep the site up! Got some change to spare? Why not donate a few bits and buy us a coffee. Image

PSP robot wars dat

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
fatduck
mega-veteran
mega-veteran
Posts: 315
Joined: Wed Aug 02, 2006 10:07 pm
Has thanked: 10 times
Been thanked: 94 times

PSP robot wars dat

Post by fatduck »

I want to open this psp archive. It doesn't have any compression. Just two tables at the beginning of the archive. The first one should be general info.(filesize, start offset etc). And the second one is names table!

But I couldn't found out the format of the 1st table. please help!
You do not have the required permissions to view the files attached to this post.
Mr.Mouse
Site Admin
Posts: 4058
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 437 times
Been thanked: 639 times
Contact:

Post by Mr.Mouse »

Ok, I'm on it. Nearly got it sussed. ;)
Mr.Mouse
Site Admin
Posts: 4058
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 437 times
Been thanked: 639 times
Contact:

Post by Mr.Mouse »

Ok, I have 90% of the format complete I think. Will write a mexCom plugin.

I've attached the table of contents of this archive (tab delimited text file).
Also a shot from Hex Workshop bookmarks to show you the format.

The general structure is :

Code: Select all

// Header
// Resource Information Table
// String Table
// Raw Data
Raw files are padded in blocks of 2048 bytes I assume.

The last 6 entries in the bookmark shot comprise 1 Resource Information Table entry.

Again, the full paths are not saved in the string table, just the single folders and files. Start with folder 0 and then work your way into subfolders, moving out of them as you go, until you're back at folder 0.
If you stumble upon a subfolder, this has priority, so check that one first until there are no more files and folders in there, then move on with the original sorting.
You do not have the required permissions to view the files attached to this post.
fatduck
mega-veteran
mega-veteran
Posts: 315
Joined: Wed Aug 02, 2006 10:07 pm
Has thanked: 10 times
Been thanked: 94 times

Post by fatduck »

Can't wait for the plugin! Because I have 6~8 archive files of this.

Thank you very much!
Mr.Mouse
Site Admin
Posts: 4058
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 437 times
Been thanked: 639 times
Contact:

Post by Mr.Mouse »

The plugin. Should work. They are for .DAT files right ? Just create a DAT folder in the Plugins folder and put the dll there. Then open an archive as a Robor Wars file.
You do not have the required permissions to view the files attached to this post.
fatduck
mega-veteran
mega-veteran
Posts: 315
Joined: Wed Aug 02, 2006 10:07 pm
Has thanked: 10 times
Been thanked: 94 times

Post by fatduck »

Mr.Mouse, the plugin works fine for half of the dat but run into problem with others due to a little different in the dat format. I had upload another sample for you. Could you support it as well!

Thanks
You do not have the required permissions to view the files attached to this post.
Mr.Mouse
Site Admin
Posts: 4058
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 437 times
Been thanked: 639 times
Contact:

Post by Mr.Mouse »

Okay, this format I can handle via a MexScript. See below and attached .txt file to run in MultiEx Commander. Note that you will extract yet another bunch of files and archives that are undefined. The "filedat.dat" and ".bin" are added by the MexScript to the filenames.

Code: Select all

# Quick MexScript for Robot Wars (PS) fileset.dat file 
# By Mr.Mouse. Juli 2007
IDString 0 PIDX ;
ImpType Standard ;
Set S Long 32 ;
GoTo S 0 ;
Get STOff Long 0 ;
GoTo STOff 0 ;
Get AN String 0 ;
String AN += "_" ;
Set S Long 80 ;
GoTo S 0 ;
Get FileNum Long 0 ;
Get EntryStart Long 0 ;
Math S += EntryStart ;
GoTo S 0 ;
For T = 1 To FileNum ;
Get NOff Long 0 ;
SavePos B 0 ;
Math NOff += STOff ;
GoTo NOff 0 ;
Get FN String 0 ;
GoTo B 0 ;
Get U1 Long 0 ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
Get U2 Long 0 ;
Set N String AN ;
String N += FN ;
String N += ".bin" ;
Log N FO FS FOO FSO ;
Next T ;
You do not have the required permissions to view the files attached to this post.
KorNet
VVIP member
VVIP member
Posts: 444
Joined: Tue Apr 12, 2005 11:36 am
Been thanked: 4 times

Post by KorNet »

Good job Mr.Mouse :D
Post Reply