Difference between revisions of "Pikmin area generator file/File format"

From Pikmin Technical Knowledge Base
Jump to navigation Jump to search
(Styling changes)
Line 1: Line 1:
This page describes the format of the generator files in Pikmin 1.
+
This page describes the format of the object generator files in [[Pikmin]]. These files have the file ending <code>.gen</code>. Generators handle the spawning of objects, such as pellets or enemies, in the levels. Each such object is spawned by a generator.
  
 
{| class="wikitable"
 
{| class="wikitable"
|+Generator File Header
+
|+File header
 
|-
 
|-
|Offset
+
!Offset
|Type
+
!Type
|Description  
+
!Description  
 
|-
 
|-
 
|0x0
 
|0x0
Line 30: Line 30:
 
|0x14
 
|0x14
 
|uint32
 
|uint32
|an unsigned integer specifying the amount of generators in the file}
+
|an unsigned integer specifying the amount of generators in the file
 +
|}

Revision as of 20:51, 25 December 2017

This page describes the format of the object generator files in Pikmin. These files have the file ending .gen. Generators handle the spawning of objects, such as pellets or enemies, in the levels. Each such object is spawned by a generator.

File header
Offset Type Description
0x0 char[4] a 4 byte string saying v1.0, presumably the version of the format or the version of the file
0x4 float Unknown
0x8 float Unknown
0xC float Unknown
0x10 float Unknown
0x14 uint32 an unsigned integer specifying the amount of generators in the file