Raised This Month: $51 Target: $400
 12% 

SDKTools / DHooks not finding gamerules pointer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xerox8521
Senior Member
Join Date: Sep 2011
Old 08-20-2022 , 09:41   SDKTools / DHooks not finding gamerules pointer
Reply With Quote #1

Hi,

Game: Zombie Panic Source (mod is build using 2013 sdk)
OS: Linux Ubuntu

so I wanted to setup a virtual hook for a gamerules function. Now upon starting the server I get the error Exception reported: Could not get gamerules pointer.

Now I did some search and modified the gamedata (which is in the custom sub folder for sdktools.games)
However it still cannot find the gamerules pointer.

I tried via the g_pGameRules global but that didn't work so I tried the CreateGameRulesObject way + offset but I have no idea if the offset is even correct. I tried various offsets with same result.

Game Data file is attached.
Attached Files
File Type: txt game.zpanic.txt (2.6 KB, 28 views)
xerox8521 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-20-2022 , 17:38   Re: SDKTools / DHooks not finding gamerules pointer
Reply With Quote #2

Are you going to create gamerules, even game not create it by default ?
__________________
Do not Private Message @me
Bacardi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode