F2 / F2s-sourcemod-plugins

F2's SourceMod plugins for competitive Team Fortress 2
14 stars 8 forks source link

[supstats] plugin fails to load on newest sm/metamod #35

Closed vnica2 closed 1 month ago

vnica2 commented 1 month ago

I'm on Windows 11 running the latest dev builds of metamod (build 1313) and sourcemod (build 7156) (latest stable versions do not work)

L 08/12/2024 - 14:51:32: [SM] Blaming: supstats2.smx L 08/12/2024 - 14:51:32: [SM] Call stack trace: L 08/12/2024 - 14:51:32: [SM] [0] Line 1186, ../includes/kvizzle_newdecls.inc::KvizGoto2 L 08/12/2024 - 14:51:32: [SM] [1] Line 1164, ../includes/kvizzle_newdecls.inc::KvizGoto L 08/12/2024 - 14:51:32: [SM] [2] Line 308, ../includes/kvizzle_newdecls.inc::KvizGetStringExact L 08/12/2024 - 14:51:32: [SM] [3] Line 1573, supstats2.sp::GetItemStringFromPrefab L 08/12/2024 - 14:51:32: [SM] [4] Line 1565, supstats2.sp::GetItemString L 08/12/2024 - 14:51:32: [SM] [5] Line 1415, supstats2.sp::ImportWeaponDefinitions L 08/12/2024 - 14:51:32: [SM] [6] Line 220, supstats2.sp::OnPluginStart L 08/12/2024 - 14:51:32: [SM] Unable to load plugin "supstats2.smx": Error detected in plugin startup (see error logs)

maybe something changed in how tf2 reports item information?

F2 commented 1 month ago

Thanks for reporting this.

With the increasing amount of items, it seems that the loading of all those items take more time than previously. Therefore, the "script execution" times out when loading the items.

In particular, I noticed that the 64-bit version of srcds is much, much slower than 32-bit. I don't know why.

Anyway, I created a new version of supstats2 (v2.5.3) which loads the items in smaller chunks. Hopefully this resolves the issue. Please try it out.

vnica2 commented 1 month ago

Looks like that fixed it! amazing job doing it so fast haha