Kohan

From XentaxWiki
Jump to: navigation, search

Choose archive extension:

TGW


Format Specifications

uint16 {2}   - Unknown (6)
uint16 {2}   - Unknown (1)
uint32 {4}   - Unknown (30000000)
uint32 {4}   - Unknown (1000)
uint32 {4}   - Unknown (20)
uint32 {4}   - Unknown (1000000)
uint32 {4}   - Unknown (2)
uint32 {4}   - Unknown (2)
uint32 {4}   - Unknown
uint32 {4}   - Unknown
uint32 {4}   - Filename Directory Offset
uint32 {4}   - null
uint32 {4}   - null
uint32 {4}   - null
uint32 {4}   - Filename Directory Offset
uint32 {4}   - null
uint32 {4}   - Filename Directory Offset
uint32 {4}   - Number Of Files
uint32 {4}   - File Length Directory Offset
uint32 {4}   - Number Of Files
uint32 {4}   - File Offset Directory Offset
uint32 {4}   - Number Of Files
uint32 {4}   - null
uint32 {4}   - null
uint32 {4}   - null
uint32 {4}   - First File Data Offset
uint32 {4}   - Unknown
uint32 {4}   - null
uint32 {4}   - null
uint32 {4}   - null

// Filename Directory

// for each file
char {80}    - Filename (null)
uint32 {4}   - Unknown
uint32 {4}   - File Length
uint32 {4}   - Unknown (1)
uint32 {4}   - File ID (incremental starting from 0)
uint32 {4}   - Unknown
uint32 {4}   - Unknown


// File Length Directory

// for each file
uint32 {4}   - null
uint32 {4}   - null
uint32 {4}   - File Length?
uint32 {4}   - Unknown (1)
uint32 {4}   - File ID (incremental starting from 0)


// File Offset Directory

// for each file
uint32 {4}   - File Offset
uint32 {4}   - Unknown Offset


byte {X}     - File Data

MultiEx BMS Script

ImpType Standard ;
Set S Long 60 ;
GoTo S 0 ;
Get ST Long 0 ;
SavePos T 0 ;
Math T += 12 ;
GoTo T 0 ;
Get TS Long 0 ;
Get FC Long 0 ;
For B = 1 To FC ;
GoTo ST 0 ;
GetDString Na 80 0 ;
SavePos ST 0 ;
SavePos T 0 ;
Math T += 4 ;
GoTo T 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
Math ST += 24 ;
GoTo TS 0 ;
SavePos FOO 0 ;
Get FO Long 0 ;
Math TS += 8 ;
Log Na FO FS FOO FSO ;
Next B ;

Compatible Programs