Homeworld Cataclysm VCE
Jump to navigation
Jump to search
Choose archive extension:
VCE
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
// MexCom - Recreation of D:\Code\All Official MexFormats\Homeworld\VCE.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
FileID 'VCE0'
** DO
** Search for a char{} with value INFO
// If found, store it in FILEOFF
$$ CALCULATE FILEOFF + 12
==>FILEOFF
uint32{4} Size of resource (FILESIZE)
$$ CALCULATE FILEOFF - 12
// Resources have a name (FILENAME), are located at FILEOFF and have a size of FILESIZE
** WHILE (boolean: Not End Of File?) <> 0
// ----------------------------
// MexCom - Recreation complete
MultiEx BMS
IDString 0 VCE0 ; Do ; FindLoc FILEOFF String INFO 0 ; Math FILEOFF += 12 ; GoTo FILEOFF 0 ; Get FILESIZE Long 0 ; Math FILEOFF -= 12 ; Log FILENAME FILEOFF FILESIZE 0 0 ; While NotEOF <> 0 ;
Notes and Comments
None