7 Days to Die

7 Days to Die

Vis statistikk:
-=IF=- QBallDuke 16. des. 2013 kl. 11.33
How to set up a dedicated Server guide
  • create a .bat file lets call it startserver.bat

    (in your game folder where the 7DaysToDie.exe is located) . if you got the game over steam its "C:\Program Files (x86)\Steam\SteamApps\common\7 Days To Die"

    startserver.bat
    @echo off cls echo starting sevendaystodie Dedicated Server start 7DaysToDie.exe -batchmode -nographics -configfile=serverconfig.xml -dedicated Pause
    the parameter -dedicated needs to be the last of all parameters


  • edit the serverconfig.xml

    serverconfig.xml

    <?xml version="1.0"?> <ServerSettings> <property name="ServerIP" value="yourexternalip_not_127.0.0.1"/> <property name="ServerPort" value="25000"/> <property name="ServerIsPublic" value="true"/> <property name="ServerName" value="InternationalFreaks"/> <property name="ServerPassword" value="*****"/> <property name="ServerMaxPlayerCount" value="64"/> <property name="GameWorld" value="Navezgane"/> <property name="GameName" value="t3"/> <property name="GameDifficulty" value="2"/> <property name="GameMode" value="GameModeSurvival"/> <property name="EnemySpawning" value="true"/> <property name="ShowAllPlayersOnMap" value="false"/> <property name="FriendlyFire" value="true"/> <property name="BuildCreate" value="false"/> <property name="DayNightLength" value="20"/> <property name="DayCount" value="0"/> <property name="FragLimit" value="0"/> <property name="MatchLength" value="0"/> <property name="RebuildMap" value="false"/> <property name="ControlPanelEnabled" value="true"/> <property name="ControlPanelPort" value="8080"/> <property name="ControlPanelPassword" value="******"/> <property name="TelnetEnabled" value="false"/> <property name="TelnetPort" value="25003"/> <property name="DisableNAT" value="false"/> </ServerSettings>


    ServerIP use your external you can find hit on a webside like this http://www.whatismyip.com/




  • Port forwarding
    TCP/UDP 26900
    UDP 26901-26902
    TCP 8080-8082

    and 8080 for the web panel

    for normal routers INBOUND and OUTBOUND are the same.



  • Start the server

    1.make sure by opening the task manager that no other instance of the server is still running.
    2.double check you saved the changes to the configs.
    3.start the startserver.bat file

If its not working (you cant connect or whatever...)
  • 1.after you started the startserver.bat you need to get the press any key to continue button or somthing went wrong.
  • 2.remember the External IP is not the same as your internal ip http://www.whatismyip.com/
  • 3.make sure no instance of the server is running in the task manager before you start a new
  • 4.try to open yourweb panel in your browser http://ServerIPAdress:8080/ (change ServerIPAdress to your server ip adress) if this is not working somthing with your port forwarding went wrong
  • 5 try to change this value
    <property name="DisableNAT" value="false"/>
    to true
  • 6 the server needs some time to start up wait at least 1 minute before you try to connect

  • 7 make sure you use a proper text editor like notepad ++ so you dont srew up the formatation of the .xml file.

  • 8 How can my friends join my game? give them your external ip adress if you are hosting the game on your pc (internal_IP --> router --> external_IP) find it here http://www.whatismyip.com/ or you join the server, and if its running on your PC you can connect by 127.0.0.1 to it. after that they follow you over the join game button in steam friend list.

  • 9 if your ip starts with 192.168 you can be sure its a internal and no external

  • 10 if you cant run the game after you started the server copy the folder "C:\Program Files (x86)\Steam\SteamApps\common\7 Days To Die" to a differed location and start the server from that location and the game normal.

  • 11 How do i join my own server? Just try to connect to 127.0.0.1 or localhost


  • 12 Do i need a second copy. The awnser is no . Just copy(doublicate not cut)the folder "C:\Program Files (x86)\Steam\SteamApps\common\7 Days To Die" to your desktop or where ever you like and run you server from that location that should do the trick.

  • 13 0.000 EXC: FormatException: An invalid IP address was specified
    You dident change the ip adress in the config file to your ip adress. do so.


  • 14 Only blank spash screen when trying to join via local or external ip. Try to connect via server browser.

  • 15 cant connect to your own game. Try to connect via "localhost" or "127.0.0.1" instead of the server browser.

  • 16 How can i wipe the world/restart the level . Just change the game name in the config file
    <property name="GameName" value="whatevernameyouwant"/> <!-- Whatever you want the game name to be -->
    to a differend name you want :D


