ROOM File Format
Yannik Marchand edited this page Jul 10, 2019
·
16 revisions
DKC:TF > Level File (ROOM)
Type | Description |
---|---|
CFormDescriptor | Form descriptor |
Type | Description |
---|---|
CFormDescriptor | Room header (ROOM) |
CFormDescriptor CFormDescriptor ... CFormDescriptor |
Script layers (LAYR) |
Type | Description |
---|---|
Uint16 | Unknown |
Type | Description |
---|---|
List16<CScriptPerformanceGroup> | Performance groups |
Type | Description |
---|---|
Uint32 | Name length |
Char[] | Name |
CGuid | Editor id |
Bool | Is active |
List16<CGuid> | Referenced layers |
Type | Description |
---|---|
Map<CGuid, CGuid> | Object map |
Type | Description |
---|---|
CChunkDescriptor | LUHD chunk (header) |
CChunkDescriptor | LRES chunk (resource ids) |
CChunkDescriptor | LLYR chunk (layer ids) |
Type | Description |
---|---|
String | Load unit name |
CGuid | Load unit id |
Uint16 | Flags |
Type | Description |
---|---|
List<CObjectId> | Resource ids |
Type | Description |
---|---|
List<CGuid> | Layer ids |
Type | Description |
---|---|
CChunkDescriptor | LHED chunk (header) |
CFormDescriptor | GSRP form (generated objects) |
CFormDescriptor | SRIP form (script components) |
Type | Description |
---|---|
String | Script layer name |
CGuid | Layer id |
Uint16 | Unknown |
List16<CGuid> | Load unit ids |
CGuid | Unknown |
Bool | Unknown |
These components can be spawned by a GeneratorGOC. This form is filled with GGOB chunks containing the following data:
Type | Description |
---|---|
CGuid | Object id |
List16<CGameObjectComponent> | Components |
This form is filled with CGameObjectComponent chunks.
A CGameObjectComponent is stored as a COMP chunk with the following content:
Type | Description |
---|---|
Uint32 | Component type hash |
CGuid | Component id |
String | Component name |
List16<SConnection> | Connections |
List16<SScriptLink> | Script links |
... | Component data |
Type | Description |
---|---|
CFourCC | Connection id 1 |
CFourCC | Connection id 2 |
CGuid | Component id |
Uint16 | Unknown |
Uint8 | Unknown |
Uint8 | Unknown |
Type | Description |
---|---|
CFourCC | Link id |
CGuid | Component id |
Uint8 | Unknown |