Skip to content

Map tab ​

The Map tab is the tab for defining in-game maps (terrain, encounters, BGM, etc.). One entry corresponds to one map.

Overview ​

Purpose of the screen ​

  • Edit map metadata (name, BGM, battle background, encounter settings, etc.)
  • Edit tilemaps (terrain data) directly within this tool
  • Automatically generate a tileset from an image
  • Create a new tilemap scene

Save location ​

  • Saved to data/settings/map.json with the map ID as the key
  • Tilemaps are saved to data/maps/<Map ID>.tscn

Where is it referenced from ​

  • "Start Map" in the System tab
  • Destination of the "Transfer Map" event content

Screen layout ​

The Map tab has a left/right split layout.

Left pane ​

ElementPurpose
ListList of map IDs
New buttonAdd a new map by specifying an ID
Copy buttonDuplicate the selected map
Delete buttonDelete the selected map (with confirmation dialog)
Change ID buttonChange the ID of the selected map
Save buttonSave current edits

Right pane (edit form) ​

The right pane contains the following 8 sections arranged vertically.

SectionEdit content
IDMap ID
NameMap display name
TilemapPath to the tilemap scene + Edit/Generate buttons
Battle BackgroundBattle background image (fallback)
BGMMap BGM
MEMusic Effect (victory jingle, etc.)
EncounterPer-region encounter settings
Dev MemoDeveloper memo
  • Map Editor: Edit objects and terrain within the tilemap
  • Tileset Generator: Generate a tileset from an image
  • New Tilemap Creation Dialog: Create a new tilemap scene

Full property reference ​

Basic info ​

Item nameInput methodMeaningValues
IDText inputMap ID_a-zA-Z0-9 only
NameText inputMap display name (translatable)Any, may be empty
  • ID: Allowed characters are _a-zA-Z0-9 only; required
  • Name: Displayed in-game as the map name (translatable)

Tilemap ​

Item nameInput methodMeaning
TilemapText input + buttonPath to the tilemap scene (.tscn)
File selectionButtonSelect a .tscn via FileDialog
Generate TilesetButtonOpen the dialog to automatically generate a tileset from an image
Edit in this toolButtonOpen the Map Editor and edit the tilemap within this tool
New + OpenButtonCreate a new tilemap scene and open it

Battle Background ​

Item nameInput methodMeaning
Battle BackgroundText input + file selectionBattle background image path (fallback)
PreviewImage displayPreview of the selected image

Supported formats: *.png,*.jpg,*.jpeg,*.svg,*.webp,*.bmp, etc.

Purpose: When the enemy group side does not specify a background, this map's battle background is used.

BGM / ME ​

Item nameInput methodMeaning
BGMText input + play/stop/file selectionMap BGM path
METext input + play/stop/file selectionMusic Effect path (victory jingle, etc.)

Supported formats: *.wav,*.mp3,*.ogg.

How they are used in-game:

  • BGM: Auto-played when entering the map; the fallback source during battle
  • ME: Short music effect, such as the victory jingle after battle

Encounter (per region) ​

Encounter settings are defined per region. Each tile (cell) on the map is assigned a region ID, and the per-region draw table is referenced each time the player steps on a cell under their feet.

Region switching UI ​

Item nameInput methodMeaning
Region selectionDropdownSwitch the region to edit
Add RegionButtonAuto-assign the smallest unused number (1-255) and add
Delete RegionButtonDelete the selected region (region 0 cannot be deleted)

How regions work:

  • Region 0 always exists as (default) (cannot be deleted). Cells on the map that have no region ID assigned (or are 0) use the settings of region 0
  • Regions 1-255 can be added by the user. Pressing the Add button auto-assigns the smallest unused number (1 → 2 → 3 ...)
  • When all of 1-255 are used, the Add button has no effect

Encounter settings within a region ​

Item nameInput methodMeaningValues
Encounter steps (min)Number inputMinimum number of steps until an encounter occurs1-99999
Encounter steps (max)Number inputMaximum number of steps until an encounter occurs1-99999
Encounter enemy groupDropdown + listEnemy groups included in the draw (weighted)Keys defined in the Group tab
Enemy group weightNumber inputDraw weight1-999
Add buttonButtonAdd or update the selected group + weight
Delete buttonButtonDelete the selected group

