Rebel Raiders: Operation Nighthawk BAG
From XentaxWiki
Back to index | Edit this page
Contents |
BAG
Format Type: Archive
Endianness: Little-endian
Date Posted: 09:48, December 20, 2005
Format Specifications
// ARCHIVE HEADER
- uint32 {4} - Version (1)
- uint32 {4} - Number Of Files
- uint32 {4} - Directory Offset
- uint32 {4} - Unknown (4)
// FILE DATA
- // for each file
- byte {X} - File Data
// DIRECTORY
- char {40} - Filename (null-terminated, filled with junk)
- uint32 {4} - File Offset
- uint32 {4} - File Length
Notes and Comments
The *.bag files seem to actually use subfolders in some capacity, but there doesn't seem to be any indication of what files are actually subfolders except that the filenames lack an extension. A sample file snippet is necessary for further investigation. In the meantime, the provided script will choke on trying to extract folders, so use with care.
MexScript
| Authors | Script version | MexCom version |
|---|---|---|
| Gabor / Dinoguy1000 | 1.1 | 4.3.0 |
ImpType StandardTail; Get JUNK Long 0; Get NOF Long 0; Get NEXTFILE Long 0; Do; GoTo NEXTFILE 0; Get FILENAME String 0; Math NEXTFILE += 40; GoTo NEXTFILE 0; SavePos WOFFSET 0; Get FILEOFF Long 0; SavePos WSIZE 0; Get FILELENGTH Long 0; Log FILENAME FILEOFF FILELENGTH WOFFSET WSIZE; Math NEXTFILE += 8; Math COUNTER += 1; While COUNTER <> NOF; | ||

