Skip to main content

Teleportato Base Layout Adv

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

Overview​

teleportato_base_layout_adv.lua is a map layout definition file that describes the static geometry and object placements for the Advanced Teleportato base in DST. It is not a component in the Entity Component System sense (i.e., it does not define an ECS component class), but rather a pure data structure returned by a Lua module. This layout is consumed by the game’s world generation system to instantiate physical entities (e.g., teleportato_base, bishop, flower_evil, marbletree, etc.) and background tile layers during level loading.

Usage example​

This file is not used directly as a component, but is referenced internally by the world generation system. Modders typically do not load or manipulate this file manually. For reference, world layouts like this are loaded via the map system, for example:

-- Pseudo-code: How the engine may use such a layout
local layout = require("map/static_layouts/teleportato_base_layout_adv")
for _, obj in ipairs(layout.layers[2].objects) do
if obj.type == "teleportato_base" then
SpawnTeleportatoBase(obj.x, obj.y)
end
-- ... handle other object types similarly
end

Dependencies & tags​

Components used: None identified
Tags: None identified

Properties​

No public properties in the ECS component sense. The module returns a flat Lua table with map metadata:

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled format version
luaversionstring"5.1"Lua version compatibility
orientationstring"orthogonal"Map orientation type
widthnumber40Map width in tiles
heightnumber40Map height in tiles
tilewidthnumber16Tile width in pixels
tileheightnumber16Tile height in pixels
tilesetstable(see source)Array of tileset definitions
layerstable(see source)Array of layers: tile layer "BG_TILES" and object group "FG_OBJECTS"

Main functions​

None applicable — this is a data-only module returning a static layout structure. No functions are defined.

Events & listeners​

Not applicable.