Before you start
- The server must be on the same build as your game, or a newer one. The server runs the game's default Steam branch (Build 42). A world saved on a newer test branch than the server will not load, and a Build 41 world does not load on Build 42. To keep a Build 41 world, set Steam Beta Branch on the Startup tab to
legacy41and reinstall before you upload. - Start your server once from the Console tab and wait for
SERVER STARTED, then press Stop. This creates the folders and the settings file the steps below use. - Close the hosted game on your PC so it saves and stops.
- Stop the server with Stop, not Kill. Stop saves first; Kill does not.
- Make a backup on the Backups tab, so you can go back to the server's own world. Your plan includes 4 backup slots.
Find your world on your PC
On Windows, everything is under C:\Users\<your name>\Zomboid\. Below, <world> is the name you typed when you clicked Host. Windows hides file endings by default, so <world>.ini may show as just <world> with the type "Configuration settings".
- The world:
Saves\Multiplayer\<world>\ - The settings:
Server\<world>.,ini Server\<world>_SandboxVars.,lua Server\<world>_spawnregions.andlua Server\<world>_spawnpoints.lua - The accounts:
db\<world>.db
Where they go on your server
On your server the game's folder is .cache and the server's name is PlayDubious, written exactly like that (names are case-sensitive). Open the Files tab, or connect with SFTP using the details on the Settings tab; in an SFTP program, turn on "show hidden files" to see .cache.
- The world. On your PC, zip the *contents* of your
<world>folder (the files and folders inside it, not the folder itself). Open., delete what is in it, upload the zip there and extract it from the file's menu, then delete the zip. When it is right, files such ascache/Saves/Multiplayer/PlayDubious/ players.dbandmap_basements.binand folders such asmapandchunkdatasit directly inPlayDubious/. A large world uploads more reliably over SFTP: Upload large files with SFTP. - The world settings. Upload
<world>_SandboxVars.,lua <world>_spawnregions.andlua <world>_spawnpoints.tolua .cache/Server/and rename each to start withPlayDubious(for examplePlayDubious_SandboxVars.), replacing the files there.lua - The map line. Do not replace
PlayDubious.ini. Open your own<world>.ini, copy its wholeMap=line unchanged, and paste it over theMap=line in..cache/Server/PlayDubious. ini - Mods. Copy the lists from your
<world>.iniinto the Startup tab:WorkshopItems=into Workshop Item IDs andMods=into Mod IDs, without theWorkshopItems=orMods=part. If your mod list has a backslash before each id (\ModA;\ModB), remove the backslashes: the server takes plain ids separated by semicolons. Map mods belong in these lists too. If a list is too long for its field, email support with the server name. Zomboid Workshop mods has more on the two fields. - Accounts (optional). To keep everyone's login and password, upload
<world>.dbto.cache/db/and rename itPlayDubious.db. The server's own admin account (Admin Username and Admin Password on the Startup tab) is added back at the next start, so you can still sign in as admin.
The panel writes some lines of PlayDubious.ini from the Startup tab at every start, so an edit to them in the file is replaced: the mod lists, the join password (letters and numbers only), the player limit, the server's listed name, the public listing and pause-when-empty.
Start and join
Start the server from the Console tab. When the console shows SERVER STARTED, the world is loaded. Each player joins with exactly the username they used when you hosted (usually their Steam name), so the game finds their character.
If someone gets the new-character screen, their character was saved under a different name. Stop playing on that name, and email support with the server name and the player's old and new names; do not delete anything.
If it goes wrong
Restore the backup you made from the Backups tab. A restore brings back the files only: clear Workshop Item IDs and Mod IDs on the Startup tab again (or set them back to what they were) before you start the server.
Project Zomboid servers hosted here are unofficial and not affiliated with The Indie Stone.
Quick answers
Can I turn a world I host from the game into a dedicated server world?
Yes. Upload the world folder's contents, the three world settings files and the Map= line, as above, and the server loads that world.
Do my friends keep their characters?
Yes, when each player joins with the same username they used in your hosted game. The characters are saved inside the world folder.
My world is from Build 41. Will it load?
Not on Build 42. Set Steam Beta Branch on the Startup tab to legacy41 and reinstall before you upload, so the server runs Build 41.