Raised This Month: $64 Target: $400
 16% 

[Linux] Virtual functions are null pointers


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 11-10-2018 , 14:24   [Linux] Virtual functions are null pointers
Reply With Quote #1

I'm creating support for linux of my module and retrieving virtual private functions by offsets returns 0. How i'm doing is shown here:

Code:
edict_t *Entity = CREATE_ENTITY(...);
CALL_GAME_ENTITY(...);
void **VTable = *(void ***)(Entity->pvPrivateData);
return VTable[Offset];
This perfectly working on windows but on linux not. any help?


EDIT:
I have compared edict entvars to privatedata and they matched
__________________

[MOD] CS Weapon Mod V1.6.3 (Report )(1.7 - 48%)
[MM] MetaMod-C V0.99B (Report )(1.0 - 43%)

( Donate) ( Steam)

Last edited by Ghosted; 11-11-2018 at 08:34.
Ghosted is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old Yesterday , 07:18   Re: [Linux] Virtual functions are null pointers
Reply With Quote #2

The base is likely different. Though, it should be the same if you are using the latest game version.
It's hardcoded in hamdata.ini (base key), or recently in gamedata (https://github.com/alliedmodders/amx...common.txt#L25)

You can take a look in Hamsandiwch (RegisterHam).
__________________
Arkshine 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 22:20.


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