Dark and Light

Dark and Light

View Stats:
Mogami76 Jul 23, 2017 @ 8:08am
Dedicated Server Setup Guide
First, I want to give thanks to many members of the community. I was able to put this together with their help and piecing together many pieces of information. So, this guild is a compilation of everyone’s efforts. Many thanks to all!!!

Caveat: This guide is geared towards those who host a separate server on their internal network and want to be able to have others connect as well as see the server from their gaming station. For simplicity, I place my server on the DMZ in my router to eliminate any firewall, port visibility, or accessibility issues. If you have your server behind a firewall/router you will need to open the following ports for TCP and UDP. 27010 through 27020 and 7770 through 7780. (People will argue the range, but I host multiple servers for multiple games and get tired of editing ports)

Steps:

Step 1: Using the Steam client on your server, download and Install Dark and Light. Once installed it should create the default directory outlined below.
C:\Program Files (x86)\Steam\steamapps\common\Dark and Light\DNL\Binaries\Win64
If you change the default install directory please use this guide as just that, a guide and not a literal step by step.

Step 2: In the directory mentioned above, create a Bat file to launch your server. You can do this by creating a new notepad document and renaming it to whatever you want. I named my file DnLServerStart.bat
This file needs to reside in same directory as your DNLServer.exe file. By default, it is located here.

C:\Program Files (x86)\Steam\steamapps\common\Dark and Light\DNL\Binaries\Win64

Step 3: Edit the bat file by right clicking on it and left clicking on Edit. You can paste the entirety of the following AS IS into this file. (The section between the Dotted Lines)

***********************************************************************************
start DNLServer.exe "DNL_ALL?Multihome=x.x.x.xPort=27015?QueryPort=27016?SessionName=Servernametypehere?MaxPlayers=100?ServerPassword=GivePassword?ServerAdminPassword=GivePassword?DifficultyOffset=1.000000?NewMaxStructuresInRange=6000.000000?GlobalVoiceChat=false?ProximityChat=false?AllowThirdPersonPlayer=true?AlwaysNotifyPlayerLeft=false?DontAlwaysNotifyPlayerJoined=false?ServerHardcore=false?ServerPVE=false?ServerCrosshair=true -nosteamclient -game -server -log
************************************************************************************

NOTE: The following will need to be changed Based on your environment or preference
Multihome=x.x.x.x (Replace x.x.x.x with your servers internal network IP address.
(Example: 192.168.1.7))

Sessionname=Servernametypehere (Replace servernametypehere with what you want your server to be called.)

MaxPlayers=100 (You can update this to accommodate the Max Players u want)
BE ADVISED you need the connection and Hardware to support larger communities

ServerPassword=GivePassword (Replace GivePassword with the Password you want required to connect to the server. If you want a PUBLIC server, remove ?ServerPassword from the bat file.)

ServerAdminPassword=GivePassword (Replace GivePassword with the Password you want Admins to login with)

DifficultyOffset=1.000000 (Here you can increase or decrease the difficulty. I find 1.0 is fine)

NewMaxStructuresInRange=6000.000000 (This is the distance structures are required to be apart. Feel free to play with this. I use the default.)

GlobalVoiceChat=false (This will prevent voice chat all over the entire continent)

ProximityChat=false (This will toggle voice chat within proximity)

AllowThirdPersonPlayer=true (This enables or disabled 3rd person view)

AlwaysNotifyPlayerLeft=false (This setting will post to the server when players sign off)

DontAlwaysNotifyPlayerJoined=false (This setting will post to the server when players Join)

ServerHardcore=false (This setting toggle hard core mode. I believe Permadeath for character)

ServerCrosshair=true (This enables or disables crosshair)

Step 4: Create a txt file and name it Steam_appid.txt and place the file in the same directory as your DNLServer.exe file. By default mine is
C:\Program Files (x86)\Steam\steamapps\common\Dark and Light\DNL\Binaries\Win64

Inside the file type 529180 then save the file. This is the numeric value in steam that represents the game Dark and Light

