Mikusch/PropHunt

Failed to create detour setup handle

Closed this issue · 4 comments

When gamemode loads (Windows, using last Sourcemod Stable Version), this appears:

Failed to create detour setup handle for CTFPlayer::GetMaxHealthForBuffing
Failed to create detour setup handle for CTeamplayRoundBasedRules::SetInWaitingForPlayers

Works fine for my Windows machine, perhaps you have other plugins using the same gamedata? Also make sure gamedata is updated.

Gamedata is updated.
And i have more gamemodes using same gamedata i think.

And i have more gamemodes using same gamedata i think.

If they're loaded at the same time, this will cause issues. Detouring a function changes its signature, which will cause subsequent detours not to function.

If they're loaded at the same time, this will cause issues. Detouring a function changes its signature, which will cause subsequent detours not to function.

Ohh, makes sense.
All gamemodes loads but they get unloaded within the server.cfg and load a specific gamemode with MapConfigs.