Jump to content

Project Zomboid Config [Windows]


slenky

Recommended Posts

On 1/3/2022 at 4:00 AM, TopSniper7 said:

anyone have the issue where some people can see/join the server and others cant see/join?

Yeah, but I think it's just due to PZs horrible server browser. I often find closing and opening (sometimes a few times) the game helps.

Link to comment
Share on other sites

On 12/21/2021 at 12:01 AM, JackRalph96 said:

Since they have since removed the Beta Patch i have fixed my previous posted version and updated the java commandlines. 

As stated above this only works on winserv 2019 with latest versions of java.

I've not checked but this may be almost identical to jungle's Config.

The batch files are setup to install all user files within their own userfolder instead of the appdata

should work without issues as intended.

PZ - Windows.xml 54.79 kB · 27 downloads

I noticed the "Current Activity & Stats" tab wasn't working. It was due to the Query protocol "Half-Life 2 new" being used. Changing it to "Half-Life 2 new (UTF-8)" fixed that. Thanks @Dennisfor the solution.

Link to comment
Share on other sites

2 hours ago, KodeMan said:

whenever I go create the service the steamcmd gets stuck on a loop installing and validating files. 

Hi.

That's what happened to me, too. I just stopped the TCAdmin service on the root where I installed the game on and restarted. After that it ran and also the server starts.

Link to comment
Share on other sites

25 minutes ago, Gotteshand said:

Hi.

That's what happened to me, too. I just stopped the TCAdmin service on the root where I installed the game on and restarted. After that it ran and also the server starts.

I did what you said, pressed start, got it to running status but its not showing on steam server list, not even locally. all ports are confirmed open, public=true, memory only shows 15.9 MB in tcadmin, its as if its not running at all. Am I missing a step?

Link to comment
Share on other sites

40 minutes ago, KodeMan said:

I did what you said, pressed start, got it to running status but its not showing on steam server list, not even locally. all ports are confirmed open, public=true, memory only shows 15.9 MB in tcadmin, its as if its not running at all. Am I missing a step?

Hi.

What operating system do you have installed I think under Windows Server 2019 you will not get this to work.

dfRCf9D.png

Link to comment
Share on other sites

40 minutes ago, Gotteshand said:

Hi.

What operating system do you have installed I think under Windows Server 2019 you will not get this to work.

dfRCf9D.png

I have windows server 2019 and it launches and all that except 2gb isnt enough to start the server, if it says its using 15mb its probably pushing out a memory error check the logs. Only issue i have is its 50/50 if people can see and join the server its probably a bug but looking for a fix for that doesnt exist in the google sphere. Waiting for the next update.

If you have a 32bit system you have to edit the pzserver.bat like mentioned in earlier posts. i had all the same issues people had it was all trial and error.

Link to comment
Share on other sites

I've installed the config and ran the server and now my control panel is getting these messages;

Quote

Hello ,

The server [redacted] has not responded 3 times and has reached the maximum number of allowed failures. Please investigate.

Best regards,


I updated the default ports to my OS firewalls approved ports as well as my routers approved ports.
Not sure if people can connect they will be testing it tonight when their community gets active.

Per @juanh per @Dennis I also  Switch "Half-Life 2 new" to "Half-Life 2 new (UTF-8)"

Link to comment
Share on other sites

  • 2 weeks later...

Hey Guys,

Have someone afterworkshop install script?

I use this, but i need next part what will read mod.info and add it to ModID= in config file.

Anyone have idea how to do it ?