Step 5: This game requires things to be done in a certain order.
Start and Launch Steam (This IS required to be running on the server for the server to be visible)
Double click on the bat file you created. (The server can take a couple minutes to start)
Once it started you will see a DOS screen that resembles the following

Setting breakpad minidump AppID = 529180
[2017.07.23-14.38.31:904][ 0]LogMemory: Platform Memory Stats for WindowsServer
[2017.07.23-14.38.31:904][ 0]LogMemory: Process Physical Memory: 54.46 MB used, 54.46 MB peak
[2017.07.23-14.38.31:905][ 0]LogMemory: Process Virtual Memory: 48.54 MB used, 48.67 MB peak
[2017.07.23-14.38.31:905][ 0]LogMemory: Physical Memory: 4796.90 MB used, 73725.53 MB total
[2017.07.23-14.38.31:905][ 0]LogMemory: Virtual Memory: 301.49 MB used, 134217728.00 MB total
[2017.07.23-14.38.48:291][ 0]Primal Game Data Took 15.02 seconds
[2017.07.23-14.40.13:094][ 0]Commandline: "DNL_ALL?Multihome=x.x.x.xPort=27015?QueryPort=27016?SessionName=Servernametypehere?MaxPlayers=100?ServerPassword=GivePassword?ServerAdminPassword=GivePassword?DifficultyOffset=1.000000?NewMaxStructuresInRange=6000.000000?GlobalVoiceChat=false?ProximityChat=false?AllowThirdPersonPlayer=true?AlwaysNotifyPlayerLeft=false?DontAlwaysNotifyPlayerJoined=false?ServerHardcore=false?ServerPVE=false?ServerCrosshair=true -nosteamclient -game -server -log
[2017.07.23-14.40.13:094][ 0]Full Startup: 103.61 seconds (BP compile: 0.00 seconds)
[2017.07.23-14.40.13:095][ 0]Number of cores 8

NOTE: Your information will vary based on your settings and hardware

Step 6: Now you can launch dark and light on your gaming workstation. Click Play online, click Sacred Path, Set the Server Filter for “LAN”, and you will see your server.

Final notes: When it is time to update the server, simply shut down the server by closing the DOS window. Go into steam and initiate the update the game. Once the update is complete, click on your bat file to re-start the server.

Best Practices: Make Copies of the files you created. Steam is notorious for updating, overwriting, or sometimes corrupting files. So, backup the Steam_appid.txt file and your server’s .bat file used to launch the server. I created a folder called BackupFiles in the C:\Program Files (x86)\Steam\steamapps\common\Dark and Light\DNL\Binaries\Win64
Directory and placed them there.

I hope this helps everyone out there get their server online. I will update this guide as more information becomes available.
< >
Showing 1-13 of 13 comments
Dewron Jul 23, 2017 @ 8:47am 
Hello! I have a server and it is not published in the server list. It is all correct, but it is not visible. Would you know what the problem might be?
Mogami76 Jul 23, 2017 @ 9:14am 
If you can't see it there are 6 possible issues.

1: ****Step 4: Create a txt file and name it Steam_appid.txt and place the file in the same directory as your DNLServer.exe file. By default mine is****

You didn't create this file with this name in the directory with your DNLServer.exe file.

2: You don't have your ports open on your router/Modem.

3: Your running another server thats using the port.

4: your looking in Unofficial vs LAN. As the host we won't see the server listed in "Unofficial" we see it on the Lan. Everyone else see's the server under Unoffical.

5: You didn't set the Multi Home part in the Bat file set to the IP address of your server. Make sure you have the Servers IP address where I have Multihome=x.x.x.xPort=27015

6: You didn't start things in order. Launch and login to steam, Start your server bat file. Wait for it to complete the load, Then login on your workstation.

