[V] Knobby
Volition Staff
The world streaming code uses a grid file to define the zones and zone swaps that exist. This allows us to avoid searching for files at level load. Here is the format of that file:
Code:
int32 version (5)
int32 number of layers (5: always loaded = 0, interior = 1, world = 2, world high lod = 3, mission = 4)
for each layer
uint16 layer number
uint16 number of arrays in this layer(each dlc and the main game had an array of zones)
uint32 number of zones in this array
uint16 array index(we saved dlc to their own grid file and it would be built at runtime)
for each cell
uint16 cell index
uint16 layer index
uint8 grid x coord
uint8 grid y coord
uint16 num versions(zone swaps)
for each version
string for zone name (probably not null terminated with a number of characters at the beginning) (can be "null" if no base version of zone)
uint16 version? (always 0xFFFF)