Phil25 / RTD

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

RTD doesn’t work with 64+ player servers #60

Open kmak7 opened 1 year ago

kmak7 commented 1 year ago

Console Log: [RTD] Loaded 74 perks (37 good, 37 bad). L 07/26/2023 - 22:46:43: [SM] Exception reported: Invalid index 66 (count: 66) L 07/26/2023 - 22:46:43: [SM] Blaming: rtd.smx L 07/26/2023 - 22:46:43: [SM] Call stack trace: L 07/26/2023 - 22:46:43: [SM] [0] ArrayList.Set L 07/26/2023 - 22:46:43: [SM] [1] Line 29, rtd/classes/rollers.sp::Rollers.Rollers L 07/26/2023 - 22:46:43: [SM] [2] Line 328, rtd.sp::OnPluginStart L 07/26/2023 - 22:46:43: [SM] Unable to load plugin "rtd.smx": Error detected in plugin startup (see error logs)

Sourcemod build: 7037 https://www.sourcemod.net/downloads.php?branch=dev https://github.com/alliedmodders/sourcemod/commit/d83c498a8fb9958a62de9ebb90e7e1b

os: Debian 11

Likely something to do with new playerlimit

OfficerSpy commented 1 year ago

This seems to happen on 1.12. The plugin appears to work fine on SM 1.11 (build 6936) though.

Phil25 commented 1 year ago

The Rollers ArrayList uses the SourceMod's MaxClients variable which should correspond to the server's max players count. I'm gonna postpone digging deeper until SourceMod 1.12 becomes stable, can't find anything to blame RTD for from a quick glance.

In the meantime I can try to recompile RTD with 1.12 and send the binary in this thread.

Phil25 commented 1 year ago

Ah my bad, 1.12 did introduce the required changes. Looks like recompiling in the newer SourceMod should fix the reported issue.

I'll try to build it now but won't do a full release until 1.12 is stable. It's possible other issues might come out.

Phil25 commented 1 year ago

Released version 2.3.6-pre1 with experimental, untested support for 100 players.

Unfortunately, the 1.12 compiler is unstable at the moment so I used SourceMod 1.11 (6936) compiler with SourceMod 1.12 (7038) include files, but the 100 player support is contained within those include files (specifically clients.inc).

Please check it out in the meantime: https://github.com/Phil25/RTD/releases/tag/2.3.6-pre1

Phil25 commented 10 months ago

Version 2.4.0 prepared RTD to be used on servers with up to 128 players. However, I won't officially support it until SourceMod 1.12 becomes stable.

Anyone is free to recompile RTD under 1.12 compiler.