Project Zomboid

Project Zomboid

Yocas Aug 20, 2023 @ 12:18pm
How do you have multiple saves / worlds on a Dedicated Server setup?
I currently have a dedicated server configured for one friend group. But I have another friend group that I'd like to set one up for as well.

How do I create a separate dedicated server save / world for this other friend group without it interfering with the other group's save / world?

I'm sure I'll need to edit a new server config from the Host menu but I'm not sure how to get the dedicated server to choose to right server config and not overwrite the other group's server config.
< >
Showing 1-8 of 8 comments
Beard Aug 20, 2023 @ 2:21pm 
https://pzwiki.net/wiki/Startup_parameters

Add the -servername parameter at the end of the file in the startserver.bat file, the name of the server is the name of the settings that it will load, and then it will create a new save folder with that same name. This way you can load multiple servers.
Yocas Aug 20, 2023 @ 2:32pm 
Originally posted by Beard:
https://pzwiki.net/wiki/Startup_parameters

Add the -servername parameter at the end of the file in the startserver.bat file, the name of the server is the name of the settings that it will load, and then it will create a new save folder with that same name. This way you can load multiple servers.

Much appreciated for the quick response!

Friend group A is using the default config so they're using the "servertest" one. So for friend group B I'd need to create a new config and name it differently (say, "servertest2") and add "-servername servertest2" to the parameters of the StartServer64.bat shortcut.

Am I understanding this correctly?
Beard Aug 20, 2023 @ 2:38pm 
Yes that is correct. Make sure to add the parameter above the PAUSE line at the end of it.

As such:

%PZ_CLASSPATH% zombie.network.GameServer -servername servertest2
Yocas Aug 20, 2023 @ 5:28pm 
Originally posted by Beard:
Yes that is correct. Make sure to add the parameter above the PAUSE line at the end of it.

As such:

%PZ_CLASSPATH% zombie.network.GameServer -servername servertest2

Oh, now I'm a bit confused. Where is this? I'm only aware of that Target: line in the StartServer64.bat shortcut. I thought I only needed to add the line at the end of the Target: section.
Beard Aug 21, 2023 @ 12:52am 
Edit the .bat file, it is just a file with text commands in it, you put the command at the end of the line as mentioned inside that file, then just save the file and the next time you run it it will use the other server settings.

You can also use the target as well, it is the same.
Yocas Aug 21, 2023 @ 8:31am 
Originally posted by Beard:
Edit the .bat file, it is just a file with text commands in it, you put the command at the end of the line as mentioned inside that file, then just save the file and the next time you run it it will use the other server settings.

You can also use the target as well, it is the same.

Ohh okay, so you're saying to edit the .bat shortcut and add the parameters there? At the end (above PAUSE) I see the following:

%PZ_CLASSPATH% zombie.network.GameServer -statistic 0 %1 %2

Do I put the parameters after the "%2"?

Also, are you saying I can either put the parameters in the shortcut Target: section OR put the parameters in the .bat shortcut code but there's no need to do both?
Beard Aug 21, 2023 @ 11:00am 
You can do either. And yes you would put it after the "%2"
Yocas Aug 21, 2023 @ 11:11am 
Originally posted by Beard:
You can do either. And yes you would put it after the "%2"

Gotcha! I shall try this the next time we end up playing. Hopefully that'll be tonight.

Muuuuuuuuuuuuuuuch appreciated for you time and patience. :steamthumbsup:
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Aug 20, 2023 @ 12:18pm
Posts: 8