So i have to say thanks to all the people posting stuff i keep this up to date so noone has to search to long for a answer
Sist redigert av -=IF=- QBallDuke; 31. aug. 2016 kl. 13.15
< >
Viser 166180 av 342 kommentarer
MarcMasterM 18. mars 2014 kl. 14.04 
everytime i trie its the same its creating a new entity for me and i cant join
where did i failed ??
Lt._Keller 19. mars 2014 kl. 14.37 
Hi @ all

English:
i creat a server and any time i get an Error if i or my friends try to conect the server -
ERR: A client which was not in the connected player list disconnected. ???

So now i found whats the reason of this error is.
I have a Firewall in my Router (easy box) if i stop the firewall in my router my frinds and i can connect normaly.

German:
Ich hab einen Server erstellt gehbat und jedes mal bekamen meine Freunde und ich einen fehler. Am Server wurde er folgender masen angezeigt:
ERR: A client which was not in the connected player list disconnected. ???

Ich hab nun rausgefunden warum der Fehler kam.
Ich hab meine Firewall am Router ausgeschalten (Easy Box) anschließend konnten meine freunde und ich ganz normal auf den Server.
MarcMasterM 19. mars 2014 kl. 17.02 
hab ich auch so gelöst aber der server ist ja fertig nur will der mich nicht drauf lassen
funzt einfach nicht nur der ladeschirm ist da
BAMA 20. mars 2014 kl. 20.33 
Opprinnelig skrevet av MarcMasterM:
I just can read waiting for server
i did everything and doublechecked everything but i cant join
here is my console output:

0.000 LOG: StartAsServer
0.000 LOG: createWorld: Dat World, Dat Game, GameModeSurvival
0.000 LOG: SelectionBoxManager.Instance: SelectionBoxes (SelectionBoxManager)
0.000 LOG: Loading of #0 chunks took 11ms
0.000 LOG: createWorld() done
0.000 LOG: Awake done (1792ms)
0.000 LOG: Loaded debug IF type=DebugInterfaceTesters
63.068 ERR: A client which was not in the connected player list disconnected. ???
65.967 LOG: PlayerLogin: 455101286000/AllocatedID: 0/MarcMasterM/FAAAACU/PkBDt5LIZpPKBwEAEAENsShTGAAAAAEAAAACAAAAtZ0YJQAAAACgqrECGwAAALIAAAAyAAAABAAAAGaTygcBABABstYDALWdGCUcsqjAAAAAAKpyKFMqIkRTAQAVeAAAAAAAAK3LGdgAWcZM1/2O0gIIkR+mpXSLT9iAvciRzdl+oTvsBfiuI4Iq/t0Inz0qX5tevPjshlZeKefEgSrCWNZaMxjFKrSZj0rxF97AFupc8hQJwraL89oLOflkgsQsJiqDdh8Hl5ssZE/2UCqEuId2d769KNRwwgY48n/CmSpHZfK3aWrTbBjxq2G03o3SVJZG6WZRUQHg8IMtv8VQmVXLn+MsjcS8a/kbNce80LscW1ZLeVO8HpyEtayzB/Hlaoo+kWrfvlx5uCkI3LuF81kdjpZwbMIdQxd94u3IZBpe0BqJNugDCTChyVqP3CjqLD4q93Z93s5FBhxpHRV5OaV0GqdSLNh5kF+Pxh7qVOhejKSzJPrVLpmbQimH47sjO5vZNWYwuOceOmf4ViVBB06h34IuIKcwXb6boE0ccPaB3VJsuxQUNWf0otKJL1F1q09YejC6Amxdc6BrTsLx1vKdA7K/i4db9vAZuOlqgvcdWfLM0fTRcrmd9Q/b/ka9830+wsD5yYf1qCH4ITYXBuz0HZEFfnS4U7BetD/pdDvgeMaJmrngfSjJwNQm1rf6pSD9b6Cqfja6enlnUn7D+Bn2PFcSVHekjO4qdOSV8LF1FetjPo9lePpJiRzRK0yUT+PplKdnXhf9IIQ2Jqxmzgmg68bm6lBeA0aCRLOTB2b6/bLq1S8hXAGRYLJjeCls9g4C+BGXORi8t2dcwqcPw3gUvREsIoH1xObQEBZ2/NpJPUStg51h8UoEcqerONIyA/S8jH92vVRZBurx+XGkwI6rcSdgDDh4gu2anbRMEEx3A628493JfLxhL+Pim45O+c8NuqdWGHzJQMQyKk0FHEmvRlrHDyvCTbWZ1DN9ojsJ7Hh9tLatQiiqoK8Vg+s4YPM8Zm7VGQK0sSKToq+SWjEjtQtr8AVg4WQnTjpsxGzNWVnG1lWsn5sqr2AytshrO9aAWJQLoihUCK9RVBhm0mY3Rlo+4vZ0INRW8Yf8gWQDpiX/CBCKIfjx9eYPJ9lYCkD1H2ZG5aKCsNn+gYB68RAWzWqVQKioCIKC1kzwCSJhcHB0aWNrZXRzIgoJewoJCSI3IgkJImltZQBhdQFTCAAxOAAHU3RlYW1JRAC/69UFAQAQAQdnYW1laWQArF8DAAAAAAACcGxheVRpbWUAgPULUwgAMTkAB1N0ZWFtSUQAArJxBwEAEAEHZ2FtZWlkAKxfAwAAAAAAAg==/Alpha 7.6/8
65.967 LOG: Authenticating player: marcmasterm SteamId: 76561198090982246 TicketLen: 1024 Result: OK
65.967 LOG: Started thread_CommReader (thread_CommReader: ConnectionToClient=1, channel=1)
65.967 LOG: Started thread_CommWriter (thread_CommWriter: ConnectionToClient=1, channel=1)
65.967 LOG: Started thread_CommReader (thread_CommReader: ConnectionToClient=1, channel=2)
65.967 LOG: Started thread_CommWriter (thread_CommWriter: ConnectionToClient=1, channel=2)
65.967 LOG: Allowing player with id 1
70.354 LOG: RequestToEnterGame: 1/marcmasterm
70.702 LOG: RequestToSpawnPlayer: 173, 1, marcmasterm, 15
70.702 LOG: Created player with id=173
70.702 LOG: Adding observed entity: 173, (0.0, 0.0, 0.0), 15
115.154 LOG: OnPlayerDisconnected 1
115.154 LOG: Removing player with id clientId=1, entityId=173
115.154 LOG: Removing observed entity: 173
115.154 LOG: Exited thread_CommWriter(thread_CommWriter: ConnectionToClient=1, channel=2)
115.154 LOG: Exited thread_CommWriter(thread_CommWriter: ConnectionToClient=1, channel=1)
115.154 LOG: No objects for the given player ID were deleted 1
115.171 LOG: Exited thread_CommReader(thread_CommReader: ConnectionToClient=1, channel=1)
115