Warning for min > max: When min > max, both number inputs are displayed in red. At runtime they are automatically corrected (max = min), but since this may differ from intent, the UI shows it so you can notice in the editor.

Encounter trigger logic ​

  • Each time the player takes 1 step, the step counter increases, and when it reaches a threshold randomly determined in the range min steps - max steps, an encounter occurs
  • When triggered, enemy groups set here are drawn by weight ratio
  • Region priority: matching region → region 0 → no encounter
  • When crossing regions, the current threshold is kept, and at the next judgment the new region's settings are used for drawing

Dev Memo ​

Item nameInput methodMeaning
Dev MemoMulti-line textDeveloper memo (not displayed in-game)

New Tilemap Creation Dialog ​

Dialog opened by the "New + Open" button. Creates a new tilemap scene.

UI ​

Item nameInput methodMeaning
Tilemap nameText inputFile name to create (without extension)
Allowed characters labelDisplay"Allowed characters: _ a-z A-Z 0-9" (shows error message in red on error)
TilesetDropdownTileset to use (.tres)
Create buttonButtonExecute creation

Specification ​

  • The initial value of the tilemap name is the ID of the map currently being edited
  • When it duplicates an existing tilemap, _1, _2 are automatically appended as suffixes
  • The selected tileset is applied to all 3 layers: Ground / Below / Above

Error display ​

When the Create button is pressed, the following checks are performed. On error, the dialog does not close and the error is displayed in red.

ErrorMessage
Name is empty* Tilemap name is missing
Duplicate with existing tilemap* Tilemap file already exists: <name>.tscn

Data protection: Existing files are never overwritten.

Tileset Generator ​

Dialog opened by the "Generate Tileset" button. Automatically generates a tileset from an image.

UI ​

Item nameInput methodMeaning
Image pathText input + browse buttonPath to the source image
Tile sizeDisplay onlyPixel size per tile (from System settings)
Output file nameText inputName of the .tres file to generate (without extension)
PreviewImage displayPreview of the selected image
Grid infoDisplayImage size and number of tiles
StatusDisplayGeneration result (green: success / red: error)
Generate buttonButtonExecute generation
Close buttonButtonClose the dialog

Specification ​

  • The initial value of the output file name is auto-set from the image base name
  • When it duplicates an existing file, _1, _2 are auto-numbered
  • The output directory is fixed to data/maps/tilesets/

Error display ​

ErrorMessage
Image path emptyThe image path or output path is empty
Output file name emptyThe output file name is empty
Image does not existImage not found
Output .tres already existsOutput file already exists (cannot overwrite)

On success: Generation successful: <file name> is displayed in green.

Map Editor (edit tilemaps within this tool) ​

A popup window opened by the "Edit in this tool" button. Edits tilemaps directly within this tool.

Screen layout ​

AreaPurpose
TitleDisplays the file path currently being edited
Unsaved markerDisplays * when there are unsaved changes
Cursor coordinatesDisplays the cell coordinates of the mouse position
Tile paletteList of tiles in the selected tileset (multi-select by drag, zoom slider)
Layer switchingSwitch between Ground / Below / Above (3 layers) + visibility toggle
Map canvasThe tilemap body (edit by drag)
ToolbarEdit mode buttons
Object propertiesEdit properties of the selected object
Footer buttonsSave / Close / Open in Godot

Edit modes (7 types) ​

Switch the action on mouse click.

ModeActionShortcut key
PaintPaint one tile at a time (default)1
Rect fillDrag to paint a rectangular area with a tile2
FillFill the same tiles starting from the selected cell3
PickSelect the tile of the clicked cell in the palette4
Cell passability editToggle passability (○/×) per cell—
4-way cell passability editToggle up/down/left/right passability individually—
Cell region edit+1/-1/reset the cell's region ID—

Keyboard shortcuts ​

Keyboard shortcuts usable in the Map Editor (when a text input in the right panel is focused, the node takes precedence):

