Guide · Project Zomboid Build 42

How to add mods to a Project Zomboid server (Build 42)

Dedicated server mods are installed with two lines in the server configuration, not Steam subscriptions. Here is what to enter, where to find IDs and what commonly breaks worlds.

Where server settings are stored

All settings are in Zomboid/Server in the home directory of the user running the server: C:\Users\Username\Zomboid\Server on Windows, ~/Zomboid/Server on Linux. For a server named servertest (the default name), there are three files:

  • servertest.ini — mods, map, password, PvP and other server settings;
  • servertest_SandboxVars.lua — world settings: zombies, loot and season;
  • servertest_spawnregions.lua — player spawn points.

On hosting services, use the panel file manager or SFTP. Edit files with the server stopped; a running server may overwrite them.

Step 1. Workshop ID — the Steam item number

Open the mod’s Steam Workshop page. The number after ?id= is its Workshop ID. The server uses it to download the mod at startup.

https://steamcommunity.com/sharedfiles/filedetails/?id=3409143790

Step 2. Mod ID — the in-game mod name

This is a different identifier, often confused with the first. Item 3409143790 (“Sapph's Cooking”) has Mod ID SapphCooking_B42. Authors usually list it in the description as Mod ID: …. A more reliable source is the file mod.info, line id=. Subscribe to the mod on Steam; files appear in steamapps/workshop/content/108600/<Workshop ID>/mods/.

One Workshop item can contain multiple mods: Build 41 and Build 42 versions, add-ons or alternatives. Each has its own Mod ID. Enable only what you need; enabling two versions together often causes errors.

Step 3. Add mods to ini

In servertest.ini find the lines WorkshopItems= and Mods=. Separate IDs and names with semicolons, without spaces:

WorkshopItems=3409143790;3439305933
Mods=SapphCooking_B42;FunctionalGutters
  • WorkshopItems — what to download (Workshop ID);
  • Mods — what to enable (Mod ID). This order is the load order.

A map mod also needs an entry in Map= before the default map:

Map=MapName;Muldraugh, KY

The map name is the folder name in media/maps inside the mod. Authors usually list it in the description too.

Step 4. Dependencies and load order

Many mods require libraries: frameworks, shared assets or patches. Steam lists them under “Required items” on the mod page, and in mod.info in the line require= (Build 42 may prefix a name with a backslash — \ModName; it is not part of the Mod ID).

Add each dependency to both lines: its Workshop ID to WorkshopItems, Mod ID to Mods, and place it before the mod that needs it. Dependencies can have their own dependencies; check those too.

Step 5. Check Build 42 compatibility

Build 42 mods are stored in mods/ModName/42/ (shared files in common/). If the mod only has the old structure without a 42 folder, it is for Build 41 and will not load on Build 42. Run such mods on the legacy41branch; the server and all players must use that branch.

Step 6. Start the server and check the log

The server downloads Workshop mods at startup; a large modpack takes a few minutes. In the console or server-console.txt a line appears for each enabled mod: loading ModName. Missing line? The Mod ID is wrong or the mod is incompatible. Players install nothing manually: the game downloads server mods when joining.

Common problems

Players cannot join after a mod update
The author released an update. Players have downloaded it, but the server still uses the old version and rejects connections. Restart the server to download the update.
Mod did not load
A typo in the Mod ID, missing dependency or Build 41-only mod. Check the line id= in mod.info.
Items or buildings disappeared
The mod providing them was removed. Removing a map mod breaks the world where it existed. Before changing any mods, copy your save folder Zomboid/Saves/Multiplayer/servertest.
Added a map mod, but cannot find it
New maps only appear in areas that have not been generated. Explored areas need a new world or a reset of those chunks.

Rather skip the hassle?

Prival modpacks already include the IDs, dependencies and load order. We launch each on a real server and show which game version works. When a mod updates, we warn players and restart, always backing up the world first.