Project Zomboid

Project Zomboid

M.D. Charcoal May 12, 2014 @ 10:57am
Server Settings
Found a exe file in my ProjectZomboid steam folder, which was called PZServerttings.
("C:\Program Files (x86)\Steam\SteamApps\common\ProjectZomboid")

I'd figure that it was the idea, that it should be used to set the settings of your own server. The exe works fine, an extern modifier with all the settnings you have in sandbox. My problem is though, that i can't seem to make it config with my server. Once you have made up your settings, you can saves the file as "SandboxVars.lua" in a location of your desire.

I tried to save it in:
"C:\Users\Simon\Zomboid\Server"
"C:\Users\Simon\Zomboid\Multiplayer\servertest"
"C:\Users\Simon\Zomboid\Multiplayer\[IP-address]_[username]"

But none of the above made it config with the server.bat file. I assume, that I am putting it in the wrong place/places, so my question is: Where should i put the file that the PZServerttings makes, in order to make it work with my server?


While we are at it, i have another question. When i started the Server.bat the first time, it asked for a admin password. Once i entered one, it told me that I could use it to become admin of the server. But i am not allowed to type things into the Server.bat, and i don't know the command to make my user in game admin.

My other question is: What and where am i supposed to type in, to make my in game user admin of the server?

Any help would be appreciated. :tgrin:
Last edited by M.D. Charcoal; Oct 29, 2015 @ 4:30am
< >
Showing 1-15 of 17 comments
EasyPickins  [developer] May 12, 2014 @ 12:40pm 
Save the file as C:\Users\Simon\Zomboid\Server\servertest_SandboxVars.lua. There's actually an updated PZServerSettings.exe that does this by default.

Join the server as user "admin" with your password. Then in the chat window type
/grantadmin "username"

Type /help to see a list of other commands.
M.D. Charcoal May 13, 2014 @ 6:00am 
Originally posted by EasyPickins:
Save the file as C:\Users\Simon\Zomboid\Server\servertest_SandboxVars.lua. There's actually an updated PZServerSettings.exe that does this by default.

Join the server as user "admin" with your password. Then in the chat window type
/grantadmin "username"

Type /help to see a list of other commands.

Okay, so i am to rename the SandboxVars.lua file... Yes, works now, the admin system too. Thanks!

New problems, but not really a big deal:
I can't grant my other user admin, so i am stucked with the name "admin" on my server. I can kick off my other user, but every time i try to use grantadmin, it tells me that the user dosent exist.

I also can't seem to have multiple servers on my server list in game. Every time i go in on it, it automagical chooses the one server i already added, and the button to add a new server, keep being stucked at re-saving the old. Maybe the Add button should have its own place?
Last edited by M.D. Charcoal; May 13, 2014 @ 6:00am
EasyPickins  [developer] May 13, 2014 @ 11:27am 
/grantadmin "Username" needs quotes around the username

Each server needs a different name. Enter a different name and you'll be able to save another server.
M.D. Charcoal May 14, 2014 @ 1:58am 
Edit:

while making this command i fiddled around with the game, and made it all work out.
thanks for all the help.

This is what i found out:

* The user needs to be whitelisted in order to become admin.
* The announcement from the server saying the long password should be ignored, and the password you enter is still the counting one.

Old comment:

Admin user:
[Me] /grantadmin "Sim3345"
[SERVER] User Sim3345 dosen't exist
[Me] /grantadmin "sim3345"
[SERVER] User sim3345 dosen't exist
[Me] /kickuser "Sim3345" -r="for not existing"
[SERVER] User Sim3345 kicked.

Sim3345 user:
You have been kicked from this server. Reason : for not existing


So it can confirm that the user Sim3345 is on the server if i wish to kick that user, but not if i wish to grant the user admin.

Will the user have to be on my whitelist, in order to become admin?

Oh and talking about the whitelist.
Every time i try to add someone to the whitelist, by in game command, it makes a extremly long password for that user.

I tried to make my own password while adding the user:

[Me] /adduser "Sim3345" "supereasypassword"
[SERVER] User Sim3345 created with the password 157960af427f892b5fbc9e3e514dab31

Its like the server just completey ignores my password making skills, and decides that its password is much better than mine.

Last edited by M.D. Charcoal; May 14, 2014 @ 2:49am
xenomat Sep 25, 2014 @ 1:57am 
Hi,

sorry for digging out this old thread. But right now i try to figure out how the server settings work through the sandboxvars.lua (build 28). It's correct they get loaded by the server when in the right location (zomboid/servertest etc...), BUT they are not applied. I set the time to 1h per day and power/water to 6 months, but still the day has default length and power as well as water was already out after one day... how do the setting get applied to the server?

And to the thread-starter: i guess you figured out by now, that your password is not 15790af... etc. ;), thats just like an encrypted view of the password you have just created.

cheers,
xenomat
M.D. Charcoal Sep 25, 2014 @ 8:32am 
Originally posted by xenomat:
Hi,

