Wld tiles.ini (Config pack)

From PGE Wiki
Jump to: navigation, search

wld_tiles.ini - Definition of a terrain tiles for a world maps.


[ tiles-main ]
Parameter Allowed values Example value Description
total >=1 total = 328 Allocate TILE-ID's to define tiles.
grid >=1 grid = 32 Default alignment grid size for all terrain tiles without defined "grid" field.
config-dir string config-dir = "items/terrain" Enables split config mode (using a set of tile-*.ini files in the specified directory instead finding sections in the same INI-file)
extra-settings string extra-settings = "items/terrain" Relative path to folder where are extra settings JSON layouts are stored. If the field didn't define, the value of `config-dir` will be used. When it's also empty too, extra settings will not work.


Note: in the split mode or in the custom level/episode tile-*.ini config file, section name is always tile.

Settings of each tile (Where '*' - should be a TILE-ID from 1 to total number of tiles)
You should define settings for all allocated TILE-ID range!

[ tile-* ]
Parameter Allowed values Example value Description
group string group = "Common tiles" Name of organizing group (reserved)
category string category = "Blue" Name of organizing category (reserved)
description string description = "Just blue" A short description about this element.
extra-settings string extra-settings = "mylayout.json" Filename of GUI layout for extra settings if they are needed for this element.
image string image = tile-1.gif Filename of tile picture
grid >=1 grid = 32 Size of align grid
animated [0,1] animated = 0 Enable sprite animation for this tile
frames >=1 frames = 1 Total number of frames on sprite
frame-delay >=1 frame-delay = 128 Delay between animation frames in milliseconds
frame-speed >=1 frame-speed = 128 Alias to frame-delay
framespeed >=1 framespeed = 8 Delay between animation frames in 1/65 seconds
display-frame >=0 display-frame = 0 Default frame index for disabled animation mode in the editor
frame-sequence string, sequence of integers frame-sequence = "1,3,2,0" Initial custom animation frames sequence (first frame is 0, last is n-1). Empty string is usage of default sequence.
row >=0 row = 5 Row index in the table of tiles
col >=0 col = 2 Column index in the table of tiles