Namespaces

Variants

Share

Share
Views
Actions
In other languages

Server

From 7 Days to Die Wiki
Jump to: navigation, search

A Server is used for playing with multiple people in the same world. Servers can be hosted by yourself, as well as by a company. Server used to only allows up to 4 people, but that was changed as of Alpha 1.1 [1]

[edit] How to host a server

[edit] The server file

With update Alpha 3 all server settings are now saved into an xml file that is referenced in the batch file.

Only change the data in the "value=" part of the file, otherwise it will not work.

Option Values Description
ServerPort 25000 Port you want the server to listen on
ServerIsPublic true,false Should this server register to master server - if true it will show on the server list
ServerName The Matrix Whatever you want the name of the server to be on the server browser
ServerPassword String Password to gain entry to the server. Leave empty for no password
ServerMaxPlayerCount 4 Maximum Concurrent Players (Max Slots)
GameWorld Navezgane Navezgane, MP Wasteland Horde, MP Wasteland Skirmish, MP Wasteland War, Random Gen are map options.
GameName My Game Whatever you want the game name to be (Save Folder Name)
GameDifficulty 2 0 - 4, 0=easiest, 4=hardest
GameMode GameModeSurvival GameModeSurvival, GameModeDeathmatch, GameModeZombieHorde
EnemySpawning true,false Spawn Zombies and other enemies?
ShowAllPlayersOnMap true,false Show other players on minimap and main map?
BuildCreate true,false cheat mode on/off
DayNightLength 20 Length of days and nights
FriendlyFire true,false Can players damage each other (PvP)
DayCount 3 Only for horde mode, use 0 for unlimited
FragLimit 5 Only for deathmatch, use 0 for disabled
MatchLength 15 only for deathmatch, use 0 for unlimited
RebuildMap true, false true=map is rebuild on next round, false=not
ControlPanelEnabled true,false Enable/Disable the control panel for web based commands
ControlPanelPort 8080 Port of the control panel webpage
ControlPanelPassword CHANGEME Password to gain entry to the control panel
TelnetEnabled true,false Enable/Disable the telnet
TelnetPort 8081 Port of the telnet server
DisableNAT false,true set this to true if your router doesn't support NAT
BanFileName ban.txt ban filename

To host a server just edit the startdedicated.bat file and the serverconfig.xml using notepad or notepad++. You shouldn't need to edit the startdedicated.bat. In the batch file you will see the following text:

startdedicated.bat

rem
rem Starts a dedicated server
rem
rem -quit, -batchmode, -nographics: Unity commands
rem -configfile			  : Allows server settings to be set up in an xml config file. Use no path if in same dir or full path.
rem -dedicated                    : Has to be the last option to start the dedicated server.

start 7daystodie -quit -batchmode -nographics -configfile=serverconfig.xml -dedicated

REM wait until game started
timeout 10

REM connect to the service interface. use 'shutdown' to stop the server
if exist "Tools/bin/putty.exe" (
     "Tools/bin/putty.exe" -telnet localhost 8081
) else (
     telnet localhost 8081
)

pause

serverconfig.xml

