# Mods and the Steam Workshop

The game has mod support built in. Mods sit in a Mods folder next to the game or come from the Workshop, and each one has to be switched on by you.

Source page: https://probablystolendb.com/mods/

## How to install a mod

- Subscribe to it on the game's [Steam Workshop](https://steamcommunity.com/app/4348910/workshop/), or copy its folder into `Mods` in the game's folder (the Mods screen has an Open Mods Folder button; the game makes the folder on first start).

- Start the game and open the Mods screen. Mods start switched off.

- Select the mod and press Review and enable. If it asks for extra permissions, you see the list and press Activate.

- Restart the game. Turning mods on or off and changing their order only takes effect after a restart.

If the same mod is both in your Mods folder and on the Workshop, the local copy wins. A mod still downloading from the Workshop shows up after the next restart. Auto-Sort Mods puts the mods a mod needs before it.

## The permissions a mod can ask for

| Permission | What it allows | Risk |
| --- | --- | --- |
| `files` | read and write files anywhere on your computer | severe |
| `network` | use the internet | severe |
| `dynamic-code` | load or make code while running | severe |
| `native` | call system libraries | severe |
| `reflection-external` | reach into system and engine internals | severe |
| `steam-auth` | prove to the mod's online service that you own the game | high |
| `threads` | keep code running in the background | high |
| `process` | open web links in your browser | medium |
| `steam` | use Steam features: achievements, friends, overlay | medium |

A mod that asks for nothing turns on without a prompt. The game scans each mod's files, and if it finds a permission the mod didn't declare, the mod can't be turned on. Some things are refused outright: starting other programs, uploading to the Workshop, reading your Steam account, hidden payloads, files over 8 MB of unreadable data.

## Why a mod is not loaded

- You haven't approved it on this computer yet: use Review and enable.

- It changed since you approved it (an update, new files, a new permission): approve it again.

- It is made for another game version, or a mod it needs is missing or off.

- It has a DLL its manifest doesn't list.

- The developers blocked it, or paused all mods. While you use mods, the game loads a signed safety list from the developers' GitHub at start when its copy is over 6 hours old. A mod caught doing something forbidden is stopped for good on that computer.

## For mod makers

A mod is a folder with a `manifest.xml` and the DLLs it lists. The manifest has `<ID>` (letters, digits, `_ - .`, up to 64 characters), `<Name>`, `<Author>`, `<ModVersion>`, `<Description>`, optional `<GameVersions>` and `<Prerequisites>`, the `<Assemblies>` and a `<Capabilities>` list (write `<Capabilities/>` for none). One class implements `IMod` (Init, OnEnable, OnDisable), and Harmony patches in the DLL are applied for you.

| Folder in the mod | What goes in it |
| --- | --- |
| `Textures/Items` | item sprites, PNG or JPG, named by key |
| `Textures/Paper` | pictures for books |
| `Localization` | <locale>.csv with key,value lines |
| `Sounds` | WAV, OGG or MP3 |
| `LootTables` | JSON loot tables and patches, no code needed |
| `Books` | JSON books, which can also be items |

A loot file has `tables`, `groups` and `patches`; a patch names one table or group and can `clear`, `add`, `remove` and `setWeight`, applied in that order. The game's own tables count to a weight of 1,000, and the loot-list console command prints them (see [the Dumping Ground tables](https://probablystolendb.com/dumping-ground/)). Through `ModHelper` a mod can add items, customers, starting scenarios and perks, difficulties, network upgrades, appraisal items, after-hours places and events, settings and debug buttons. The [developer tools](https://probablystolendb.com/console-commands/) have a paper editor and a sprite viewer for this. Item IDs to use are on [item IDs](https://probablystolendb.com/item-ids/).

Read from the game's own code and files, build 26525552 (Steam, 2026-11-30). Read from the game's code; the text is ours.
