Reference: MapLocations.txt

Purpose

Associates spans of tiles (rows, columns, or boxes) with region names. This allows the server to select which region the player is in, and relay that to the client so that the client can display the proper world region map.

File Format

Mostly works as a list file. Each line in the file will set a property, or name a span of tiles.
Comment character: semicolon (;)
Each line is split into tokens using the "=" and "," symbols.

Block Format

Property Parameters Description
ZoneID ID Sets the active zone. All subsequent tiles will be applied to this zone, unless the ZoneID is changed again.
HT Location,x,y,length Maps a horizontal row of tiles at coordinate (x,y) of 'length' tiles to identify as 'location'.
VT Location,x,y,length Maps a vertical column of tiles at coordinate (x,y) of 'length' tiles to identify as 'location'.
RT Location,x,y,xlen,ylen Maps a rectangular span of tiles. The top left corner is at position (x,y) and will cover a span of (xlen,ylen) tiles.

How it works

This file allows the server to map tile locations with region names. When characters move, their current position in the overworld is compared to the definitions here to find a matching region name.

Map region names are defined in MapDef.txt, under the Name field. The location parameters in this file should match those names.

All other parameters to HT, VT, and RT lines are otherwise integers referring to terrain tiles that are 1920 units wide. Not scenery tiles, which can have zone-dependent sizes.