When something goes wrong
If the editor does something strange, the debug console shows what happened, Copy Bug Report puts it on the clipboard, and Report an Issue sends it to the project.
Damaged and protected maps#
The Repair plugin checks every map as it opens, the way the game reads it. Protected maps in particular often have parts missing, damaged or repeated.
- Safe repairs are made at once: the ones that only write what the game already does, or put back what the editor needs, such as the isometric record a protector stripped, or leaving out the files a protector added to the archive that nothing in the map names. They do not mark the map as changed, and the next save writes them.
- Judgement calls are left to you, such as a player slot with a race the game does not have. A cell in the status bar (Repaired 3 · 1 to review) opens a list that says what the game does about each one and what the repair would change.
Undo in that list puts the file back as it opened. Tools ▸ Repair Map… runs the check again, and Edit ▸ Preferences ▸ Plugins ▸ Repair can make it ask before repairing anything, or not check at all. To look at the file section by section and byte by byte, install Section Explorer from Plugins ▸ Browse Plugins…. Protected and damaged maps has the details.
The debug console#
View ▸ Debug Console opens a strip along the bottom of the window with the log in it: maps opened and saved, plugins started and stopped, where the game data came from, and every error the page threw.

The log is kept whether the strip is open or not, so opening it after something odd happened still shows what happened. The last couple of thousand lines are kept; Clear empties it, for starting clean before reproducing something.
Warnings and Errors narrow the list to what went wrong; the box beside them filters on any text. Verbose adds a line for every edit and every call a plugin makes into the editor. It answers "which plugin did that?", it is noisy by design, and it turns itself off when you next load the editor.
When part of the editor fails#
If a panel, the palette, the map view or the menu bar hits an error it cannot draw past, that part alone is replaced by a short notice with the error in it. Everything else keeps working, your maps included. Try again draws the part afresh, and Show the log opens the debug console at the line that says what failed.
A dialog that fails is closed, and a notice says so with the same Show the log button. What you had changed in it and not yet applied is lost; what you had applied is in the map.
The editor downloads each dialog the first time you open it. If that download fails, the dialog does not open and a notice says Part of the editor could not be downloaded, with a Reload button. That happens when the connection drops, or when the page was opened several releases ago: scmjs.dev keeps the files of the three releases before the current one (the nightly, of the three nightlies before it), and a page older than those asks for files that are gone. Reload brings the page up to date. Recovery copies of maps with unsaved changes are brought up to date first (unless you switched them off), so the editor offers those maps back after the reload.
If the whole editor fails, a plain page takes its place with the error, the end of the log, and Copy the log and Save the log… for a bug report. Your maps are still open behind it: Try again brings the editor back with them. A recovery copy of each map with unsaved changes is written as that page appears (unless you switched recovery copies off in Preferences), so Reload offers them back too.
Copying a bug report#
Help ▸ Copy Bug Report puts the log on the clipboard with a short header above it (the version, the browser or desktop app, where the game data came from, the map's size and tileset, and the plugins with their versions), ready to paste into an issue, a forum post or a message. A long session is trimmed to its most recent lines so the paste fits in an issue; when it is, the report says so.
The console's own Copy does the same without the trim, and Save… writes the whole log to a file, for when it is too long to paste.
Filing an issue#
Help ▸ Report an Issue… opens a new issue on GitHub with the report already filled in, under three questions: what you did, what you expected, and what happened. Answer those, check the rest, and submit. You need a GitHub account.
The issue holds a shortened log. If the lines that matter were cut, use Copy Bug Report and paste the full report over it.
Nothing is sent until you submit the issue yourself. The report names the map file you have open, the plugins you have installed and the version you are running, and nothing else about you.