<?xml version="1.0"?>
<ServerSettings>
  <property name="ServerPort"			value="25000"/>			<!-- Port you want the server to listen on. -->
  <property name="ServerIsPublic"		value="true"/>			<!-- Should this server register to master server -->
  <property name="ServerName"			value="My Game Host"/>		<!-- Whatever you want the name to be. -->
  <property name="ServerPassword"		value=""/>			<!-- Password to gain entry to the server -->
  <property name="ServerMaxPlayerCount" 	value="8"/>			<!-- Maximum Concurrent Players -->
  
  <property name="GameWorld"			value="Navezgane"/>		<!-- Navezgane, MP Wasteland Horde, MP Wasteland Skirmish, MP Wasteland War, Random Gen -->
  <property name="GameName"			value="My Game"/>		<!-- Whatever you want the game name to be THIS CONTROLS THE RANDOM GENERATION SEED -->
  <property name="GameDifficulty"		value="2"/>			<!-- 0 - 4, 0=easiest, 4=hardest -->
  <property name="GameMode"			value="GameModeSurvivalMP"/>	<!-- GameModeSurvivalMP, GameModeSurvivalSP (MP has land protection) -->
  
  <property name="ZombiesRun"			value="0" />			<!-- 0 = default day/night walk/run, 1 = never run, 2 = always run -->
  <property name="ShowFriendPlayerOnMap"	value="true" />			<!-- Show other players on minimap and main map? -->
  <property name="BuildCreate"			value="false" />		<!-- cheat mode on/off -->
  <property name="DayNightLength"		value="45" />			<!-- 45 minutes -->
  <property name="FriendlyFire"			value="false" />		<!-- Can friendly players damage each other (PvP) -->
  
  <property name="DayCount"			value="3" />			<!-- only for horde mode, use 0 for unlimited -->
  <property name="FragLimit"			value="5" />			<!-- only for deathmatch, use 0 for disabled -->
  <property name="MatchLength"			value="15" />			<!-- only for deathmatch, use 0 for unlimited -->
  <property name="RebuildMap"			value="false" />		<!-- true=map is rebuild on next round, false=not -->

  <property name="ControlPanelEnabled"	 	value="false"/>			<!-- Enable/Disable the control panel -->
  <property name="ControlPanelPort"		value="8080"/>			<!-- Port of the control panel webpage -->
  <property name="ControlPanelPassword" 	value="CHANGEME"/>		<!-- Password to gain entry to the control panel -->

  <property name="TelnetEnabled"		value="true"/>			<!-- Enable/Disable the telnet -->
  <property name="TelnetPort"			value="8081"/>			<!-- Port of the telnet server -->
  <property name="TelnetPassword"		value="CHANGEME"/>		<!-- Password to gain entry to telnet interface -->

  <property name="DisableNAT"			value="true"/>			<!-- set this to true if your router doesn't support NAT -->
  <property name="AdminFileName"		value="serveradmin.xml"/>	<!-- Server admin file name -->
  
  <property name="DropOnDeath"			value="0" />			<!-- 0 = everything, 1 = toolbelt only, 2 = backpack only, 3 = delete all -->
  <property name="DropOnQuit"			value="0" />			<!-- 0 = nothing, 1 = everything, 2 = toolbelt only, 3 = backpack only -->
  
  <property name="CraftTimer"			value="1" />			<!-- 0 = None (instant), 1 = Normal, 2 = Fast (double speed) -->
  <property name="LootTimer"			value="1" />			<!-- 0 = None (instant), 1 = Normal, 2 = Fast (double speed) -->
  
  <property name="PlayerDamageGiven"		value="2" />			<!-- 0 = Very Low 50%, 1 = Low 75%, 2 = Medium 100%, 3 = High 150%, 4 = Very High 200% -->
  <property name="PlayerDamageRecieved"		value="2" />			<!-- 0 = Very Low 50%, 1 = Low 75%, 2 = Medium 100%, 3 = High 150%, 4 = Very High 200% -->
  <property name="EnemySenseMemory"		value="60" />			<!-- Time, in seconds, that a zombie will pursue something that has been sensed. -->
  <property name="EnemySpawnMode"		value="3" />			<!-- 0 = Disabled 0%, 1 = Very Low 50%, 2 = Low 75%, 3 = Medium 100%, 4 = High 125%, 5 = Very High 150% -->
  <property name="EnemyDifficulty"		value="0" />			<!-- 0 = Normal, 1 = Feral -->
	
  <property name="NightPercentage"		value="35" /> 			<!-- percentage in whole numbers -->
  <property name="BlockDurabilityModifier" 	value="100" /> 			<!-- percentage in whole numbers -->
  
  <property name="LootAbundance"		value="100" /> 			<!-- percentage in whole numbers -->
  <property name="LootRespawnDays"		value="7" />			<!-- days in whole numbers -->
  
  <property name="LandClaimSize"		value="7"/>			<!-- Size in blocks that is protected by a keystone -->
  <property name="LandClaimDeadZone" 		value="30"/>			<!-- Keystones must be this many blocks apart (unless you are friends with the other player) -->
  <property name="LandClaimExpiryTime" 		value="3"/>			<!-- The number of days a player can be offline before their claims expire and are no longer protected -->
  <property name="LandClaimDecayMode" 		value="0"/>			<!-- Controls how offline players land claims decay. All claims have full protection for the first 24hrs. 0=Linear, 1=Exponential, 2=Full protection until claim is expired. -->
  <property name="LandClaimOnlineDurabilityModifier" 	value="4"/>		<!-- How much protected claim area block hardness is increased when a player is online. 0 means infinite (no damage will ever be taken). Default is 32x -->
  <property name="LandClaimOfflineDurabilityModifier" 	value="4"/>		<!-- How much protected claim area block hardness is increased when a player is offline. 0 means infinite (no damage will ever be taken). Default is 32x -->
  <property name="AirDropFrequency"		value="24"/>			<!-- How often airdrop occur in game-hours, 0 == never -->
  
  <property name="MaxSpawnedZombies"		value="60"/>    		<!-- Making this number too large (more than about 80) may cause servers to run at poor framerates which will effect lag and play quality for clients. -->
  <property name="VACEnabled"			value="true"/>  		<!-- Enables/Disables Valve Anti Cheat -->
  
  <!--property name="SaveGameFolder"    	value="absolute path" /-->	<!-- use this to override the default save game path -->
