Jump to content

Can you have more than one server?


count_zero99uk

Recommended Posts

I have host a server that some of my friends and I play on.  However im wanting to test some things out with someone else, is it possible to create two servers? Not to have them run at the same time just to be able to switch between them.

 

Many thanks.

Link to comment
Share on other sites

I find the best approach is just to have separate, self-contained installations for each server.

For example, modifying the batch file like this will make whatever folder the server is placed in, the root directory. The  Zomboid folder is also created inside it.

 



@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 -Xms1G -Xmx4G -XX:-CreateMinidumpOnCrash -XX:-OmitStackTraceInFastThrow -Djava.library.path=natives/;. -cp %PZ_CLASSPATH% zombie.network.GameServer -cachedir=.\Zomboid

PAUSE

 

The alternative is messing around with scripts and the -name flag, but it's easier just to keep everything self-contained.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...