{{indexmenu_n>5}} ====== 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 ===== {{ :authors_main:task_editor:editor_overview_en.png?800 |The toolbar, the tabs and the folded task cards}} ==== The toolbar ==== {{ :authors_main:task_editor:editor_dirty_badge_en.png?800 |The "Draft" badge: the server still holds the older version}} * **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 [[en:authors_main:task_editor:task_json|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. The dropdown next to the arrows picks which of them to show. * **Game settings** — name, start and end time, game type, statistics, localization, and a folded **"Authors"** block — who else may edit this game. * **Global bonuses** — bonuses that apply to the whole game. * **Task order** — the lines, see [[en:authors_main:game_management:task_order|Task order]]. * **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. * **Translation** — shows up only for a game with [[en:authors_main:game_management:localization|localization]] switched on in its settings. * **Useful links** — the game page, statistics, the scenario view, import, one-time teams, the old editor. * **JSON** — the whole draft as text. {{ :authors_main:task_editor:editor_game_settings_en.png?800 |The "Game settings" tab}} ==== A task card ==== {{ :authors_main:task_editor:editor_task_card_en.png?800 |A task card: fields, codes, bonuses and hints}} 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, **"filler"** when the task's "Time x" is zero, and **script** when the task has a script of its own or a ''