Project Zomboid

Project Zomboid

[41.78] Vanilla++ 'Sophie MAIN' - SP & MP - v1.14 | Updated December 12th 2024
 This topic has been pinned, so it's probably important
Deathstar  [developer] Sep 3, 2023 @ 6:54am
4
3
2
1
GUIDE: HOW TO SET UP MULTIPLAYER (Hosted)
This is an updated guide on how to set up your own server.

NOTE: Please check the much more detailed guide on our Discord to avoid issues. Thank you.

Step 1 - Download all the mods

First, be sure you are subscribed to the entire collection and allow Steam to download everything for you. Ideally, you should have a clean version of PZ without any other mods and on the latest version (be sure to opt out of any betas/legacy versions).

Step 2 - Download my Presets

For your convenience, I have set up a preset that you can use as a basis for running your server. This preset includes three files: The server config ini, the Sandbox Settings lua and the spawnregions lua.

These are linked in the guide on the main description page.

Extract the contents of the ZIP archive into this folder:
C:\Users\YourNameHere\Zomboid\

This will create the "server-sophie-[current version]" preset ingame.

Step 3 - Test the config by hosting a server

Don't bother making any changes until you have confirmed that the config is working in the first place. Head in game after everything is in place and select "HOST". Select my preset in the dropdown that appears and allocate enough memory to your server (I would go for 8+ GB - make sure you have sufficient RAM or it will not work). Click Start and let the game set up.

Hosting a new server for the first time takes very long. This is NORMAL. What's happening is that the game is grabbing each and every mod from the Workshop AGAIN to place them into your game folder. All this is done while it says "Initializing".

Optional: You can save yourself some time by copying all of your mods from your workshop folder and pasting them into your game folder so the server doesn't have to redownload these.

To do this, COPY all folders from here:
...\steamapps\workshop\content\108600

to here:
...\steamapps\common\ProjectZomboid\steamapps\workshop\content\108600

Step 4 - Customise your Server Settings

If the test is successful (= you were able to launch the server and load in after creating a character), quit out and head back into your hosting menu. Delete the world and your player (preset will be untouched). Then head to Manage Settings and hit Edit Selected Settings for my Sophie preset.

Here, you can adjust both your server and your sandbox settings to your liking. I recommend you do this, as the default settings won't be acceptable for everyone. The sandbox settings I've provided offer a fair, but not too easy difficulty.

FAQ: Help, I'm stuck on Initializing!

Watch this:
https://www.youtube.com/watch?v=Pwsm4wivICw

No you're not. Setting up a server for the first time takes very long because every single mod is downloaded again in the background and placed in the server workshop folder. If done entirely from scratch, this first-time setup can take well over 10 minutes. As long as the game hasn't crashed entirely, or you get any kind of error, just let it do its thing. Check the coop-console log if you're still unsure as to what's happening. Note that this can be circumvented somewhat by simply placing your downloaded mods as described above.

FAQ: Help, the server won't host and the log file says something about a mismatch

Steam's CDN is dog sh*t, everyone knows. The game checks your installed mods vs their version numbers on the Workshop. There is a way to force the game to recheck (and redownload) everything: Simply delete the appworkshop_108600.acf file WHILE YOUR GAME AND SERVER ARE SHUT DOWN which can be found here:

YourSteamLibrary\steamapps\common\ProjectZomboid\steamapps\workshop

or for dedicated servers:
YourSteamLibrary\steamapps\common\Project Zomboid Dedicated Server\steamapps\workshop

Refer to this thread: https://www.reddit.com/r/projectzomboid/comments/rey091/workshop_version_mismatch_errors_on_mp_servers/

Notes:
I've reduced the chance for spent shells to fall on the ground to 20%. This is a Gunfighters option that allows for shell casings to be reused, but it can also cause a lot of lag if you're playing with multiple people who use guns regularly. - Arsenal is no longer used
I increased reading speed by two times, you will read one page every half (ingame) minute.
5% of all zombies will be sprinters, you have been warned. They're slowed down by 50%, though.

Please go through all of the options and change them to your likings.


Troubleshooting

If something isn't working, this is how you can somewhat diagnose the issue:
First, determine when exactly things break. Does it give you an error message?
Then, check your coop-console.txt and your console.txt in here: C:\Users\YourName\Zomboid
These will tell you what's happening server-side and client-side, respectively. Check the end of both logs to see if there was an obvious timeout. If the coop log says something about a workshop download failing, then follow my optional step of moving your mods over to the local folder and try again. If you get past the first loading screen and character creation, but then it boots you out before you load in fully, it is likely because your system isn't strong enough. Allocate more memory (if you have enough RAM) or consider removing a few "heavy" mods such as the new cars and bigger maps like Raven Creek.

Resources

Official PZ Discord:
https://discord.gg/theindiestone

Build 41 Multiplayer Guide:
https://steamcommunity.com/sharedfiles/filedetails/?id=2682141370

