Natural Selection Hlds Setup Guide

VadakillVadakill The Almighty BSOMembers, NS1 Playtester Join Date: 2002-04-02 Member: 373Posts: 874
Looking for feedback...
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.

http://www.vadakill.com/nsguides/ns30-steam-win.shtml

Thanks guys!
[NAPT]Vadakill

NS Win32/Linux Server setup guides:
http://www.vadakill.com/nsguides

Comments

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

    -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"

    also using -insecure 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.
    EagleC
  • DepotDepot The ModFather Members Join Date: 2002-11-09 Member: 7956Posts: 6,411 Fully active user
    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
    QUOTE
    "C:\Program Files\ServerDoc\serverdoc.exe" C:\HLServer1\hlds.exe -console +mapchangecfgfile "server.cfg" -game nsp +port 27014 +maxplayers 10 +map co_angst
    If you fail to add the "+mapchangecfgfile "server.cfg"" it simply won't fire up. Also, I recommend using HLDS 4111d, fyi.
    image
    modNS Forums - NS1 and NS2: We Wrote The Book On NS Moddingimage
  • eagleceaglec Members, Constellation Join Date: 2002-11-25 Member: 9948Posts: 1,410
    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 looking like 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.

    //edit start ignoring here///
    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. wink.gif //red the next bit
    "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."
    /// end edit

    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 smile.gif
    Post edited by Unknown User on
    EagleC
  • VadakillVadakill The Almighty BSO Members, NS1 Playtester Join Date: 2002-04-02 Member: 373Posts: 874
    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?

    [NAPT]Vadakill

    NS Win32/Linux Server setup guides:
    http://www.vadakill.com/nsguides
  • DepotDepot The ModFather Members Join Date: 2002-11-09 Member: 7956Posts: 6,411 Fully active user
    QUOTE (Vadakill @ Feb 5 2004, 02:36 PM)
    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?

    QUOTE
    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. 
    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. tounge.gif
    image
    modNS Forums - NS1 and NS2: We Wrote The Book On NS Moddingimage
  • eagleceaglec Members, Constellation Join Date: 2002-11-25 Member: 9948Posts: 1,410
    edited February 2004
    did you just add that? No I guess I just missed it.

    damn.

    tounge.gif
    EagleC
  • VadakillVadakill The Almighty BSO Members, NS1 Playtester Join Date: 2002-04-02 Member: 373Posts: 874
    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 tounge.gif
    [NAPT]Vadakill

    NS Win32/Linux Server setup guides:
    http://www.vadakill.com/nsguides
  • H_U_M_PH_U_M_P Members Join Date: 2002-11-05 Member: 7013Posts: 84
    QUOTE (Vadakill @ Feb 5 2004, 01:36 PM)
    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?

    -console


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

    tounge.gif
  • VadakillVadakill The Almighty BSO Members, NS1 Playtester Join Date: 2002-04-02 Member: 373Posts: 874
    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?
    [NAPT]Vadakill

    NS Win32/Linux Server setup guides:
    http://www.vadakill.com/nsguides
  • radarradar Members, Constellation Join Date: 2004-02-08 Member: 26227Posts: 11
    to get people started i would find it very helpful. Looks good.
  • CaseKCaseK Members Join Date: 2003-02-09 Member: 13338Posts: 35
    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 Members, NS1 Playtester Join Date: 2002-04-02 Member: 373Posts: 874
    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:

    CODE

    //gamedll "dlls\ns.dll"
    //gamedll_linux "dlls/ns_i386.so"
    gamedll "addons\metamod\dlls\metamod.dll"
    [NAPT]Vadakill

    NS Win32/Linux Server setup guides:
    http://www.vadakill.com/nsguides
Sign In or Register to comment.