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

[HAM] hamdata.ini wrong offsets for TFC (Linux)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rirre
Veteran Member
Join Date: Nov 2006
Old 02-19-2016 , 08:46   [HAM] hamdata.ini wrong offsets for TFC (Linux)
Reply With Quote #1

AMXX 1.8.3-dev-git5021 installed at the moment.
I haven't try any other native beside of traceattack and takedamage for now, which are not working for Team Fortress Classic in Linux. Crashes instantly when the entity I hook those natives to lead to a Segmentation fault.
Works fine in Windows.

Searched through the whole forum and google for any other offset provided which just leads me to a previous hamdata.ini or the same I already use/has.
Gave a try to use a different hamdata.ini from a previous AMXX version as well which has different offsets specified (official AMXX 1.8.2 release).

Nor do I know if it could be related to a different offset for pev or base either.

Tried so far:
Code:
// from old/previous hamdata.ini
@section tfc linux
	pev 0
	base 0x470

	traceattack 13
	takedamage 14
Code:
// > 1.8.2
@section tfc linux
	pev 4
	base 0x0

	traceattack 11
	takedamage 12

Last edited by Rirre; 02-19-2016 at 09:35.
Rirre is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-19-2016 , 09:37   Re: [HAM] hamdata.ini wrong offsets for TFC (Linux)
Reply With Quote #2

Don't change pev/base and try:

traceattack 12
takedamage 13

result ?
__________________
Arkshine is offline
Rirre
Veteran Member
Join Date: Nov 2006
Old 02-19-2016 , 09:54   Re: [HAM] hamdata.ini wrong offsets for TFC (Linux)
Reply With Quote #3

Now it works, thanks
Rirre is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-19-2016 , 10:13   Re: [HAM] hamdata.ini wrong offsets for TFC (Linux)
Reply With Quote #4

Since SteamPipe update, offsets are the same linux/windows for all supported games, but it looks like for TFC you need to add +1 for linux (probably because it uses destructor ~CBasePlayer at the top of list).

EDIT: Fixed in latest build.
__________________

Last edited by Arkshine; 02-19-2016 at 12:45.
Arkshine 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 08:22.


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