News:

Come Chat with us live! Learn how HERE!

Main Menu

Increasing player cap for servers

Started by MechWarrior001, August 22, 2010, 03:32:26 AM

MechWarrior001

Which file(s) control the amount of players that can be connected at once? I would like to try and double it.

SlackerLinux

you seriously want to play with more the 64 people?? doubtful so im going to say

sv_maxclients is the cvar to change playercount
Slackware64 13.1
SlackersQVM/

MechWarrior001

However if it set sv_maxclients to 128 the server always reverts back to 64. This has led me to believe there is a coded limitation on the server, which I would like to modify to allow more players. Is the 64 limit determined by a value in the code or just the way the code is written?

gimhael

It is controlled by the constant MAX_CLIENTS defined in src/qcommon/q_shared.h. However, you would not only have to recompile the QVMs, but also the tremded and the client if you change this.

SlackerLinux

can i ask why would you want/need a higher playercount seriously 64 players is alot
Slackware64 13.1
SlackersQVM/

Aelita

IIRC there's protocol limitations for 64 players as well.

MechWarrior001

Suffice to say I desire to pit X players vs. 64+ AI Dretches/Bassis/Maras/Goons/Tyrants. Or I just want matches to be on a even bigger & more epic scale than they already are, if that's possible.

Crava_Loft

if you plan to use 64+ bots then you should implement NPCs. Using client slots for bots will always fill the available slots(obviously). But if you implement NPCs it will be just like buildables.
by NPCs I mean bots that has no client data, they are just entities.

David

Changing MAX_CLIENTS will break everything, would have to do major modifications to everything and rewrite bits of netcode and everywhere else that uses 64bit bit fields etc.  Probably be easier to port to a new engine...
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

SlackerLinux

#9
both david and crava raise good points you shouldnt consider changing the MAX_PLAYERS cap screws alot so its prob best to 'FIx' the botcode you want to use and change it so they are NPC and not taking up playerslots

but you know trem with only 45+ real players isnt that playable(i have had a few games that has gotten that high some even higher) and adding bot code to that will only increase the load alot the server will most likely be unplayable and the bots are not even that great
Slackware64 13.1
SlackersQVM/

MechWarrior001

Hmm, concerning performance, whats the difference between bots & npcs? Also how do you makes npcs count towards kills & creds? (Only on Human vs. CPU servers)