MODDING DOCUMENTATION
Steam Workshop
Open Mods → Steam Workshop in a Steam build launched through the Steam client. The connection uses the game's actual Steam App ID. Local development builds can manage local packs without Steam.
Find and install a mod
- Choose Browse Workshop to open the game's Steam Community Workshop.
- Subscribe there to the items you want.
- Return to Mods. The subscription list refreshes while this tab is open.
- If needed, select an item and choose Download / update.
- When it is ready, choose Install / update locally.
- Switch to Installed mods, enable the pack, then choose Apply & reload.
Downloading, installing and enabling are separate steps. A Steam item must contain a valid
Forgotten Towns pack with mod.json at its root. The game checks file types, paths, limits and the
manifest before installing a snapshot. Full content validation happens when you apply the profile.
Updates are explicit
A Workshop download does not automatically replace a local mod. This protects a player's currently installed bytes from unattended changes. Choosing Install / update locally replaces only a pack previously installed from that same Workshop item. A local pack with the same ID, or a different Workshop item's pack, is not overwritten.
Previous copies are preserved under mods/.backups/pack_id/. Steam origin metadata is stored
outside the pack in mods/.workshop-origins.json. Backups are never enabled automatically.
Keeping a backup does not make a changed pack save-compatible. Read Saves and updates before replacing a pack used by an existing world.
Publishing a mod you already have locally
You can subscribe through the item's Steam page, including to your own published item when your account has access. Steam downloads another copy into its Workshop cache; the game never loads that cache directly. The installed library still has only one pack per manifest ID. A subscription entry and an installed entry are different views, not two executions of the same mod.
If mods/pack_id is your local authoring copy, Install / update locally deliberately refuses
to replace it. To test the published version, close the game and move that folder to a backup
outside the active mods directory. Keep its ID unchanged. Restart, select the ready subscription,
install it, enable it if necessary, then choose Apply & reload. Prefer a separate test user-data
folder for this round trip. Do not rename a manifest ID to bypass a collision: saves and dependencies
use that identity. A copy imported from a different Workshop item is also protected.
After the first successful import, the same Workshop item may update that installed copy, with
previous bytes retained in .backups. Subscribing alone does not enable a mod, and Steam downloading
an update does not install that update into your active library.
The prepareSteamPackageInput task stages runtime JARs and assets. The SDK, sample packs,
authoring wiki, publishing template, checkout's root mods/ directory and its enabled.json
are excluded from the player image. Packaged games use the per-user
ForgottenTowns/mods folder. Shipping optional mods separately on Workshop therefore does not
create a bundled duplicate in a fresh installation. Existing user-installed copies still remain.
Steam's Workshop implementation guide and ISteamUGC reference describe subscription, download and installed-folder discovery; the explicit snapshot and collision rules above are Forgotten Towns behavior. Live publication/download still needs a configured, accessible Workshop.
Private testing before testers
Use a password-protected game beta branch for the new executable. Keep experimental Workshop items Private as well: game branch access does not control Workshop item visibility. Steam's private item visibility is creator-only; Unlisted items remain visible to anyone with access to their link. See Valve's item visibility definitions.
An application's whole Workshop also has independent developer/tester visibility settings; see Workshop visibility. For an existing tester item, use a separate private test item before updating the shared item. Keep manifest IDs stable and test in a separate user-data directory so the local/Workshop-origin collision protections described above still apply.
Verify subscribe, download, install, dependency-first enablement, play, save/load and an explicit update in the Steam-launched build. Local validation and simulated downloads are not evidence that this live round trip has passed.
Unsubscribe
Select an item and choose Unsubscribe, then confirm. Steam stops its subscription updates. The local installed snapshot and enabled profile remain intact. To stop loading it, disable it in Installed mods, then choose Apply & reload. Existing saves may still require its original files.
For authors
Publish the runtime pack contents with mod.json directly at the uploaded content root. Include
finished PNG art, JSON, translated catalogs, optional hook JAR and a README. Do not upload the
authoring project's outer pack directory, editor files, player enabled list or compiler output.
Windows packages from 0.7.7.2 include Workshop Publisher.exe beside the game executable. This external authoring tool uses the game's bundled runtime and your signed-in Steam client. You do not need the game's source checkout, a Java installation, SteamCMD or Steamworks partner credentials. Keep Steam running on the account that will own the item. The application's Workshop must be configured to allow that account access; a developers-only Workshop is not open to ordinary customers. No credentials are requested or stored by the publisher.
Prepare an authoring project
Download the separate Mod SDK and copy examples/workshop-publishing to a writable folder
such as Documents/MyModWorkshop. The
configuration template and
quick instructions are also available here
in the authoring wiki. These sample files are not bundled with the installed game.
Place your runtime pack under content/my_mod, with mod.json directly inside it. Use the actual
manifest ID instead of my_mod. Put required packs beside it in content/, each in a folder named
after its own manifest ID. Keep project configuration, listing text and preview outside the pack:
MyModWorkshop/
item.properties
description.txt
preview.png
content/
my_mod/mod.json
required_mod/mod.json
Edit the UTF-8 properties file:
appid=4818290
content=content/my_mod
dependencyRoot=content
preview=preview.png
title=My Mod
descriptionFile=description.txt
visibility=Private
changeNote=Initial private test.
testWith=
Paths are relative to the properties file; use forward slashes. Add your own PNG/JPEG preview,
smaller than 1 MiB, and write the listing in description.txt. Title and description are published
as the English listing. Use testWith for optional comma-separated companion mod IDs to check
alongside your mod; their folders also belong under dependencyRoot. These companions are not
uploaded or turned into new dependencies automatically.
Check compatibility and test locally
Open PowerShell in the installed game folder. Substitute your actual project path:
& '.\Workshop Publisher.exe' check
& '.\Workshop Publisher.exe' validate 'C:/Users/YourName/Documents/MyModWorkshop/item.properties'
& '.\Workshop Publisher.exe' test 'C:/Users/YourName/Documents/MyModWorkshop/item.properties'
validate makes a separate copy and runs the game's real content validator against the selected
mod, its declared dependencies and testWith companions. It checks importable file types and size
limits, manifests, dependency resolution, composition, content references and Java API compatibility.
Declared API/version differences follow the game's normal capability checks; a version label alone
does not certify or reject compatibility. Missing dependencies and failed validation block uploads.
The report records the tested combination. Only the selected pack's captured folder is uploaded.
test runs the same check, then launches the game with that captured combination in a separate data
profile. Your normal saves, settings and enabled mods remain untouched. The console prints the profile
location. To resume it later, launch the game with --mod-user-data=<that full path>. Test gameplay,
new worlds, save/load and the mod combinations you intend to support. Automated validation cannot
prove arbitrary other-mod compatibility or guarantee existing-save compatibility.
Validation executes authored Java hooks. Separate data profiles are not a security sandbox.
Upload privately, then test the Workshop copy
Private is the default, including when visibility is omitted. Publish explicitly:
& '.\Workshop Publisher.exe' publish 'C:/Users/YourName/Documents/MyModWorkshop/item.properties'
Every publication repeats compatibility validation before connecting to Steam. A successful upload prints the item link. Private means only your uploading account can access it; it will not appear in ordinary public browsing. Find it through Your Items, open it and subscribe.
To test the download without colliding with your local authoring copy:
& '.\Workshop Publisher.exe' test-workshop
This opens an empty, separate game profile. In Mods → Steam Workshop, install the downloaded item and its dependencies, enable them, then choose Apply & reload. Test gameplay and save/load there. Steam subscriptions belong to your Steam account, so they remain shared between profiles; the local installed library, enabled selection and saves are separate. Confirm an update through Install / update locally as well. Upload success alone does not prove this round trip.
Share and update the same item
Use FriendsOnly to let Steam friends test, subject to application Workshop access. Use Public
when you are ready to share with everyone who can access the Workshop. Change visibility and
changeNote in the same project, then run publish again. A game beta password does not control
Workshop visibility. After public release, use a separate project/state for private experiments;
updating the public item's files affects its subscribers.
Keep the adjacent .properties.state file backed up with your project: it records the Workshop ID
as soon as creation succeeds, and subsequent uploads update that item. Never delete it to retry a
failed upload or to change visibility. If creation
times out before its ID is known, the tool refuses another creation; recover the ID from Steam's
Your Items page before retrying. An interrupted content upload can retry the same saved ID.
The tool checks ownership before updating an existing item and verifies its title and exact content size
after Steam reports a successful upload. It does not subscribe, install, enable or delete mods.
If Steam requests acceptance of its Workshop legal agreement, complete that step on the item's page. Add Steam Required Items relationships on that page for dependencies; the publisher does not add them automatically, and the manifest dependency checks still apply inside the game.
Publisher feedback follows the configured game language. Set FORGOTTENTOWNS_LOCALE to override it.
Detailed authoring diagnostics remain in the reports printed by the tool.
For game maintainers: enable ISteamUGC file transfer, configure Steam Cloud preview quotas and
publish those Steamworks settings. The source helper tools/workshop-upload.ps1 delegates to the
same packaged publisher; it is not required by community authors.
