NS2 Server Config References
Nordic
Long term camping in Kodiak Join Date: 2012-05-13 Member: 151995Members, NS2 Playtester, NS2 Map Tester, Reinforced - Supporter, Reinforced - Silver, Reinforced - Shadow
With this thread I am asking that server operators share their expertise in best settings and practices as a reference for new server ops. The default NS2 settings are not always best. The default config file structure is not always great. Shine settings can be complicated. Share your expertise.
What settings should a new server operator use for each config file?
Is there a setting you think other server operators should try?
What is the best file structure for the config files?
Is there anything else you think should be shared?
Share config files with pastebin or directly on the forums with spoiler and code tags.
To new Server Ops, what one server does may not work for you. Anything posted in this thread should only be used as a reference sheet, not a guide.
What settings should a new server operator use for each config file?
Is there a setting you think other server operators should try?
What is the best file structure for the config files?
Is there anything else you think should be shared?
Share config files with pastebin or directly on the forums with spoiler and code tags.
To new Server Ops, what one server does may not work for you. Anything posted in this thread should only be used as a reference sheet, not a guide.
Comments
Feel free to use anything you find useful in there. Configuring NS2 servers is difficult because there are so many settings and values to tweak and they are spread out over many different files. Also the documentation is pretty poor. My config files can serve as start for anyone that wants to try running a pub NS2 server.
All hardware is different, what might work for you might not work for me, vice versa, hence needing to get some middle-ground.
Hell i had a 4v4 running on a gnu emulator for android, had server up and tweaked the rates and managed it on a galaxy note 2.
Settings splattered around the place( i'll post configs if you want)
Turn on pre-game alltalk
Enable 6 minute concede
make sure vote-kick bantime is disabled.
use your own consistency file
allow_drawviewmodel:true(i don't like this, but some people QQ)
When giving people admin, make sure you limit them so they don't get access to sh_statusip/sv_statusip, some people might abuse this system and ddos people they don't like
disable ns2feedback
disable reserved slots
disable wonitor
disable quake/killstreak sounds
disable ns2news
make sure disablevanillavotes is false
friendlyfirepregame true
Network commands:
You have
ServerAdmin(not really needed if you are using shine)
ServerConfig
ConsistencyConfig
MapCycle
ns2+ and shine.
NS2PlusServerConfig
Then you have shine configurations which have atleast 10 different .json files.
Always monitor server performance with perfmon.
Also when you are hosting a server, please don't use webmin as this can drop the idle % of the server, also don't open up the console on your desktop and leave it on the foreground, make sure it's always in the background, for some reason this drops the servers idle % which makes the server perform worse.(please note this only happens when you press tab(server console and leave it open) but it's best to keep it in the background
As many folk said, half the config is just flavor. (What maps, vote settings etc)
And the other half is related to player size and your hardware and mod mix. That cant be a mere default.
This isn't directed at you Tincan, but everyone. As someone who has set up a server before, this is exactly it. It isn't about what settings other servers ops use, but looking at what decisions they made. Sure we could talk to them, talk in the discord server channel, but that isn't the same.
At most what is posted here is a reference, not a guide. I will make the OP reflect that.
* Decide what to want for a community. (big server like 24+, small so 7vs7 or something similar. Low skill, high skill etc)
* Make sure the server can performance and modwise support the above decision.
Most servers ive seen fail supporting their concept.
Regarding the spoiler tagged "network command" explanations :
I don't know if those were your own words or if you just forwarded that from someone else.. but that is probably the most uninformed explanation of the rates I've ever seen.
You didn't even get the default sendrate right, (it's 20, not 26) and you could have checked that by utilizing the same exact steps you listed in that very sentence?? (perfmon)
Please, if you truly do not fully understand something - especially something that can be detrimental to other's experiences - do not attempt to explain it, as it just spreads misinformation.
Obligatory PSA: Don't mess with server rates unless you understand what each does, as well as their relationship to one another.
My bad, i was copy-pasting the lines from previous notes i had made and forgot to pick the right one, i never actually proof read my stuff when posting from a phone(not that stupid Ironhorse) Also if you read it carefully it's clearly meant to be "moverate" and not "sendrate" but an uninformed person would just assume it was sendrate!
Fixed it up.
To be honest you are right, people shouldn't be messing with rates unless they know what they are doing, however i implore people to go ahead and experiment in your own time but don't lessen everyone elses game-time while experimenting like our fellow UWE friends.
Only thing i'll be thanking you is for writing documentation/guides. Trying to trigger me? how is it a joke please explain. It wasn't very in depth, it wasn't supposed to be, but it's more then your shallow replies to all these 'technical' threads. People ask questions, maybe if some of you would be less critical and actually help some of these people asking for help, there would be better Quality Assurance in little community that is swindling for numbers to stay afloat.
Hell, actually you are wrong simply because the network commands in this game lead to very nasty behavior when changing anything, hitbox, sound and gameplay is all affected contrary to some misunderstanding. It's imperative that i don't go too deep into explanation because it just wouldn't make sense as they have such a negative impact, hence why i only mentioned sh_moverate.
Here's the thing: as the network parameter can affect the quality of the game in such drastically ways you shouldn't modify them ( or recommend others to change them) unless you fully understand the basics of how the "network code" of NS2 works.
Even though Shine has some safeguard checks to avoid ppl messing up totally lowering the moverate or increasing the interpolate frame time too much can increase the client predict misses where the client state gets overridden by the server state on sync. In case that happens the game feels very bad for the given player and can cause all kind of issues with sounds, animations and even with the game logic itself.
Hence please don't adjust those network parameters unless you are 99% sure about what you do. And to make sure you do please read the available guide 2-3 times and afterwards talk about your planned changes with somebody else to avoid making miss-assumptions.
Also, talking to a few server operators + 1 streamline sales exec (4) (3 of which are top 3 most played servers in NS2 who probably don't want me to name them, simply put "nah we don't want to fix anything, because if we fix it UWE will use that as a new base standard and not fix the underlying cause" there's your problem, again they won't fix the performance issues by changing rates even though they know they can because they don't want you guys to change anything.(sorry matso-kun)
Perhaps I was more harsh in my answer then I normally am. If that failed to get my meaning across then I apologise. I am not out to kick any long term server ops & I agree the community can use all the help it gets.
I've been spending quite a while now trying to get server admins to use rates correctly, adjusted or not, and start becoming quite grumpy when I see questionable information about rates in a topic which is supposed to be informative.
(And I lost interest in the lesser problems these days due to well.. time)
It is as Ghoul said. Its plenty known that changing rates can cause a lot of weird stuff, and I am not amazed that stuff like sound falls under this category of weirdness.
I am indeed reluctant to talk a lot on this forum about detailed information on rates and settings. There is a reason my guide on server maintenance is as thick as it is. Its not optional info. There are no shortcuts. You said it yourself, its many hours of testing. Folk looking into a forum post for a mere quick fix are already approaching the problem wrong.
Also on a technical point, I would strongly argue you should not lower mr but just lower playercount if the server can not take the rates. Who diminish what we got?
As for changing rates, I do believe it can be of benefit. For folk who are putting time into finding the right rates to improve the server, why not?
But id like it for them to be as much informed as possible.