Skip to main content

Three

Based on game build 714014 | Last updated: 2026-03-03

Overview​

three.lua is a map layout file defining the static tile layout and structure for a specific variant of the "hallway_residential" room in Don't Starve Together. It uses the Tiled Map Editor format (version 1.1, orthogonal, 32×32 grid of 16×16 tiles) to specify background tile placement via tile IDs in a linear array. It includes no foreground object layers or dynamic behavior—its purpose is purely visual/layout for procedural world generation.

Usage example​

This file is not used as an entity component and is loaded by the world generation system automatically when selecting the hallway_residential_two room template. No direct usage by modders is expected.

-- Not applicable: this is a static data file consumed by the map generator.
-- See map/static_layouts/rooms/hallway_residential_two for related layout variants.

Dependencies & tags​

Components used: None identified
Tags: None identified

Properties​

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version.
luaversionstring"5.1"Lua version used by Tiled.
orientationstring"orthogonal"Map projection type.
widthnumber32Map width in tiles.
heightnumber32Map height in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
tilesetsarray—Tileset definitions (only tiles used).
layersarray—Map layers (BG_TILES, FG_OBJECTS).
propertiestable{}Global map properties (empty).

Main functions​

Not applicable — this is a data module returning a plain Lua table of static map data.

Events & listeners​

Not applicable.