DAK whitelisting configuration
SnX
Join Date: 2013-01-17 Member: 180145Members, Reinforced - Gold
Hi guys,
I am new to NS2 server installation and configuration thingys and would like to ask if someone could give me some help with configuring DAK on my server without losing whitelisting. I read the readme file about changing server.lua but it is not very clear to me since I basically got no experience on maintaining/configureing an NS2 server.
Please give a shout if you can/want to help me. Remote access is available.
Thanks in advance!
I am new to NS2 server installation and configuration thingys and would like to ask if someone could give me some help with configuring DAK on my server without losing whitelisting. I read the readme file about changing server.lua but it is not very clear to me since I basically got no experience on maintaining/configureing an NS2 server.
Please give a shout if you can/want to help me. Remote access is available.
Thanks in advance!
Comments
You don't need to add it to the command line. Just install the mod over FTP or whatever else they give you in the mods directory, open the web admin, and it should list the mod in the first page with a checkbox to enable it.
Well I actually downloaded DAK already via SteamWorkshop (via WebAdmin) so it is already installed and the ModID is added automatically to the command line and MapCycle.json. I can easily change MapCycle.json but how to I edit the command line by removing the ModID so it will get whitelisted again? Refering to the note below:
<b>*NOTE* - If you decide to load this from Server.lua to bypass mod filter, you will not want to add the ModID to the command line or MapCycle.json. You can download the files from SteamWorkshop by subscribing to the mod and launching your game. It will then create a folder in %appdata%\natural selection 2\workshop called m5f4f178_##################. You can also download the files from GitHub.
Once downloaded, you would want to merge them with your ns2/lua folder (there will not be any files overriden). From there, you will want to edit Server.lua and add the line Script.Load("lua/DAKLoader_Server.lua")
between the Script.Load statement for ServerConfig and Script.Load for Shared.lua - Between lines 13 and 24 currently. Line 17 should be blank and is a good place.</b>
If it automatically modified the command line, just uninstall it, then reinstall it manually via ftp.
If you rent a server, chances are they don't give you access to the command line, but you can usually contact your provider and get them to modify it for you, as long is it doesn't affect your price plan (like adding player slots).
For a whitelisted server you have to manually add the DAK files to your server's "lua" folder and add this one line of code into your Server.lua file: Script.Load("lua/DAKLoader_Server.lua")
Edit: the line of code has to be between the Script.Load statement for ServerConfig and Script.Load for Shared.lua - Between lines 13 and 24 currently. Line 17 should be blank and is a good place. [taken from DAK readme file]
Download the latest version of the DAK files from here: <a href="https://github.com/xToken/DAK" target="_blank">https://github.com/xToken/DAK</a> (click on the ZIP button near the top of the page then unzip the file), load everything from the "lua" folder into the same folder on your server.
Also, when you install mods via workshop your command line is not edited to include that mod, this is only possible if someone with access to the command line (your server provider) manually adds the relevant code to the command line, so you shouldn't have to worry about uninstalling anything, just make sure all mods are disabled i.e. deleted from MapCycle.json.
The company that provides the server didn't have any luck either. I think i'm going to try installing a local server and see if I can make it work there. Sometimes the provider's sandbox can cause problems.
Unwhitelisted all mods.
Unwhitelisted NS2Stats. We felt we needed to do this because script errors were preventing people from playing NS2. Hopefully we'll have a better fix for this post 1.0.
Well, I'd love to hear from others who have this working.
Just be sure to uninstall DAK admin (or not install it at all) via workshop (NS2 Webadmin). Most important thing is that the DAK modID is not the command line or MapCycle.json. Just follow the readme file :)
*NOTE* - If you decide to load this from Server.lua to bypass mod filter, you will not want to add the ModID to the command line or MapCycle.json. You can download the files from SteamWorkshop by subscribing to the mod and launching your game. It will then create a folder in %appdata%\natural selection 2\workshop called m5f4f178_##################. You can also download the files from GitHub.
Once downloaded, you would want to merge them with your ns2/lua folder (there will not be any files overriden). From there, you will want to edit Server.lua and add the line Script.Load("lua/DAKLoader_Server.lua")
between the Script.Load statement for ServerConfig and Script.Load for Shared.lua - Between lines 13 and 24 currently. Line 17 should be blank and is a good place.