Delta Force Black Hawk Down

From XentaxWiki
Jump to: navigation, search

Back to index

Choose archive extension:

PFF


Format Specifications

// MexCom - Recreation of D:\Code\All Official MexFormats\DF - Black Hawk Down\PFF.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


#DECLARE FS = 8


==>FS
uint32{4}		FC
uint32{4}		FJ
uint32{4}		TO


==>TO


** Start Repeated entry (T) {FC}
uint32{4}		D
#DECLARE FOO = CURRENT OFFSET
uint32{4}		Offset of resource (FO)
#DECLARE FSO = CURRENT OFFSET
uint32{4}		FS
uint32{4}		D
char{36}  		Filename of resource (FN)
uint32{4}		D
uint32{4}		D
$$ CALCULATE TO + FJ


==>TO


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


MultiEx BMS

ImpType StandardTail ;
Set FS Long 8 ;
GoTo FS 0 ;
Get FC Long 0 ;
Get FJ Long 0 ;
SavePos TailOffOff 0 ;
Get TO Long 0 ;
GoTo TO 0 ;
For T = 1 To FC ;
Get D Long 0 ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
Get D Long 0 ;
GetDString FN 36 0 ;
Get D Long 0 ;
Get D Long 0 ;
Math TO += FJ ;
GoTo TO 0 ;
Log FN FO FS FOO FSO ;
Next T ;

Notes and Comments

None


Supported by Programs