The Game Editor
The editor is a single page holding the whole scenario: game settings, tasks with their codes, bonuses and hints, global bonuses, task orders and authors. Open it with the “Edit” button in the game list, or with the “Edit game” link on the scenario page.
What to understand first
Your edits live in the browser until you save them. Adding a task, changing a code, dragging a level — all of it changes only the draft on your screen. The server knows nothing about it yet, the page never reloads, and nothing is lost between actions.
Saving is one act, and it is all or nothing. The “Save…“ button first shows a window listing what is about to travel to the server, and writes only after you confirm. It writes in one transaction: either everything is applied, or — if the server refuses anything — nothing is. There is no such thing as a half-saved game.
You always see what changed. Changed fields are highlighted, task cards and tabs are marked, and a yellow “Draft” badge sits in the toolbar. It means exactly one thing: the server still holds the older version.
What is on the screen
The toolbar
- Draft — appears when the browser holds unsaved changes.
- The game is running! — a red badge: whatever you change will be seen by the teams playing right now.
- ↶ … ↷ — undo, walk the steps, redo (see below).
- History — versions of the game kept in this browser.
- Download JSON / Upload JSON — the whole scenario as a file, see The JSON of a task and of a game.
- Save… — preview the changes and write them to the server.
- Test the game — saves (if there is anything to save) and opens the game in test mode in a new tab.
The tabs
- Tasks — the task cards: the tasks themselves, codes, bonuses, hints.
- Game settings — name, start and end time, game type, statistics and the rest.
- Global bonuses — bonuses that apply to the whole game.
- Task order — the lines, see Task order.
- Authors — who else may edit this game.
- Files — uploading images and sounds. The one place in the editor that does not go through the draft: a file reaches the server at once, and is deleted at once — the “Save…” button has nothing to do with it.
- Useful links — the game page, statistics, the scenario view, import, one-time teams, the old editor.
- JSON — the whole draft as text.
A task card
Cards are folded, so that a list of fifty tasks fits on the screen. The header carries the number, the name and the badges: how many codes, bonuses and hints there are, “Auto-jump” with its time when the task ends by itself, and “filler” when the task's “Time x” is zero.
Inside are the task's fields and the folded sections for codes, bonuses and hints. The “JSON” button in the header shows the whole task as one text; “Copy JSON” at the bottom puts it into the clipboard.
Tasks are reordered by dragging the handle to the left of the name — the numbers are recomputed for you.
Saving
“Save…“ opens the “Changes before saving” window. It lists, line by line, everything that differs from the server: game fields, changed tasks, added and deleted codes, bonuses and hints.
What you can do there:
- Keep some of the edits to yourself. Every change offers “Original” / “Draft”. Anything marked “Original” does not travel to the server — it stays in the draft until next time.
- Look at a big field line by line. The task text and other long fields have a “Show line by line and edit” link: it shows which lines actually changed, and lets you fix the value right there.
- Read what the server has to say. Before showing the window, the editor runs the changes against the server as a dry run. So errors and warnings (“this task already has answers from teams”) reach you before the write, not after.
A game that is already running has to be confirmed with a separate checkbox — so that editing a live game never happens out of habit.
If somebody changed the game meanwhile, in another window or in the old editor, the save stops with a conflict message: other people's work is never overwritten silently.
Steps: undo and redo
Every change is a step, which can be undone (↶, Ctrl+Z) and redone (↷, Ctrl+Y).
The “…” between the arrows opens a window where those steps can be walked: pick a point with the arrows or the slider, and the window shows how the current state differs from it — not by one step, but by all of them together. “Apply” takes the editor there. These are still ordinary steps: what was applied can be undone, and what was undone can be redone.
Version history
“History” opens the list of versions kept in this browser:
- the state of the game before each save — the thing worth rolling back to;
- versions you set aside by hand with “Add the current draft”.
Any version can be “Compared…“ with the current draft — the same changes window opens — and loaded into the draft; it reaches the server through an ordinary save. Versions can be named and deleted.
Important: The history lives in your browser, not on the server. Another computer, another browser, or clearing the site data, and it is gone. The one backup that depends on nothing is the file you get from “Download JSON”.
Apart from the history the editor keeps a crash-recovery draft: if the browser or the tab dies with unsaved edits, the editor offers them back the next time it opens.
Small things that save time
- Time is written in words. Time fields accept
1h 30m,90mor5400— all the same to the editor, and it shows the readable form back. The hint next to the field says what your input came to. - The “Source” mode of the text editor comes with HTML highlighting and markup checking.
- A whole task as JSON — the “JSON” button in the card header: handy when an edit is easier to make as text than through fields.
- Pasting from the clipboard — “Paste tasks from the clipboard…“ under the task list adds tasks from JSON copied from anywhere. See The JSON of a task and of a game.
- The one-task editor inside the game. While an author is testing, a “Editor” block sits under the task — the same editor, but for that one task and the global bonuses. No need to leave the page to fix a typo or add a code.
The old editor
The old editor is still there: the “Old editor” link is in the “Useful links” tab. It works as it always did — a full-page form saved by the button at the bottom.
Edits in the old editor go straight to the server. If the new editor is open alongside, its draft knows nothing about them, and saving will report a conflict. Work in one of the two at a time.