KeyAction
Ctrl + ZUndo
Ctrl + YRedo
Ctrl + CCopy the cell at the mouse position
Ctrl + VPaste to the cell at the mouse position
1Switch to Paint mode
2Switch to Rect fill mode
3Switch to Fill mode
4Switch to Pick mode

About the Delete key

The deletion action by the Delete key has been removed. This is to prevent accidental misfires during text input. Delete map chips with right click (in Paint/Rect fill mode), and delete objects with the "Delete Object" button in the right panel instead.

Palette modes (6 types) ​

Switch the display mode of the tile palette.

ModeContent
TileNormal tile list (from the tileset)
ObjectList of object templates
PassabilityTile attribute: palette for editing passability
4-way passabilityTile attribute: palette for editing 4-way passability
RegionTile attribute: palette for editing regions
TerrainGodot's standard Terrain feature

UI changes in Object / Terrain mode

  • Zoom slider is hidden
  • Tile attribute editing mode row (passability / 4-way / region button row) is hidden
  • Tile list is hidden
  • In Object mode: Template/Placed tab row is displayed

Terrain attribute mode (sub-mode in Terrain palette mode) ​

In Terrain palette mode, switch between the following 3 attribute modes.

ModeClick action
NormalSelect a terrain → paint and place on the map
Passability editClick to cycle passability value (0 ↔ 1)
Region editLeft click +1 / right click -1, wraps at 0-9

Terrain Help button: In Terrain palette mode, the "Help" button displays a dialog on how to use the terrain feature.

  • Steps to switch to the Godot native editor and edit Terrain Sets
  • How to configure Peering Bits in the tileset
  • Links to the Godot Terrain official documentation

Tile custom data editor ​

The "Edit Tile Data" button lets you edit arbitrary custom data (key-value) per tile.

  • Edit custom_data of the selected tile
  • Can be referenced as tile attributes in-game (developer-oriented extension)

Object placement ​

In Object palette mode, you can place object templates on the map.

  • Template tab: Displays all templates under data/objects/. Click to select → click on the map to place
  • Placed tab: List of objects placed on the map. Click to select the object and center it in view
  • The selected object's properties can be edited in the right panel (Event ID / trigger / trigger condition / object name, etc.)
ButtonAction
SaveSave the current tilemap
CloseClose the Map Editor (with confirmation dialog if unsaved)
Open in GodotAfter unsaved confirmation, open the scene in the Godot native editor

Unsaved confirmation dialog ​

When "Close", "Open in Godot", etc. is requested in the Map Editor and there are unsaved changes, a confirmation dialog is displayed.

ButtonAction
SaveSave and close + execute the pending action
DiscardDiscard and close + execute the pending action

Behavior of Open in Godot ​

  • "Open in Godot" button: After unsaved confirmation, opens the tilemap in Godot's standard 2D scene editor
  • "Edit Terrain in Godot" button (in Terrain palette mode): Similarly opens in Godot → the user edits Terrain Sets in the Inspector
  • Convenient when you want to use Godot native features (Peering Bits editor, etc.)

Impact on other tabs / runtime ​

Linkage with other tabs ​

Linked toPurpose
System tabReferences this tab's ID via "Start Map"
Group tabSource of the enemy group dropdown for encounters
Object tabSource of templates placed via the object palette in the Map Editor
Event tabSource for creating Event IDs attached to objects
3D Dungeon Settings tabTextures and shapes in 3D mode
Minimap tabTile and object settings for minimap display

How it is used in-game ​

  • Name: Displayed as the map name (translatable)
  • Tilemap: .tscn is loaded on map transition
  • Battle Background: Fallback when the enemy group has no background specified
  • BGM: Auto-played when entering the map
  • ME: Jingle played on battle victory
  • Encounter: Drawn based on the region of the cell under the player's feet

Auto-update of cross-tab references ​

