PDA

View Full Version : SDKHooks Fix for Hidden:source



Ice1
28th October 2012, 10:26
SDKHooks is an extension to sourcemod that allows more functionality for plugins. It currently crashes on hidden in its current state without the below fix.

First make sure you have cleared away any previous installations of the sdkhooks dll's in your addons\sourcemod\extensions folder, making sure not to get confused with the SDKTools (which comes along with a standard install of sourcemod)

Secondly download this version of sdkhooks http://forums.alliedmods.net/showpost.php?p=1589197&postcount=1687

Then you will need to add whats shown in red to this file:
hidden\addons\sourcemod\gamedata\sdkhooks.games\ga me.hidden.txt

"Games"
{
"hidden"
{
"Offsets"
{
"EntityListeners"
{
"windows" "65572"
"linux" "65572"
"mac" "65572"
}
"EndTouch"
{
...
and add whats shown in red to this file:
hidden\addons\sourcemod\gamedata\sdktools.games\ga me.hidden.txt

"Games"
{
/* Hidden:Source Beta 4b */
"hidden"
{
"Offsets"
{
"EntityListeners"
{
"windows" "65572"
"linux" "65572"
"mac" "65572"
}
"PlayerRunCmd"
{
"windows" "364"
"linux" "365"
}
/* CBasePlayer */
"GiveNamedItem"
{
"windows" "348"
"linux" "349"
}
...

IMPORTANT
Make both of those files read-only, otherwise sourcemod may overwrite them.

And your done :) Enjoy

edit
not sure why its putting a space in game.hidden.txt I didn't format it to do that, that file name has no spaces.

Paegus
28th October 2012, 12:55
Awesome will test this out in a bit.

Do you want to post those changes to their respective forums so they can fix their release versions?

Ice1
28th October 2012, 14:10
To be honest i tried several versions of sdkhooks and that's the only one that I got working even with fixing the gamedata files. I doubt I would get very far and I don't really feel the need tbh. But you are welcome to.