Skip to main content

Warzone 2

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

Overview

warzone_2.lua defines a static map layout used in Don't Starve Together for the Warzone 2 arena. It specifies tile layer data (background tiles), object layer entities (entity spawn points), and foundational map properties such as dimensions and orientation. This file is part of the static_layouts directory and is loaded by the world generation system to place pre-defined structures or arena configurations.

This file is data-only and does not contain any Lua components, classes, or executable code. It returns a structured table conforming to the Tiled map format (version 1.1, Lua syntax) and is consumed by external map loading utilities—not used directly as a component in the ECS.

Usage example

This file is not intended for direct use in mod code. It is referenced internally by the world generation system. Modders typically interact with such layouts through higher-level APIs like StaticLayoutLoader or WorldGenContext when overriding or injecting custom arena layouts.

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version.
luaversionstring"5.1"Lua version assumed for data encoding.
orientationstring"orthogonal"Map rendering orientation.
widthnumber16Map width in tiles.
heightnumber16Map height in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
tilesetstable{{...}}Array of tileset definitions, including image path and tile dimensions.
layerstable{{...}}Array of layer definitions: BG_TILES (tile layer) and FG_OBJECTS (object group).

Main functions

This file does not define any functions.

Events & listeners

No events or listeners are defined or used.