MotoTrax WAD
WAD
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
// MexCom - Recreation of formats\MTX Mototrax (BINK Extractor)\WAD.bms
// THIS IS AN AUTOMATED SPECIFICATION
// READ WITH CARE
// ----------------------------
// LEGEND
// ----------------------------
// ==> (Jump to offset)
// #DECLARE (Set variable to value)
// $$ CALCULATE (Calculate a new value)
// ** (Section that repeats itself on condition)
// // (Comment)
// uint32{4} (Unsigned 32-bit value, 4 bytes)
// uint16{2} (Unsigned 16-bit value, 2 bytes)
// ubyte{1} (Unsigned 8-bit value, 1 byte)
// char{n} (String value, n bytes in length
// ----------------------------
// Format Specification
** DO
** Search for a char{} with value BIK
// If found, store it in OFF
$$ CALCULATE JP + 4
==>JP
uint32{4} SIZE
$$ CALCULATE SIZE + 4
// Resources have no name, are located at OFF and have a size of SIZE
** WHILE (boolean: Not End Of File?) <> 0
// ----------------------------
// MexCom - Recreation complete
MultiEx BMS Script
Do ; FindLoc OFF String BIK 0 ; Set JP Long OFF ; Math JP += 4 ; GoTo JP 0 ; Get SIZE Long 0 ; Math SIZE += 4 ; Log "" OFF SIZE 0 0 ; While NotEOF <> 0 ;
Notes And Comments
Acts as BINK video extractor