Same situaction is in ARK (https://help.tcadmin.com/Workshop_Browser) and it work grey, but i dont have experience with IronPython

There is anyone who have skill to upgrade this script ?

import clr
clr.AddReference("INIFileParser")

from System import Array, String
from System.IO import File, Path, Directory, SearchOption
from IniParser import FileIniDataParser
from IniParser.Model import IniData
from System import Environment, PlatformID, String, Exception
from System.Text.RegularExpressions import Regex, RegexOptions, Match
  
# Move folder to correct location
# modfolder=Path.Combine(ThisService.RootDirectory, String.Format("Mods/{0}", FileId))
# if Directory.Exists(modfolder) :
#   Directory.Delete(modfolder, True)
# Directory.Move(InstallPath, modfolder)

# Update ini file
inifile = Path.Combine(ThisService.RootDirectory, "Zomboid/Server/servertest.ini")
pattern="WorkshopItems[ \t]*=[ \t]*(?<WorkshopItems>[0-9, \t]*)"
filecontents = File.ReadAllText(inifile)
match = Regex.Match(filecontents, pattern, RegexOptions.IgnoreCase)
if match.Success :
  mods = match.Groups["WorkshopItems"].Value
  if String.IsNullOrEmpty(mods) or mods.IndexOf(FileId.ToString()) == -1 :
    if mods.Length > 0 :
      mods = mods + ";"
      mods = mods + FileId.ToString()
      filecontents=filecontents.Replace(match.Groups["WorkshopItems"].Value, mods)
    else :
      mods = FileId.ToString()
      filecontents = filecontents.Substring(0, match.Groups["WorkshopItems"].Index) + mods + filecontents.Substring(match.Groups["WorkshopItems"].Index)
    File.WriteAllText(inifile, filecontents)

 

 

Link to comment
Share on other sites

On 12/19/2021 at 2:34 PM, jungleNZ said:

Updated fcke123 config update he posted. Workshop mods works installing id number but not yet modID name

Any issues let me know, (credits also again to Dennis for original script(s))

 

You can use workshop installer but:

YOU NEED TO MANUALLY ENTER THE ModID NAME FROM WORKSHOP. Place it in your .ini on Mods= line. Separate with ; if more than 1 mod

 

Workshop ID: 2684285534
Mod ID: SpnCloth   <-----

 

And it looks like the beta version only works on server 2019 upwards with the 64 bit version.

You need to manually adjust the commandline to win32 and jre64 to jre in the pzserver.bat.

 

 

PZB - Windows.xml 59.74 kB · 31 downloads

Is this Beta only?

Link to comment
Share on other sites

DEBUG: General     , 1643786847984> 412,387,765> LoggerManager.init                  > Initializing...
LOG  : General     , 1643786848018> 412,387,790> cachedir set to "Zomboid"
ERROR: General     , 1643786848022> 412,387,794> Exception in thread "main" ERROR: General     , 1643786848022> 412,387,795> java.lang.UnsatisfiedLinkError: no PZClipper64 in java.library.path: natives/win64/;.
ERROR: General     , 1643786848023> 412,387,795> 	at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)
ERROR: General     , 1643786848023> 412,387,796> 	at java.base/java.lang.Runtime.loadLibrary0(Unknown Source)
ERROR: General     , 1643786848024> 412,387,796> 	at java.base/java.lang.System.loadLibrary(Unknown Source)
ERROR: General     , 1643786848024> 412,387,796> 	at zombie.vehicles.Clipper.init(Clipper.java:24)
ERROR: General     , 1643786848024> 412,387,797> 	at zombie.network.GameServer.main(GameServer.java:326)

I get this Error and the Server doesnt even start

 

I run Windows Server 2019 with Java installed

Link to comment
Share on other sites

  • 4 weeks later...
On 2/26/2022 at 2:07 PM, Vicente said:

Does anyone have a configuration that works with the new update?

You can use mine. Only had to update the command line with with the java stuff on there. You could edit the .bat file of the StartServer64.bat and copy and paste (overwrite) the Java line in the Command Line on the config or just download my config had it start up no problem on 41.66.

PZ - Windows.xml

Edited by TopSniper7
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
  • 7 months later...
3 minutes ago, Kosak0 said:

Does anyone know how to add all my downloaded mods IDs to the config file? (Other than one by one)

Cannot be done by normal method as you have to get fileID and modID.  I can get the file number to download etc... but not the mod name. (Even though is appears in workshop titles)

Apparently can be done through API but I have no idea how that is set.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use