</ServerSettings>

Thanks to Bandi42Plays for updating the config.

In this case the server map will be named My Game. You can rename it by changing the word My Game into anything you like.

After that you can start your server by running the startdedicated.bat and it should start. It will show a console screen saying: Starting 7daystodie Dedicated Server. After a short while it will tell you to press any button to continue. Don't press a button! This will shutdown the server.

Instead as soon as it tells you to press any button to continue, try joining the server with the IP: Localhost. If the file works you should be able to join.

Now you have a local server. That means you can't let your friends join. In order to do that you need to forward a port.

[edit] Port forwarding

If you are behind a router, you will need to tell your router that an incoming connection is meant for your server. This is called forwarding a port. You will need to port forward ports 25000-25003(UDP) so that others may join.

If router support UPnP - you can use this http://upnp-portmapper.sourceforge.net/

Don't know how to port forward? follow these instructions:

  1. Go to this Site
  2. Select your router brand
  3. Select your router version (if your version is not there, pick the one closest to your version.)
  4. Select Minecraft (since 7 Days to Die is a new game it hasn't been added to the list of games/programs. Minecraft is pretty much the same except that you port forward 25000 to 25003 instead of 25565)
  5. Follow the instructions on the site

If you have completed these steps correctly, your friends should now be able to join.

[edit] Finding your own IP

To find the IP which your friends need to use go to this Site. There you will find your External IP. Send it to your friends and they should be able to join.

[edit] Looking for servers

If you are looking for a server to play on, you can find one on the current top servers list for 7 Days To Die here 7daystodie-servers.com or use the server browser on your game client.

For computers on the same local network as the server you can connect to it by using its internal IP 127.0.0.1, simply enter this and the chosen port number into the two boxes at the bottom of the games server browser screen.

[edit] Renting a server

There are several companies/websites that allow you to rent a server from them. This rented server will reside in a datacenter and hosted by them.

These servers are mostly 24/7 servers. This is useful because you won't need to keep your computer running 24/7. You can rent servers to many different specifications, some may not be powerful enough to host a server. Generally, network connections at a datacenter far exceed what is available to residential ISPs, which will cut down on latency that you might experience hosting at home.

[edit] Managing a server

You can use the 7daystodie Server Manager by FrontRunnerTek (preferred, more updated). Uses either telnet or webconsole connection. Can be used locally or remotely. More info

You can use 7 Days server Manager to setup server. 7 Days Server Manager

[edit] See also

[edit] References

  1. Official site