Official MP FAQ:
https://pzwiki.net/wiki/Multiplayer_FAQ
Last edited by Deathstar; Jun 17 @ 1:15am
< >
Showing 16-30 of 80 comments
GIBBYDAMAN Oct 19, 2023 @ 7:45pm 
Originally posted by 1-tap tortellini:
Originally posted by Bademeister:
Game crashes after I create my character and want to load into the world.

I have already unlocked the ports on my router and also disabled the UPD function.

However, I can not really read the error from the log file where exactly the error is

I post here times the last lines:

....
LOG : General , 1697635841622> 21.606.060> command entered via server console (System.in): "ping@pong"
LOG : General , 1697635843151> 21.607.589> waiting for UdpEngine thread termination
LOG : Network , 1697635843162> 21.607.600> [18-10-23 15:30:43.162] > ZNet: [-> CZombienet: RakNetPeerInterface_Shutdown
LOG : Network , 1697635843162> 21.607.600> [18-10-23 15:30:43.162] > ZNet: SZombienet -> SZombienet: LogOff
LOG : Network , 1697635843162> 21.607.600> [18-10-23 15:30:43.162] > ZNet: Shutting down Steam Game Server
LOG : Network , 1697635843162> 21.607.600> [18-10-23 15:30:43.162] > ZNet: SZombienet -> SSteamSDK: SetAdvertiseServerActive
LOG : Network , 1697635843163> 21.607.601> [18-10-23 15:30:43.163] > ZNet: SZombienet -> SSteamSDK: LogOff

I'm having a similar Issue, once I create my character the server shuts down
I'm using the newest 1.5.1, clean install, downloaded the mods, downloaded the server files, 16Gb of ram and pc has 32, Once I initialized, asked me to download one more mod (" '82 Oshkosh M911 - RV Interior "), downloaded it, everything loaded, made character, choose Rosewood, Server shuts down, and asks me to quit to desktop

EDIT: tried a second time, made sure that I had the latest version by doing a clean install, followed the steps, arrived at the same result, server shuts down once I make a character, and asks me to quit to desktop.
I do have the ports forwarded if that's relevant.
can vouch this is still happening
Deathstar  [developer] Oct 20, 2023 @ 1:25am 
Screw this game sometimes. I'll run some tests with fresh installs today.
yewhan Oct 20, 2023 @ 2:37am 
*commenting here as well for visibility*

So far 1.5 has been working fine for me and ~4 friends on a dedicated server I set up on my laptop. I've only dedicated 8 gb, but it's had no crashes or kicks so far. There is the occasional stutter, but not often enough to be annoying and I don't know if that's something on my desktop's end (linux) bc I haven't heard my friends complain yet.

I'll give 1.5.1 a try and see if there's any meaningful performance improvements though.
Deathstar  [developer] Oct 20, 2023 @ 2:42am 
I'm working on 1.5.2 now with some more fixes, most notably the removal of some mods that went MIA on the workshop and may cause trouble if still included on a server, as well as a revised Maps section for the MP server settings - Again, to eliminate instances of the game trying to load stuff that's no longer there.
Deathstar  [developer] Oct 20, 2023 @ 4:43am 
1.5.2 is done, everything's working on my end (tested with a totally clean reinstall). Check comments and the changelog thread for more details. Appreciate any feedback.
yewhan Oct 20, 2023 @ 5:20am 
Originally posted by Deathstar:
1.5.2 is done, everything's working on my end (tested with a totally clean reinstall). Check comments and the changelog thread for more details. Appreciate any feedback.
thank you, much love <3
i'll spin up the server and test it out now as well. it might be worth updating the server files link in the stickied post as well.
Deathstar  [developer] Oct 20, 2023 @ 5:45am 
Fixed, thank you
yewhan Oct 20, 2023 @ 9:50am 
Just a lil update, been playing the last 4 hours and everything seems to be running fine, but then I didn't have any issues with 1.5 either.

Thank you again for taking the time to curate all of this!
Deathstar  [developer] Oct 20, 2023 @ 9:56am 
Awesome thank you for helping out with testing. If anything major breaks, please lemme know :)
chopifyy Oct 21, 2023 @ 3:47am 
hello i have been trying to host a server with my friend but i the game always says that i lost connection and i tried to check the coop console and this is what i get

