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

Solved [Any] Is it possible to override MAX_PLAYERS?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TotalChaos SourcePawner
Senior Member
Join Date: Feb 2023
Location: IN PINEAPPLE, UNDER SEA
Old 03-25-2023 , 13:42   [Any] Is it possible to override MAX_PLAYERS?
Reply With Quote #1

Hi.
We all know this error that you get when you hit your maxplayers limit when you're spawning bots:
"CreatePlayerBot: Unable to create bot <BOT NAME> - CreateFakeClient() returned NULL.".

All Source games have a hard-coded limit for maxplayers, that limit being whatever MAX_PLAYERS is set to.
I was wondering if it would be possible to change MAX_PLAYERS through a SourceMod plugin, and be able to spawn as many bots as you can before you hit the entity limit of the engine itself.

If this is the wrong place for this, please let me know and I'll move it to the proper place.
This will be the last thing I ask for a while because I feel like I'm wasting people's time.

Thanks,
TotalChaos.

Last edited by TotalChaos SourcePawner; 03-25-2023 at 16:58.
TotalChaos SourcePawner is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 03-25-2023 , 15:01   Re: [Any] Is it possible to override MAX_PLAYERS?
Reply With Quote #2

No you can't, MAXPLAYERS is upper bounded to 32/64 depending on the game.
Some entities have "hard-coded" inner array tables that go to that maximum too, if you "bypass" that limit the game will crash.
__________________
Marttt is offline
TotalChaos SourcePawner
Senior Member
Join Date: Feb 2023
Location: IN PINEAPPLE, UNDER SEA
Old 03-25-2023 , 15:39   Re: [Any] Is it possible to override MAX_PLAYERS?
Reply With Quote #3

Quote:
Originally Posted by Marttt View Post
No you can't, MAXPLAYERS is upper bounded to 32/64 depending on the game.
Some entities have "hard-coded" inner array tables that go to that maximum too, if you "bypass" that limit the game will crash.
Are you sure there's no way around it? Outside of compiling your own binaries with a modified value, or doing something with a third party program such as Cheat Engine?

Also, can Cheat Engine trigger a VAC ban on -insecure listen servers, where you're the host?
I really want to spam bots on some games. I've always wanted to push Source to its limits with them.


And yes, I know. Cheat Engine. I'm not touching that thing while I'm playing online with other people. I know that's a one-way ticket to a VAC ban.

Last edited by TotalChaos SourcePawner; 03-25-2023 at 15:42.
TotalChaos SourcePawner is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 03-25-2023 , 16:19   Re: [Any] Is it possible to override MAX_PLAYERS?
Reply With Quote #4

Probably not
__________________
Marttt is offline
TotalChaos SourcePawner
Senior Member
Join Date: Feb 2023
Location: IN PINEAPPLE, UNDER SEA
Old 03-25-2023 , 16:58   Re: [Any] Is it possible to override MAX_PLAYERS?
Reply With Quote #5

Quote:
Originally Posted by Marttt View Post
Probably not
Alright, thanks.
TotalChaos SourcePawner 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 06:33.


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