Level editor ​

The level editor on Sushi 1-1

Open it from the main menu: MODS, then LEVEL EDITOR. The launcher's Open editor does the same.

  1. Pick a base kitchen, or one of YOUR LEVELS: arrows and Enter, or click. P plays one of your levels.
  2. The kitchen loads with the round held. The palette is on the left, the level settings on the right, the status bar at the bottom, and a card next to whatever you select.
  3. Build, pick the orders, set the time limit and the name.
  4. TEST (F5) plays it. When the round ends, or you quit from the pause menu, you are back in the editor.
  5. SAVE (Ctrl+S) writes the level to levels/mine/<id>/. EXIT (Esc) goes back to the main menu and asks first when there are unsaved changes.

Kitchens that open with a story cutscene, like the Tutorial, skip it in custom levels: the round starts straight away and ends on the results screen. Their in-game hints still show.

Building ​

The cursor is the cell under the mouse, or the cell you moved to with the arrows. The ghost of the brush shows on it: green where it fits, amber where it replaces what is there, red where it can't go, with the reason next to it.

  • Palette: every object at once, in sections you scroll: Counters, Crates (one per ingredient), Cooking, Washing & serving, Kit, then one section per addon with level content, marked ADDON. F filters by name. Tab moves between sections; the open section's tiles show their keys, 1 to 9.
  • Selection card: click an object, or pick it up, and its card opens next to it: cell and facing with buttons to move and turn it, the crate's ingredient, what sits on it, and PICK UP, COPY, REMOVE. I hides or shows the card.
  • Level settings: always open on the right. Name, description, base kitchen, players, time limit, movement, instructions, addons, recipes and checks. L jumps to the name.
  • Status bar: the cursor cell, the tool, saved or unsaved, the number of checks (click it to see them), and the keys that do something now.
  • HIDE PANELS (H) in the top bar collapses both panels; the kitchen is then all yours.
  • Every button shows what it does and its key when you point at it.

Every action has a key. F1 shows them all in the editor:

KeysDoes
CursorArrows, WASD, mouseMove the cursor one cell
Shift+Arrows, middle drag, screen edgePan the camera
HomeCentre the camera again
BuildEnter, Space, left clickPlace the brush; with no brush, pick up or put down
left dragPlace along the drag
Delete, Backspace, X, right clickRemove the object under the cursor
R, wheel downRotate the brush or the selection clockwise
Shift+R, wheel upRotate anticlockwise
M, drag a selectionPick up the object under the cursor, then put it down
Ctrl+C, Ctrl+DCopy the object under the cursor into the brush
Ctrl+VPlace the brush at the cursor
CSet or clear a chef start
Palette1-9Pick a slot of the open category
TabNext category
Shift+TabPrevious category
QPrevious object in the category
ENext object in the category
VSelect tool: drop the brush
FFilter the palette by name
EditCtrl+ZUndo
Ctrl+Y, Ctrl+Shift+ZRedo
LevelCtrl+SSave
F5, TTest-play; the end of the round comes back here
LJump to the level settings: name, players, time, movement, addons, recipes
NMake a custom recipe
UChoose the level's addons
ViewIShow or hide the card next to the selection
F1, ?Show these keys
GShow or hide the grid
HCollapse or expand the panels
EscBack out: close, drop, deselect, drop the brush, then leave

The keys overlay

Placing a station on a cell the kitchen already uses replaces what is there. Items such as pots and plates go on a counter or a station that holds them: a hob takes a pot, pan or basket, a mixer a bowl, and bins, sinks, plate returns and the serving hatch take nothing. Moving or turning a station takes what is on it along.

RECIPES starts with the base level's orders. + ADD A RECIPE opens the list of what can go on the menu: the recipes of the base kitchen's world, the recipes of your addons, and your own. Once the menu is yours, each recipe has How often (-, +) and X to take it off. Each shows its ingredients, and what's missing when the kitchen can't make it.

Your own recipes ​

The recipe builder

+ CUSTOM (N) opens the recipe builder: a name, the dish it is served on, up to 6 parts, the score and how long the order waits. Each part is an ingredient (the kitchen's crates and your addons' foods) and its prep: raw, chopped, boiled, fried, baked, mixed, grilled, or an addon station's prep such as Taco Stand's toasted. The checks under it say what the kitchen still needs, such as a crate or the station for a prep. SAVE RECIPE (Enter) puts it on the menu; EDIT on its row changes it later.

Up/Down picks a part, Left/Right changes its ingredient, Shift+Left/Shift+Right its prep, Ins adds a part and Del removes one.

