Factor 5 .DAT

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
CosmicDreams
Posts: 100
Joined: Thu Sep 13, 2018 6:38 pm

Factor 5 .DAT

Post by CosmicDreams »

Hello!
I've recently been trying to rip models and textures from Rogue Squadron 2 and 3 on the gamecube.
The Factor 5 bms script works pretty much perfectly on the base game archives in the Rogue2 and Rogue3 folders, However there is more .dat files inside the script errors on.

Code: Select all

- select the input archives/files to extract, type * or "" for whole folder and subfolders
- select the output folder where extracting the files
- open input file C:\Users\faint\Documents\ROGUE LEADER\Rogue2\Extract\briefing.dat
- open script C:\Users\faint\Documents\SwitchDumps\Tools\QuickBMS\factor5.bms
- set output folder C:\Users\faint\Documents\ROGUE LEADER\Rogue2\Extract\test

  offset   filesize   filename
--------------------------------------

Error: incomplete input file -1:
       Can't read 8 bytes from offset 00000000.
       Anyway don't worry, it's possible that the BMS script has been written
       to exit in this way if it's reached the end of the archive so check it
       or contact its author or verify that all the files have been extracted.
       Please check the following coverage information to know if it's ok.


Last script line before the error or that produced the error:
  143 get DUMMY longlong MEMORY_FILE

Press ENTER or close the window to quit


This happens for every dat file inside the extracted game archives.
Any idea's what could be wrong?
https://cdn.discordapp.com/attachments/419711036837330956/489868811324096543/briefing.dat
Here's the dat file i used to get the above error although the same error happens on every dat as i said before.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Factor 5 .DAT

Post by aluigi »

Do you have other "briefing" files with different extensions?
I can't confirm if this is a factor5 archive.
CosmicDreams
Posts: 100
Joined: Thu Sep 13, 2018 6:38 pm

Re: Factor 5 .DAT

Post by CosmicDreams »

Pretty much everything in the extracted archives are .DAT files.
There's a couple .smm though. Whatever those are.
https://cdn.discordapp.com/attachments/419711036837330956/489887574358360067/xwing_ha.dat
https://cdn.discordapp.com/attachments/419711036837330956/489888101594955797/frontend.dat
https://cdn.discordapp.com/attachments/419711036837330956/489888221937926172/XWing.dat
https://cdn.discordapp.com/attachments/419711036837330956/489887536022290452/vader_ha.dat
Here's a couple of other DAT files from various folders.
I have a feeling its raw data rather than archives at this point.
Some must be archives though, especially the "frontend" and "briefing" files.

EDIT: I think SMM files might be models. But some of them seem too small to be models.
CosmicDreams
Posts: 100
Joined: Thu Sep 13, 2018 6:38 pm

Re: Factor 5 .DAT

Post by CosmicDreams »

Any updates?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Factor 5 .DAT

Post by aluigi »

It's just data.
What I can see are the first two 32 bit fields that are an offset and size.
Can't help.
CosmicDreams
Posts: 100
Joined: Thu Sep 13, 2018 6:38 pm

Re: Factor 5 .DAT

Post by CosmicDreams »

Oh i totally forgot about this file.
https://cdn.discordapp.com/attachments/419711036837330956/490234758022955018/resDir.dir
It wasn't originally a .dir file(i can't remember what it was) but it seems to be a TOC of sorts.
It was in the root of the main data.dat file when i extracted it.
It mentions files that don't actually exist too i think.
Further making me wonder if it really is just data...
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Factor 5 .DAT

Post by aluigi »

Yes it's a toc but it's referred to a particular data file having a size of 23 megabytes (25.021.444 bytes), not related to those dat you posted.
If you are interested in seeing the format with quickbms (debug mode automatically enabled) take a look at this script:

Code: Select all

debug 1
endian big
for
    getdstring NAME 0x20
    get OFFSET long
    get SIZE long
    get SOME_CRC long
next