Natural Selection Hlds Setup Guide

VadakillVadakill The Almighty BSO Join Date: 2002-04-02 Member: 373Members, NS1 Playtester
<div class="IPBDescription">Looking for feedback...</div> Hey guys, I'm mainly a Linux admin and would like some feedback on a new guide I wrote up. Those of you who mainly run Win32 servers no doubt have shortcuts or other tips that you have found over the years. If you would please take a quick look at the guide and give me feedback on what looks wrong or there is a better way of doing something please let me know.

<a href='http://www.vadakill.com/nsguides/ns30-steam-win.shtml' target='_blank'>http://www.vadakill.com/nsguides/ns30-steam-win.shtml</a>

Thanks guys!

Comments

  • eagleceaglec Join Date: 2002-11-25 Member: 9948Members, Constellation
    I would suggest making a shortcut to hlds.exe with the parameters

    <b>-game nsp -maxplayers 16 +map co_core -console +ip 222.111.222.111 +port 27015 +exec server.cfg +exec banned.cfg +exec listip.cfg +rcon_password "rconpassword"</b>

    also using <b>-insecure </b>if you want to run cheating death or dont want to run VAC.

    This way you can double click on the icon to start the game with the same settings each time, you can also use Firedaemon to auto restart your server in the event of a crash.
  • DepotDepot The ModFather Join Date: 2002-11-09 Member: 7956Members
    You mentioned extracting the base server file to C:\HLServer which is good. I feel it's worth mentioning to NOT use the Dedicated Server that's in the Games Menu of the Steam GUI as I'm sure teh noobs will take that route thinking it's easier.

    As to the target line, eaglec's is a bit long, and a lot of the stuff in his I have either in my server.cfg or autoexec.cfg. My target line is
    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->"C:\Program Files\ServerDoc\serverdoc.exe" C:\HLServer1\hlds.exe -console +mapchangecfgfile "server.cfg" -game nsp +port 27014 +maxplayers 10 +map co_angst<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->If you fail to add the "+mapchangecfgfile "server.cfg"" it simply won't fire up. Also, I recommend using HLDS 4111d, fyi.
  • eagleceaglec Join Date: 2002-11-25 Member: 9948Members, Constellation
    edited February 2004
    actually I use an alternate mapchangefile and using exec may be old hat but it works, I haven't tried using mapchangefile instead but that is set in my server.cfg...

    The advantage is that I can set a password or a timelimit and it wont be reset on map change, same for tourney mode.

    if you run banned and iplist every map change you'll stuff you logs for physcostats and end up <i>looking like</i> a hackers paradise, hence why I only run them on start.

    +ip is required for some mods to work properly and always better than letting the server think its 127.0.0.1

    rcon password should not be set in server.cfg in case another dl vunrability rears it's head, its much safer in the start line.

    <span style='color:red'>//edit start ignoring here///</span>
    <span style='color:gray'>Also you dont set -console, in windows this means you end up with a horrible gui interface and non of the other command lines you entered will make a damn bit of difference. <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html//emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif' /><!--endemo--> </span> <span style='color:red'>//red the next bit</span>
    "You do set -console but I am too stupid to read properly. -console is a damn good idea because otherwise you get a bloody anoying gui."
    <span style='color:red'>/// end edit</span>

    Finally you set port 27014, rightly so Vadakill says that port should not be changed. Not until you know what your doing and wont be reading a guide like this anyway <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
  • VadakillVadakill The Almighty BSO Join Date: 2002-04-02 Member: 373Members, NS1 Playtester
    It seems when I try to run the hlds.exe file in a batch file with server commands it still pops open the gui window. Is there a "-nogui" command or something?
  • DepotDepot The ModFather Join Date: 2002-11-09 Member: 7956Members
    <!--QuoteBegin-Vadakill+Feb 5 2004, 02:36 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Vadakill @ Feb 5 2004, 02:36 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> It seems when I try to run the hlds.exe file in a batch file with server commands it still pops open the gui window. Is there a "-nogui" command or something? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Also you dont set -console, in windows this means you end up with a horrible gui interface and non of the other command lines you entered will make a damn bit of difference.  <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->I'll kill 2 birds with one stone here... the "-console" in my target line prevents the GUI from popping up, AND has absolutely no negative consequences. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
  • eagleceaglec Join Date: 2002-11-25 Member: 9948Members, Constellation
    edited February 2004
    did you just add that? No I guess I just missed it.

    damn.

    <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
  • VadakillVadakill The Almighty BSO Join Date: 2002-04-02 Member: 373Members, NS1 Playtester
    That's what I was looking for, thanks! In Linux there isn't anything _but_ a console so I've never had to deal with that issue before <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
  • H_U_M_PH_U_M_P Join Date: 2002-11-05 Member: 7013Members
    <!--QuoteBegin-Vadakill+Feb 5 2004, 01:36 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Vadakill @ Feb 5 2004, 01:36 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> It seems when I try to run the hlds.exe file in a batch file with server commands it still pops open the gui window. Is there a "-nogui" command or something? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    -console


    C:\NSServerSTEAM\hlds.exe -game nsp -console +exec startme.cfg

    <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
  • VadakillVadakill The Almighty BSO Join Date: 2002-04-02 Member: 373Members, NS1 Playtester
    Okay, I updated the guide with the suggestions here. I intend to make an "Advanced" guide which will cover creating an Autoexec.cfg file and cover what a lot of the variables actually do. For right now, this will get people started.

    Any other comments?
  • radarradar Join Date: 2004-02-08 Member: 26227Members, Constellation
    to get people started i would find it very helpful. Looks good.
  • CaseKCaseK Join Date: 2003-02-09 Member: 13338Members
    edited February 2004
    Vadakill - Just wanted to drop you a quick note to say, Thanks. I think your directions were clear - and even though I have been hosting a NS server for some time, I have had some major issues trying to get it running over the past month or so....To include not running the server from HLDS.

    That said, I was on hiatus for a couple months before the Steam transfer and I wonder if you (or anyone for that matter) can offer me a bit of help.

    In short, I am running my server off the Steam Interface. I can get the server up and people seem to come in. However, my Adminmod and Metamod are not operational. I am currently running the latest versions of both (to include Metamod 1.17.0a).

    The console shows that Adminmod.cfg is executing, but in HLSW it shows no add-ons or anti-cheat (I run CD). I cannot run commands when I enter the game, but the admin icon shows up.

    I have tried altering the server.cfg and even tried to revert back to the last version of NS, to no avail. I did have Adminmod and Metamod working with NS 3.0 beta 2.

    Any thoughts, or should I field this in a separate post?

    also, its a Windows server.
  • VadakillVadakill The Almighty BSO Join Date: 2002-04-02 Member: 373Members, NS1 Playtester
    If you run the command "meta version" it should tell you what metamod version is loaded, try running "meta list" to see if it loaded adminmod. If neither one of those works you may want to double check to make sure that metamod is loading. you can find this info in the liblist.gam file found in the NSP directory. It should look something like this:

    <!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
    //gamedll "dlls\ns.dll"
    //gamedll_linux "dlls/ns_i386.so"
    gamedll "addons\metamod\dlls\metamod.dll"
    <!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Sign In or Register to comment.