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

[TFC] Bug Fixes v1.4


Post New Thread Reply   
 
Thread Tools Display Modes
pizzahut
Senior Member
Join Date: Oct 2004
Old 06-10-2023 , 06:34   Re: [TFC] Bug Fixes v1.4
Reply With Quote #11

The version number is still 1.3 in the source code.
pizzahut is offline
se7en
Junior Member
Join Date: Feb 2014
Old 06-11-2023 , 15:31   Re: [TFC] Bug Fixes v1.4
Reply With Quote #12

Quote:
Originally Posted by pizzahut View Post
The version number is still 1.3 in the source code.
Changed, thanks
se7en is offline
CARBONXXX
Junior Member
Join Date: Feb 2012
Location: Bulgaria
Old 09-15-2023 , 10:52   Re: [TFC] Bug Fixes v1.4
Reply With Quote #13

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"
// D:\New folder\Steam\steamapps\common\Half-Life\tfc\addons\amxmodx\scripting\BugFixesTFC .sma(184) : error 017: undefined symbol "get_ent_data"
// D:\New folder\Steam\steamapps\common\Half-Life\tfc\addons\amxmodx\scripting\BugFixesTFC .sma(185) : error 017: undefined symbol "get_ent_data"
// D:\New folder\Steam\steamapps\common\Half-Life\tfc\addons\amxmodx\scripting\BugFixesTFC .sma(189) : error 017: undefined symbol "set_ent_data"
// D:\New folder\Steam\steamapps\common\Half-Life\tfc\addons\amxmodx\scripting\BugFixesTFC .sma(190) : error 017: undefined symbol "set_ent_data"
// D:\New folder\Steam\steamapps\common\Half-Life\tfc\addons\amxmodx\scripting\BugFixesTFC .sma(199) : error 017: undefined symbol "set_ent_data"
// D:\New folder\Steam\steamapps\common\Half-Life\tfc\addons\amxmodx\scripting\BugFixesTFC .sma(200) : error 017: undefined symbol "set_ent_data"
// D:\New folder\Steam\steamapps\common\Half-Life\tfc\addons\amxmodx\scripting\BugFixesTFC .sma(205) : error 017: undefined symbol "set_ent_data"
// D:\New folder\Steam\steamapps\common\Half-Life\tfc\addons\amxmodx\scripting\BugFixesTFC .sma(224) : error 017: undefined symbol "get_ent_data"
// D:\New folder\Steam\steamapps\common\Half-Life\tfc\addons\amxmodx\scripting\BugFixesTFC .sma(225) : error 017: undefined symbol "set_ent_data"
// D:\New folder\Steam\steamapps\common\Half-Life\tfc\addons\amxmodx\scripting\BugFixesTFC .sma(226) : error 017: undefined symbol "set_ent_data"
//
// 11 Errors.
// Could not locate output file D:\New folder\Steam\steamapps\common\Half-Life\tfc\addons\amxmodx\scripting\compiled\Bu gFixesTFC.amx (compile failed).
//
// Compilation Time: 0.81 sec
// ----------------------------------------
CARBONXXX is offline
Send a message via Skype™ to CARBONXXX
pizzahut
Senior Member
Join Date: Oct 2004
Old 09-16-2023 , 07:18   Re: [TFC] Bug Fixes v1.4
Reply With Quote #14

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
se7en
Junior Member
Join Date: Feb 2014
Old 09-19-2023 , 22:21   Re: [TFC] Bug Fixes v1.4
Reply With Quote #15

Yes PizzaHut is correct if you need to use an older version of AMXX.
It will however compile with AMXX 1.8.3 Build 5000 and above.
se7en 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 09:16.


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