sorry for digging out this old thread. But right now i try to figure out how the server settings work through the sandboxvars.lua (build 28). It's correct they get loaded by the server when in the right location (zomboid/servertest etc...), BUT they are not applied. I set the time to 1h per day and power/water to 6 months, but still the day has default length and power as well as water was already out after one day... how do the setting get applied to the server?

And to the thread-starter: i guess you figured out by now, that your password is not 15790af... etc. ;), thats just like an encrypted view of the password you have just created.

cheers,
xenomat

I'm not sure if you did this, but once the SandboxVars.lua has been saved to the right folder it must be renamed to "servertest_SandboxVars.lua".

Please let me know if you have already done that and if its still not working.
xenomat Sep 25, 2014 @ 11:18am 
Hi,

yes i did this and it says in the server console window "loading <path>\servertest_SandboxVars.lua", but my day is more like 20-30 Minutes, definitely not one hour.
I've stumbled across a comment somewhere, saying all the clients need to have the same SandboxVars.lua file in place, is this correct? If yes i hope in the future they make it so it gets downloaded automatically by the connecting clients...

Does it maybe have to be in user/Zombiod/Server/ AND in Steam\steamapps\common\ProjectZomboid\media\lua\shared\Sandbox? With the same name?

cheers,
xenomat
Last edited by xenomat; Sep 25, 2014 @ 11:28am
xenomat Sep 25, 2014 @ 11:21am 
Loading: media/lua/server/recipecode.lua
Loading: media/lua/server/timedactionshelper.lua
Loading: C:/Users/xenomat/Zomboid/Server/servertest_SandboxVars.lua
Loading: C:/Users/xenomat/Zomboid/Server/servertest_spawnregions.lua
Loading: media/maps/Muldraugh, KY/spawnpoints.lua
Loading: media/maps/West Point, KY/spawnpoints.lua
...

And:
DayLength = 2

I guess 1 would be the default of 30 Minutes.

Do you have an idea?

<edit>
I tried to set it to realtime, day seems longer now... but 1 hour did not work, it was more like 20-30 minutes. So i guess the settings are not lined up correctly... well, i guess i have to wait for bugfix. ;)
Last edited by xenomat; Sep 25, 2014 @ 11:41am
M.D. Charcoal Sep 25, 2014 @ 11:43am 
I'm sorry xenomat, but I can hardly understand what you are saying, and even if I understood it I don't think I would know the answer(s) to your problem(s).

Zomboid has a very weird and hard to understand server system if you ask me.
Last edited by M.D. Charcoal; Sep 25, 2014 @ 11:44am
xenomat Sep 25, 2014 @ 12:07pm 
German maybe? ;)
M.D. Charcoal Sep 26, 2014 @ 4:48am 
Originally posted by xenomat:
German maybe? ;)

Danish
AZDIMI Mar 22, 2015 @ 2:42pm 
Hello,

Sorry but did you find the solution? I have the same problem, I set No Zombies to try but when the server begin I can see a lot of zombies. I am in the same case.
M.D. Charcoal Mar 23, 2015 @ 7:52am 
Originally posted by AZDIMI le MacFly:
Hello,

Sorry but did you find the solution? I have the same problem, I set No Zombies to try but when the server begin I can see a lot of zombies. I am in the same case.

I don't know exactly what problem occurred to you, or what you did incorrect. But the solutions to all the problems I had is stated out in this very thread.

My main problem was that I didn't rename the SandboxVars.lua. It needs to be renamed "servertest_SandboxVars.lua" and placed in: C:\Users\[UserName]\Zomboid\Server\

If you could describe in as much detail as possible what you did, it would be easier to find out what went wrong.
AZDIMI Mar 24, 2015 @ 6:51am 
Originally posted by Pvt. Simon:
Originally posted by AZDIMI le MacFly:
Hello,

Sorry but did you find the solution? I have the same problem, I set No Zombies to try but when the server begin I can see a lot of zombies. I am in the same case.

I don't know exactly what problem occurred to you, or what you did incorrect. But the solutions to all the problems I had is stated out in this very thread.

My main problem was that I didn't rename the SandboxVars.lua. It needs to be renamed "servertest_SandboxVars.lua" and placed in: C:\Users\[UserName]\Zomboid\Server\

If you could describe in as much detail as possible what you did, it would be easier to find out what went wrong.

Whith actual version of PZ we don't need to rename and move the file because it's already done by the PZServerSettings.exe

I have servertest_SandboxVar.lua in \username\Zomboid\Server\ and the file is corrrectly loaded at the server starting

thx

(Sorry I'm french)
AZDIMI Mar 24, 2015 @ 7:48am 
Ok I solved this by reseting the server by deleting "servetest" folder located in username\Zomboid\Multiplayer\
< >
Showing 1-15 of 17 comments
Per page: 1530 50

Date Posted: May 12, 2014 @ 10:57am
Posts: 17