The following dropdowns in this tab are automatically updated to the latest state just before the dropdown is opened.

  • Encounter enemy group (reflects changes made in the Group tab)
  • Tileset (reflects additions to data/maps/tilesets/*.tres)

Usage examples ​

Create a new map ​

  1. New button → enter an ID (e.g. FIELD_1)
  2. Enter a display name in Name (e.g. Grassland)
  3. New + Open → select a .tscn name and tileset in the dialog → Create
  4. Edit in this tool button → Place tiles in the Map Editor
  5. When placing objects (NPCs, chests) within the map, add them in the object palette
  6. Save and close

Encounter settings ​

  1. Select the corresponding map in the Map tab
  2. Select region 0 (default) in the Encounter section
  3. Set min steps = 5, max steps = 15
  4. Select an enemy group (e.g. GOBLIN_1) in the dropdown → enter weight (e.g. 100) → Add
  5. To add multiple groups, repeat the above (drawn by weight ratio)
  6. To use different encounter settings only in a specific region, create region 1 with the Add button → configure similarly
  7. In the Map Editor, select cells to assign to region 1 and set them with the Region ID edit mode

Generate a tileset from an image ​

  1. Generate Tileset button
  2. Select data/sprites/mapchip/*.png as the image path
  3. The output file name auto-fills from the image base name (change if needed)
  4. Generate button → .tres is generated
  5. The generated .tres becomes selectable in the dropdown of the New Tilemap Creation Dialog

Constraints / edge cases ​

ID constraints ​

  • Empty string prohibited
  • Allowed characters: _a-zA-Z0-9
  • Duplicates are auto-avoided with _2, _3

Min steps > max steps ​

  • Both input fields are displayed in red in the UI
  • At runtime, silent correction (max = min)

All regions 1-255 used ​

  • Pressing the Add button does nothing

Old-version map data ​

  • Map data created in versions before 2026-08-27 is automatically migrated to the new format just by selecting them in this tab (confirmed by re-saving)

Duplicate with existing file in New Tilemap Creation ​

  • On pressing the Create button, an error is displayed and the dialog does not close
  • Existing files are never overwritten

Duplicate with existing file in Tileset Generator ​

  • On pressing the Generate button, an error is displayed (dialog does not close)
  • Existing files are never overwritten

Closing the Map Editor without saving ​

  • Confirmation dialog: Save / Discard / Cancel
  • Pending destinations such as "Open in Godot" are deferred and executed after the dialog closes

Frequently asked questions (FAQ) ​

The map is not displayed in-game ​

Possible causes:

  1. The "Tilemap" field is empty or has an invalid path
  2. The .tscn file is corrupted
  3. The "Start Map" in the System tab is not set to this map (when using it as the game's start map)

Solution: Re-select the tilemap and save, or open the .tscn in the Map Editor or Godot to check.

Encounters do not occur ​

Possible causes:

  1. The enemy group of region 0 is empty
  2. Min steps / max steps have abnormal values
  3. The region ID of tiles in the map unintentionally points to a different region

Solution: Check the settings of region 0, or verify the tile's region using the cell region edit mode of the Map Editor.

Nothing happens when I press the New + Open button ​

Cause: There is a slight delay to wait for input focus to move. The dialog appears after a short wait after the click.

A newly added tileset does not appear in the New Tilemap Creation Dialog ​

Solution: The tileset dropdown is automatically updated to the latest state just before the dialog is opened. Re-open the dialog to reflect the latest list.

A map created in an old version cannot be loaded ​

Solution: Automatic migration is performed. The old data is absorbed into the new format just by selecting the map, and re-saving completes the migration.

Saving in the Map Editor does not reflect the ID change ​

Cause: The Map Editor only saves the .tscn file (tilemap). Metadata such as map ID and name must be saved separately to map.json via the right pane's Save button (or Save All on the Home tab) in the Map tab.

I want to edit Terrain ​

Solution: Using the Map Editor's "Open in Godot (Terrain)" button opens the .tscn in the Godot native editor with the Ground layer selected. Edit the "Terrain Sets" section in the right-side Inspector (because the Peering Bits editor is not implemented inside this tool, it delegates to Godot native).

Does the Dev Memo affect the game? ​

Solution: No. It is for developer memo use only and is not referenced in-game at all.


Related references: