Mikusch / PropHunt

A new and improved version of the popular hide 'n seek gamemode for Team Fortress 2
https://forums.alliedmods.net/showthread.php?p=2771274
GNU General Public License v3.0
15 stars 7 forks source link

Failed to create detour setup handle #10

Closed Joaquel closed 2 years ago

Joaquel commented 2 years ago

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
Mikusch commented 2 years ago

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

Joaquel commented 2 years ago

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

Mikusch commented 2 years ago

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.

Joaquel commented 2 years ago

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.