Packaging and publishing
A finished addon is built and tested in a profile, then zipped as a .swoftyaddon file and attached to a release. The steps are the same for data addons and code addons:
# 1. build: checks every operation, the game folder is untouched
swofty addons install ./my-addon
swofty addons enable yourname.my-addon
swofty build
# 2. test in game
swofty run --apply
# 3. read the logs
swofty logs
# 4. package: swofty.json at the zip root
cd my-addon
zip -r ../yourname.my-addon.swoftyaddon .
# 5. publish: attach yourname.my-addon.swoftyaddon to a release1. Build
Install the addon folder, enable it in a modded profile, then build the profile. The build checks every operation without touching the game folder:
swofty addons install ./my-addon
swofty addons enable yourname.my-addon
swofty buildprofile default: swofty.core -> … -> yourname.my-addon
warning: …
overlay 2ce84ff2c20476d4: $DATA/cache/overlay/default/2ce84ff2c20476d4
replace game_package/gamedatabases/gamedatabases.2025.binswofty build applies the profile's operations and writes the result to $DATA/cache/overlay/<profile>/<buildhash>/. That folder holds plan.json, listing the game files the build replaces and adds with their sources, and the session's swofty/settings.json.
Read every line of output before you launch. It prints every warn message, each owned unlock row, skipped operations and each conflict. A conflict means a later addon replaced a target that an earlier addon wrote. Fix the warnings, then build again. See swofty build.
Installing the folder again replaces the copy in $DATA/addons/<id>/, so reinstall after each change.
2. Test in game
swofty run --applyswofty run --apply installs your profile, starts the game and follows the logs. When the game exits, the game folder returns to its stock files. If the game crashes, run swofty restore to put them back.
- Test with only your addon enabled.
- Test with the addons and mods players combine it with.
- Try every value of each setting. Changing a
dbsetting rebuilds the profile, so build and relaunch after changing one.
3. Read the logs
<game>/swofty/loader.log: the in-game loader, your engine plugin'sswofty::loglines, the runtime asset steps ([assets]) and the game's own warnings.$DATA/sessions/<id>/: one folder per session.swofty logsprints the latest summary.$DATA/cache/addons/<id>/helper.log: your launcher plugin's stderr.
An engine plugin that loads and initialises writes these lines to loader.log:
addon my_plugin.dll: loading …\swofty\addons\yourname.my-addon\native\my_plugin.dll
addon my_plugin.dll: loaded at 00006fffea3e0000, calling SwoftyAddonInit (API v8)
addon my_plugin.dll: SwoftyAddonInit returned 1 (ok)4. Package it
A .swoftyaddon is a zip of your addon folder's contents. Change into the folder before zipping it, so swofty.json sits at the zip root:
cd my-addon
zip -r ../yourname.my-addon.swoftyaddon .A .swoftyaddon whose only entry is one folder holding swofty.json installs too.
Players drop the file on the launcher, or install and enable it from the command line:
swofty addons install yourname.my-addon.swoftyaddon
swofty addons enable yourname.my-addonswofty addons install also takes a plain .zip, or the folder itself. A .swoftymod file from an earlier version installs too. A .zip that holds more than one addon installs from the launcher only:
swofty: my-addons.zip holds 3 addons; drop it on the launcher to install them allBefore you zip:
- Set
id,name,version,authoranddescriptioninswofty.json. If your source code is public, setrepositorytoo, so players can find it. - Set
compat.game_buildsandcompat.seasonsto the builds and seasons your addon was made for. Setcompat.platformsto["steam"],["ea"]or both for the game copies you tested on; the Addon Browser shows Not tested without it. - Remove every file that none of your operations name. Leave out build folders such as
target/. - Ship your compiled binaries: the engine plugin DLL and one launcher plugin binary per OS in
launcher.program. - Include a README crediting each author whose files you ship, and get their permission to redistribute those files. Never include the game's own archives, database or executable.
5. Publish
- Bump
versioninswofty.jsonfor each release. - Tell players which game build and season you tested on, and check that
compat.game_buildsandcompat.seasonsmatch. - Credit every author whose files you include.
- Attach the
.swoftyaddonto your release.
To list the addon in the Addon Browser, publish the addons it requires there first.
On publish.f1.swofty.net
Creators with the Addon Creator role publish at publish.f1.swofty.net:
- Id: a new addon's id starts with one of your namespaces (
id). The site lists them above the upload box. The preview refuses any other id before the upload, with your namespaces and a suggested id. - Confirmation: a required checkbox confirms that everything in the addon is your own work. Publish turns on once it's ticked.
- Changelog: Markdown, shown when the launcher offers the version. You can't edit it once the version is approved, so put a correction in the next version's changelog.
- Description: Markdown, and the preview shows it as the launcher does. Images don't show there; add pictures to the gallery instead.
- Gallery: pictures, videos and YouTube, Vimeo or Streamable links, shown on the addon's page in the launcher. See Gallery.
- Review: the version shows Pending review, and Swofty sends a Discord message when it's reviewed.
- Yank: Stop offering this version to players yanks a version, and Unyank undoes it. It's the only action on a version. Players who have a yanked version installed see it as withdrawn on the Addons page.
Markdown
Descriptions and changelogs show headings, paragraphs, bullet and numbered lists, quotes, code blocks, rules, tables, columns, bold, italics, inline code and links. HTML and pictures inside the text are left out. Links open when they start with https://, mailto: or /; other links show as plain text.
Tables are pipe tables. The line under the header sets each column's alignment: --- or :--- left, :---: centred and ---: right. Cells take bold, italics, inline code and links, and \| writes a | inside a cell.
| Car | Team | Year |
| :--- | :---: | ---: |
| **FW35** | Williams | 2013 |
| `F138` | Ferrari \| Scuderia | 2013 |- A row with fewer cells than the header gets empty cells, and cells past the header's count are left out.
- A table ends at a blank line, or at a heading, list, quote, code block, rule or
:::line. - A table is at most 32 columns. A table wider than the page scrolls sideways.
- Without the alignment line, each row shows as one line of text with
·between its cells.
Columns put blocks side by side. Wrap the columns in ::: columns, start each one with ::: column, and close each with ::::
::: columns
::: column
### Install
1. Turn the addon on.
2. Press **Play**.
:::
::: column
### Works with
| Season | Game build |
| --- | --- |
| 2025 | 1.18 |
:::
:::- A
:::line closes the innermost::: columns,::: columnor other:::block. - Columns share the width equally. Below 220 pixels per column, the last columns move onto a new line.
- Text inside
::: columnsand outside a::: columnis a column of its own. - A
::: columnsblock with one column shows its content without columns. A::: columnsinside a column doesn't start new columns. :::: {.columns}and::: {.column}work too.
Launchers before 1.9.82 show each table row as one line of text with · between its cells, and show columns one after another.
Reference
- Addon manifest: every
swofty.jsonfield, includingcompat. - Command line:
swofty build,swofty run,swofty logs,swofty restoreandswofty addons. - Logging: writing to
swofty/loader.logfrom an engine plugin. .serpspackages: sharing whole game files as a mod instead.