Addons ​

Choosing the level's addons

Content from addons that have it ("level_content": true) shows in the palette, the recipe list and the movement picker. Placing it, or using it in a recipe, puts the addon on the level's list; CHOOSE (U) under ADDONS turns addons on and off by hand. An addon that is still in use can't be turned off.

Players need the level's addons to play it. Opening a level whose addon you don't have says which one is missing and that it's in Discover in Swofty Launcher.

MOVEMENT picks a level-wide movement type from an addon, or Normal for the game's own handling. Pickups and floors that change movement, such as Taco Stand's hot sauce and salsa spill, go in the palette.

Instructions ​

The instructions setting

INSTRUCTIONS is the popup players see before the round, in the game's own how-to-cook style. < and > pick:

  • None: no popup, the round starts straight away.
  • Your own pages: 1 to 4 pages of text. Each has its text and can have its own title. Title is the popup's title, the level's name when empty. Label on the paper note is the note in the corner, the game's NEW RECIPE when empty. + ADD A PAGE adds one and X takes one out. A page without text is a check that stops TEST and SAVE until you confirm.
  • An addon's instructions, with pictures. Picking one puts its addon on the level's list.

Players hold the button for a second to turn the page; a page turns itself after 15 seconds.

Checks ​

Check
No serving hatchstops TEST and SAVE until you confirm
No plates and no plate returnstops until you confirm
A recipe needs an ingredient no crate givesstops until you confirm
An instructions page without textstops until you confirm
No plates on the counters, no bin, fewer chef starts than playersshown in the level panel

A check before testing

Scores and level progress are not saved for custom levels.

Playing ​

  • PLAY next to a saved level in the editor, or Play in game in the launcher.
  • Solo and couch play start from the main menu, like the game's own levels, with orders, the timer and the results screen.
  • Online, the host's level loads for every player on Swofty Launcher: see Custom levels online.

A level that can't be played is refused with the reason, and the game stays on the menu:

text
Custom Level
"Pass the Plates" is built on the kitchen Sushi 1-1 (s_sushi_1_1), which this copy of the game doesn't have.

level.json ​

json
{
  "schema": 2,
  "game": "overcooked_2",
  "id": "5ca1ab1e0c02",
  "name": "Pass the Plates",
  "description": "Two kitchens, one hatch.",
  "author": "swofty",
  "version": 3,
  "base": {"scene": "s_sushi_1_1", "title": "Sushi 1-1"},
  "players": {"min": 1, "max": 4},
  "time_limit": 180,
  "core": ">=0.4.0",
  "addons": [
    {"id": "swofty.taco-stand", "version": "1.0.0", "name": "Taco Stand"}
  ],
  "instructions": {
    "title": "Pass the Plates",
    "label": "How to play",
    "pages": [
      {"text": "Two kitchens, one hatch. Pass plates over the counter in the middle."},
      {"title": "Dirty Plates", "text": "Plates come back dirty. Wash them before you plate up again."}
    ]
  },
  "layout": {
    "remove": [
      {"x": 2, "z": 1},
      {"x": 3, "z": 1, "layer": "item"}
    ],
    "place": [
      {"kind": "hob", "x": 0, "z": 0, "rot": 90},
      {"kind": "pot", "x": 0, "z": 0, "rot": 0},
      {"kind": "crate", "x": 1, "z": 0, "rot": 180, "item": "Onion"},
      {"kind": "crate", "x": 2, "z": 0, "rot": 180, "item": "swofty.taco-stand/tortilla"},
      {"kind": "swofty.taco-stand/comal", "x": 3, "z": 0, "rot": 0}
    ],
    "custom_recipes": [
      {
        "id": "fish-taco",
        "name": "Fish Taco",
        "container": "plate",
        "parts": [
          {"ingredient": "swofty.taco-stand/tortilla", "prep": "swofty.taco-stand/toasted"},
          {"ingredient": "SushiFish", "prep": "chopped"}
        ],
        "score": 40,
        "time": 70
      }
    ],
    "recipes": [
      {"order": "Sushi_Fish", "weight": 2, "score": 30},
      {"recipe": "fish-taco"},
      {"recipe": "swofty.taco-stand/taco", "weight": 0.5}
    ],
    "chefs": [
      {"x": 0, "z": -2}
    ]
  }
}