LOG : General , 1697884123875> 618.878.643> Coop master is not responding, terminating
LOG : Multiplayer , 1697884123876> 618.878.644> java.base/java.lang.Thread.getStackTrace(Unknown Source)
LOG : Multiplayer , 1697884123876> 618.878.644> zombie.debug.DebugLogStream.printStackTrace(DebugLogStream.java:159)
LOG : Multiplayer , 1697884123876> 618.878.644> zombie.debug.DebugLogStream.printStackTrace(DebugLogStream.java:146)
LOG : Multiplayer , 1697884123876> 618.878.644> zombie.network.ServerMap.QueueQuit(ServerMap.java:91)
LOG : Multiplayer , 1697884123876> 618.878.644> zombie.network.GameServer.main(GameServer.java:1043)
LOG : General , 1697884124097> 618.878.866> SaveAll took 119.3611 ms
LOG : General , 1697884124119> 618.878.887> reanimate: saved 0 zombies
LOG : General , 1697884124153> 618.878.921> Saving GlobalModData
LOG : General , 1697884124157> 618.878.925> Saving finish
LOG : General , 1697884124158> 618.878.926> Saving took 180.114 ms
LOG : General , 1697884130609> 618.885.377> waiting for UdpEngine thread termination
LOG : Network , 1697884130619> 618.885.387> [21-10-23 12:28:50.619] > ZNet: [-> CZombienet: RakNetPeerInterface_Shutdown
LOG : Network , 1697884130620> 618.885.388> [21-10-23 12:28:50.620] > ZNet: SZombienet -> SZombienet: LogOff
LOG : Network , 1697884130620> 618.885.388> [21-10-23 12:28:50.620] > ZNet: Shutting down Steam Game Server
LOG : Network , 1697884130620> 618.885.388> [21-10-23 12:28:50.620] > ZNet: SZombienet -> SSteamSDK: SetAdvertiseServerActive
LOG : Network , 1697884130621> 618.885.389> [21-10-23 12:28:50.621] > ZNet: SZombienet -> SSteamSDK: LogOff
Deathstar  [developer] Oct 21, 2023 @ 7:02am 
Originally posted by ItzChSi:
hello i have been trying to host a server with my friend but i the game always says that i lost connection and i tried to check the coop console and this is what i get

LOG : General , 1697884123875> 618.878.643> Coop master is not responding, terminating
LOG : Multiplayer , 1697884123876> 618.878.644> java.base/java.lang.Thread.getStackTrace(Unknown Source)
LOG : Multiplayer , 1697884123876> 618.878.644> zombie.debug.DebugLogStream.printStackTrace(DebugLogStream.java:159)
LOG : Multiplayer , 1697884123876> 618.878.644> zombie.debug.DebugLogStream.printStackTrace(DebugLogStream.java:146)
LOG : Multiplayer , 1697884123876> 618.878.644> zombie.network.ServerMap.QueueQuit(ServerMap.java:91)
LOG : Multiplayer , 1697884123876> 618.878.644> zombie.network.GameServer.main(GameServer.java:1043)
LOG : General , 1697884124097> 618.878.866> SaveAll took 119.3611 ms
LOG : General , 1697884124119> 618.878.887> reanimate: saved 0 zombies
LOG : General , 1697884124153> 618.878.921> Saving GlobalModData
LOG : General , 1697884124157> 618.878.925> Saving finish
LOG : General , 1697884124158> 618.878.926> Saving took 180.114 ms
LOG : General , 1697884130609> 618.885.377> waiting for UdpEngine thread termination
LOG : Network , 1697884130619> 618.885.387> [21-10-23 12:28:50.619] > ZNet: [-> CZombienet: RakNetPeerInterface_Shutdown
LOG : Network , 1697884130620> 618.885.388> [21-10-23 12:28:50.620] > ZNet: SZombienet -> SZombienet: LogOff
LOG : Network , 1697884130620> 618.885.388> [21-10-23 12:28:50.620] > ZNet: Shutting down Steam Game Server
LOG : Network , 1697884130620> 618.885.388> [21-10-23 12:28:50.620] > ZNet: SZombienet -> SSteamSDK: SetAdvertiseServerActive
LOG : Network , 1697884130621> 618.885.389> [21-10-23 12:28:50.621] > ZNet: SZombienet -> SSteamSDK: LogOff

How much RAM did you allocate to the server? And how much does your PC have? Are you running the game on an SSD?
have the same problem . after creating a character, the server shuts down. I allocated 6 GB of RAM at the beginning, then 8. the game is on the SSD disk. Deleted all past mods before installing the build.
Deathstar  [developer] Oct 22, 2023 @ 9:29am 
Having a hard time finding a solution because I can't replicate the problem. Hosting with the current files works fine on my end. In previous versions, some people have had luck by going "lite" and stripping some of the heavier mods out (large modded locations and like half the cars).
chopifyy Oct 22, 2023 @ 10:10pm 
How much RAM did you allocate to the server? And how much does your PC have? Are you running the game on an SSD? [/quote]

I used 8gb and i have 16gb on my pc and yes im running it on an ssd
Thecanadiangamer50 Oct 25, 2023 @ 10:17am 
Originally posted by Gus:
have the same problem . after creating a character, the server shuts down. I allocated 6 GB of RAM at the beginning, then 8. the game is on the SSD disk. Deleted all past mods before installing the build.

That means a mod is causing a issue. I had that problem when I did it and I had to sort and test the mods one by one.
< >
Showing 16-30 of 80 comments
Per page: 1530 50