Playing with the launcher ​

Picking the game ​

The Game picker is in the bottom-left of the launcher: the art of the game you play, with the next game's card behind it. Select it and pick Overcooked 2. Each game shows Found, Found · 2 copies or Not found.

With Overcooked 2 picked, the launcher has five tabs: Home with the news, Library with your Overcooked 2 addons, Discover with the Overcooked 2 Addon Browser, Levels with the custom levels players made (see Levels), and Donate. Online and the F1 25 pages, such as Shaders, the DB Editor and Saves, show with F1 25 picked. The launcher remembers the game you picked.

Next to Play, the play bar shows the copy of Overcooked 2 it plays: its Steam build, STEAM or EPIC, and its folder. With more than one copy, select it and pick Play this copy on another.

Library ​

Library lists the addons installed for Overcooked 2, in the order they load at Play.

  • Install addon…: Choose a file… for a zip, Choose a folder… for an addon folder. Dropping either on the launcher does the same. It needs a swofty.json whose compat.game is "overcooked_2". An F1 25 addon is refused.
  • On and off: the switch on each addon. Only addons that are on load at Play.
  • Open folder: in the header, $DATA/games/overcooked_2/addons/; in an addon's menu, that addon's folder.
  • Uninstall, in an addon's menu: removes the addon's folder. Its data folder, addon-data/<id>/, stays.

The command line does the same:

sh
swofty --game overcooked_2 addons list
swofty --game overcooked_2 addons install ./hello-kitchen.zip    # installs it and turns it on
swofty --game overcooked_2 addons disable swofty.hello-kitchen
swofty --game overcooked_2 addons enable swofty.hello-kitchen
swofty --game overcooked_2 addons remove swofty.hello-kitchen
swofty --game overcooked_2 play --wait                            # waits for the game to close, then prints status.json
swofty --game overcooked_2 play --set-up-steam                    # sets the Steam launch option first (Linux)
swofty --game overcooked_2 play --direct                          # starts the game without Steam
swofty --game overcooked_2 play --remove-steam-option             # takes the launcher out of the Steam launch option
swofty games                                                     # every game, whether it is supported, where it was found

Addon Browser ​

Discover is the Addon Browser for Overcooked 2: the same browser as F1 25, listing the addons published for Overcooked 2. Install puts an addon in the Library and turns it on.

Play ​

Play writes the session file and starts Overcooked 2 with Swofty Core. A copy Steam installed starts through Steam, so Steam's overlay works in the game, and with it Invite Friends. Play starts Steam when it's closed, unless Start Steam automatically is off, and the play bar shows Waiting for Steam to start Overcooked 2… until the game is up. Play gives up after 90 seconds with Steam didn't start Overcooked 2 within 90 s, which usually means Steam has an update or a message waiting. While the game runs, the play bar shows Running · 2 addons on · pid 41234 and Stop, which closes the game. After it closes, the play bar shows 2 addons on · 1 failed to load last time when an addon failed, and Core log opens that session's core.log.

On Linux, the launcher plays the native Linux build. A game folder with only the Windows build (Overcooked2.exe) plays under Proton, the one Steam is set to run Overcooked 2 with. On Windows, and under Proton, Play puts Doorstop's winhttp.dll in the game folder for the session and takes it back out after, even if the game or the launcher crashed. See the launch.

A copy Steam didn't install, such as the Epic Games Store's, starts without Steam, and Steam's overlay doesn't work in it.

The Steam launch option ​

On Windows, Play asks Steam to start the game with Swofty Core's settings as the game's arguments, and changes no Steam setting. Starting the game from Steam's library stays vanilla.

On Linux, Steam starts Overcooked 2 through the launcher's swofty program, set as the game's Steam launch option:

text
/bin/sh -c '[ -x "$0" ] && exec "$0" "$@"; while [ "$1" != -- ]; do shift; done; shift; exec "$@"' "<install folder>/bin/swofty" --game overcooked_2 run -- %command%

The /bin/sh part runs swofty when it is there. When the install folder has moved or is gone, it runs Steam's command as Steam gave it, so Steam's Play still starts the game, without addons.

The first Play asks first:

text
Set up Steam
Swofty Launcher sets a Steam launch option for Overcooked 2 so Steam's overlay and invites work. Steam restarts once.
                                                                  [SET UP]  [CANCEL]

Set up closes Steam, sets the launch option for every Steam user on the computer, starts Steam again and starts the game. Steam keeps its settings in memory and writes them back when it closes, so the option can only be set while Steam is closed. When Steam isn't running, nothing restarts.

Steam isn't closed while a game it started is running, such as F1 25 or Overcooked 2. Play says Steam has to close to change Overcooked 2's launch option, and F1 25 is running: close it and try again, and changes nothing.

Launch options you had stay where they were: the launcher's part goes just before %command%, so gamemoderun %command% -screen-fullscreen 0 keeps gamemoderun before it and -screen-fullscreen 0 after it, and options without %command% stay as the game's arguments. Every user's new options are put together and checked before Steam closes. The first change keeps Steam's file from before it as userdata/<user>/config/localconfig.vdf.swofty-backup in the Steam folder, and later changes keep that copy.

Play starts the game without Steam, with a warning in the launcher's log, when the launch option can't work:

  • Steam is the Flatpak one: its launch options run inside its sandbox, where the launcher's program isn't.
  • Steam runs the session, as in Steam Deck Game Mode, so it can't close. The warning has the launch option to set in Steam yourself.
  • Your launch options run %command% only inside quotes, such as sh -c "exec %command%", where the launcher's part can't go before it.
  • A Steam user's localconfig.vdf doesn't read as a Steam config file.

With the option set, Steam's own Play starts the game with Swofty Core and the addons that are on, too.

To take the option out, open Settings → Advanced and press Remove under Overcooked 2, or run swofty --game overcooked_2 play --remove-steam-option. Steam restarts once when it is running, and the rest of your launch options stay. You can also clear it in Steam: right-click Overcooked 2, then Properties → General → Launch Options. The next Play asks to set it again.

When the installer moves the launcher to another folder while Steam is closed, it points the launch option at the new folder. With Steam running, the option is left as it was, and the next Play asks to set it again.

From the command line, play and levels play stop when the option isn't set yet: --set-up-steam sets it, and --direct starts the game's exe without Steam.

In the game, the main menu has a MODS tab after SETTINGS, with ADDONS and the buttons your addons add. ADDONS opens a dialog with Swofty Core's version, the game's build and every addon that is on:

text
Addons

Swofty Core 0.1.0 (std 0.1.0)
Overcooked 2 build 66.678012

Hello Kitchen 0.1.0: loaded
Party Mode 1.2.0: failed

The session's core.log has what Swofty Core did and the error of a failed addon: see Logs.

Where the files are ​

text
$DATA/games/overcooked_2/
├── addons/<id>/           installed addons
├── enabled.json           {"enabled": ["swofty.hello-kitchen"]}
├── addon-data/<id>/       each addon's own folder
├── levels/                custom levels: mine/ and downloaded/ (see Levels)
├── sessions/<stamp>/      session.json, core.log, status.json, player.log (Unity's log), output.log
├── catalog.json           the Addon Browser's cache
└── downloads/

$DATA is the launcher's data folder: see Where your files are stored.