Next to it is thumbnail.png, 1280×720, taken from the editor's camera on SAVE.

  • id: 12 lowercase hex characters, made on the first save. Saving a level that isn't in levels/mine/ saves a copy with a new id.
  • version: goes up by one on every save.
  • base.scene: the kitchen the level starts from. Everything not removed stays.
  • x, z: cells of the kitchen's grid, the same grid the game uses for counters.
  • rot: the object's facing, 0, 90, 180 or 270 degrees around the vertical axis, as the base kitchen's objects report it.
  • remove: "layer": "all" (the default) removes the station and what is on it, "item" only what is on it.
  • schema: 2. The editor saves every level as schema 2; schema 1 files still load. core is >=0.3.0 when the level uses addon content and >=0.4.0 when it has instructions.
  • addons: the addons the level needs, at most 16, with the version the editor had loaded. A level plays with that version or a newer one with the same major version.
  • place: an addon's station, floor or pickup is placed by its content id, <addon id>/<id>; an addon food's crate is a crate whose item is the food's content id.
  • custom_recipes: the level's own recipes, in the same shape as an addon's Content.Recipe. id is local to the level, without a slash. 1 to 6 parts; prep left out means raw; score 0 to 1000; time 10 to 600 seconds.
  • recipes: each entry has order, the game's order name, or recipe, a custom recipe's id or an addon recipe's content id. weight defaults to 1. score replaces the order's score.
  • movement: optional, a level-wide movement type's content id, such as "movement": "<addon id>/ice"; its addon goes in addons too.
  • instructions: optional, the popup before the round. An addon's instructions content id, such as "instructions": "<addon id>/kitchen-rules", with its addon in addons too; or the level's own pages: pages (1 to 4) of text (at most 400 characters) and an optional title, with an optional title and label for the popup (at most 60 and 40 characters). A level's own pages have no pictures. Without it, the level shows no popup.
  • chefs: start cells for player 1 to 4. Players without one start where the base kitchen puts them.
  • time_limit: seconds, 30 to 1800.

A level is applied after the kitchen loads and before the game links its objects, in the same order on every machine: removals, then stations, then items, then chefs.

Kinds ​

LayerKinds
stationcounter, chopping_board, crate, hob, oven, fryer, grill, mixer, sink, plate_return, serving, bin
itempot, pan, basket, bowl, plate, extinguisher

The editor lists the kinds the base kitchen has: it copies them from that kitchen. A level that places a kind its base kitchen lacks loads without it, with a warning in core.log.

Refused levels: an unknown kind, a content id whose addon isn't in addons, instructions that aren't a content id or 1 to 4 pages with text, a recipe entry with both or neither of order and recipe, a recipe that isn't a custom recipe or an addon's, a crate without item, an item on another kind, a rot that isn't a right angle, two stations or two items on one cell, a cell more than 40 from the centre, more than 600 placements, 30 recipes or 4 chefs, JSON over 512 KB.

Levels in addons ​

csharp
using Swofty.Overcooked2;

namespace LevelAnnouncer
{
    public sealed class LevelAnnouncer : IAddon
    {
        public void Load(AddonContext ctx)
        {
            Levels.LevelStarted += level =>
                ctx.Log.Info("playing " + level.Name + " v" + level.Version + " by " + level.Author + " on " + level.BaseTitle);
            Levels.LevelEnded += level => ctx.Log.Info(level.Name + " is over");
        }
    }
}
csharp
public static class Levels
{
    public static LevelInfo Current { get; }
    public static bool Picks(string addonId);
    public static event System.Action<LevelInfo> LevelStarted;
    public static event System.Action<LevelInfo> LevelEnded;
}

public sealed class LevelInfo
{
    public string Id { get; }
    public string Name { get; }
    public string Author { get; }
    public string Description { get; }
    public int Version { get; }
    public string BaseScene { get; }
    public string BaseTitle { get; }
    public ReadOnlyCollection<string> Addons { get; }
    public bool Picks(string addonId);
}
  • Current: the custom level being played, or null in the game's own levels, the menus and the editor.
  • LevelStarted: the level's kitchen is built and its round is about to start.
  • LevelEnded: the kitchen is unloading, after the results or a quit.
  • Addons: the ids of the addons the level picked in the editor. level.Picks(ctx.Id) says whether the level chose your addon; Levels.Picks(ctx.Id) asks the same of the level being played. An addon with a gimmick runs it only in levels that pick it:
csharp
Levels.LevelStarted += level =>
{
    if (level.Picks(ctx.Id))
    {
        Carousel.Begin(ctx, level);
    }
};

Levels is in std 0.2.0, and Addons and Picks in 0.3.0: set compat.std to ">=0.3.0" in swofty.json to use them.