Raised This Month: $ Target: $400
 0% 

[TFC] Bug Fixes v1.4


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pizzahut
Senior Member
Join Date: Oct 2004
Old 09-16-2023 , 07:18   Re: [TFC] Bug Fixes v1.4
Reply With Quote #10

Quote:
Originally Posted by CARBONXXX View Post
Hi, when i try to compile, i get these errors:

//// BugFixesTFC.sma
// D:\New folder\Steam\steamapps\common\Half-Life\tfc\addons\amxmodx\scripting\BugFixesTFC .sma(180) : error 017: undefined symbol "get_ent_data"
Probably needs at least AMXX version 1.9, not sure when exactly the gamedata files were added.

If you want to keep the old AMXX version for some reason, you could try replacing get_ent_data with get_pdata_int and set_ent_data with set_pdata_int. For this you need to look up the offsets. They can be found in file "offsets-cbaseentity.txt", subfolder
Code:
addons\amxmodx\data\gamedata\common.games\entities.games\tfc
of AMXX 1.9 or newer. For integers, the offsets and diffs must be divided by 4.

Example:
Code:
					"fClientGrenadePrimed"  // BOOL
					{
						"type"      "integer"

						"windows"   "112"
						"linux"     "128"
						"mac"       "128"
					}
Parameters: https://www.amxmodx.org/api/fakemeta/get_pdata_int
_Offset = windows offset/4 = 112/4 = 28
_linuxdiff = (linux offset - windows offset) / 4 = (128-112)/4 = 16/4 = 4 ; only necessary if your server uses Linux as OS

If your server is on Linux *and* you're using an outdated "tfc_i386.so" file in the server's "dlls" folder, then you might have to decrease the _linuxdiff by 1.

Last edited by pizzahut; 09-16-2023 at 08:18.
pizzahut is offline
 


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 06:13.


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