Raised This Month: $51 Target: $400
 12% 

[TF2] Increase server player cap beyond 32?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blinx
Senior Member
Join Date: Oct 2013
Old 05-15-2016 , 03:34   [TF2] Increase server player cap beyond 32?
Reply With Quote #1

Assuming you have a powerful enough server to support high player caps and you're diligent about the 2047 dynamic entity cap, is there any workaround to extend beyond this?
Blinx is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-15-2016 , 07:02   Re: [TF2] Increase server player cap beyond 32?
Reply With Quote #2

Nope, best you can do is 33 (enable srctv/replay, kick the bot), then you start overwriting memory due to fixed-size arrays.
__________________
asherkin is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 05-15-2016 , 07:31   Re: [TF2] Increase server player cap beyond 32?
Reply With Quote #3

The simple answer: No. MAX_PLAYERS is hardcoded to 33 by default. Clients cannot support more than 33 standard players, and no amount of server mods can change that limitation client-side.

The balls-to-the-wall hypothetical answer: Maybe with some kind of sharding solution. Set up a number of servers on one machine, write something for them to communicate data between each server, and fake the clients that aren't on a particular server with props, weapon mimic points, and so on. Provided it somehow works, it'd be a very hacky solution from a client standpoint.

The practical answer: Run TF2 Classic instead, which, from what I can tell, has MAX_PLAYERS set to 128.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline
Blinx
Senior Member
Join Date: Oct 2013
Old 05-15-2016 , 07:59   Re: [TF2] Increase server player cap beyond 32?
Reply With Quote #4

Ah dang, I had heard myths of people running 33+ TF2 servers but I guess they weren't true.
Blinx is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 05-15-2016 , 10:36   Re: [TF2] Increase server player cap beyond 32?
Reply With Quote #5

Quote:
Originally Posted by Blinx View Post
Ah dang, I had heard myths of people running 33+ TF2 servers but I guess they weren't true.
It's possible to run servers with 33+ people but as asherkin said server's memory is going to be overwritten and eventually srcds is gonna crash
__________________
...
Oshizu is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 05-15-2016 , 11:37   Re: [TF2] Increase server player cap beyond 32?
Reply With Quote #6

Even if you hacked the server to run 128 players flawlessly, the client only has arrays and data initialized up to a max of 33 or 34 player slots. You will eventually cause clients to crash to desktop with segmentation faults.
Potato Uno is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode