IN DEVELOPMENT: ns2server management script
dgibbs
Join Date: 2013-08-31 Member: 187443Members
Hello all,
Its great news to see Natural Selection 2 server is now on Linux.
I have now started writing the ns2server management script.
I have already written around 9 server management scripts already for various games which can be found here and am actively developing and improving all of them as needed.
http://danielgibbs.co.uk/scripts
I will be attempting to get the server working on Ubuntu, Debian and CentOS. However I am having many dependency issues.
Ubuntu seems to be the easiest currently so I will get it working there first.
I cannot get the server to start however. This is what I currently get.
Any ideas would be very helpful. Once I have completed this it should be easy to install and manage a Natural Selection 2 server.
Its great news to see Natural Selection 2 server is now on Linux.
I have now started writing the ns2server management script.
I have already written around 9 server management scripts already for various games which can be found here and am actively developing and improving all of them as needed.
http://danielgibbs.co.uk/scripts
I will be attempting to get the server working on Ubuntu, Debian and CentOS. However I am having many dependency issues.
Ubuntu seems to be the easiest currently so I will get it working there first.
I cannot get the server to start however. This is what I currently get.
GetInstanceCount currently unimplemented Press Tab to open the console window Press Ctrl-C to exit Build 254 Ubuntu 13.04 x86_64 [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. Setting breakpad minidump AppID = 4920 Connected to Steam servers VAC Enabled Loading config://ServerConfig.json Loading config://ServerAdmin.json Loading config://BannedPlayers.json Loading config://MapCycle.json Loading config://ConsistencyConfig.json Loading 'maps/ns2_tram.level' Cooked mesh with 43763 faces, 32802 vertices Cooked mesh with 47776 faces, 35558 vertices Cooked mesh with 14840 faces, 10062 vertices Cooked mesh with 857 faces, 793 vertices WARNING: Corrected case of '/home/ns2server/ns2/ns2/models/props/refinery/refinery_pipemods_03_clusterB_04.model' WARNING: Corrected case of '/home/ns2server/ns2/ns2/models/props/refinery/refinery_pipemods_03_clusterB_03.model' Cooked mesh with 4 faces, 4 vertices Error: Couldn't open file 'models/effects/halo_rounded_blue.model' Building pathing mesh for level maps/ns2_tram.level Error: Could not open maps/ns2_tram.level-server.tile_cache_grid for write Finished loading 'maps/ns2_tram.level' Killed
Any ideas would be very helpful. Once I have completed this it should be easy to install and manage a Natural Selection 2 server.
Comments
If you are still having trouble getting the dedicated server running there is a guide up here
I will create a fresh Ubuntu VM and test again and hopefully this time I can get it working. I estimate the major updates to the scripts will be done by the end of the week then NS2 script will be my next priority as I wouldn't mind having my own NS2 server. Can anyone confirm if they have got the server working on CentOS?
I created the guide, what error did you get?
your guide shows how to set up on ubuntu. does it also work on centos?
NS2 server should work any linux distribution, as long you have the appropinate libraries. That means, if you run a distribution that uses ancient libraries, you probably end up compiling them yourself or getting them from another distro and setting them up to run for the server specifically.
Unless you are on a system that is 64 bit and doesn't support multiarch, then nope.
The more important question is does NS2 server really need any of the features glibc 2.15 to run? if not having the server recompiled to use 2.12 would allow CentOS users to install the server.
Many server providers user CentOS because of its stability and long support cycle matching that of RHEL which is extremely important to dedicated servers. Ubuntu is updated frequently which sometimes is not a good thing for servers.
I actually mean, that you should be able to get it work; just don't install the libs system wide and use LD_LIBRARY_PATH when starting the server.
Anyone got any ideas on this? I cannot release any script without testing this first myself.
Thanks
I have also tried
./server_linux32 -name "Test" -webadmin -webdomain 127.0.0.1 -webuser admin -webpassword test123 -webport 8080 -map ns2_biodome -ip 127.0.0.1 -port 27015 -limit 16
however if there is an issue with the parms the server complains about them.
http://danielgibbs.co.uk/scripts/ns2server/
Enjoy! :-)