Had the same problem...something to do with not having "C" runtime loaded on your PC. I downloaded the latest from MS and it fixed it for me..
i create a server ang can play on it, but when my friend connects to the server he get insta-kick, or connection fail.
demorph 21. mars 2014 kl. 13.36 
Same as Naitmar, though it worked in 7.5...
CotaBucky 21. mars 2014 kl. 14.12 
I will try again with alpha 7.7 .I can run one no problem(alpha 7.6) but some friends have trouble joining and have to keep trying.Eventually they can join
Earthling Z3R0 24. mars 2014 kl. 11.29 
Interesting Thread. However I need a guide to set up a dedicated server on MAC OS X. Anyone? Your help is much appreciated!
Salabak 24. mars 2014 kl. 12.06 
Thanks!
MrBloodworth 24. mars 2014 kl. 12.17 
Just an FYI. To host a game, all you need to do is route the ports, and start a game. Then your friends can join through steam.

You do not HAVE to run a Dedicated server to play with friends, OR use a VPN like Hamatchi.
Earthling Z3R0 24. mars 2014 kl. 13.39 
@MrBloodworth, I know man, I know. However I want to run a permanent (24/7) server on the Mac that is fitted in the basement for other people (friends) to play on while I join them from my PC in my room.

I guess I will run a virtualized Windows on the Mac which I can run the Windows 7D2D dedicated server in. Performance shouldn't be an issue. I will find out...
ArkalyeDR 26. mars 2014 kl. 5.42 
trying to get a server going for me and my friends but the game is not using the Config file. it is still using the default even though i changed it.
CotaBucky 26. mars 2014 kl. 5.44 
Opprinnelig skrevet av DarkDagas:
trying to get a server going for me and my friends but the game is not using the Config file. it is still using the default even though i changed it.
Every time an update comes out you usually have to re-edit everything in the serverconfig.xml file. Any chance thats why?
Sist redigert av CotaBucky; 26. mars 2014 kl. 5.49
ArkalyeDR 26. mars 2014 kl. 6.51 
no was attempting to start a sever last night
CotaBucky 26. mars 2014 kl. 11.47 
I have been running one for a long time. I will try to help if i'm on later or send me private message or whatever
< >
Viser 166180 av 342 kommentarer
Per side: 1530 50

Dato lagt ut: 16. des. 2013 kl. 11.33
Innlegg: 342