Startup parameters: Difference between revisions

From PZwiki
(Created page with "{{languages}} {{Notice|Underconstruction}} {| align="right" | __TOC__ |} =Example= ProjectZomboid64/32 accept JVM arguments in addition to game arguments. This can be used t...")
 
Line 103: Line 103:
|-
|-


| -Duser.home=./
| -Duser.home=<path>
| overwrites the "/Zomboid" homedir to whatever path you want. "-Duser.home=C:\Zomboid"
| overwrites the "/Zomboid" homedir to whatever path you want. "-Duser.home=C:\Zomboid"
|-
|-
Line 115: Line 115:
|-
|-
|}
|}


===Server Only===
===Server Only===

Revision as of 09:39, 17 September 2015

Hammer.png
This article is currently under construction.
It is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well.
If this page has not been updated in a while, please replace this notice with {{Improve}}. Last edit was 17/09/2015.

Example

ProjectZomboid64/32 accept JVM arguments in addition to game arguments. This can be used to override vmArgs in the .json file. JVM arguments must end with a --, even if there are no game arguments.

ProjectZomboid64.exe -Xmx1024m -- -nosteam

Game Arguments

Client & Server

Arg Description
-nosteam Disable client/server Steam integration.
-modfolders option to control where mods are loaded from. "-modfolders workshop,steam,mods" is the default. Any of the 3 keywords may be left out and may appear in any order.

Client only

Arg Description
+password Server password to connect to, when joining a server using Steam's server browser.
-debugtranslation writes possible translation issues to homedir "/Zomboid/translationProblems.txt"

Server only

Arg Description
-adminpassword option to bypasses the enter-a-password prompt when creating a server. "-adminpassword XYZ"
-servername You can choose a different servername by using this option when starting the server. "-servername MySecondServer"
-ip option to handle multiple network cards. "-ip 127.0.0.1"
-port option which overrides the .ini option "DefaultPort". "-port 16261"
-steamvac option to enable/disable VAC on Steam servers. On the server command-line use -steamvac true/false. In the server's INI file, use SteamVAC=true/false.
-steamport1
-steamport2
Steam servers require two additional ports to function (I'm guessing they are both UDP ports, but you may need TCP as well). These are in addition to the DefaultPort= setting. These can be specified in two ways: In the server's INI file as SteamPort1= and SteamPort2=. Using command-line options -steamport1 and -steamport2.

JVM Arguments

Client & Server

Arg Description
-Xmx Maximum amount of Memory "-Xms1024m" (the 'm' stands for MegaBytes)
-Xms Initial/Minimum Memory allocation. "-Xms1024m" (the 'm' stands for MegaBytes)
-Duser.home=<path> overwrites the "/Zomboid" homedir to whatever path you want. "-Duser.home=C:\Zomboid"
-Dsoftreset option to perform a Soft Reset
-Ddebug enables debugging

Server Only

Arg Description
-Dorg.sqlite.lib.path=natives visit: WINDOWS SQLITE TEMPFOLDER SPAM