Project Zomboid

Project Zomboid

Madnesis Mar 4, 2016 @ 4:41pm
How to specify server.ini config file
Using the PZServerSettings.exe, I created a custom new .ini server config file.
The issue I have is that I don't know how to specificy the server to use it.
When I run the server, it will create the servertest.ini and the rest of the config files in C:\Users\USER\Zomboid\Server. I have been looking in the .bat to start the server but can't see like a parameter for the config file to use.
< >
Showing 1-1 of 1 comments
Madnesis Mar 5, 2016 @ 3:38am 
Originally posted by EnigmaGrey:
From EasyPickins:
You can add -servername blarg to the bat file to name your servertest.ini file blarg.ini instead.

Add it after the call to zombie.GameServer (i.e. zombie.GameServer -servername blarg)

I modified the "C:\Program Files (x86)\Steam\SteamApps\common\pzserver\StartServer64.bat" and added the -servername so I have something like this:

@setlocal enableextensions
@cd /d "%~dp0"
SET PZ_CLASSPATH=java/jinput.jar;java/lwjgl.jar;java/lwjgl_util.jar;java/sqlite-jdbc-3.8.10.1.jar;java/uncommons-maths-1.2.3.jar;java/
".\jre64\bin\java.exe" -Dzomboid.steam=1 -Dzomboid.znetlog=1 -Xms2048m -Xmx2048m -Djava.library.path=natives/;. -cp %PZ_CLASSPATH% zombie.network.GameServer -servername Madnesis


It's working! Thanks a bunch EnigmaGrey :steamhappy:
Last edited by Madnesis; Mar 5, 2016 @ 3:39am
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Mar 4, 2016 @ 4:41pm
Posts: 1