Heuristix41114@legacy41487123 (talk | contribs) |
Heuristix41114@legacy41487123 (talk | contribs) |
||
Line 58: | Line 58: | ||
{| class="wikitable" |
{| class="wikitable" |
||
|- |
|- |
||
+ | ! Subchunk type |
||
− | ! Chunk |
||
! String identifier |
! String identifier |
||
− | ! Length |
||
! Data |
! Data |
||
|- |
|- |
||
| Class |
| Class |
||
| Name of the Java class. |
| Name of the Java class. |
||
− | | ''Variable'' |
||
| Bytes of the Java class file. |
| Bytes of the Java class file. |
||
|- |
|- |
||
| Resources |
| Resources |
||
| Name of the resource |
| Name of the resource |
||
− | | ''Variable'' |
||
| Bytes of the resource file (format of file variable, i.e. .png, .ogg, .jpg, etc.) |
| Bytes of the resource file (format of file variable, i.e. .png, .ogg, .jpg, etc.) |
||
|- |
|- |
||
| Properties |
| Properties |
||
| Name of the property |
| Name of the property |
||
− | | ''Variable'' |
||
| Bytes of the property |
| Bytes of the property |
||
|} |
|} |
Revision as of 03:06, 21 July 2012
Header
Offset | Length (bytes) | Value | Purpose |
---|---|---|---|
0 | 8 | 0x47554E32 | Denotes the file as a GUN2 file |
Chunks
Offset | Length (bytes) | Value | Purpose |
---|---|---|---|
0 | 8 | Variable | The length of the chunk. |
8 | Variable | Variable | Subchunks. |
Subchunk
Offset | Length (bytes) | Value | Purpose |
---|---|---|---|
0 | Variable | Variable | A string identifier of the subchunk. Value is determined as all the bytes from the indicated offset to the first newline character (ASCII decimal value 10). |
Length of string identifier | 8 | Variable | The length of the data of the subchunk. |
8 + Length of string identifier | Variable | Variable | The data of the subchunk. |
Subchunk type | String identifier | Data |
---|---|---|
Class | Name of the Java class. | Bytes of the Java class file. |
Resources | Name of the resource | Bytes of the resource file (format of file variable, i.e. .png, .ogg, .jpg, etc.) |
Properties | Name of the property | Bytes of the property |