VSH2-Devs / Vs-Saxton-Hale-2

VSH2 is a rewrite of the original VSH, meant to combine the best of VSH and FF2.
https://forums.alliedmods.net/showthread.php?t=286701
51 stars 15 forks source link

[Bug] Freak Fortress bridge broken due to stricter plugin loading #172

Closed Pheubel closed 3 years ago

Pheubel commented 3 years ago

The freak fortres 2 bridge for VSH2 relies on sub plugins having the .ff2 file extension, this has been standard for FF2 for a long time, however due to recent changes to sourcemod the loading of plugins has been restricted to .smx only (see: https://github.com/alliedmodders/sourcemod/pull/1437 ).

Proposed solution:

The first step would go as followd. If the ff2 bridge is being used subplugins should be renamed to use the .smx extension instead. The new code would be similair to the one that can be found on the Freak Fortress 2 main branch. This would take care of the plugins having invalid extensions.

The second step would be a small change to lines like these: ServerCommand("sm plugins load \"freaks\%s.ff2\"", name); ServerCommand("sm plugins unload \"freaks\%s.ff2\"", info.name); FormatEx(pl_name, sizeof(pl_name), "freaks\%s.ff2", name); Instead of appending ".ff2" it should append ".smx" instead, this way it will load the newly renamed ff2 subplugins.

assyrianic commented 3 years ago

@01Pollux