PGX3 Map Editor

PGX map editor Auto tile uses two types of patterns to place tiles.
Terrain Patterns.
Hex Side based terrain like Oceans, and Forests use Terrain patterns.
If you place an Ocean Hex the program checks the adjacent hexes, and builds a pattern.
Then checks the \mapedit\terrainx.txt file to locate that pattern, and which tile to use.
Example:
   If you place an Ocean tile in a hex with Ocean hexes North, and North East of it.
 The pattern would be. '120000'. This should in the \mapedit\coastx.txt file followed
 by a ',' and the tile that should be placed in the current hex.

Tile Patterns.
   Hex Corner, or Apex based tiles usually use a Tile based pattern. Usually Roads
and Rivers. If you place a Road hex, the road hex will depend on Which road tile is
North of it. Not just IF a road tile is north of it.
   So the pattern must be more complicated.
 If Tile # 60 is a road hex which connects the NorthWest, and SouthWest corners of a hex.
 When you place a tile South of this hex the pattern would be. '60-0-0-0-0-0'.
 (Tile # 60 is North of this hex.) Since there can be many road tiles that might be in 
 each position. These patterns are stored in the '\mapedit\terrain\patterns' folder.
 This folder contains files with the 'tile patterns' stored in files with names 
 matching the Terrain pattern.
 These patterns are stored in separate files to speed up processing.

You can set Terrain Patterns from the Map Editor Tile Screen. 
F3 - opens the Set Pattern screen.
(F2 - opens the Road Connections screen.)