Lord Of The Rings - Battle For Middle Earth BIG

From XentaxWiki
Jump to: navigation, search

BIG


Format Specifications

// MexCom - Recreation of formats\Lord of the Rings BFME\BIG.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   		'BIG4'
uint32{4}		D
uint32{4}		FC
uint32{4}		D
#DECLARE FS = CURRENT OFFSET


** Start Repeated entry (T) {FC}


==>FS
#DECLARE FOO = CURRENT OFFSET
uint32{4}		Offset of resource (FO)
#DECLARE FSO = CURRENT OFFSET
uint32{4}		FSI
char{}   		Filename of resource (FN)
#DECLARE FS = CURRENT OFFSET


// Resources have a name (FN), are located at FO and have a size of FSI
** End Repeated entry (T)
// ----------------------------
// MexCom - Recreation complete 

MultiEx BMS Script

<bms ext="BIG" games="'Lord of the Rings: Battle for Middle Earth','Command and Conquer 3'" platforms="'PC','PC'" author="Mr.Mouse" version="1.0" verbose="no" silence="no"> ImpType Standard ; IDString 0 BIG4 ; Get D Long 0 ; Get FC Long 0 ; ReverseLong FC ; Get D Long 0 ; SavePos FS 0 ; For T = 1 To FC ; GoTo FS 0 ; SavePos FOO 0 ; Get FO Long 0 ; ReverseLong FO ; SavePos FSO 0 ; Get FSI Long 0 ; ReverseLong FSI ; Get FN String 0 ; SavePos FS 0 ; Log FN FO FSI FOO FSO ; Next T ; </bms>

Compatible Programs