Raised This Month: $32 Target: $400
 8% 

Function returning wrong number?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
verideth
Junior Member
Join Date: Jun 2016
Old 12-29-2016 , 12:31   Function returning wrong number?
Reply With Quote #1

Hey guys, I've recently got hl2sdk-gmod and when I call
PHP Code:
engClient->GetDXSupportLevel 
, or any other number and print it like
PHP Code:
GOGL::GOGL_Print("%i\n"engClient->GetDXSupportLevel()); 
it's not working. Any idea why? The number it returns is -922805991. All of them are returning that same exact number.

engClient =

PHP Code:
bool loadClient = !!(LOADINTERFACE("engine.dll""VEngineClient013"engClient)); 
__________________
Love programming!
Add me if you need any help http://steamcommunity.com/id/desslian/

Last edited by verideth; 12-29-2016 at 12:32.
verideth is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-29-2016 , 12:40   Re: Function returning wrong number?
Reply With Quote #2

I was under the impression that Garry's version of the engine is not public.
Mitchell is offline
verideth
Junior Member
Join Date: Jun 2016
Old 12-29-2016 , 12:42   Re: Function returning wrong number?
Reply With Quote #3

Quote:
Originally Posted by Mitchell View Post
I was under the impression that Garry's version of the engine is not public.
So are the vtable indexes off or sumthing?
__________________
Love programming!
Add me if you need any help http://steamcommunity.com/id/desslian/
verideth is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-29-2016 , 12:50   Re: Function returning wrong number?
Reply With Quote #4

Quote:
Originally Posted by verideth View Post
So are the vtable indexes off or sumthing?
Yes. We do not maintain the client interface headers in our SDKs.
__________________
asherkin is offline
verideth
Junior Member
Join Date: Jun 2016
Old 12-29-2016 , 13:11   Re: Function returning wrong number?
Reply With Quote #5

Quote:
Originally Posted by asherkin View Post
Yes. We do not maintain the client interface headers in our SDKs.
so what sdks can I use? Or am I going to have to reverse it on my own?
__________________
Love programming!
Add me if you need any help http://steamcommunity.com/id/desslian/
verideth is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-29-2016 , 13:22   Re: Function returning wrong number?
Reply With Quote #6

Well i mean if you want to the easier way you can use Lua like the engine supports: https://wiki.garrysmod.com/page/render/GetDXLevel
Mitchell is offline
Reply


Thread Tools
Display Modes

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 05:31.


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