Difference between revisions of "Extension (RW Section)"

From GTAMods Wiki
Jump to navigation Jump to search
m
(Revised.)
Line 1: Line 1:
{{cleanup-rewrite}}
 
 
{{RW Section|Extension|0x0003}}
 
{{RW Section|Extension|0x0003}}
  
'''Extension''' sections are containers for various child sections used by RW plugins.
+
'''Extension''' chunks are containers for plugin data. See [[RenderWare#Basic_structure|this]] to find out which objects can have plugins attached and hence an Extension chunk.
 
+
The contents of this chunk are one (optional!) chunk per plugin where the chunk ID is the same as the plugin ID.
=== Txd Extension ===
 
<source lang="c">
 
typedef struct txd_extra_info_s {
 
uint32_t id;              // 0x03 (3)
 
uint32_t chunk_size;
 
uint32_t marker;
 
uint8_t  data[chunk_size];
 
} txd_extra_info_t;
 
</source>
 

Revision as of 17:38, 7 June 2016

{{{NAME}}}
RenderWare Stream Section
Vendor {{{VENDORNAME}}}
Module {{{MODULENAME}}}
Module ID 0x{{{MODULEID}}}
Identifier 0x{{{IDENTIFIER}}}
Chunk ID 0x{{{MODULEID}}}{{{IDENTIFIER}}}
Versions All
Hierarchy
Parents:
None
Children:
None
Extensions:
None
File Format

Extension chunks are containers for plugin data. See this to find out which objects can have plugins attached and hence an Extension chunk. The contents of this chunk are one (optional!) chunk per plugin where the chunk ID is the same as the plugin ID.