Server settings: Difference between revisions

From PZwiki
m (→‎servertest.ini: safehouse tresspass)
m (Automated header update.)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''
{{Header|Project Zomboid|Multiplayer}}
{{Page version|41.78.16}}
{{Improve}}
There are a total of 4 files that make your server work, they can all be found at:
There are a total of 4 files that make your server work, they can all be found at:
C:\Users\%username%\Zomboid\Server
*Windows: <code>%USERPROFILE%\Zomboid\server</code>
*Linux: <code>$HOME/Zomboid/Server</code>


Inside you will find:
Inside, there are the following files:
*servertest.ini
*<code>[[#servertest.ini|servertest.ini]]</code>
*servertest_SandboxVars.lua
*<code>[[#servertest_SandBoxVars.lua|servertest_SandboxVars.lua]]</code>
*servertest_spawnpoints.lua
*<code>servertest_spawnpoints.lua</code>
*servertest_spawnregions.lua
*<code>servertest_spawnregions.lua</code>
 
== servertest.ini ==


==servertest.ini==
'''nightlengthmodifier'''=1.0
'''nightlengthmodifier'''=1.0
:How long nighttime lasts depending on daytime: 0.5 means twice as long, 2 means half the normal time
:Controls the LENGTH of night. <code>1.0</code> is standard (please note length of night now adjusts based on the season too so it will be longer or shorter during different months of the game) if you change it to <code>0.5</code> for example the night will be half as long as usual.
'''PVP'''=true
'''PVP'''=true
:Can PvP be enabled true or false
:Allow PvP (still has a toggle for each player by default).
'''PauseEmpty'''=true
'''PauseEmpty'''=true
:Will the server pause when it is empty. Default setting is false
:The server will be progressing constantly (days will pass, crops will grow, zombies will migrate). If changed to <code>true</code> the server will pause when no players are logged in.
'''GlobalChat'''=true
'''GlobalChat'''=true
:If set to true, it allows for the "/all" command in chat, making your players able to safely communicate with everyone.
:Enable Global Chat (<code>/all</code> command in chat). This allows players to chat regardless of distance.
'''ChatStreams'''=s,r,a,w,y,sh,f,all
'''ChatStreams'''=s,r,a,w,y,sh,f,all
:*/s - Talk to people on the screen, including the dead
:*<code>/s</code> - Talk to people on the screen, including the dead
:*/r - Transcript of radio broadcasts
:*<code>/r</code> - Transcript of radio broadcasts
:*/a - Talk to an admin
:*<code>/a</code> - Talk to an admin
:*/w - Whisper to someone, distance doesn't matter
:*<code>/w</code> - Whisper to someone, distance doesn't matter
:*/y - Yell to people on screen and a bit further away, also attracts zombies
:*<code>/y</code> - Yell to people on screen and a bit further away, also attracts zombies
:*/sh - Talk to people with whom you share a safehouse
:*<code>/sh</code> - Talk to people with whom you share a safehouse
:*/f - talk to people in your faction
:*<code>/f</code> - Talk to people in your faction
:*/all - safely talk to everyone online
:*<code>/all</code> - Safely talk to everyone online
:Removing any of these disables that chatstream
:Removing any of these disables that chatstream
'''Open'''=true
'''Open'''=true
:Whether Whitelisting is enabled or not
:Open to all (no whitelist).
'''ServerWelcomeMessage'''=Welcome to Project Zomboid Multiplayer! <LINE> <LINE> To interact with the Chat panel: press Tab, T, or Enter. <LINE> <LINE> The Tab key will change the target stream of the message. <LINE> <LINE> Global Streams: /all <LINE> Local Streams: /say, /yell <LINE> Special Steams: /whisper, /safehouse, /faction. <LINE> <LINE> Press the Up arrow to cycle through your message history. Click the Gear icon to customize chat. <LINE> <LINE> Happy surviving!
'''ServerWelcomeMessage'''=Welcome to Project Zomboid Multiplayer! <LINE> <LINE> To interact with the Chat panel: press Tab, T, or Enter. <LINE> <LINE> The Tab key will change the target stream of the message. <LINE> <LINE> Global Streams: /all <LINE> Local Streams: /say, /yell <LINE> Special Steams: /whisper, /safehouse, /faction. <LINE> <LINE> Press the Up arrow to cycle through your message history. Click the Gear icon to customize chat. <LINE> <LINE> Happy surviving!
:The welcome message you want to sent to your players.
:The welcome message displayed to player after connecting.
<del>'''LogLocalChat'''=false</del>
<del>'''LogLocalChat'''=false</del>
:<del>Whether /s and /y are visible in chat.</del>
:<del>Whether /s and /y are visible in chat.</del>
:'''NOTE -''' removed in 41.66 <q>Fixed, via removal, defunct server option "LogLocalChat".</q> ([https://theindiestone.com/forums/index.php?/topic/49523-4166-released/ see official Patchnotes])
{{Note|type=warn|content=Removed in 41.66 <q>Fixed, via removal, defunct server option "LogLocalChat".</q> ([https://theindiestone.com/forums/index.php?/topic/49523-4166-released/ see official patch notes])}}
'''AutoCreateUserInWhiteList'''=false
'''AutoCreateUserInWhiteList'''=false
:Automatically add users to your whitelist or not
:When changed to <code>true</code>, this allows any new user accounts to be added automatically when joining the server. By default, you have to create the users manually using the "adduser" command in the server console or "/adduser" when logged in as the admin.
'''DisplayUserName'''=true
'''DisplayUserName'''=true
:Display a person's username yes or no
:When changed to <code>false</code> you don't see others players' username on above of their head + their name won't be logged inside the local chat.
'''ShowFirstAndLastName'''=false
'''ShowFirstAndLastName'''=false
:Display a person's character name yes or no
:Display a person's character name.
'''SpawnPoint'''=0,0,0
'''SpawnPoint'''=0,0,0
:To set a custom spawn point, change 0,0,0 to something like 1,2,0. The 1 is the X coordinate, 2 is the Y coordinate, and 0 is the Z coordinate (i.e. height).
:To set a custom spawn point, change 0,0,0 to something like 1,2,0. The 1 is the X coordinate, 2 is the Y coordinate, and 0 is the Z coordinate (i.e., height).
:'''NOTE -''' https://map.projectzomboid.com/, click on "Map coordinates".
{{Note|content=https://map.projectzomboid.com/, click on "Map coordinates".}}
'''SafetySystem'''=true
'''SafetySystem'''=true
:If PvP is enabled, this allows you to toggle PvP on or off.
:If PvP is enabled, this allows you to toggle PvP on or off.
'''ShowSafety'''=true
'''ShowSafety'''=true
:Whether you can see the safety button yes or no.
:Allow the players to see if someone have his safety off with the skull icon.
'''SafetyToggleTimer'''=2
'''SafetyToggleTimer'''=2
:Time it takes to switch between PvP on and Off
:Time it takes to switch between PvP on and off.
'''SafetyCooldownTimer'''=3
'''SafetyCooldownTimer'''=3
:Time it takes before you can toggle it again
:Time it takes before you can toggle it again.
'''SpawnItems'''=
'''SpawnItems'''=
:Items new player characters will spawn with e.g. SpawnItems=Base.BaseballBat,Base.WaterBottleFull means new players spawn with a baseball bat and bottle of water
:Items new player characters will spawn with e.g., <code>SpawnItems=Base.BaseballBat,Base.WaterBottleFull</code> means new players spawn with a baseball bat and bottle of water.
'''DefaultPort'''=16261
'''DefaultPort'''=16261
:The port in which players will need to supply their client to connect to your server.
:The port in which players will need to supply their client to connect to your server.
:"""NOTE -""" This port will need to be open on your router
{{Note|content=This port will need to be open on your router.}}
'''ResetID'''=572058526
'''ResetID'''=572058526
:Removing this resets your server world of zombies and loot, but not time.
:Removing this resets your server world of zombies and loot, but not time.
'''Mods'''=
'''Mods'''=
:Which mods you have installed on your server
:Which mods you have installed on your server.
'''Map'''=Muldraugh, KY
'''Map'''=Muldraugh, KY
:The map you're playing on. ''Muldraugh, KY'' is the default map.
:The map you're playing on. <code>Muldraugh, KY</code> is the default map.
'''DoLuaChecksum'''=true
'''DoLuaChecksum'''=true
:If you are getting an error that says "you have been kicked! Your lua version does not match the server." This usually means you have mods installed and need to either turn off this by setting the argument to false, or you have to uninstall all mods, including ones that directly installed into your media files.
:If you are getting an error that says "you have been kicked! Your lua version does not match the server." This usually means you have mods installed and need to either turn off this by setting the argument to <code>false</code>, or you have to uninstall all mods, including ones that directly installed into your media files.
'''DenyLoginOnOverloadedServer'''=true
'''DenyLoginOnOverloadedServer'''=true
:Untested
 
'''Public'''=true
'''Public'''=true
:Can your server be seen on Steam
:Can your server be seen on Steam.
'''PublicName'''=
'''PublicName'''=
:Your server name as shown to the public
:Your server name as shown to the public.
'''PublicDescription'''=
'''PublicDescription'''=
:The description that people can see while going over your server
:The description that people can see while going over your server.
'''MaxPlayers'''=16
'''MaxPlayers'''=16
:Maximum allowed number of players
:Maximum allowed number of players.
'''PingFrequency'''=10
'''PingFrequency'''=10
:How many times the server checks the connection to your players.
:How many times the server checks the connection to your players.
'''PingLimit'''=250
'''PingLimit'''=250
:Untested (Suspected that if ping exceeds number, player will be kicked)
:Ping limit before being kicked, need to be 5 time over, in millisecond, <code>0</code> to disable it.
'''HoursForLootRespawn'''=0
'''HoursForLootRespawn'''=0
:In-game Hours that must have passed before loot can respawn, 0 = never.
:In-game hours that must have passed before loot can respawn, <code>0</code> = never.
'''MaxItemsForLootRespawn'''=4
'''MaxItemsForLootRespawn'''=4
:The maximum amount of items in containers before items can respawn. If there are less than or equal to x number of items in the container, loot will respawn.
:The maximum amount of items in containers before items can respawn. If there are less than or equal to x number of items in the container, loot will respawn.
Line 87: Line 89:
:Do player constructions near containers prevent loot respawn yes or no.
:Do player constructions near containers prevent loot respawn yes or no.
'''DropOffWhiteListAfterDeath'''=false
'''DropOffWhiteListAfterDeath'''=false
:Remove a player from the Whitelist if their character dies.
:Remove a player from the whitelist if their character dies.
'''NoFire'''=false
'''NoFire'''=false
:False means fires are enabled. If your server has trouble with fires, disable them.
:False means fires are enabled. If your server has trouble with fires, disable them – this disables all forms of fire are disabled, except campfires.
'''AnnounceDeath'''=true
'''AnnounceDeath'''=true
:Server-wide announcement if a character dies. Default is false.
:Server-wide announcement if a character dies. Default is <code>false</code>.
'''MinutesPerPage'''=1.0
'''MinutesPerPage'''=1.0
:How many in-game minutes you need to finish a single page, books have 220 pages.
:How many in-game minutes you need to finish a single page.
'''SaveWorldEveryMinutes'''=0
'''SaveWorldEveryMinutes'''=0
:Auto-save world every x minutes. By default = 0, means never.
:Auto-save world every x minutes. <code>0</code> = never.
'''PlayerSafehouse'''=true
'''PlayerSafehouse'''=true
:Can players have a safehouse
:Can players have a safehouse.
'''AdminSafehouse'''=false
'''AdminSafehouse'''=false
:Can Admins have a safehouse
:Can admins have a safehouse.
'''SafehouseAllowTrepass'''=true
'''SafehouseAllowTrepass'''=true
:Determines if players not in the safehouse will be able to enter it or not. Default = true
:Allow non-members to enter a safehouse without being invited.
'''SafehouseAllowFire'''=true
'''SafehouseAllowFire'''=true
:Dictates whether safehouses can catch fire
:Allow fire to damage safehouses.
'''SafehouseAllowLoot'''=true
'''SafehouseAllowLoot'''=true
:Untested
:Allow non-members to take items from safehouses.
'''SafehouseAllowRespawn'''=false
'''SafehouseAllowRespawn'''=false
:Can you respawn in your safehouse upon death.
:Players spawn in a safehouse they were a member of before they died.
'''SafehouseDaySurvivedToClaim'''=0
'''SafehouseDaySurvivedToClaim'''=0
:In-game days you must be alive before you can claim a safehouse.
:Players must have survived this many game-world days before they may claim a safehouse.
'''SafeHouseRemovalTime'''=144
'''SafeHouseRemovalTime'''=144
:Untested
:Players are automatically removed from a safehouse they have not visited for this many real-time hours.
'''AllowDestructionBySledgehammer'''=true
'''AllowDestructionBySledgehammer'''=true
:Can you destroy objects using a sledgehammer
:Allow players to destroy world objects with the sledgehammer.
'''KickFastPlayers'''=false
'''KickFastPlayers'''=false
:Untested
:Kick players that appear to be moving faster than is possible. May be buggy - use with cation.
'''ServerPlayerID='''1920185881
'''ServerPlayerID'''=1920185881
 
:Determines if the character is from another server or singeplayer. This value may be changed by soft-resets. If this number does match the client, the client must create a new character. Used in conjunction with <code>ResetID</code>.
'''RCONPort='''27015
'''RCONPort'''=27015
 
:Port for RCON.
'''RCONPassword='''
'''RCONPassword'''=
 
:Password for RCON.
'''DiscordEnable='''false
'''DiscordEnable'''=false


'''DiscordToken='''
'''DiscordToken'''=


'''DiscordChannel='''
'''DiscordChannel'''=


'''DiscordChannelID='''
'''DiscordChannelID'''=


'''Password'''=
'''Password'''=
:Your server Password
:Your server password. Clients must know this password to join the server.
 
'''MaxAccountsPerUser'''=0
'''MaxAccountsPerUser='''0
:Limits the number of different accounts a single Steam user may create on this server.
 
'''SleepAllowed'''=false
'''SleepAllowed='''false
:Whether [[sleep]]ing is allowed.
 
'''SleepNeeded'''=false
'''SleepNeeded='''false
:Whether players will need to sleep when exhausted.
 
'''SteamPort1'''=8766
'''SteamPort1='''8766
 
'''SteamPort2='''8767
 
'''WorkshopItems='''
 
'''SteamScoreboard='''true


'''SteamVAC='''true
'''SteamPort2'''=8767
:Checks whether connecting players have VAC bans


'''UPnP='''true
'''WorkshopItems'''=
:List of Steam workshop items to download, separated by semicolon.
'''SteamScoreboard'''=true
:Show steam usernames and avatars in the player list. <code>true</code>=visible to everyone, <code>false</code>=visible to no one, <code>admin</code>=visible to admins.
'''SteamVAC'''=true
:Checks whether connecting players have VAC bans.
'''UPnP'''=true


'''UPnPLeaseTime='''86400
'''UPnPLeaseTime'''=86400


'''UPnPZeroLeaseTimeFallback='''true
'''UPnPZeroLeaseTimeFallback'''=true


'''UPnPForce='''true
'''UPnPForce'''=true


'''CoopServerLaunchTimeout='''20
'''CoopServerLaunchTimeout'''=20


'''CoopMasterPingTimeout='''60
'''CoopMasterPingTimeout'''=60


'''VoiceEnable='''true
'''VoiceEnable'''=true


'''VoiceComplexity='''5
'''VoiceComplexity'''=5


'''VoicePeriod='''20
'''VoicePeriod'''=20


'''VoiceSampleRate='''24000
'''VoiceSampleRate'''=24000


'''VoiceBuffering='''8000
'''VoiceBuffering'''=8000


'''VoiceMinDistance='''10.0
'''VoiceMinDistance'''=10.0


'''VoiceMaxDistance='''300.0
'''VoiceMaxDistance'''=300.0


'''Voice3D='''true
'''Voice3D'''=true


'''PhysicsDelay='''500
'''PhysicsDelay'''=500


'''SpeedLimit='''70.0
'''SpeedLimit'''=70.0


'''server_browser_announced_ip='''
'''server_browser_announced_ip'''=


'''UseTCPForMapDownloads='''false
'''UseTCPForMapDownloads'''=false


'''PlayerRespawnWithSelf='''false
'''PlayerRespawnWithSelf'''=false
:If you turn it on you will be able to respawn on your place of death and continue playing on the world after death.
:If you turn it on you will be able to respawn on your place of death and continue playing on the world after death.
:The only downside is that it might cause slight lag to the game since you are hosting, otherwise there should be no problems.<sup>[[https://steamcommunity.com/app/108600/discussions/0/1728701877511633536/#c1728701877514117509 dev]]</sup>
:The only downside is that it might cause slight lag to the game since you are hosting, otherwise there should be no problems. <ref>https://steamcommunity.com/app/108600/discussions/0/1728701877511633536/#c1728701877514117509 - dev post</ref>


'''PlayerRespawnWithOther='''false
'''PlayerRespawnWithOther'''=false
:Enable spawning at a splitscreen partner's location. <sup>[[https://theindiestone.com/forums/index.php?/topic/19406-iwbums-3426/ IWBUMS 34.25]]</sup>
:Enable spawning at a splitscreen partner's location. <ref>https://theindiestone.com/forums/index.php?/topic/19406-iwbums-3426/ - IWBUMS 34.25 patch notes</ref>


'''FastForwardMultiplier='''40.0
'''FastForwardMultiplier'''=40.0


'''PlayerSaveOnDamage='''true
'''PlayerSaveOnDamage'''=true


'''SaveTransactionID='''false
'''SaveTransactionID'''=false


'''DisableSafehouseWhenPlayerConnected='''false
'''DisableSafehouseWhenPlayerConnected'''=false


'''Faction='''true
'''Faction'''=true
:Allows creation and use of factions.
:Allows creation and use of factions.
'''FactionDaySurvivedToCreate'''=0
:How many days player must survive to create a faction.
'''FactionPlayersRequiredForTag'''=1


'''FactionDaySurvivedToCreate='''0
'''AllowTradeUI'''=true
 
:Dictates whether players can directly trade with one another.
'''FactionPlayersRequiredForTag='''1
'''DisableRadioStaff'''=false
 
'''AllowTradeUI='''true
:Dictates whether players can directly trade with one another
 
'''DisableRadioStaff='''false


'''DisableRadioAdmin='''true
'''DisableRadioAdmin'''=true


'''DisableRadioGM='''true
'''DisableRadioGM'''=true


'''DisableRadioOverseer='''false
'''DisableRadioOverseer'''=false


'''DisableRadioModerator='''false
'''DisableRadioModerator'''=false


'''DisableRadioInvisible='''true
'''DisableRadioInvisible'''=true


'''ClientCommandFilter='''-vehicle.*;+vehicle.damageWindow;+vehicle.fixPart;+vehicle.installPart;+vehicle.uninstallPart
'''ClientCommandFilter'''=-vehicle.*;+vehicle.damageWindow;+vehicle.fixPart;+vehicle.installPart;+vehicle.uninstallPart


'''ItemNumbersLimitPerContainer'''=0
'''ItemNumbersLimitPerContainer'''=0
Line 239: Line 237:
'''ZombieUpdateDelt'''a=0.5
'''ZombieUpdateDelt'''a=0.5


'''ZombieUpdateRadiusLowPriority='''45.0
'''ZombieUpdateRadiusLowPriority'''=45.0
 
'''ZombieUpdateRadiusHighPriority'''=10.0


'''ZombieUpdateRadiusHighPriority='''10.0
'''TrashDeleteAll'''=false


'''TrashDeleteAll='''false
'''PVPMeleeWhileHitReaction'''=false


'''PVPMeleeWhileHitReaction='''false
'''MouseOverToSeeDisplayName'''=true


'''MouseOverToSeeDisplayName='''true
'''HidePlayersBehindYou'''=true


'''HidePlayersBehindYou='''true
'''PVPMeleeDamageModifier'''=30.0


'''PVPMeleeDamageModifier='''30.0
'''PVPFirearmDamageModifier'''=50.0


'''PVPFirearmDamageModifier='''50.0
'''CarEngineAttractionModifier'''=0.5


'''CarEngineAttractionModifier='''0.5
'''PlayerBumpPlayer'''=false


'''PlayerBumpPlayer='''false
'''HoursForWorldItemRemoval'''=0.0
:How many in-game hrs before corpses dissappear.
'''WorldItemRemovalList'''=Base.Vest,Base.Shirt,Base.Blouse,Base.Skirt,Base.Shoes
:Comma-separate list of [[items]] to be removed when placed on the ground.


== servertest_SandBoxVars.lua ==
==servertest_SandBoxVars.lua==
----------------------------'''
<syntaxhighlight lang="lua">
'''SandboxVars''' = {
SandboxVars = {
     VERSION = 4
     VERSION = 4
     Zombies = 4, (Zombie spawn rate. 1 is most, 5 is none)
     Zombies = 4, -- Zombie spawn rate. 1 is most, 5 is none
     Distribution = 1, (1 is urban, 2 is uniform)
     Distribution = 1, -- 1 is urban, 2 is uniform
     DayLength = 3, (1 is 15 minutes, 2 is 30 minutes, 3 is 1 hour, 4 is 2 hours, 5 is 3 hours, 6 is 4 hours, 7 is 5 hours, 8 is 12 hours, 9 is real-time)
     DayLength = 3, -- 1 is 15 minutes, 2 is 30 minutes, 3 is 1 hour, 4 is 2 hours, 5 is 3 hours, 6 is 4 hours, 7 is 5 hours, 8 is 12 hours, 9 is real-time
     StartYear = 1, (1 is the 1st year etc)
     StartYear = 1, -- 1 is the 1st year etc
     StartMonth = 4, (1 is Jan, 12 is Dec)
     StartMonth = 4, -- 1 is Jan, 12 is Dec
     StartDay = 1, (1 is the 1st of the month etc)
     StartDay = 1, -- 1 is the 1st of the month etc
     StartTime = 2, (1 is 7AM, 2 is 9AM, 3 is 12PM, 4 is 2PM, 5 is 5PM, 6 is 9PM, 7 is 12AM, 8 is 2AM, 9 is 5AM)
     StartTime = 2, -- 1 is 7AM, 2 is 9AM, 3 is 12PM, 4 is 2PM, 5 is 5PM, 6 is 9PM, 7 is 12AM, 8 is 2AM, 9 is 5AM
     WaterShut = 2,
     WaterShut = 2,
     ElecShut = 2,
     ElecShut = 2,
     WaterShutModifier = 500, (the number of days before water is shut off. -1 is instant)
     WaterShutModifier = 500, -- the number of days before water is shut off. -1 is instant
     ElecShutModifier = 480, (the number of days before electricity is shut off. -1 is instant)
     ElecShutModifier = 480, -- the number of days before electricity is shut off. -1 is instant
     FoodLoot = 4, (1 is extremely rare, 5 is abundant)
     FoodLoot = 4, -- 1 is extremely rare, 5 is abundant
     WeaponLoot = 2, (1 is extremely rare, 5 is abundant)
     WeaponLoot = 2, -- 1 is extremely rare, 5 is abundant
     OtherLoot = 3, (1 is extremely rare, 5 is abundant)
     OtherLoot = 3, -- 1 is extremely rare, 5 is abundant
     Temperature = 3, (1 is very cold, 5 is very hot)
     Temperature = 3, -- 1 is very cold, 5 is very hot
     Rain = 3, (1 is very dry, 5 is is very rainy)
     Rain = 3, -- 1 is very dry, 5 is is very rainy
     ErosionSpeed = 5, (1 is very fast (20 days), 5 is very slow (500 days))
     ErosionSpeed = 5, -- 1 is very fast (20 days), 5 is very slow (500 days)
     XpMultiplier = 15.0,
     XpMultiplier = 15.0,
     Farming = 1, (1 is vey fast, 5 is very slow)
     Farming = 1, -- 1 is vey fast, 5 is very slow
     StatsDecrease = 4, (1 is very fast, 5 is very slow)
     StatsDecrease = 4, -- 1 is very fast, 5 is very slow
     NatureAbundance = 3, (1 is very poor, 5 is very abundant)
     NatureAbundance = 3, -- 1 is very poor, 5 is very abundant
     Alarm = 6, (1 is never, 6 is very often)
     Alarm = 6, -- 1 is never, 6 is very often
     LockedHouses = 6, (1 is never, 6 is very often)
     LockedHouses = 6, -- 1 is never, 6 is very often
     StarterKit = false,
     StarterKit = false,
     Nutrition = false,
     Nutrition = false,
     FoodRotSpeed = 5, (1 is very fast, 5 is very slow)
     FoodRotSpeed = 5, -- 1 is very fast, 5 is very slow
     FridgeFactor = 5, (1 is very low, 5 is very high)
     FridgeFactor = 5, -- 1 is very low, 5 is very high
     LootRespawn = 2, (1 is none, 2 is every day, 3 is every week, 4 is every month, 5 is every two months)
     LootRespawn = 2, -- 1 is none, 2 is every day, 3 is every week, 4 is every month, 5 is every two months
     TimeSinceApo = 1,
     TimeSinceApo = 1,
     PlantResilience = 3, (Plants resilience against disease/weather. 1 is very low, 5 is very high)
     PlantResilience = 3, -- Plants resilience against disease/weather. 1 is very low, 5 is very high
     PlantAbundance = 3, (How much farm plants produce. 1 is very poor, 5 is very abundant)
     PlantAbundance = 3, -- How much farm plants produce. 1 is very poor, 5 is very abundant
     EndRegen = 3, (Endurance regeneration (how fast you regain endurance). 1 is very fast, 5 is very slow)
     EndRegen = 3, -- Endurance regeneration (how fast you regain endurance). 1 is very fast, 5 is very slow
     '''ZombieLore''' = {
     ZombieLore = {
         Speed = 3, (1 is sprinters (fastest), 2 is fast shamblers, 3 is shamblers (slowest))
         Speed = 3, -- 1 is sprinters (fastest), 2 is fast shamblers, 3 is shamblers (slowest)
         Strength = 3, (1 is superhuman, 2 is normal, 3 is weak)
         Strength = 3, -- 1 is superhuman, 2 is normal, 3 is weak
         Toughness = 3, (1 is tough, 2 is normal, 3 is fragile)
         Toughness = 3, -- 1 is tough, 2 is normal, 3 is fragile
         Transmission = 1, (1 is blood/saliva, 2 is saliva only, 3 is everyone is infected, 4 is no transmission)
         Transmission = 1, -- 1 is blood/saliva, 2 is saliva only, 3 is everyone is infected, 4 is no transmission
         Mortality = 6, (This governs how deadly infection is. 1 is instant, 6 is 1 to 2 weeks)
         Mortality = 6, -- This governs how deadly infection is. 1 is instant, 6 is 1 to 2 weeks
         Reanimate = 1, (How fast zombies come back to life...again. 1 is instant, 6 is 1 to 2 weeks)
         Reanimate = 1, -- How fast zombies come back to life...again. 1 is instant, 6 is 1 to 2 weeks
         Cognition = 3, (How smart zombies are. 1 is Navigate/Use Doors, 3 is basic navigation only)
         Cognition = 3, -- How smart zombies are. 1 is Navigate/Use Doors, 3 is basic navigation only
         Memory = 2, (How much zombies will remember. 1 is long, 4 is none)
         Memory = 2, -- How much zombies will remember. 1 is long, 4 is none
         Decomp = 1, (1 is slows/weakens them, 4 is no effect)
         Decomp = 1, -- 1 is slows/weakens them, 4 is no effect
         Sight = 2, (How well zombies can see. 1 is eagle-eyed, 3 is poor)
         Sight = 2, -- How well zombies can see. 1 is eagle-eyed, 3 is poor
         Hearing = 2, (How well zombies can hear. 1 is pinpoint, 3 is poor)
         Hearing = 2, -- How well zombies can hear. 1 is pinpoint, 3 is poor
         Smell = 2, (How well zombies can smell. 1 is bloodhound, 3 is poor)
         Smell = 2, -- How well zombies can smell. 1 is bloodhound, 3 is poor
         ThumpNoChasing = true,
         ThumpNoChasing = true,
         ThumpOnConstruction = true,
         ThumpOnConstruction = true,
Line 315: Line 318:
         ZombiesFenceLunge = true,
         ZombiesFenceLunge = true,
     }
     }
     '''ZombieConfig''' = {
     ZombieConfig = {
         PopulationMultiplier = 1.0, (Zombie spawn rate. 4.0 = Insane, 2.0 = High, 1.0 = Normal, 0.35 = Low, 0.0 = None. Minimum = 0.0 Maximum = 4.0 Default = 1.0
         PopulationMultiplier = 1.0, -- Zombie spawn rate. 4.0 = Insane, 2.0 = High, 1.0 = Normal, 0.35 = Low, 0.0 = None. Minimum = 0.0 Maximum = 4.0 Default = 1.0
         PopulationStartMultiplier = 1.0, (Adjusts the desired population at the start of the game. Minimum = 0.0 Maximum = 4.0 Default = 1.0)
         PopulationStartMultiplier = 1.0, -- Adjusts the desired population at the start of the game. Minimum = 0.0 Maximum = 4.0 Default = 1.0
         PopulationPeakMultiplier = 1.5, (Adjusts the desired population on the peak day. Minimum = 0.0 Maximum = 4.0 Default = 1.5)
         PopulationPeakMultiplier = 1.5, -- Adjusts the desired population on the peak day. Minimum = 0.0 Maximum = 4.0 Default = 1.5
         PopulationPeakDay = 28, (The day when the population reaches it's peak. Minimum = 1 Maximum = 365 Default = 28
         PopulationPeakDay = 28, -- The day when the population reaches it's peak. Minimum = 1 Maximum = 365 Default = 28
         RespawnHours = 72.0, (The number of hours that must pass before zombies may respawn in a cell. If 0, spawning is disabled. Minimum = 0.0 Maximum = 8760.0 Default = 72.0. Dev post for 32.17 update)
         RespawnHours = 72.0, -- The number of hours that must pass before zombies may respawn in a cell. If 0, spawning is disabled. Minimum = 0.0 Maximum = 8760.0 Default = 72.0. Dev post for 32.17 update
         RespawnUnseenHours = 16.0, (The number of hours that a chunk must be unseen before zombies may respawn in it. Minimum = 0.0 Maximum = 8760.0 Default = 16.0)
         RespawnUnseenHours = 16.0, -- The number of hours that a chunk must be unseen before zombies may respawn in it. Minimum = 0.0 Maximum = 8760.0 Default = 16.0
         RespawnMultiplier = 0.1, (The fraction of a cell's desired population that may respawn every RespawnHours. Minimum = 0.0 Maximum = 1.0 Default = 0.1)
         RespawnMultiplier = 0.1, -- The fraction of a cell's desired population that may respawn every RespawnHours. Minimum = 0.0 Maximum = 1.0 Default = 0.1
         RedistributeHours = 12.0, (The number of hours that must pass before zombies migrate to empty parts of the same cell. Minimum = 0.0 Maximum = 8760.0 Default = 12.0)
         RedistributeHours = 12.0, -- The number of hours that must pass before zombies migrate to empty parts of the same cell. Minimum = 0.0 Maximum = 8760.0 Default = 12.0
         FollowSoundDistance = 100, (The distance a virtual zombie will try to walk towards the last sound it heard. Minimum = 10 Maximum = 1000 Default = 100)
         FollowSoundDistance = 100, -- The distance a virtual zombie will try to walk towards the last sound it heard. Minimum = 10 Maximum = 1000 Default = 100
         RallyGroupSize = 20, (The size of groups real zombies form when idle. 0 means zombies don't form groups. Groups don't form inside buildings or forest zones. Minimum = 0 Maximum = 1000 Default = 20)
         RallyGroupSize = 20, -- The size of groups real zombies form when idle. 0 means zombies don't form groups. Groups don't form inside buildings or forest zones. Minimum = 0 Maximum = 1000 Default = 20
         RallyTravelDistance = 20, (The distance real zombies travel to form groups when idle. Minimum = 5 Maximum = 50 Default = 20)
         RallyTravelDistance = 20, -- The distance real zombies travel to form groups when idle. Minimum = 5 Maximum = 50 Default = 20
         RallyGroupSeparation = 15, (The distance between zombie groups. Minimum=  5 Maximum = 25 Default = 15)
         RallyGroupSeparation = 15, -- The distance between zombie groups. Minimum=  5 Maximum = 25 Default = 15
         RallyGroupRadius = 3, (How close members of a group stay to the group's leader. Minimum = 1 Maximum = 10 Default = 3
         RallyGroupRadius = 3, -- How close members of a group stay to the group's leader. Minimum = 1 Maximum = 10 Default = 3
     }
     }
}
}
</syntaxhighlight>


==See also==
==See also==
*[[Multiplayer]]
*[[Multiplayer]]
*[[Dedicated Server]]
*[[Multiplayer FAQ]]
*[[Startup parameters]]
*[[Dedicated server]]
*[[Buying and running a Linux Project Zomboid server]]


[[Category:Multiplayer]]
==References==
<references />

Latest revision as of 15:27, 4 March 2024

Project ZomboidMultiplayerServer settings
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
WhiskeyHalf.png
This article may be in need of improvement.
Editors are encouraged to add any missing information to the article, while verifying that the article's current content is correct.

There are a total of 4 files that make your server work, they can all be found at:

  • Windows: %USERPROFILE%\Zomboid\server
  • Linux: $HOME/Zomboid/Server

Inside, there are the following files:

servertest.ini

nightlengthmodifier=1.0

Controls the LENGTH of night. 1.0 is standard (please note length of night now adjusts based on the season too so it will be longer or shorter during different months of the game) if you change it to 0.5 for example the night will be half as long as usual.

PVP=true

Allow PvP (still has a toggle for each player by default).

PauseEmpty=true

The server will be progressing constantly (days will pass, crops will grow, zombies will migrate). If changed to true the server will pause when no players are logged in.

GlobalChat=true

Enable Global Chat (/all command in chat). This allows players to chat regardless of distance.

ChatStreams=s,r,a,w,y,sh,f,all

  • /s - Talk to people on the screen, including the dead
  • /r - Transcript of radio broadcasts
  • /a - Talk to an admin
  • /w - Whisper to someone, distance doesn't matter
  • /y - Yell to people on screen and a bit further away, also attracts zombies
  • /sh - Talk to people with whom you share a safehouse
  • /f - Talk to people in your faction
  • /all - Safely talk to everyone online
Removing any of these disables that chatstream

Open=true

Open to all (no whitelist).

ServerWelcomeMessage=Welcome to Project Zomboid Multiplayer! <LINE> <LINE> To interact with the Chat panel: press Tab, T, or Enter. <LINE> <LINE> The Tab key will change the target stream of the message. <LINE> <LINE> Global Streams: /all <LINE> Local Streams: /say, /yell <LINE> Special Steams: /whisper, /safehouse, /faction. <LINE> <LINE> Press the Up arrow to cycle through your message history. Click the Gear icon to customize chat. <LINE> <LINE> Happy surviving!

The welcome message displayed to player after connecting.

LogLocalChat=false

Whether /s and /y are visible in chat.
LightBulbYellow.png
Removed in 41.66 Fixed, via removal, defunct server option "LogLocalChat". (see official patch notes)

AutoCreateUserInWhiteList=false

When changed to true, this allows any new user accounts to be added automatically when joining the server. By default, you have to create the users manually using the "adduser" command in the server console or "/adduser" when logged in as the admin.

DisplayUserName=true

When changed to false you don't see others players' username on above of their head + their name won't be logged inside the local chat.

ShowFirstAndLastName=false

Display a person's character name.

SpawnPoint=0,0,0

To set a custom spawn point, change 0,0,0 to something like 1,2,0. The 1 is the X coordinate, 2 is the Y coordinate, and 0 is the Z coordinate (i.e., height).
LightBulbBlue.png
https://map.projectzomboid.com/, click on "Map coordinates".

SafetySystem=true

If PvP is enabled, this allows you to toggle PvP on or off.

ShowSafety=true

Allow the players to see if someone have his safety off with the skull icon.

SafetyToggleTimer=2

Time it takes to switch between PvP on and off.

SafetyCooldownTimer=3

Time it takes before you can toggle it again.

SpawnItems=

Items new player characters will spawn with e.g., SpawnItems=Base.BaseballBat,Base.WaterBottleFull means new players spawn with a baseball bat and bottle of water.

DefaultPort=16261

The port in which players will need to supply their client to connect to your server.
LightBulbBlue.png
This port will need to be open on your router.

ResetID=572058526

Removing this resets your server world of zombies and loot, but not time.

Mods=

Which mods you have installed on your server.

Map=Muldraugh, KY

The map you're playing on. Muldraugh, KY is the default map.

DoLuaChecksum=true

If you are getting an error that says "you have been kicked! Your lua version does not match the server." This usually means you have mods installed and need to either turn off this by setting the argument to false, or you have to uninstall all mods, including ones that directly installed into your media files.

DenyLoginOnOverloadedServer=true

Public=true

Can your server be seen on Steam.

PublicName=

Your server name as shown to the public.

PublicDescription=

The description that people can see while going over your server.

MaxPlayers=16

Maximum allowed number of players.

PingFrequency=10

How many times the server checks the connection to your players.

PingLimit=250

Ping limit before being kicked, need to be 5 time over, in millisecond, 0 to disable it.

HoursForLootRespawn=0

In-game hours that must have passed before loot can respawn, 0 = never.

MaxItemsForLootRespawn=4

The maximum amount of items in containers before items can respawn. If there are less than or equal to x number of items in the container, loot will respawn.

ConstructionPreventsLootRespawn=true

Do player constructions near containers prevent loot respawn yes or no.

DropOffWhiteListAfterDeath=false

Remove a player from the whitelist if their character dies.

NoFire=false

False means fires are enabled. If your server has trouble with fires, disable them – this disables all forms of fire are disabled, except campfires.

AnnounceDeath=true

Server-wide announcement if a character dies. Default is false.

MinutesPerPage=1.0

How many in-game minutes you need to finish a single page.

SaveWorldEveryMinutes=0

Auto-save world every x minutes. 0 = never.

PlayerSafehouse=true

Can players have a safehouse.

AdminSafehouse=false

Can admins have a safehouse.

SafehouseAllowTrepass=true

Allow non-members to enter a safehouse without being invited.

SafehouseAllowFire=true

Allow fire to damage safehouses.

SafehouseAllowLoot=true

Allow non-members to take items from safehouses.

SafehouseAllowRespawn=false

Players spawn in a safehouse they were a member of before they died.

SafehouseDaySurvivedToClaim=0

Players must have survived this many game-world days before they may claim a safehouse.

SafeHouseRemovalTime=144

Players are automatically removed from a safehouse they have not visited for this many real-time hours.

AllowDestructionBySledgehammer=true

Allow players to destroy world objects with the sledgehammer.

KickFastPlayers=false

Kick players that appear to be moving faster than is possible. May be buggy - use with cation.

ServerPlayerID=1920185881

Determines if the character is from another server or singeplayer. This value may be changed by soft-resets. If this number does match the client, the client must create a new character. Used in conjunction with ResetID.

RCONPort=27015

Port for RCON.

RCONPassword=

Password for RCON.

DiscordEnable=false

DiscordToken=

DiscordChannel=

DiscordChannelID=

Password=

Your server password. Clients must know this password to join the server.

MaxAccountsPerUser=0

Limits the number of different accounts a single Steam user may create on this server.

SleepAllowed=false

Whether sleeping is allowed.

SleepNeeded=false

Whether players will need to sleep when exhausted.

SteamPort1=8766

SteamPort2=8767

WorkshopItems=

List of Steam workshop items to download, separated by semicolon.

SteamScoreboard=true

Show steam usernames and avatars in the player list. true=visible to everyone, false=visible to no one, admin=visible to admins.

SteamVAC=true

Checks whether connecting players have VAC bans.

UPnP=true

UPnPLeaseTime=86400

UPnPZeroLeaseTimeFallback=true

UPnPForce=true

CoopServerLaunchTimeout=20

CoopMasterPingTimeout=60

VoiceEnable=true

VoiceComplexity=5

VoicePeriod=20

VoiceSampleRate=24000

VoiceBuffering=8000

VoiceMinDistance=10.0

VoiceMaxDistance=300.0

Voice3D=true

PhysicsDelay=500

SpeedLimit=70.0

server_browser_announced_ip=

UseTCPForMapDownloads=false

PlayerRespawnWithSelf=false

If you turn it on you will be able to respawn on your place of death and continue playing on the world after death.
The only downside is that it might cause slight lag to the game since you are hosting, otherwise there should be no problems. [1]

PlayerRespawnWithOther=false

Enable spawning at a splitscreen partner's location. [2]

FastForwardMultiplier=40.0

PlayerSaveOnDamage=true

SaveTransactionID=false

DisableSafehouseWhenPlayerConnected=false

Faction=true

Allows creation and use of factions.

FactionDaySurvivedToCreate=0

How many days player must survive to create a faction.

FactionPlayersRequiredForTag=1

AllowTradeUI=true

Dictates whether players can directly trade with one another.

DisableRadioStaff=false

DisableRadioAdmin=true

DisableRadioGM=true

DisableRadioOverseer=false

DisableRadioModerator=false

DisableRadioInvisible=true

ClientCommandFilter=-vehicle.*;+vehicle.damageWindow;+vehicle.fixPart;+vehicle.installPart;+vehicle.uninstallPart

ItemNumbersLimitPerContainer=0

BloodSplatLifespanDays=0

AllowNonAsciiUsername=false

BanKickGlobalSound=true

RemovePlayerCorpsesOnCorpseRemoval=false

ZombieUpdateMaxHighPriority=50

ZombieUpdateDelta=0.5

ZombieUpdateRadiusLowPriority=45.0

ZombieUpdateRadiusHighPriority=10.0

TrashDeleteAll=false

PVPMeleeWhileHitReaction=false

MouseOverToSeeDisplayName=true

HidePlayersBehindYou=true

PVPMeleeDamageModifier=30.0

PVPFirearmDamageModifier=50.0

CarEngineAttractionModifier=0.5

PlayerBumpPlayer=false

HoursForWorldItemRemoval=0.0

How many in-game hrs before corpses dissappear.

WorldItemRemovalList=Base.Vest,Base.Shirt,Base.Blouse,Base.Skirt,Base.Shoes

Comma-separate list of items to be removed when placed on the ground.

servertest_SandBoxVars.lua

SandboxVars = {
    VERSION = 4
    Zombies = 4, -- Zombie spawn rate. 1 is most, 5 is none
    Distribution = 1, -- 1 is urban, 2 is uniform
    DayLength = 3, -- 1 is 15 minutes, 2 is 30 minutes, 3 is 1 hour, 4 is 2 hours, 5 is 3 hours, 6 is 4 hours, 7 is 5 hours, 8 is 12 hours, 9 is real-time
    StartYear = 1, -- 1 is the 1st year etc
    StartMonth = 4, -- 1 is Jan, 12 is Dec
    StartDay = 1, -- 1 is the 1st of the month etc
    StartTime = 2, -- 1 is 7AM, 2 is 9AM, 3 is 12PM, 4 is 2PM, 5 is 5PM, 6 is 9PM, 7 is 12AM, 8 is 2AM, 9 is 5AM
    WaterShut = 2,
    ElecShut = 2,
    WaterShutModifier = 500, -- the number of days before water is shut off. -1 is instant
    ElecShutModifier = 480, -- the number of days before electricity is shut off. -1 is instant
    FoodLoot = 4, -- 1 is extremely rare, 5 is abundant
    WeaponLoot = 2, -- 1 is extremely rare, 5 is abundant
    OtherLoot = 3, -- 1 is extremely rare, 5 is abundant
    Temperature = 3, -- 1 is very cold, 5 is very hot
    Rain = 3, -- 1 is very dry, 5 is is very rainy
    ErosionSpeed = 5, -- 1 is very fast (20 days), 5 is very slow (500 days)
    XpMultiplier = 15.0,
    Farming = 1, -- 1 is vey fast, 5 is very slow
    StatsDecrease = 4, -- 1 is very fast, 5 is very slow
    NatureAbundance = 3, -- 1 is very poor, 5 is very abundant
    Alarm = 6, -- 1 is never, 6 is very often
    LockedHouses = 6, -- 1 is never, 6 is very often
    StarterKit = false,
    Nutrition = false,
    FoodRotSpeed = 5, -- 1 is very fast, 5 is very slow
    FridgeFactor = 5, -- 1 is very low, 5 is very high
    LootRespawn = 2, -- 1 is none, 2 is every day, 3 is every week, 4 is every month, 5 is every two months
    TimeSinceApo = 1,
    PlantResilience = 3, -- Plants resilience against disease/weather. 1 is very low, 5 is very high
    PlantAbundance = 3, -- How much farm plants produce. 1 is very poor, 5 is very abundant
    EndRegen = 3, -- Endurance regeneration (how fast you regain endurance). 1 is very fast, 5 is very slow
    ZombieLore = {
        Speed = 3, -- 1 is sprinters (fastest), 2 is fast shamblers, 3 is shamblers (slowest)
        Strength = 3, -- 1 is superhuman, 2 is normal, 3 is weak
        Toughness = 3, -- 1 is tough, 2 is normal, 3 is fragile
        Transmission = 1, -- 1 is blood/saliva, 2 is saliva only, 3 is everyone is infected, 4 is no transmission
        Mortality = 6, -- This governs how deadly infection is. 1 is instant, 6 is 1 to 2 weeks
        Reanimate = 1, -- How fast zombies come back to life...again. 1 is instant, 6 is 1 to 2 weeks
        Cognition = 3, -- How smart zombies are. 1 is Navigate/Use Doors, 3 is basic navigation only
        Memory = 2, -- How much zombies will remember. 1 is long, 4 is none
        Decomp = 1, -- 1 is slows/weakens them, 4 is no effect
        Sight = 2, -- How well zombies can see. 1 is eagle-eyed, 3 is poor
        Hearing = 2, -- How well zombies can hear. 1 is pinpoint, 3 is poor
        Smell = 2, -- How well zombies can smell. 1 is bloodhound, 3 is poor
        ThumpNoChasing = true,
        ThumpOnConstruction = true,
        ActiveOnly = 1,
        TriggerHouseAlarm = false,
        ZombiesDragDown = true,
        ZombiesFenceLunge = true,
    }
    ZombieConfig = {
        PopulationMultiplier = 1.0, -- Zombie spawn rate. 4.0 = Insane, 2.0 = High, 1.0 = Normal, 0.35 = Low, 0.0 = None. Minimum = 0.0 Maximum = 4.0 Default = 1.0
        PopulationStartMultiplier = 1.0, -- Adjusts the desired population at the start of the game. Minimum = 0.0 Maximum = 4.0 Default = 1.0
        PopulationPeakMultiplier = 1.5, -- Adjusts the desired population on the peak day. Minimum = 0.0 Maximum = 4.0 Default = 1.5
        PopulationPeakDay = 28, -- The day when the population reaches it's peak. Minimum = 1 Maximum = 365 Default = 28
        RespawnHours = 72.0, -- The number of hours that must pass before zombies may respawn in a cell. If 0, spawning is disabled. Minimum = 0.0 Maximum = 8760.0 Default = 72.0. Dev post for 32.17 update
        RespawnUnseenHours = 16.0, -- The number of hours that a chunk must be unseen before zombies may respawn in it. Minimum = 0.0 Maximum = 8760.0 Default = 16.0
        RespawnMultiplier = 0.1, -- The fraction of a cell's desired population that may respawn every RespawnHours. Minimum = 0.0 Maximum = 1.0 Default = 0.1
        RedistributeHours = 12.0, -- The number of hours that must pass before zombies migrate to empty parts of the same cell. Minimum = 0.0 Maximum = 8760.0 Default = 12.0
        FollowSoundDistance = 100, -- The distance a virtual zombie will try to walk towards the last sound it heard. Minimum = 10 Maximum = 1000 Default = 100
        RallyGroupSize = 20, -- The size of groups real zombies form when idle. 0 means zombies don't form groups. Groups don't form inside buildings or forest zones. Minimum = 0 Maximum = 1000 Default = 20
        RallyTravelDistance = 20, -- The distance real zombies travel to form groups when idle. Minimum = 5 Maximum = 50 Default = 20
        RallyGroupSeparation = 15, -- The distance between zombie groups. Minimum=  5 Maximum = 25 Default = 15
        RallyGroupRadius = 3, -- How close members of a group stay to the group's leader. Minimum = 1 Maximum = 10 Default = 3
     }
}

See also

References