Skip to main content

Long

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

Overview

This file defines a static Tiled-based map layout used for the long corridor variant of the Hallway Armoury room in Don't Starve Together. It specifies the grid dimensions, tile layer data, and object placement (including spawners) required to render the room in the game world. As a static layout, it is loaded directly during world generation to place pre-defined room geometry.

Usage example

-- This file is not instantiated as a component or entity. It is consumed by the world generation system.
-- The game engine loads it via static layout loading code, typically referenced in tasksets or room definitions.
-- No direct modder usage is required or expected.

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version.
luaversionstring"5.1"Lua version compatibility.
orientationstring"orthogonal"Map rendering orientation.
widthnumber32Map width in tiles.
heightnumber32Map height in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
propertiestable{}Map-level custom properties (empty here).
tilesetstableArray of tileset definitions including image path and tile metadata.
layerstableArray of layers: BG_TILES (tile layer) and FG_OBJECTS (object group).

Main functions

This file is a pure data return table; it does not define any executable functions or methods.

Events & listeners

This file does not define event listeners or push any events.

Layers

BG_TILES

  • Type: tilelayer
  • Size: 32×32 tiles
  • Data: A flat array of 1024 tile IDs (indexed row-wise), where non-zero values (e.g., 21, 25) represent tile placements. Zeros indicate empty space.
  • Usage: Provides the background/foreground visual floor pattern.

FG_OBJECTS

  • Type: objectgroup
  • Objects:
    • Name: knight_nightmare_spawner
      • Shape: rectangle
      • Position: (x=192, y=160)
      • Dimensions: 0×0
    • Purpose: Indicates a spawner point for the Knight Nightmare entity during room deployment in the Nightmarish scenario. The coordinates are in pixels (64-pixel grid: 192/64 = 3, 160/64 = 2.5 → tile-based coordinates (3, 2.5)).

Tileset

  • Name: tiles
  • Image path: ../../../../../../tools/tiled/dont_starve/tiles.png
  • Dimensions: 512×384 pixels
  • Tile size: 64×64 pixels
  • GID: First tile has global ID 1.

Notes for Modders

  • This is a static layout definition and not a script component—do not attempt to attach it as a component or instantiate it like a prefab.
  • To customize or create similar layouts, use the Tiled map editor with the Don’t Starve Together tileset and export as Lua.
  • Object names (e.g., knight_nightmare_spawner) are interpreted by the world generation engine to place specific entities at runtime. Ensure any custom object types are handled by appropriate spawner logic elsewhere in the codebase.