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.jsonwith 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
| Element | Purpose |
|---|---|
| List | List of map IDs |
| New button | Add a new map by specifying an ID |
| Copy button | Duplicate the selected map |
| Delete button | Delete the selected map (with confirmation dialog) |
| Change ID button | Change the ID of the selected map |
| Save button | Save current edits |
Right pane (edit form)
The right pane contains the following 8 sections arranged vertically.
| Section | Edit content |
|---|---|
| ID | Map ID |
| Name | Map display name |
| Tilemap | Path to the tilemap scene + Edit/Generate buttons |
| Battle Background | Battle background image (fallback) |
| BGM | Map BGM |
| ME | Music Effect (victory jingle, etc.) |
| Encounter | Per-region encounter settings |
| Dev Memo | Developer memo |
Popup windows
- 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 name | Input method | Meaning | Values |
|---|---|---|---|
| ID | Text input | Map ID | _a-zA-Z0-9 only |
| Name | Text input | Map display name (translatable) | Any, may be empty |
- ID: Allowed characters are
_a-zA-Z0-9only; required - Name: Displayed in-game as the map name (translatable)
Tilemap
| Item name | Input method | Meaning |
|---|---|---|
| Tilemap | Text input + button | Path to the tilemap scene (.tscn) |
| File selection | Button | Select a .tscn via FileDialog |
| Generate Tileset | Button | Open the dialog to automatically generate a tileset from an image |
| Edit in this tool | Button | Open the Map Editor and edit the tilemap within this tool |
| New + Open | Button | Create a new tilemap scene and open it |
Battle Background
| Item name | Input method | Meaning |
|---|---|---|
| Battle Background | Text input + file selection | Battle background image path (fallback) |
| Preview | Image display | Preview 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 name | Input method | Meaning |
|---|---|---|
| BGM | Text input + play/stop/file selection | Map BGM path |
| ME | Text input + play/stop/file selection | Music 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 name | Input method | Meaning |
|---|---|---|
| Region selection | Dropdown | Switch the region to edit |
| Add Region | Button | Auto-assign the smallest unused number (1-255) and add |
| Delete Region | Button | Delete 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 name | Input method | Meaning | Values |
|---|---|---|---|
| Encounter steps (min) | Number input | Minimum number of steps until an encounter occurs | 1-99999 |
| Encounter steps (max) | Number input | Maximum number of steps until an encounter occurs | 1-99999 |
| Encounter enemy group | Dropdown + list | Enemy groups included in the draw (weighted) | Keys defined in the Group tab |
| Enemy group weight | Number input | Draw weight | 1-999 |
| Add button | Button | Add or update the selected group + weight | |
| Delete button | Button | Delete 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 name | Input method | Meaning |
|---|---|---|
| Dev Memo | Multi-line text | Developer memo (not displayed in-game) |
New Tilemap Creation Dialog
Dialog opened by the "New + Open" button. Creates a new tilemap scene.
UI
| Item name | Input method | Meaning |
|---|---|---|
| Tilemap name | Text input | File name to create (without extension) |
| Allowed characters label | Display | "Allowed characters: _ a-z A-Z 0-9" (shows error message in red on error) |
| Tileset | Dropdown | Tileset to use (.tres) |
| Create button | Button | Execute 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,_2are 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.
| Error | Message |
|---|---|
| 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 name | Input method | Meaning |
|---|---|---|
| Image path | Text input + browse button | Path to the source image |
| Tile size | Display only | Pixel size per tile (from System settings) |
| Output file name | Text input | Name of the .tres file to generate (without extension) |
| Preview | Image display | Preview of the selected image |
| Grid info | Display | Image size and number of tiles |
| Status | Display | Generation result (green: success / red: error) |
| Generate button | Button | Execute generation |
| Close button | Button | Close 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,_2are auto-numbered - The output directory is fixed to
data/maps/tilesets/
Error display
| Error | Message |
|---|---|
| Image path empty | The image path or output path is empty |
| Output file name empty | The output file name is empty |
| Image does not exist | Image not found |
Output .tres already exists | Output 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
| Area | Purpose |
|---|---|
| Title | Displays the file path currently being edited |
| Unsaved marker | Displays * when there are unsaved changes |
| Cursor coordinates | Displays the cell coordinates of the mouse position |
| Tile palette | List of tiles in the selected tileset (multi-select by drag, zoom slider) |
| Layer switching | Switch between Ground / Below / Above (3 layers) + visibility toggle |
| Map canvas | The tilemap body (edit by drag) |
| Toolbar | Edit mode buttons |
| Object properties | Edit properties of the selected object |
| Footer buttons | Save / Close / Open in Godot |
Edit modes (7 types)
Switch the action on mouse click.
| Mode | Action | Shortcut key |
|---|---|---|
| Paint | Paint one tile at a time (default) | 1 |
| Rect fill | Drag to paint a rectangular area with a tile | 2 |
| Fill | Fill the same tiles starting from the selected cell | 3 |
| Pick | Select the tile of the clicked cell in the palette | 4 |
| Cell passability edit | Toggle passability (○/×) per cell | — |
| 4-way cell passability edit | Toggle 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):
| Key | Action |
|---|---|
| Ctrl + Z | Undo |
| Ctrl + Y | Redo |
| Ctrl + C | Copy the cell at the mouse position |
| Ctrl + V | Paste to the cell at the mouse position |
| 1 | Switch to Paint mode |
| 2 | Switch to Rect fill mode |
| 3 | Switch to Fill mode |
| 4 | Switch 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.
| Mode | Content |
|---|---|
| Tile | Normal tile list (from the tileset) |
| Object | List of object templates |
| Passability | Tile attribute: palette for editing passability |
| 4-way passability | Tile attribute: palette for editing 4-way passability |
| Region | Tile attribute: palette for editing regions |
| Terrain | Godot'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.
| Mode | Click action |
|---|---|
| Normal | Select a terrain → paint and place on the map |
| Passability edit | Click to cycle passability value (0 ↔ 1) |
| Region edit | Left 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_dataof 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.)
Footer buttons
| Button | Action |
|---|---|
| Save | Save the current tilemap |
| Close | Close the Map Editor (with confirmation dialog if unsaved) |
| Open in Godot | After 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.
| Button | Action |
|---|---|
| Save | Save and close + execute the pending action |
| Discard | Discard 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 to | Purpose |
|---|---|
| System tab | References this tab's ID via "Start Map" |
| Group tab | Source of the enemy group dropdown for encounters |
| Object tab | Source of templates placed via the object palette in the Map Editor |
| Event tab | Source for creating Event IDs attached to objects |
| 3D Dungeon Settings tab | Textures and shapes in 3D mode |
| Minimap tab | Tile and object settings for minimap display |
How it is used in-game
- Name: Displayed as the map name (translatable)
- Tilemap:
.tscnis 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
- New button → enter an ID (e.g.
FIELD_1) - Enter a display name in Name (e.g.
Grassland) - New + Open → select a
.tscnname and tileset in the dialog → Create - Edit in this tool button → Place tiles in the Map Editor
- When placing objects (NPCs, chests) within the map, add them in the object palette
- Save and close
Encounter settings
- Select the corresponding map in the Map tab
- Select region 0 (default) in the Encounter section
- Set min steps = 5, max steps = 15
- Select an enemy group (e.g.
GOBLIN_1) in the dropdown → enter weight (e.g. 100) → Add - To add multiple groups, repeat the above (drawn by weight ratio)
- To use different encounter settings only in a specific region, create region 1 with the Add button → configure similarly
- 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
- Generate Tileset button
- Select
data/sprites/mapchip/*.pngas the image path - The output file name auto-fills from the image base name (change if needed)
- Generate button →
.tresis generated - The generated
.tresbecomes 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:
- The "Tilemap" field is empty or has an invalid path
- The
.tscnfile is corrupted - 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:
- The enemy group of region 0 is empty
- Min steps / max steps have abnormal values
- 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:
- Event tab — Editing events tied to objects
- Group tab — Definition of enemy groups targeted by encounters
- Object tab — Object templates placed on the map
- System tab — Start map configuration
- 3D Dungeon Settings tab — Settings for 3D display
- Minimap tab — Minimap display settings
