RAL file type

From Sunshine Wiki
Jump to navigation Jump to search

General Info[edit | edit source]

RAL files are rail banks containing path information for objects to move along

File Structure
* Rail Entries
* Rail Names
* Rail Node Info

Rail Entries[edit | edit source]

Array of rail entry info for each entry (0x0B bytes)

Section Offset Byte Length Description
0x00 4 uint32 Node count
0x04 4 uint32 Offset to rail name
0x08 4 uint32 Offset to rail node info

8 bytes of padding usually at the end

Rail Names[edit | edit source]

Array of rail names

Section Offset Byte Length Description
0x00 string Rail name
1 byte Byte of padding to split names from each other

padding added (if applicable) to align file

Rail Node Info[edit | edit source]

Array of rail node info for each node (0x44 bytes)

Section Offset Byte Length Description
0x00 2 int16 X Position
0x02 2 int16 Y Position
0x04 2 int16 Z Position
0x06 2 uint16 Node Connection Count
0x08 4 bytes rail flag stuff
0x0C 2 int16 Node Parameter 1
0x0E 2 int16 Node Parameter 2
0x10 2 int16 Node Parameter 3
0x12 2 int16 Node Parameter 4
0x14 16 uint16(x8) Node Connections
0x24 32 flt32(x8) Distance between each connected node