Phil25 / RTD

Roll The Dice SourceMod plugin for Team Fortress 2
GNU General Public License v3.0
56 stars 20 forks source link

Plugin does not load on servers with max player settings over 64 players #104

Closed rx149 closed 6 months ago

rx149 commented 6 months ago

Bug description

When setting unrestricted_maxplayers and then setting maxplayers to any number over 64 the rtd plugin refuses to load. I tested both old and the most current version of RTD.

Server log throws these errors:

[2024-02-23 12:31:03]: L 02/23/2024 - 17:31:03: [SM] Exception reported: Array index out-of-bounds (index 66, limit 66)`

[2024-02-23 12:31:03]: L 02/23/2024 - 17:31:03: [SM] Blaming: rtd.smx

[2024-02-23 12:31:03]: L 02/23/2024 - 17:31:03: [SM] Call stack trace:

[2024-02-23 12:31:03]: L 02/23/2024 - 17:31:03: [SM] [1] Line 203, u:\Work\Code\RTD\scripting\rtd.sp::InitClientCache

[2024-02-23 12:31:03]: L 02/23/2024 - 17:31:03: [SM] [2] Line 144, u:\Work\Code\RTD\scripting\rtd.sp::OnPluginStart

[2024-02-23 12:31:03]: L 02/23/2024 - 17:31:03: [SM] Unable to load plugin "rtd.smx": Error detected in plugin startup (see error logs)

Report checks

Please describe the bug in the section above, then post it and tick the correct boxes below.

Required

Optional

Phil25 commented 6 months ago

Hi, this is a known issue. I decided not to support 64+ player servers until SourceMod 1.12 release, which has the necessary changes to make plugins work with unrestricted maxplayers.

I’m closing this as a duplicate of #60, and have also renamed that issue to be easier findable for this reason.

That said, I’ve no problem providing you a custom build which works for unrestricted maxplayers, but I don’t have time right this moment to build anything.

We can continue in #60.