GRAF:Age of Mythology

From XentaxWiki
(Redirected from Age of Mythology)
Jump to: navigation, search

Choose archive extension:

BAR


Format Specifications

byte {12}    - Unknown
uint32 {4}   - Number Of Files
uint32 {4}   - Directory Length
uint32 {4}   - Directory Offset

byte {X}     - File Data

// Directory

// for each file
uint32 {4}   - Next File Entry Offset?
uint32 {4}   - File Offset
uint32 {4}   - File Length
byte {12}    - Unknown
char {X}     - Filename
byte {1}     - null Filename Terminator


MultiEx BMS Script

ImpType StandardTail ;
Set S Long 12 ;
GoTo S 0 ;
Get FC Long 0 ;
Get FTSize Long 0 ;
SavePos TailOffOff 0 ;
Get TO Long 0 ;
Set FJ Long 4 ;
Math FJ *= FC ;
GoTo TO 0 ;
For TE = 1 To FC ;
Get FE Long 0 ;
Math FE += TO ;
Math FE += FJ ;
SavePos CB 0 ;
GoTo FE 0 ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
SavePos TP 0 ;
Math TP += 12 ;
GoTo TP 0 ;
Get FN String 0 ;
Log FN FO FS FOO FSO ;
GoTo CB 0 ;
Next TE ;

Requires MexCom 4.0

Compatible Programs