EvilEngine/PICK: Difference between revisions

m
Seil moved page PICK to EvilEngine/PICK
Battlepedia>Seil
No edit summary
m (Seil moved page PICK to EvilEngine/PICK)
 
(9 intermediate revisions by 3 users not shown)
Line 1:
<onlyinclude>
{{AssetInfobox
{{#vardefine:typeid|PICK}}<nowiki/>
|subtitle=Pickup Table
{{#vardefine:name|Pickup Table}}<nowiki/>
|type=[[Binary]]
{{#vardefine:type|[[Binary]]}}<nowiki/>
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>Rise of the Underminer}}
{{#vardefine:basetype|}}<nowiki/>
{{#vardefine:games|Scooby BFBB TSSM Incredibles ROTU RatProto}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zPickupTable.h zPickupTable.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}
 
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:
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:
 
===zAssetPickupTable===
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x00 || [[AssetID]]uint || '''Reference IDMagic'''. Used by [[PKUP]] assets to define|| pickup0x5049434B type.("PICK")
|-
| 0x04 || byteuint || '''UnknownCount'''. Usually|| Amount of 0xCD.entries
|}
 
The asset data starts with 'PICK' written in ASCII, then an int which definesAfter the amount of entries,header thenis the entries themselves. Each entry has the following format:
 
===zAssetPickup===
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x050x00 || byteuint || '''UnknownpickupHash'''. Usually|| Used by [[PKUP]] assets to define pickup 0xCDtype.
|-
| 0x060x04 || byte || '''UnknownpickupType'''. || Usually 0x000xCD.
|-
| 0x070x05 || byte || '''UnknownpickupIndex'''. || Usually 0x000xCD.
|-
| 0x080x06 || intushort || '''UnknownpickupFlags'''. || Usually 10x0000.
|-
| 0x0C0x08 || [[AssetID]] ([[MODL|Model]])uint || '''Modelquantity''' || Usually 1.
|-
| 0x100x0C || int[[AssetID]] || '''UnknownmodelID'''. Usually 0.||
|-
| 0x10 || [[AssetID]] || '''animID''' || Usually 0.
|-
|}
 
{{Assets}}
{{AutoGameNavs}}
 
[[Category:Asset]]