Jump to content

Server Setup Questions


wh33t

Recommended Posts

Hey Forums

 

I'm just trying to set up a small inux server for me and my buds to learn the game and work together and I'm having troubles finding documentation on some features. I'd like to know how to:

 

- password protect the server with a single password

- have the server not appear in a public list

- edit a file that stores a list of admins

- adjust spawn rarity

- run the server with out my steam logon required (anonymous)

 

If any of those features don't exist I'd like to suggest them for development. Thanks!

Link to comment
Share on other sites

  • 1 month later...

Hey mate, I have been suffering myself from basically zero proper documentation on the web. What you are looking for is 2 files and if you want to make a whitelist with users you'll be editing 3 files. I'm not a Linux guy, so pls excuse layman's talk or unnecessary information :P I will assume you managed to INSTALL the server, so far, and you only want to change configs:

 

Your root directory should look like this: http://1drv.ms/1L8lq6r

You need to edit two files. Your server settings are here:

server/Zomboid/Server/serverPZ.ini

Note, if you want your server to be private set "Open=false". People will now NEED to be in the user database (explained below) to access the server. 

 

And to change the Sandbox settings (loot, rotting speed etc) you need to edit this one:

server/Zomboid/Server/serverPZ_SandboxVars.lua

The BEST approach to edit the sandbox settings is to use the server settings tool located in your local PZ game directory; it has a simple interface to make the settings and will save a serverPZ_SandboxVars.lua file which you need to copy to the folder above, of course. There was an update, apparently, but I cannot find the post here in the forum. If you trust me, you can download it from here as well: http://1drv.ms/1LnnF87 ;)

So, you should be covered with settings such as spawn rarity, and having public=false etc to make it private.

 

Now to the USERS. Here you will have to edit a small database, super simple: I have used THIS tool to edit the db: http://sqliteadmin.orbmu2k.de/

The db is located in:

server/Zomboid/Server/db/serverPZ.db

Just open it with the editor above, and open the table under Tables/whitelist/id by clicking it, then open the tab "Edit Data" to the right. There should be a single entry for an admin. You want to add users, so hit the "+" to add a row and add "serverPZ" into the empty "world" field, then you can set a username and password and optionally make this user an admin or mod or not.

 

The whole thing should look similar to this: http://1drv.ms/1LnnwkY

Close the tool and copy the db back to the server in the folder above, of course.

 

And while we're at it, I was struggling hard to get MODS running on my server as it is explained different everywhere and basically it's probably going to change again soon. I got Littering 1.9 and Hydrocraft running by doing this:

 

1. Edit the serverPZ.ini and add the Mods names* separated by ; and no whitespaces, such as:

Mods=Hydrocraft;Littering 1.9;More Zombie Loot;

Also, copy your mods folders incl. content (which you may have downloaded from pz-mods.net/mods maybe) manually to this folder:

server/Zomboid/Server/mods/

So it looks like this (with the mods listed above for example): http://1drv.ms/1FM9BCF

Make sure you don't install these type of mods in the middle of a game. The server should be "fresh". This also applies for the sandbox settings, apparently, because changin e.g. Zombie Speed may result in having a mix of various bugged zombies. Reinstall your server, edit the settings, make sure everything is how you wanted it and THEN start the server.

 

Hope this helps :)

 

 

P.S. Installing MODS (linux Server)

With Mods stuff may change or there are other approaches, as I didn't get "More Zombie Loot" to run on my linux box and the creator of the mod said this:

 

 

Svarog:

You need to use id=whatever from mod.info file not the mod name. But if I remember correctly, the recent update changed it so that you use steam server you need to use workshop steam numbers. For this mod it would be Mods=498342776 you can find the SteamModID in the URL of it's webpage like for this mod http://steamcommunity.com/sharedfiles/filedetails/?id=498342776
And when I said id=whatever, use only whatever without id=. Idk there was a post on the official Indie Stone forums about what server hosts need to do I suggest you go there and dig for it, it should be in Updates section, check the latest version posts.
 
But I don't want to mess with this right now, as I got the 2 other mods to run with the method described above.
Still, this seems to be the appropriate way (in the future?) as it's also described as such here: http://theindiestone.com/forums/index.php/topic/16470-released-build-3230/
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...