Contains area 3D data, including:
The TRN file format is quite similar to MDB format.
| Type | Name | Description |
|---|---|---|
char[4] | file_type | Always NWN2 |
uint16_t | version_major | |
uint16_t | version_minor | |
uint32_t | packet_count | Number of packets |
| Type | Name | Description |
|---|---|---|
char[4] | type | Packet type name |
uint32_t | offset | Byte offset of the packet from the beginning of the file |
| Type | Name | Description |
|---|---|---|
char[4] | type | Packet type name |
uint32_t | size | Packet data size in bytes |
uint8_t[size] | data | Packet data |
Each packet contains different data depending on their type
There are 3 types of packets:
TRWH: Terrain Width Height info
TRRN: Terrain geometry info
ASWM: Walkmesh geometry & pathfinding data
WATR: Water geometry info
Source: https://neverwintervault.org/project/nwn2/other/trn-fileformat