[ISSUE][AMXX + REGAME] get_gamerules_*
I don't know if this should be fixed on amxx or regame side
It seems that the get_gamerules_* natives works properly without ReGame, but when you use them with ReGame they don't return the proper values ITerrors - value seems to equal 0 even tho i am a terrorist while i call it iRoundTime - value some crazy long int number iSpawnPoints - value equals the number of terrorists instead of terrorist spawn points Also, i noticed m_flRestartRoundTime offset is missing from CHalfLifeMultiplay gamedata https://github.com/s1lentq/ReGameDLL...ls/gamerules.h PHP Code:
|
Re: [ISSUE][AMXX + REGAME] get_gamerules_*
AFAK get_gamerules relies on specific memory adresses, and unfortunately ReGameDLL obviosuly have different adresses. And AFAIK ReGameDLL has it's own natives to access the gamerules members.
|
Re: [ISSUE][AMXX + REGAME] get_gamerules_*
Quote:
Code:
// The global time when the round is supposed to end, if this is not 0 (deprecated name m_fTeamCount) |
Re: [ISSUE][AMXX + REGAME] get_gamerules_*
So basically the offsets related to game rules are different in ReGame ? the ones related to CBasePlayer are the same tho
Well, i guess i will switch out from ReGame until it is fully compatible with amxmodx |
Re: [ISSUE][AMXX + REGAME] get_gamerules_*
It should work, there's support for ReGameDLL and AMXX does get the address of the gamerules object. When you use those gamerules natives, if they don't throw any runtime error then the gamerules object was successfully found.
Offsets may be different though. |
Re: [ISSUE][AMXX + REGAME] get_gamerules_*
^ this and if you're using ReGameDLL, you should probably use ReAPI module instead, there is less chance you face a wrong offset since it has been designed to work directly with ReGameDLL. In AMXX, the compatibility is just about getting the gamerules object. The offsets that you have in your gamedata/ dir are from a dump of the original CS version.
|
Re: [ISSUE][AMXX + REGAME] get_gamerules_*
I'd rather rely mainly on amxx than on regame, amxx is mandatory for a server while regame is not, so in case things get screwed and i have to use the stock dll, i don't have to rewrite everything..
|
Re: [ISSUE][AMXX + REGAME] get_gamerules_*
As said Klippy, it should work. It doesn't matter if the name has changed as long the position (offset) is the same. Check with and without ReGameDLL in the same context, or try to use ReAPI just to see if you get the same value.
|
Re: [ISSUE][AMXX + REGAME] get_gamerules_*
Unfortunately, ReGameDLL has 2 custom fields in CGameRules. So looks like all fields of CHalfLifeMultiplay are shifted by 8 bytes.
|
Re: [ISSUE][AMXX + REGAME] get_gamerules_*
I specified that i tried with and without regame
Without regame the values that were returned are correct With regame the values that were returned were incorrect As Prostostem@ said, the get_gamerules_* natives are incompatible with regame, since the offsets were shifted by 8 bytes.. |
All times are GMT -4. The time now is 16:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.