Rebel Raiders: Operation Nighthawk BAG

From XentaxWiki

Jump to: navigation, search

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;

Supported by Programs

Links

Games

Navigation

Format lists
All Formats · Common Formats · Standard Formats · Malformed Pages
Platforms
Microsoft:
Xbox
Xbox 360
Nintendo:
GameCube
Desktop:
PC
Sega:
Dreamcast
Sony:
PlayStation
PlayStation 2
PlayStation 3
PlayStation Portable
Format Type
Archive · Audio · Miscellaneous · Video/Graphics
Endianness
Little Endian · Big Endian
BMS Scripts
Pages Without a BMS Script · Wrong Format Type for a Script

All Pages with Scripts:
Recently Added Scripts

Program support
No Known Support

MultiEx Commander · Game Extractor · Dragon UnPACKer

Format Specification Completion
Work in Progress · Almost Done · Completed
Compression and Encryption
No Compression or Encryption Used · Unknown Compression or Encryption Used

One or Both Used:
Compression Used · Encryption used · Both Compression and Encryption Used

Personal tools

affiliates

  • Gmbutton.gif