Skip to content

LastTilesInSet

Number of tiles the set held when the maps in circulation were numbered, so that older tile indices can be shifted into line.

Specification
Applies to
tile controls
File
theater control file
Section
[<TileSet ID>]
Value
integer
When omitted
-1No shift is recorded for this set, so it moves no tile index.

LastTilesInSet keeps older maps drawing the right terrain after a tile set grows. A map stores each cell’s terrain as a tile index counted across every set in the theater, so adding tiles to one set moves the tiles of every later set up. Give this key the count the set had when the older maps were made; TilesInSet gives the count it has now.

TEMPERAT.INI
[TileSet0042] ; example set that gained four tiles after release
SetName=Shore pieces
FileName=SHORE
TilesInSet=12 ; twelve tiles are loaded
LastTilesInSet=8 ; maps were numbered when there were eight

When a map is read, every tile index that points past the set’s old end moves up by the difference between the two counts, four in this example. Indices in this set and in earlier sets are unchanged. The set’s new tiles must therefore be added at its end.

LastTilesInSet=0 marks a set added after the maps were made. Every older index from that set’s position onward moves up by the set’s full count.

Shifts from several sets add up. Each set’s position is measured in the old numbering, so every set that changed size must declare its old count for later sets to line up. A value equal to TilesInSet records no shift.

See also — TilesInSet