Difference between revisions of "Filesystem/Race/Common.szs/GeoHitTableItem.bin"

From Custom Mario Kart
Jump to navigation Jump to search
(Created page with "'''GeoHitTableKart.bin''' is a sub file of '''/Race/Common.szs'''. It contains a list of item interaction parameters with objects used in VS races and battl...")
 
Line 12: Line 12:
 
| 0x00 || u16 || Number of objects.
 
| 0x00 || u16 || Number of objects.
 
|-
 
|-
| 0x02 || u16 || {{Unknown-left|'''Unknown'''. The value is 0xF.}}
+
| 0x02 || u16 || {{Unknown-left|The value is 0xF. Maybe the number of fields in section 1?}}
 
|-
 
|-
 
| 0x04 || colspan=2 {{unknown|End of header, start of section 1}}
 
| 0x04 || colspan=2 {{unknown|End of header, start of section 1}}

Revision as of 12:09, 22 February 2019

GeoHitTableKart.bin is a sub file of /Race/Common.szs. It contains a list of item interaction parameters with objects used in VS races and battle.

File Format

This file shares a table-based format also used in GeoHitTableItemObj.bin, GeoHitTableKart.bin, GeoHitTableKartObj.bin and ObjFlow.bin; which is divided in a header and two sections.

Header

Header
Offset Type Description
0x00 u16 Number of objects.
0x02 u16 The value is 0xF. Maybe the number of fields in section 1?
0x04 End of header, start of section 1

Section 1

This section contains the main table with hit parameters for each object.

Format of a GeoHitTableItem.bin object
Offset Type Description
0x00 u16 Object ID.
0x02 u16 Interaction type with Green Shell.
0x04 u16 Interaction type with Red Shell.
0x06 u16 Interaction type with Banana.
0x08 u16 Interaction type with Mushroom.
0x0A u16 Interaction type with Star.
0x0C u16 Interaction type with Blue Shell.
0x0E u16 Interaction type with Lightning.
0x10 u16 Interaction type with Fake Item Box.
0x12 u16 Interaction type with Mega Mushroom.
0x14 u16 Interaction type with Bob-omb.
0x16 u16 Interaction type with Blooper.
0x18 u16 Interaction type with POW Block.
0x1A u16 Interaction type with Golden Mushroom.
0x1C u16 Interaction type with Bullet Bill.
0x1E u16 Interaction type with Thundercloud.

Note: all the interactions are processed with the item models, in case of those which can't be thrown, when dropped.

Interaction type list
ID Description
0x00 Item clips through the object (default value).
0x01 Item bounces on object like if it was a wall. When using with a Red Shell, it will bounce like a Green Shell.
0x02 Item breaks/vanishes on contact with the object.

Any other value is likely to freeze the game when items interact with the object.

Section 2

The second part consists of an object usage table. It lists the indexes of all object slot IDs in Section 1. This section is exactly the same in GeoHitTableItem.bin, GeoHitTableItemObj.bin, GeoHitTableKart.bin, GeoHitTableKartObj.bin and ObjFlow.bin.

Section 2 format
Offset Type Description
0x00 u16 Unknown. 0xFFFF.
0x02 u16[N] List of N object slot IDs indexes, relative to Section 1 objects.
0xFFFF = unused slot.
N = Number of object slot IDs, 0x2F3 total slots in Mario Kart Wii.

Tools

The following tools can handle GeoHitTableItem.bin:

  • (none)