Try those tips and see if it locates the issue.
Offline Jul 24, 2017 @ 2:54am 
nice! thanks a lot.
Cryper Jul 24, 2017 @ 3:00am 
Some of these are WRONG!
2+3. If the Port already in use or not open it will shown be in the Console that he cant a open Port.
5. You dont need that!!
6. WTF? YOu can login with the same account from mutliple devices..
Cryper Jul 24, 2017 @ 3:04am 
This Guide is crap.
Please look at this better one:
http://steamcommunity.com/sharedfiles/filedetails/?id=1086708714
Reo Reo Jul 24, 2017 @ 7:19am 
you can also change some of this:

\DNL\Saved\Config\WindowsServer\GameUserSettings.ini

[ServerSettings]
NightTimeSpeedScale=2.000000
StructureDamageMultiplier=0.6
PlayerResistanceMultiplier=0.5
StructureResistanceMultiplier=0.7
HarvestAmountMultiplier=10.000000
PlayerCharacterWaterDrainMultiplier=0.35
PlayerCharacterFoodDrainMultiplier=0.35
HarvestHealthMultiplier=0.800000
ResourcesRespawnPeriodMultiplier=0.25
GlobalVoiceChat=False
ProximityChat=False
AllowThirdPersonPlayer=True
AlwaysNotifyPlayerLeft=True
DontAlwaysNotifyPlayerJoined=True
ServerHardcore=False
ServerPVE=False
ServerForceNoHUD=False
ShowMapPlayerLocation=True
EnablePvPGamma=True
DisableStructureDecayPvE=True
ActiveMods=
ActiveMapMod=0
ServerPassword=ALLCAPSPASSWORD
ServerAdminPassword=ALLCAPSPASSWORD
XPMultiplier=10.000000
RCONPort=8888
KickIdlePlayersPeriod=4800.000000
PerPlatformMaxStructuresMultiplier=1.000000
AutoSavePeriodMinutes=15.000000
RCONServerGameLogBuffer=600.000000
PlayerDamageMultiplier=3.000000
Don Pedro Jul 24, 2017 @ 7:32am 
Hello, do i understand it right that i have to be logged in into steam on my root server just to keep the dnl server run properly on it? So you are kind of supposed to make a new steam account and buy dnl there again just so you can stay logged in on your root server constantly? Or can you logout after your dnl server is running?

Thanks for your help.
DangerousDD Jul 24, 2017 @ 8:17am 
My full startup is 1000+ seconds. Rip
Sutorx Jul 24, 2017 @ 10:51am 
Wont let me change to port, any thoughts?
melwalters87 Aug 3, 2017 @ 2:27pm 
So quick question, I have created/set up a server, and as of right now, these are only LAN right? The DNL Dedicated Server Tool (whenever it comes out), will that allow us to create servers that aren't LAN? So others can join? Just asking because my husband and I play on the server, and one of his friends was looking for it in server list. But since it's LAN, he wouldn't be able to join (let alone find it)? Thank you for any help! :)
MugHug Aug 3, 2017 @ 2:39pm 
Hardware wise how demanding is the dedicated server?

Thinking of using a mid-range gaming laptop connected to my LAN, i5-5200U, GTX 940, 7200rpn HD and 8GB RAM. No option or will to upgrade hardware. :)

Assuming it will run it from a command line interface only or similar.
Mogami76 Aug 3, 2017 @ 5:59pm 
Melwalters87 - This will allow otrhers to see your server. It will be public. However I am also looking forward to the official tool.

Mughug - That kind of hardware, the ram will be your limiting factor. Also take into account what kind of drives you have in it. Are they SSD, SSHD, or plain platter disks. Then your internet connection will come into play also. 8gb with a decent disk and good connection you can probably do 12-16 players. Things will slow down after that.
MasterKiefChief Jul 4, 2021 @ 9:54am 
Is there no better wayt o explain this gibberish, just want a simple to the point way on how to get a sever runing all these tuts suck really. And offer no realy help / solution when problems arise with said way of getting a server up and running
< >
Showing 1-13 of 13 comments
Per page: 1530 50

Date Posted: Jul 23, 2017 @ 8:08am
Posts: 13