Jump to content

Collision map file: Difference between revisions

no edit summary
(Paths)
No edit summary
 
Line 6: Line 6:


= File format =
= File format =
{| class="wikitable"
<syntaxhighlight lang="c">
|-
struct collision_map_file  {
! Type || Description
  /* offset 0x00 */ char magic[4]; // "HP" followed by two null bytes
|-
 
| char[4] || Magic number ("HP\0\0")
  // Byte offset from start of this struct to the tile_data struct
|-
  /* offset 0x04 */ u32 offsetToTileData;
| u32 || Offset from start of file to [[#Tile data]]
 
|-
  // Byte offset from start of this struct to the zone_data struct
| u32 || Offset from start of file to [[#Zones]]
  /* offset 0x08 */ u32 offsetToZones;
|-
 
| u32 || Offset from start of file to [[#Paths]]
  // Byte offset from start of this struct to the PathData struct
|-
  /* offset 0x0c */ u32 offsetToPaths;
| u32 || Offset from start of file to [[#Unknown block 2]] (maybe related to enemy patrolling?)
 
|-
  // Byte offset from start of this struct to unknown data
| || Tile data
  // (likely enemy navigation data)
|-
  /* offset 0x10 */ u32 offsetToUnknown;
| || Zones
};
|-
</syntaxhighlight>
| || Paths
|-
| || Unknown block 2
|}


= Tile data =
= Tile data =
Line 128: Line 124:
* 0xd0: Start searching
* 0xd0: Start searching


= Unknown block 2 =
= Unknown block =


= See also =
= See also =