AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   [Linux] Virtual functions are null pointers (https://forums.alliedmods.net/showthread.php?t=311971)

Ghosted 11-10-2018 13:24

[Linux] Virtual functions are null pointers
 
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? :3


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

Arkshine 11-16-2018 06:18

Re: [Linux] Virtual functions are null pointers
 
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).


All times are GMT -4. The time now is 14:42.

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