Transworld Snowboarding HPF: Difference between revisions
Jump to navigation
Jump to search
(new format) |
(No difference)
|
Revision as of 13:09, 30 August 2005
Choose archive extension:
HPF
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
// MexCom - Recreation of D:\Documents and Settings\zuurman\Desktop\TransWorld Snowboarding\hpf.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 'HMG_PACKED_FILE'
#DECLARE S = 32
==>S
char{} OriginalName
$$ CALCULATE S + 256
==>S
uint32{4} Entries
#DECLARE S = CURRENT OFFSET
$$ CALCULATE Entries * 80
$$ CALCULATE S + Entries
uint32{4} AType
uint32{4} Unknown
uint32{4} Unknown
uint32{4} FileNum
#DECLARE J = CURRENT OFFSET
$$ CALCULATE J + 64
==>J
** Start Repeated entry (T) {FileNum}
uint32{4} RType
uint32{4} Unknown
uint32{4} ROff
uint32{4} Size
char{64} Name
$$ CALCULATE ROff + S
// Resources have a name (Name), are located at ROff and have a size of Size
** End Repeated entry (T)
// ----------------------------
// MexCom - Recreation complete
MultiEx BMS
IDString 0 HMG_PACKED_FILE ; Set S Long 32 ; GoTo S 0 ; Get OriginalName String 0 ; Math S += 256 ; GoTo S 0 ; Get Entries Long 0 ; SavePos S 0 ; Math Entries *= 80 ; Math S += Entries ; Get AType Long 0 ; Get Unknown Long 0 ; Get Unknown Long 0 ; Get FileNum Long 0 ; SavePos J 0 ; Math J += 64 ; GoTo J 0 ; For T = 1 To FileNum ; Get RType Long 0 ; Get Unknown Long 0 ; Get ROff Long 0 ; Get Size Long 0 ; GetDString Name 64 0 ; Math ROff += S ; Log Name ROff Size 0 0 ; Next T ;
Notes and Comments
Some archives don't follow the same rule.