XML/Tileset
| This Article is Undergoing a Major Edit!
To prevent edit conflicts, please do not edit this article until the editor has removed this tag. If you wish to know who is editing and when the editing began, please see the page history. |
Tilesets are structures which define how to render a map. Its XML explains which surface textures to use, which object models, day/night lighting, fog, weather, and water.
Complete XML
<?xml version="1.0"?>
<tileset>
<surfaces> <surface> <texture path="textures/surface.bmp" prob="1.0" /> </surface> </surfaces> <objects> <object walkable="false"> <model path="models/tree.g3d" /> </object> </objects> <ambient-sounds> <day-sound enabled="true" path="sounds/day.ogg" play-always="false" /> <night-sound enabled="true" path="sounds/night.ogg" play-always="false" /> <rain-sound enabled="true" path="sounds/rain.ogg" /> <snow-sound enabled="true" path="sounds/rain.ogg" /> <day-start-sound enabled="true" path="sounds/chicken.wav" /> <night-start-sound enabled="true" path="sounds/wolf.wav" /> </ambient-sounds> <parameters> <water effects="true"> <texture path="textures/water.tga" /> </water> <fog enabled="true" mode="2" density="0.010" color-red="0.3" color-green="0.3" color-blue="0.3" /> <sun-light red="1" green="1" blue="1" /> <moon-light red="0.3" green="0.3" blue="0.4" /> <day-night value="0.7" /> <weather sun="0.5" rain="0.4" snow="0.1" /> </parameters>
</tileset>
Documentation
surfaces
Surfaces are the textures used for the ground. There must be at least 5 surface elements in each tileset, one for each surface type. A 6th surface can be defined for cliffs as well (MegaGlest only, but backwards compatible).