EvilEngine/PICK: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
Battlepedia>Seil
No edit summary
Battlepedia>Seil
Line 7: Line 7:


==Format==
==Format==
The asset data starts with an 8-byte header:
The asset data starts with 'PICK' written in ASCII, then an int which defines the amount of entries, then the entries themselves. Each entry has the following format:


{| class="wikitable"
{| class="wikitable"
! Offset !! Type !! Description
! Offset !! Type !! Description
|-
|-
| 0x00 || [[AssetID]] || '''Reference ID'''. Used by [[PKUP]] assets to define pickup type.
| 0x00 || unsigned int || '''Magic''' - 0x5049434B ("PICK")
|-
|-
| 0x04 || byte || '''Unknown'''. Usually 0xCD.
| 0x04 || unsigned int || '''Count''' - amount of entries
|}

After the header is the entries themselves. Each entry has the following format:

{| class="wikitable"
! Offset !! Type !! Description
|-
| 0x00 || unsigned int || '''pickupHash'''. Used by [[PKUP]] assets to define pickup type.
|-
|-
| 0x05 || byte || '''Unknown'''. Usually 0xCD.
| 0x04 || unsigned char || '''pickupType'''. Usually 0xCD.
|-
|-
| 0x06 || byte || '''Unknown'''. Usually 0x00.
| 0x05 || unsigned char || '''pickupIndex'''. Usually 0xCD.
|-
|-
| 0x07 || byte || '''Unknown'''. Usually 0x00.
| 0x06 || unsigned short || '''pickupFlags'''. Usually 0x0000.
|-
|-
| 0x08 || int || '''Unknown'''. Usually 1.
| 0x08 || unsigned int || '''quantity'''. Usually 1.
|-
|-
| 0x0C || [[AssetID]] ([[MODL|Model]]) || '''Model'''
| 0x0C || unsigned int ([[MODL|Model]] [[AssetID]]) || '''modelID'''
|-
|-
| 0x10 || int || '''Unknown'''. Usually 0.
| 0x10 || unsigned int ([[AssetID]]) || '''animID'''. Usually 0.
|-
|-
|}
|}

Revision as of 20:55, 30 April 2019

PICK
Pickup Table
TypeBinary

A pickup table is an asset which usually has only one instance in the entire game (in boot.hip) and defines information regarding pickups.

Format

The asset data starts with an 8-byte header:

Offset Type Description
0x00 unsigned int Magic - 0x5049434B ("PICK")
0x04 unsigned int Count - amount of entries

After the header is the entries themselves. Each entry has the following format:

Offset Type Description
0x00 unsigned int pickupHash. Used by PKUP assets to define pickup type.
0x04 unsigned char pickupType. Usually 0xCD.
0x05 unsigned char pickupIndex. Usually 0xCD.
0x06 unsigned short pickupFlags. Usually 0x0000.
0x08 unsigned int quantity. Usually 1.
0x0C unsigned int (Model AssetID) modelID
0x10 unsigned int (AssetID) animID. Usually 0.