flaminsarge / tf2attributes Goto Github PK
View Code? Open in Web Editor NEWTF2Attributes SourceMod plugin
TF2Attributes SourceMod plugin
L 04/13/2019 - 17:01:13: [SM] Exception reported: Could not initialize call to CAttributeList::GetAttributeByID
L 04/13/2019 - 17:01:13: [SM] Blaming: tf2attributes.smx
L 04/13/2019 - 17:01:13: [SM] Call stack trace:
L 04/13/2019 - 17:01:13: [SM] [0] SetFailState
L 04/13/2019 - 17:01:13: [SM] [1] Line 186, /home/groups/sourcemod/upload_tmp/phpa9lkIt.sp::OnPluginStart
Everytime I run my MacOS listen server, It always shows this error and tf2attributes will not load. My tf2.gamedata.txt is located in Sourcemod/Gamedata, and the plugin is located at Sourcemod/Plugins.
What should I try to do?
L 10/05/2017 - 09:05:23: [tf2attributes.smx] Could not initialize call to CEconItemSchema::GetItemDefinition
L 10/05/2017 - 09:05:23: [tf2attributes.smx] Could not initialize call to CEconItemView::GetSOCData
L 10/05/2017 - 09:05:23: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
L 10/05/2017 - 09:05:23: [SM] Exception reported: Could not initialize call to GEconItemSchema
L 10/05/2017 - 09:05:23: [SM] Blaming: tf2attributes.smx
L 10/05/2017 - 09:05:23: [SM] Call stack trace:
L 10/05/2017 - 09:05:23: [SM] [0] SetFailState
L 10/05/2017 - 09:05:23: [SM] [1] Line 131, tf2attributes.sp::OnPluginStart
L 10/05/2017 - 09:05:23: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 03/20/2017 - 21:26:33: [SM] Blaming: tf2attributes.smx
L 03/20/2017 - 21:26:33: [SM] Call stack trace:
L 03/20/2017 - 21:26:33: [SM] [0] LoadGameConfigFile
L 03/20/2017 - 21:26:33: [SM] [1] Line 85, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 03/20/2017 - 21:26:33: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 03/20/2017 - 21:56:19: SourceMod error session started
L 03/20/2017 - 21:56:19: Info (map "vsh_2fortdesk_v8") (file "errors_20170320.log")
L 03/20/2017 - 21:56:19: [SM] Exception reported: Could not initialize call to CEconItemSchema::GetAttributeDefinition
L 03/20/2017 - 21:56:19: [SM] Blaming: tf2attributes.smx
L 03/20/2017 - 21:56:19: [SM] Call stack trace:
L 03/20/2017 - 21:56:19: [SM] [0] SetFailState
L 03/20/2017 - 21:56:19: [SM] [1] Line 142, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 03/20/2017 - 21:56:19: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
Hello.
I have a random crashes on my servers (linux) with old and new version tf2attributes plugin.
I have not errors in log, but unload tf2attributes stop the crashes.
My https://crash.limetech.org/2lwzqdy7zlbs
I'm encountering an error on startup which prevents the plugin from loading. All the relevant files are in place and I have no idea where to go from here.
Error log
L 01/27/2023 - 00:15:06: SourceMod error session started
L 01/27/2023 - 00:15:06: Info (map "vsh_atollday_v5a") (file "/srv/gameservers/tff_vsh_server_1/tf/addons/sourcemod/logs/errors_20230127.log")
L 01/27/2023 - 00:15:06: [SM] Exception reported: Could not initialize call to CTFPlayer::AddCustomAttribute
L 01/27/2023 - 00:15:06: [SM] Blaming: tf2attributes.smx
L 01/27/2023 - 00:15:06: [SM] Call stack trace:
L 01/27/2023 - 00:15:06: [SM] [0] SetFailState
L 01/27/2023 - 00:15:06: [SM] [1] Line 229, scripting/tf2attributes.sp::OnPluginStart
Sourcemod is updated to latest
tf2attributes is updated to latest
L 06/18/2018 - 13:13:09: [SM] Error parsing gameconfig file "E:\Games\Steam\LANServer\TF2Server\tf\addons\sourcemod\gamedata\tf2.attributes.txt": L 06/18/2018 - 13:13:09: [SM] Error 1 on line 0, col 0: Stream failed to open L 06/18/2018 - 13:13:09: [SM] Exception reported: Unable to open tf2.attributes: File could not be opened: The system cannot find the file specified.
I tried reinstalling the plugin, checked all the file names and directories, everything checks out. As to how it "can't find the file specified" is beyond me. I restarted the server every time I tried reinstalling. I am running a simple "LAN" srcds server.
ProtoDefs post data loaded.
ProtoDefs loaded. 24.69 MB used
ProtoDefs post data loaded.
ProtoDefs loaded. 24.69 MB used
Unable to load plugin "addons/metamod/bin/win64/server"
maxplayers set to 24
No '-replayserverdir' parameter found - using default replay folder.
Replay: Creating thread pool...succeeded.
Replay: Starting thread pool with 4 threads...succeeded.
Cleaning files from temp dir, "c:\tf2\tf2_mod\release\servers\x10_upward\server\tf\replay\server\tmp" ...no files removed.
ProtoDefs post data loaded.
ProtoDefs post data loaded.
Unknown command "r_decal_cullsize"
maxplayers set to 24
Network: IP 0.0.0.0, mode MP, dedicated Yes, ports 28015 SV / 28020 CL
Initializing Steam libraries for secure Internet server
No account token specified; logging into anonymous game server account. (Use sv_setsteamaccount to login to a persistent account.)
L 10/04/2021 - 16:08:55: [TF2ITEMS] "GiveNamedItem" offset = 478
[STEAMTOOLS] Initial loading stage complete...
L 10/04/2021 - 16:09:01: [SM] Error parsing gameconfig file "c:\tf2\tf2_mod\release\servers\x10_upward\server\tf\addons\sourcemod\gamedata\tf2.attributes.txt":
L 10/04/2021 - 16:09:01: [SM] Error 1 on line 0, col 0: Stream failed to open
L 10/04/2021 - 16:09:01: [SM] Exception reported: Unable to open tf2.attributes: File could not be opened: The system cannot find the file specified.
L 10/04/2021 - 16:09:01: [SM] Blaming: tf2attributes.smx
L 10/04/2021 - 16:09:01: [SM] Call stack trace:
L 10/04/2021 - 16:09:01: [SM] [0] LoadGameConfigFile
L 10/04/2021 - 16:09:01: [SM] [1] Line 85, C:\sourcemod\tf2attributes\tf2attributes.sp::OnPluginStart
L 10/04/2021 - 16:09:01: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 10/04/2021 - 16:09:01: [SM] Unable to load plugin "tf2x10.smx": Could not find required plugin "tf2attributes"
Executing dedicated server config file server.cfg
L 07/19/2018 - 08:46:20: SourceMod error session started
L 07/19/2018 - 08:46:20: Info (map "2tpl_mine_alpine") (file "errors_20180719.log")
L 07/19/2018 - 08:46:20: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
What might be the cause of this problem? I checked everything, updated to last version of sourcemod. Before opening my server I updated it and then the error was there. Last time I had it open was like a month ago, maybe and it was working fine. Already updated to latest version of tf2.attributes too but nothing seem to fix this error.
L 03/03/2018 - 22:44:39: SourceMod error session started
L 03/03/2018 - 22:44:39: Info (map "pl_badwater") (file "errors_20180303.log")
L 03/03/2018 - 22:44:39: [SM] Unable to load plugin "tf2attributes_ubup.smx": Required extension "TF2Items" file("tf2items.ext.2.ep2v") not running
L 03/03/2018 - 22:51:12: SourceMod error session started
L 03/03/2018 - 22:51:12: Info (map "pl_badwater") (file "errors_20180303.log")
L 03/03/2018 - 22:51:12: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
L 03/03/2018 - 22:51:12: [SM] Unable to load plugin "tf2attributes_ubup.smx": Could not find required plugin "tf2itemsinfo"
L 03/03/2018 - 22:53:24: SourceMod error session started
L 03/03/2018 - 22:53:24: Info (map "pl_badwater") (file "errors_20180303.log")
L 03/03/2018 - 22:53:24: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
L 03/03/2018 - 22:53:36: [SM] Exception reported: Script execution timed out
L 03/03/2018 - 22:53:36: [SM] Blaming: tf2itemsinfo.smx
L 03/03/2018 - 22:53:37: [SM] Call stack trace:
L 03/03/2018 - 22:53:37: [SM] [1] Line 1689, tf2itemsinfo.sp::GetAttribIDByName
L 03/03/2018 - 22:53:37: [SM] [2] Line 1562, tf2itemsinfo.sp::PrecacheItemSchema
L 03/03/2018 - 22:53:37: [SM] [3] Line 269, tf2itemsinfo.sp::OnPluginStart
L 03/03/2018 - 22:53:37: [SM] Unable to load plugin "tf2itemsinfo.smx": Error detected in plugin startup (see error logs)
Splitting this issue off from #53.
L 04/20/2024 - 02:34:17: [SM] Exception reported: Entity 1 (1) is invalid
L 04/20/2024 - 02:34:17: [SM] Blaming: tf2attributes.smx
L 04/20/2024 - 02:34:17: [SM] Call stack trace:
L 04/20/2024 - 02:34:17: [SM] [0] GetEntityAddress
L 04/20/2024 - 02:34:17: [SM] [1] Line 980, C:\tf2serverff2\steamapps\common\Team Fortress 2 Dedicated Server\tf\addons\sourcemod\scripting\tf2attributes.sp::GetEntityAttributeList
L 04/20/2024 - 02:34:17: [SM] [2] Line 1195, C:\tf2serverff2\steamapps\common\Team Fortress 2 Dedicated Server\tf\addons\sourcemod\scripting\tf2attributes.sp::RemoveNonNetworkedRuntimeAttributesOnEntities
L 04/20/2024 - 02:34:17: [SM] [3] Line 375, C:\tf2serverff2\steamapps\common\Team Fortress 2 Dedicated Server\tf\addons\sourcemod\scripting\tf2attributes.sp::OnPluginEnd
I only get one error about tf2attributes, and it's this.
[tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
I have gotten everything setup in the right folders and stuff. Could someone send me or tell me how re-set it up that way I know I did it right?
EDIT: I used the .smx file, not the .sp file for compiling, do I have to compile with it?
(tested on windows)
Example plugin that crashes the server when you spawn after Update TF2 gamedata for version 8826692 (2024-04-18)
52cb6b6
Specifically TF2Attrib_SetByDefIndex
. Maybe others though...
#include <tf2_stocks>
#include <tf2attributes>
public void OnPluginStart()
{
HookEvent("player_spawn", Event_EverythingEver, EventHookMode_Post);
HookEvent("post_inventory_application", Event_EverythingEver, EventHookMode_Post);
}
Action Event_EverythingEver(Event event, const char[] name, bool dontBroadcast)
{
CenterPlayer(GetClientOfUserId(event.GetInt("userid")));
return Plugin_Continue;
}
void CenterPlayer(int client)
{
if (IsFakeClient(client))
return;
SetCenterAttribute(client, GetPlayerWeaponSlot(client, TFWeaponSlot_Primary));
SetCenterAttribute(client, GetPlayerWeaponSlot(client, TFWeaponSlot_Secondary));
SetCenterAttribute(client, GetPlayerWeaponSlot(client, TFWeaponSlot_Melee));
}
void SetCenterAttribute(int client, int weapon)
{
if (weapon == -1) // How could this happen? :thinking:
return;
// List of attributes at https://wiki.teamfortress.com/wiki/List_of_item_attributes
// 289 == centerfire_projectile
TF2Attrib_SetByDefIndex(weapon, 289, 1.0);
}
I installed the latest to fix my other problem but then this happended
`L 02/08/2018 - 22:27:13: SourceMod error session started
L 02/08/2018 - 22:27:13: Info (map "vsh_2fortdesk_v8") (file "errors_20180208.log")
L 02/08/2018 - 22:27:13: [SM] Exception reported: Could not initialize call to CEconItemSchema::GetAttributeDefinition
L 02/08/2018 - 22:27:13: [SM] Blaming: tf2attributes.smx
L 02/08/2018 - 22:27:13: [SM] Call stack trace:
L 02/08/2018 - 22:27:13: [SM] [0] SetFailState
L 02/08/2018 - 22:27:13: [SM] [1] Line 142, C:\sourcemod\tf2attributes\tf2attributes.sp::OnPluginStart
L 02/08/2018 - 22:27:13: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
`
Dont working with new tf2 update
I've looked around in the issues, didnt find anything similar to my issue. Might have missed something though.
L 06/24/2018 - 20:30:07: Info (map "pl_upward") (file "errors_20180624.log")
L 06/24/2018 - 20:30:07: [tf2attributes.smx] Could not initialize call to CEconItemSchema::GetItemDefinition
L 06/24/2018 - 20:30:07: [tf2attributes.smx] Could not initialize call to CEconItemView::GetSOCData
L 06/24/2018 - 20:30:07: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
L 06/24/2018 - 20:30:07: [SM] Exception reported: Could not initialize call to GEconItemSchema
L 06/24/2018 - 20:30:07: [SM] Blaming: tf2attributes.smx
L 06/24/2018 - 20:30:07: [SM] Call stack trace:
L 06/24/2018 - 20:30:07: [SM] [0] SetFailState
L 06/24/2018 - 20:30:07: [SM] [1] Line 131, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 06/24/2018 - 20:30:07: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 06/24/2018 - 20:30:07: [SM] Unable to load plugin "tf2attributes_ubup.smx": Could not find required plugin "tf2attributes"
L 06/24/2018 - 20:30:16: [SM] Exception reported: Script execution timed out
L 06/24/2018 - 20:30:16: [SM] Blaming: tf2itemsinfo.smx
L 06/24/2018 - 20:30:16: [SM] Call stack trace:
L 06/24/2018 - 20:30:16: [SM] [1] Line 1544, C:\Users\Brandon\Desktop\sourcemod\scripting\tf2itemsinfo.sp::PrecacheItemSchema
L 06/24/2018 - 20:30:16: [SM] [2] Line 253, C:\Users\Brandon\Desktop\sourcemod\scripting\tf2itemsinfo.sp::OnPluginStart
L 06/24/2018 - 20:30:16: [SM] Unable to load plugin "tf2itemsinfo.smx": Error detected in plugin startup (see error logs)
L 06/24/2018 - 20:38:33: Error log file session closed.
L 06/24/2018 - 20:38:58: SourceMod error session started
L 06/24/2018 - 20:38:58: Info (map "pl_upward") (file "errors_20180624.log")
L 06/24/2018 - 20:38:58: [SM] Exception reported: Script execution timed out
L 06/24/2018 - 20:38:58: [SM] Blaming: tf2itemsinfo.smx
L 06/24/2018 - 20:38:58: [SM] Call stack trace:
L 06/24/2018 - 20:38:58: [SM] [1] Line 1654, C:\Users\Brandon\Desktop\sourcemod\scripting\tf2itemsinfo.sp::GetAttribIDByName
L 06/24/2018 - 20:38:58: [SM] [2] Line 1527, C:\Users\Brandon\Desktop\sourcemod\scripting\tf2itemsinfo.sp::PrecacheItemSchema
L 06/24/2018 - 20:38:58: [SM] [3] Line 253, C:\Users\Brandon\Desktop\sourcemod\scripting\tf2itemsinfo.sp::OnPluginStart
L 06/24/2018 - 20:38:58: [SM] Unable to load plugin "tf2itemsinfo.smx": Error detected in plugin startup (see error logs)
L 06/24/2018 - 20:39:13: Error log file session closed.
I'm running windows with a fresh install of the server, sourcemod, meta mod, and all of the stuff.
If you need more info let me know.
I already reinstalled it and game date is installed
Error log
L 04/12/2017 - 14:23:15: SourceMod error session started
L 04/12/2017 - 14:23:15: Info (map "mvm_coaltown") (file "errors_20170412.log")
L 04/12/2017 - 14:23:15: [SM] Exception reported: Could not initialize call to CAttributeList::SetRuntimeAttributeValue
L 04/12/2017 - 14:23:15: [SM] Blaming: tf2attributes.smx
L 04/12/2017 - 14:23:15: [SM] Call stack trace:
L 04/12/2017 - 14:23:15: [SM] [0] SetFailState
L 04/12/2017 - 14:23:15: [SM] [1] Line 176, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 04/12/2017 - 14:23:15: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 04/12/2017 - 14:23:15: [SM] Unable to load plugin "tf2attributes_ubup.smx": Could not find required plugin "tf2attributes"
L 04/12/2017 - 14:25:17: SourceMod error session started
L 04/12/2017 - 14:25:17: Info (map "mvm_coaltown") (file "errors_20170412.log")
L 04/12/2017 - 14:25:17: [SM] Exception reported: Could not initialize call to CAttributeList::SetRuntimeAttributeValue
L 04/12/2017 - 14:25:17: [SM] Blaming: tf2attributes.smx
L 04/12/2017 - 14:25:17: [SM] Call stack trace:
L 04/12/2017 - 14:25:17: [SM] [0] SetFailState
L 04/12/2017 - 14:25:17: [SM] [1] Line 176, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 04/12/2017 - 14:25:17: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 04/12/2017 - 14:25:17: [SM] Unable to load plugin "tf2attributes_ubup.smx": Could not find required plugin "tf2attributes"
L 04/12/2017 - 14:35:31: Error log file session closed.
L 04/12/2017 - 14:47:41: SourceMod error session started
L 04/12/2017 - 14:47:41: Info (map "mvm_coaltown") (file "errors_20170412.log")
L 04/12/2017 - 14:47:41: [SM] Exception reported: Could not initialize call to CAttributeList::SetRuntimeAttributeValue
L 04/12/2017 - 14:47:41: [SM] Blaming: tf2attributes.smx
L 04/12/2017 - 14:47:41: [SM] Call stack trace:
L 04/12/2017 - 14:47:41: [SM] [0] SetFailState
L 04/12/2017 - 14:47:41: [SM] [1] Line 176, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 04/12/2017 - 14:47:41: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 04/12/2017 - 14:47:41: [SM] Unable to load plugin "tf2attributes_ubup.smx": Could not find required plugin "tf2attributes"
L 04/12/2017 - 14:59:46: SourceMod error session started
L 04/12/2017 - 14:59:46: Info (map "mvm_coaltown") (file "errors_20170412.log")
L 04/12/2017 - 14:59:46: [SM] Exception reported: Could not initialize call to CAttributeList::SetRuntimeAttributeValue
L 04/12/2017 - 14:59:46: [SM] Blaming: tf2attributes.smx
L 04/12/2017 - 14:59:46: [SM] Call stack trace:
L 04/12/2017 - 14:59:46: [SM] [0] SetFailState
L 04/12/2017 - 14:59:46: [SM] [1] Line 176, C:\sourcemod\tf2attributes\tf2attributes.sp::OnPluginStart
L 04/12/2017 - 14:59:46: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 04/12/2017 - 14:59:46: [SM] Unable to load plugin "tf2attributes_ubup.smx": Could not find required plugin "tf2attributes"
L 04/12/2017 - 15:08:46: SourceMod error session started
L 04/12/2017 - 15:08:46: Info (map "mvm_coaltown") (file "errors_20170412.log")
L 04/12/2017 - 15:08:46: [SM] Exception reported: Could not initialize call to CAttributeList::SetRuntimeAttributeValue
L 04/12/2017 - 15:08:46: [SM] Blaming: tf2attributes.smx
L 04/12/2017 - 15:08:46: [SM] Call stack trace:
L 04/12/2017 - 15:08:46: [SM] [0] SetFailState
L 04/12/2017 - 15:08:46: [SM] [1] Line 176, C:\sourcemod\tf2attributes\tf2attributes.sp::OnPluginStart
L 04/12/2017 - 15:08:46: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 04/12/2017 - 15:08:46: [SM] Unable to load plugin "tf2attributes_ubup.smx": Could not find required plugin "tf2attributes"
L 04/12/2017 - 15:12:46: SourceMod error session started
L 04/12/2017 - 15:12:46: Info (map "mvm_coaltown") (file "errors_20170412.log")
L 04/12/2017 - 15:12:46: [SM] Exception reported: Could not initialize call to CAttributeList::SetRuntimeAttributeValue
L 04/12/2017 - 15:12:46: [SM] Blaming: tf2attributes.smx
L 04/12/2017 - 15:12:46: [SM] Call stack trace:
L 04/12/2017 - 15:12:46: [SM] [0] SetFailState
L 04/12/2017 - 15:12:46: [SM] [1] Line 176, C:\sourcemod\tf2attributes\tf2attributes.sp::OnPluginStart
L 04/12/2017 - 15:12:46: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 04/12/2017 - 15:12:46: [SM] Unable to load plugin "tf2attributes_ubup.smx": Could not find required plugin "tf2attributes"
Accidental repeat of Issue #12
L 12/27/2017 - 13:21:19: [SM] Error parsing gameconfig file
"c:\allcrits\tf2\tf\addons\sourcemod\gamedata\tf2.attributes.txt":
L 12/27/2017 - 13:21:19: [SM] Error 1 on line 0, col 0: Stream failed to open
L 12/27/2017 - 13:21:19: [SM] Exception reported: Unable to open tf2.attributes: File could not be
opened: The system cannot find the file specified.
L 12/27/2017 - 13:21:19: [SM] Blaming: tf2attributes.smx
L 12/27/2017 - 13:21:19: [SM] Call stack trace:
L 12/27/2017 - 13:21:19: [SM] [0] LoadGameConfigFile
L 12/27/2017 - 13:21:19: [SM] [1] Line 85, C:\sourcemod\tf2attributes\tf2attributes.sp::OnPluginStart
L 12/27/2017 - 13:21:19: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin
startup(see error logs)
]sm plugins load tf2attributes
[SM] Plugin tf2attributes.smx is already loaded.
L 02/06/2018 - 22:07:26: SourceMod error session started
L 02/06/2018 - 22:07:26: Info (map "vsh_2fortdesk_v8") (file "errors_20180206.log")
L 02/06/2018 - 22:07:26: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
L 02/06/2018 - 15:15:57: [SM] Exception reported: Could not initialize call to CAttributeList::SetRuntimeAttributeValue
L 02/06/2018 - 15:15:57: [SM] Blaming: tf2attributes.smx
L 02/06/2018 - 15:15:57: [SM] Call stack trace:
L 02/06/2018 - 15:15:57: [SM] [0] SetFailState
L 02/06/2018 - 15:15:57: [SM] [1] Line 176, C:\sourcemod\tf2attributes\tf2attributes.sp::OnPluginStart
L 02/06/2018 - 15:15:57: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
AAAAAAAAAAAAAWAWWWWWWWWWWW
L 07/05/2018 - 18:57:43: [SM] Exception reported: Could not initialize call to CEconItemSchema::GetAttributeDefinitionByName
L 07/05/2018 - 18:57:43: [SM] Blaming: tf2attributes.smx
L 07/05/2018 - 18:57:43: [SM] Call stack trace:
L 07/05/2018 - 18:57:43: [SM] [0] SetFailState
L 07/05/2018 - 18:57:43: [SM] [1] Line 153, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 07/05/2018 - 18:57:43: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
I've done some looking around for similar problems, and I've tried everything. Re-installing, updating gamedata.txt all that stuff but I get this every time.
sm plugins load tf2attributes
L 06/26/2018 - 21:32:22: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
L 06/26/2018 - 21:32:22: [SM] Exception reported: Could not initialize call to CEconItemSchema::GetAttributeDefinitionByName
L 06/26/2018 - 21:32:22: [SM] Blaming: tf2attributes.smx
L 06/26/2018 - 21:32:22: [SM] Call stack trace:
L 06/26/2018 - 21:32:22: [SM] [0] SetFailState
L 06/26/2018 - 21:32:22: [SM] [1] Line 153, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
[SM] Plugin tf2attributes.smx failed to load: Error detected in plugin startup (see error logs).
I don't know what any of this means, please help.
[tf2attributes.smx] Could not initialize call to CEconItemSchema::GetItemDefinition
[tf2attributes.smx] Could not initialize call to CEconItemView::GetSOCData
[SM] Exception reported: Could not initialize call to GEconItemSchema
[SM] Blaming: tf2attributes.smx
[SM] Call stack trace:
[SM] [0] SetFailState
[SM] [1] Line 115, tf2attributes.sp::OnPluginStart
[SM] Plugin tf2attributes.smx failed to load: Error detected in plugin startup (see error logs).
I attempted to compile the plugin myself from the git. Still doesn't load. My operating system is linux based, and the gamedata is in the appropriate folder.
EDIT: After restarting the server, everything now works. I'm a dummy.
I followed all the instructions on how to install this mod as i need it for running a x10 server and it just so happened to fail on start up. Ive installed the lastest version into the Source mod dirrectories and it comes back with an error everytime. Ill link the error some time in the morning as i shut my machine down before getting the logs and ill send them over your way asap. Hopefully it isnt to big of an issue
Hello, im new to sourcepawn & sourcemod.
Im making a new plugin which changes each tf2 class max health, and im importing the tf2attributes.inc file on my script to use its functions, the issue comes when im trying to compile it i get errors from the imported tf2attributes.inc file.
Im compiling on Windows 10, using PowerShell and SourcePawn compiler v1.6.0:
PS A:\Projects\SourcePawn\scripting> .\spcomp.exe .\setclassmaxhealth.sp
SourcePawn Compiler 1.6.0
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC
A:\Projects\SourcePawn\scripting\include\tf2attributes.inc(16) : error 001: expected token: "(", but found "-identifier-"
A:\Projects\SourcePawn\scripting\include\tf2attributes.inc(16) : error 001: expected token: ";", but found "("
A:\Projects\SourcePawn\scripting\include\tf2attributes.inc(28) : error 001: expected token: "(", but found "-identifier-"
A:\Projects\SourcePawn\scripting\include\tf2attributes.inc(28) : error 001: expected token: ";", but found "("
A:\Projects\SourcePawn\scripting\include\tf2attributes.inc(39) : error 001: expected token: "(", but found "-identifier-"
A:\Projects\SourcePawn\scripting\include\tf2attributes.inc(39) : error 010: invalid function or declaration
A:\Projects\SourcePawn\scripting\include\tf2attributes.inc(39 -- 50) : error 001: expected token: "(", but found "-identifier-"
A:\Projects\SourcePawn\scripting\include\tf2attributes.inc(39 -- 50) : fatal error 127: too many error messages on one line
Compilation aborted.
8 Errors.
The tf2attributes.inc is the latest file found on github releases.
Im not sure if im doing something wrong, or is it the actual imported file, but just in case, heres my code:
#include <sourcemod>
#include <tf2attributes>
#include <sdkhooks>
#include <tf2>
#include <tf2_stocks>
// Plugin metadata.
public Plugin:myinfo =
{
name = "[TF2] Set class max health",
author = "MrFrenzoid",
description = "Change default max health on each class, or all classed via incremental percentage.",
version = "4.0",
url = "http://www.sourcemod.net/"
};
// Declaring cvars variables that we'll use to store the cvars values and use them later.
new Handle:g_cvHEnabled;
new Handle:g_cvHMode;
new Handle:g_cvHTeam;
new Handle:g_cvHIncrement;
new Handle:g_cvHSoldier;
new Handle:g_cvHPyro;
new Handle:g_cvHSpy;
new Handle:g_cvHDemoman;
new Handle:g_cvHSniper;
new Handle:g_cvHEngineer;
new Handle:g_cvHHeavy;
new Handle:g_cvHScout;
new Handle:g_cvHMedic;
// Executed when the plugins first launches.
public OnPluginStart()
{
// Creating cvars, and associating their value to each variable.
g_cvHEnabled = CreateConVar("sm_mhenabled", "1", "Sets whether the plugin is enabled.");
g_cvHMode = CreateConVar("sm_mhmode", "0", "Sets plugins mode, 0: sm_mhincrement = +% of the default max health for each class for everyone, 1: Custom health value for each class from each ones cvar");
g_cvHTeam = CreateConVar("sm_mhteam", "1", "0: apply to all teams, 1: Only RED, 2: Only Blue");
g_cvHIncrement = CreateConVar("sm_mhincrement", "0.2", "% incremented on the default maxhealth to all classes");
g_cvHSoldier = CreateConVar("sm_mhsoldier", "200", "Sets Soldiers max health");
g_cvHPyro = CreateConVar("sm_mhpyro", "200", "Sets Pyros max health");
g_cvHSpy = CreateConVar("sm_mhspy", "200", "Sets Spys max health");
g_cvHDemoman = CreateConVar("sm_mhdemoman", "200", "Sets Demomans max health");
g_cvHSniper = CreateConVar("sm_mhsniper", "200", "Sets Sniers max health");
g_cvHEngineer = CreateConVar("sm_mhengineer", "200", "Sets Engineers max health");
g_cvHHeavy = CreateConVar("sm_mhheavy", "200", "Sets Heavys max health");
g_cvHScout = CreateConVar("sm_mhscout", "200", "Sets Scouts max health");
g_cvHMedic = CreateConVar("sm_mhmedic", "200", "Sets Medics max health");
// Autogenerates a config file on cfg/sourcemod.
AutoExecConfig(true, "setclassmaxhealth");
// Hook an event, when the event "player_spawn" triggers, call the function Event_PlayerRespawn.
HookEvent("player_spawn", Event_PlayerRespawn);
}
// Executed when the player event "player_spawn" gets triggered.
public Action:Event_PlayerRespawn(Handle:event, const String:name[], bool:dontBroadcast)
{
// If the plugin is off, just continue.
// return plugin didn't change gameplay state.
if (!GetConVarBool(g_cvHEnabled))
return Plugin_Continue;
// Get client's index number.
new client = GetClientOfUserId(GetEventInt(event, "userid"));
// Hook the max health to said client, and when done, callback OnGetMaxHealth.
// returns callback's value.
return Action:SDKHook(client, SDKHook_GetMaxHealth, OnGetMaxHealth);
}
public Action:OnGetMaxHealth(client, &maxhealth)
{
// Get players class and team.
new TFClassType:PlayerClass = TF2_GetPlayerClass(client);
new TFTeam:PlayerTeam = TFTeam:GetClientTeam(client);
// If the player is from any other team that g_cvHTeam is setted to, dont do anything.
// Return plugin didn't change gameplay state.
if ((GetConVarInt(g_cvHTeam) == 1 && PlayerTeam != TFTeam_Red) || (GetConVarInt(g_cvHTeam) == 2 && PlayerTeam != TFTeam_Blue))
return Plugin_Continue;
// Depending on the mode, set everyones max hp depending on g_cvHIncrement's %, or set each class specifically its own max health based on the cvars.
// If mode is 0:
if (!GetConVarBool(g_cvHMode))
{
// incremental percentage formula: (sm_mhincrement * Max HP) + Max HP
// example: sm_mhincrement = 0.2, Max HP = 100 | (0.2 * 100) + 100 = 20 + 100 = 120.
// % calculations must be done on float, since theres a slight change that sm_mhincrement * Max HP might return decimals.
new Float:new_maxHealth = (float(maxhealth) * GetConVarFloat(g_cvHIncrement)) + float(maxhealth);
// SDK_Hooks method.
// maxhealth = RoundFloat(new_maxHealth);
// TF2Attributes method.
TF2Attrib_SetByName(client, "max health additive bonus", new_maxHealth);
}
// If mode is 1:
else
{ // Depending on the player's class, set a different value for their max health.
switch(PlayerClass)
{
case TFClass_Heavy:
{
TF2Attrib_SetByName(client, "max health additive bonus", GetConVarInt(g_cvHHeavy));
}
case TFClass_Soldier:
{
TF2Attrib_SetByName(client, "max health additive bonus", GetConVarInt(g_cvHSoldier));
}
case TFClass_Pyro:
{
TF2Attrib_SetByName(client, "max health additive bonus", GetConVarInt(g_cvHPyro));
}
case TFClass_Spy:
{
TF2Attrib_SetByName(client, "max health additive bonus", GetConVarInt(g_cvHSpy));
}
case TFClass_Sniper:
{
TF2Attrib_SetByName(client, "max health additive bonus", GetConVarInt(g_cvHSniper));
}
case TFClass_DemoMan:
{
TF2Attrib_SetByName(client, "max health additive bonus", GetConVarInt(g_cvHDemoman));
}
case TFClass_Scout:
{
TF2Attrib_SetByName(client, "max health additive bonus", GetConVarInt(g_cvHScout));
}
case TFClass_Engineer:
{
TF2Attrib_SetByName(client, "max health additive bonus", GetConVarInt(g_cvHEngineer));
}
case TFClass_Medic:
{
TF2Attrib_SetByName(client, "max health additive bonus", GetConVarInt(g_cvHMedic));
}
}
}
// Return plugin changed gameplay state.
return Plugin_Changed;
}
Best regards, and sorry for the inconveniences!
So something strange is going on the plugin stops map spawned sentries from doing dmg to red team. on some maps they have them in obby or a sentry course and they do no dmg to players when they shoot them.
Kinda at a loss here
we have everything updated to the newest version btw.
L 02/24/2018 - 15:23:20: [SM] Blaming: tf2attributes.smx
L 02/24/2018 - 15:23:20: [SM] Call stack trace:
L 02/24/2018 - 15:23:20: [SM] [0] LoadGameConfigFile
L 02/24/2018 - 15:23:20: [SM] [1] Line 85, C:\sourcemod\tf2attributes\tf2attributes.sp::OnPluginStart
L 02/24/2018 - 15:23:20: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 02/24/2018 - 15:27:17: SourceMod error session started
L 02/24/2018 - 15:27:17: Info (map "cp_dustbowl") (file "errors_20180224.log")
L 02/24/2018 - 15:27:17: [SM] Error parsing gameconfig file "C:\hlserver\tf2\tf\addons\sourcemod\gamedata\tf2.attributes.txt":
L 02/24/2018 - 15:27:17: [SM] Error 1 on line 0, col 0: Stream failed to open
L 02/24/2018 - 15:27:17: [SM] Exception reported: Unable to open tf2.attributes: File could not be opened: The system cannot find the file specified.
Is something wrong? Also, the gamedata crap is setup correctly
Latest gamedata gives me this error. Plugin seems to still run fine though.
L 11/14/2017 - 05:00:59: SourceMod error session started
L 11/14/2017 - 05:00:59: Info (map "plr_hightower_rainy") (file "errors_20171114.log")
L 11/14/2017 - 05:00:59: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
L 11/14/2017 - 17:04:01: Error log file session closed.
OS: Linux
SourceMod Version: 1.9.0.5996
Hello.
The plugin has also been updated to 1.7.3.1 after the game data update for 2024-04-18 Team Fortress 2.
However, since the update, we have been experiencing the following problems.
There is a problem that the server crashes when adjusting the value to TF2Attrib_SetByDefIndex.
The RTD plugin using the tf2attributes plugin as a dependency also has a problem that the server crashes when Perks using the TF2Attrib_SetByDefIndex value occurs.
The TF2 server is running on Windows and the SourceMod version in use is 1.11.0-git6956.
Title explains it.
Maybe it is an idea to add a native to remove static attributes from a weapon/client. Currently there's a native to get static attributes but support ends there. Attempting to remove the attribute using TF2Attrib_RemoveByDefIndex or TF2Attrib_RemoveByName natives doesn't work, haven't tested TF2Attrib_RemoveAll yet.
I put the smx and txt files in the folders it says you put them in, but when starting my server, I get this message: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
If I put the paths to these in the metaplugins.ini, I get error 0xc000012f.
;If your plugin came with a .vdf file, you do not need to use this file.
;
;List one plugin per line. Each line should contain the path to the plugin's binary.
;Any line starting with a ';' character is a comment line, and is ignored.
;
;You do not need to include the _i486.so or .dll part of the file name. Example:
; addons/sourcemod/bin/sourcemod_mm
;You may also put an alias in front of the file, for example:
; sm addons/sourcemod/bin/sourcemod_mm
;Will allow you to use "meta load sm" from the console.
;
addons/sourcemod/bin/sourcemod_mm
;********* LIST PLUGINS BELOW ***********
c:\tf2server\tf\addons\sourcemod\plugins\tf2attributes.smx
c:\tf2server\tf\addons\sourcemod\gamedata\tf2.attributes.txt this is the metaplugins.ini.
L 10/11/2017 - 11:53:12: [SM] Exception reported: Could not initialize call to CEconItemSchema::GetAttributeDefinition
L 10/11/2017 - 11:53:12: [SM] Blaming: tf2attributes.smx
L 10/11/2017 - 11:53:12: [SM] Call stack trace:
L 10/11/2017 - 11:53:13: [SM] [0] SetFailState
L 10/11/2017 - 11:53:13: [SM] [1] Line 142, C:\sourcemod\tf2attributes\tf2attributes.sp::OnPluginStart
L 10/11/2017 - 11:53:13: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 10/11/2017 - 11:53:13: [SM] Unable to load plugin "tf2x10.smx": Could not find required plugin "tf2attributes"
I feel like I missed something important.
L 03/04/2017 - 15:55:10: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
Hello i was testing the last update of the plugin and for some reason i got this error:
L 04/20/2024 - 02:34:17: [SM] Exception reported: Entity 1 (1) is invalid
L 04/20/2024 - 02:34:17: [SM] Blaming: tf2attributes.smx
L 04/20/2024 - 02:34:17: [SM] Call stack trace:
L 04/20/2024 - 02:34:17: [SM] [0] GetEntityAddress
L 04/20/2024 - 02:34:17: [SM] [1] Line 980, C:\tf2serverff2\steamapps\common\Team Fortress 2 Dedicated Server\tf\addons\sourcemod\scripting\tf2attributes.sp::GetEntityAttributeList
L 04/20/2024 - 02:34:17: [SM] [2] Line 1195, C:\tf2serverff2\steamapps\common\Team Fortress 2 Dedicated Server\tf\addons\sourcemod\scripting\tf2attributes.sp::RemoveNonNetworkedRuntimeAttributesOnEntities
L 04/20/2024 - 02:34:17: [SM] [3] Line 375, C:\tf2serverff2\steamapps\common\Team Fortress 2 Dedicated Server\tf\addons\sourcemod\scripting\tf2attributes.sp::OnPluginEnd
I run the server on Linux system and the only problems for now i found are i cant add bots or choose class
Alright, I tried to update the gamedata txt, but I am still getting this one error. I am just running a small LAN server. (I am still kinda new to starting srcds servers tbh.) My guess is that I either have too much plugins conflicting or there is just one bug with one of the required files
L 08/10/2018 - 00:43:56: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
L 08/10/2018 - 00:43:56: [SM] Exception reported: Could not initialize call to CEconItemSchema::GetAttributeDefinitionByName
L 08/10/2018 - 00:43:56: [SM] Blaming: tf2attributes.smx
L 08/10/2018 - 00:43:56: [SM] Call stack trace:
L 08/10/2018 - 00:43:56: [SM] [0] SetFailState
L 08/10/2018 - 00:43:56: [SM] [1] Line 153, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 08/10/2018 - 00:43:56: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
I'm trying to setup a server and have been getting an error with tf2attributes.
-in the console - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
sm plugins list
[SM] Listing 23 plugins:
01 "Admin File Reader" (1.10.0.6502) by AlliedModders LLC
02 "Admin Help" (1.10.0.6502) by AlliedModders LLC
03 "Admin Menu" (1.10.0.6502) by AlliedModders LLC
04 "Anti-Flood" (1.10.0.6502) by AlliedModders LLC
05 "Basic Ban Commands" (1.10.0.6502) by AlliedModders LLC
06 "Basic Chat" (1.10.0.6502) by AlliedModders LLC
07 "Basic Comm Control" (1.10.0.6502) by AlliedModders LLC
08 "Basic Commands" (1.10.0.6502) by AlliedModders LLC
09 "Basic Info Triggers" (1.10.0.6502) by AlliedModders LLC
10 "Basic Votes" (1.10.0.6502) by AlliedModders LLC
11 "Client Preferences" (1.10.0.6502) by AlliedModders LLC
12 "Fun Commands" (1.10.0.6502) by AlliedModders LLC
13 "Fun Votes" (1.10.0.6502) by AlliedModders LLC
14 "[TF2] High Five Enemies" (1.3) by FlaminSarge
15 "Nextmap" (1.10.0.6502) by AlliedModders LLC
16 "Player Commands" (1.10.0.6502) by AlliedModders LLC
17 "Reserved Slots" (1.10.0.6502) by AlliedModders LLC
18 "TF2: Roll the Dice" (0.4.4.2) by linux_lover ([email protected])
19 "Sound Commands" (1.10.0.6502) by AlliedModders LLC
20 "[TF2] TF2Attributes" (1.2.1) by FlaminSarge
21 "[TF2Items] Give Weapon" (3.14159) by FlaminSarge (orig by asherkin)
22 "Multiply a Weapon's Stats by 10" (1.7.4) by The TF2x10 group
23 "Updater" (1.2.2) by GoD-Tony
Errors:
tf2attributes.smx ([TF2] TF2Attributes): Error detected in plugin startup (see error logs)
tf2items_giveweapon.smx ([TF2Items] Give Weapon): Required extension "TF2Items" file("tf2items.ext.2.ep2v") not running
tf2x10.smx (Multiply a Weapon's Stats by 10): Required extension "TF2Items" file("tf2items.ext.2.ep2v") not running`
-in the error log - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
L 03/28/2021 - 19:09:53: SourceMod error session started
L 03/28/2021 - 19:09:53: Info (map "ctf_2fort") (file "C:\Users\ZeroFusion28\gameservers\tf2server\tf\addons\sourcemod\logs\errors_20210328.log")
L 03/28/2021 - 19:09:53: [SM] Error parsing gameconfig file "C:\Users\ZeroFusion28\gameservers\tf2server\tf\addons\sourcemod\gamedata\tf2.attributes.txt":
L 03/28/2021 - 19:09:53: [SM] Error 1 on line 0, col 0: Stream failed to open
L 03/28/2021 - 19:09:53: [SM] Exception reported: Unable to open tf2.attributes: File could not be opened: The system cannot find the file specified.
L 03/28/2021 - 19:09:53: [SM] Blaming: tf2attributes.smx
L 03/28/2021 - 19:09:53: [SM] Call stack trace:
L 03/28/2021 - 19:09:53: [SM] [0] LoadGameConfigFile
L 03/28/2021 - 19:09:53: [SM] [1] Line 85, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 03/28/2021 - 19:09:53: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 03/28/2021 - 19:09:53: [SM] Unable to load plugin "tf2items_giveweapon.smx": Required extension "TF2Items" file("tf2items.ext.2.ep2v") not running
L 03/28/2021 - 19:09:53: [SM] Unable to load plugin "tf2x10.smx": Required extension "TF2Items" file("tf2items.ext.2.ep2v") not running
L 03/28/2021 - 19:11:40: SourceMod error session started
L 03/28/2021 - 19:11:40: Info (map "plr_highertower") (file "C:\Users\ZeroFusion28\gameservers\tf2server\tf\addons\sourcemod\logs\errors_20210328.log")
L 03/28/2021 - 19:11:40: [SM] Error parsing gameconfig file "C:\Users\ZeroFusion28\gameservers\tf2server\tf\addons\sourcemod\gamedata\tf2.attributes.txt":
L 03/28/2021 - 19:11:40: [SM] Error 1 on line 0, col 0: Stream failed to open
L 03/28/2021 - 19:11:40: [SM] Exception reported: Unable to open tf2.attributes: File could not be opened: The system cannot find the file specified.
L 03/28/2021 - 19:11:40: [SM] Blaming: tf2attributes.smx
L 03/28/2021 - 19:11:40: [SM] Call stack trace:
L 03/28/2021 - 19:11:40: [SM] [0] LoadGameConfigFile
L 03/28/2021 - 19:11:40: [SM] [1] Line 85, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 03/28/2021 - 19:11:40: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 03/28/2021 - 19:11:40: [SM] Unable to load plugin "tf2items_giveweapon.smx": Required extension "TF2Items" file("tf2items.ext.2.ep2v") not running
L 03/28/2021 - 19:11:40: [SM] Unable to load plugin "tf2x10.smx": Required extension "TF2Items" file("tf2items.ext.2.ep2v") not running
L 03/28/2021 - 19:14:47: Error log file session closed.
L 03/28/2021 - 19:23:43: SourceMod error session started
L 03/28/2021 - 19:23:43: Info (map "plr_highertower") (file "C:\Users\ZeroFusion28\gameservers\tf2server\tf\addons\sourcemod\logs\errors_20210328.log")
L 03/28/2021 - 19:23:43: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
L 03/28/2021 - 19:23:43: [SM] Exception reported: Could not initialize call to CEconItemSchema::GetAttributeDefinitionByName
L 03/28/2021 - 19:23:43: [SM] Blaming: tf2attributes.smx
L 03/28/2021 - 19:23:43: [SM] Call stack trace:
L 03/28/2021 - 19:23:43: [SM] [0] SetFailState
L 03/28/2021 - 19:23:43: [SM] [1] Line 153, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 03/28/2021 - 19:23:43: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 03/28/2021 - 19:23:43: [SM] Unable to load plugin "tf2items_giveweapon.smx": Required extension "TF2Items" file("tf2items.ext.2.ep2v") not running
L 03/28/2021 - 19:23:43: [SM] Unable to load plugin "tf2x10.smx": Required extension "TF2Items" file("tf2items.ext.2.ep2v") not running
L 03/28/2021 - 19:27:35: SourceMod error session started
L 03/28/2021 - 19:27:35: Info (map "plr_highertower") (file "C:\Users\ZeroFusion28\gameservers\tf2server\tf\addons\sourcemod\logs\errors_20210328.log")
L 03/28/2021 - 19:27:35: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
L 03/28/2021 - 19:27:35: [SM] Exception reported: Could not initialize call to CEconItemSchema::GetAttributeDefinitionByName
L 03/28/2021 - 19:27:35: [SM] Blaming: tf2attributes.smx
L 03/28/2021 - 19:27:35: [SM] Call stack trace:
L 03/28/2021 - 19:27:35: [SM] [0] SetFailState
L 03/28/2021 - 19:27:35: [SM] [1] Line 153, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 03/28/2021 - 19:27:35: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 03/28/2021 - 19:27:35: [SM] Unable to load plugin "tf2items_giveweapon.smx": Required extension "TF2Items" file("tf2items.ext.2.ep2v") not running
L 03/28/2021 - 19:27:35: [SM] Unable to load plugin "tf2x10.smx": Required extension "TF2Items" file("tf2items.ext.2.ep2v") not running
L 03/28/2021 - 19:27:58: Error log file session closed.
L 03/28/2021 - 19:32:50: SourceMod error session started
L 03/28/2021 - 19:32:50: Info (map "plr_highertower") (file "C:\Users\ZeroFusion28\gameservers\tf2server\tf\addons\sourcemod\logs\errors_20210328.log")
L 03/28/2021 - 19:32:50: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
L 03/28/2021 - 19:32:50: [SM] Exception reported: Could not initialize call to CEconItemSchema::GetAttributeDefinitionByName
L 03/28/2021 - 19:32:50: [SM] Blaming: tf2attributes.smx
L 03/28/2021 - 19:32:50: [SM] Call stack trace:
L 03/28/2021 - 19:32:50: [SM] [0] SetFailState
L 03/28/2021 - 19:32:50: [SM] [1] Line 153, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 03/28/2021 - 19:32:50: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 03/28/2021 - 19:32:50: [SM] Unable to load plugin "tf2items_giveweapon.smx": Required extension "TF2Items" file("tf2items.ext.2.ep2v") not running
L 03/28/2021 - 19:32:50: [SM] Unable to load plugin "tf2x10.smx": Required extension "TF2Items" file("tf2items.ext.2.ep2v") not running
I've tried to fix the problem, but to no avail.
Hello, I have installed tf2attributes and Im getting a bunch of errors when I load it.
Console:
] rcon sm plugins load tf2attributes
L 07/12/2016 - 19:34:08: [tf2attributes.smx] Could not initialize call to CEconItemSchema::GetItemDefinition
L 07/12/2016 - 19:34:08: [tf2attributes.smx] Could not initialize call to CEconItemView::GetSOCData
L 07/12/2016 - 19:34:08: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
L 07/12/2016 - 19:34:08: [SM] Exception reported: Could not initialize call to GEconItemSchema
L 07/12/2016 - 19:34:08: [SM] Blaming: tf2attributes.smx()
L 07/12/2016 - 19:34:08: [SM] Call stack trace:
L 07/12/2016 - 19:34:08: [SM] [0] SetFailState
L 07/12/2016 - 19:34:08: [SM] [1] Line 131, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart()
[SM] Plugin tf2attributes.smx failed to load: Error detected in plugin startup (see error logs).
�
I have tf2.attributes.txt, tf2attributes.smx and tf2attributes.inc installed in their correct directories. Why am I getting this error?
sm plugins list
[SM] Listing 22 plugins:
01 "Admin File Reader" (1.8.0.6025) by AlliedModders LLC
02 "Admin Help" (1.8.0.6025) by AlliedModders LLC
03 "Admin Menu" (1.8.0.6025) by AlliedModders LLC
04 "Anti-Flood" (1.8.0.6025) by AlliedModders LLC
05 "Basic Ban Commands" (1.8.0.6025) by AlliedModders LLC
06 "Basic Chat" (1.8.0.6025) by AlliedModders LLC
07 "Basic Comm Control" (1.8.0.6025) by AlliedModders LLC
08 "Basic Commands" (1.8.0.6025) by AlliedModders LLC
09 "Basic Info Triggers" (1.8.0.6025) by AlliedModders LLC
10 "Basic Votes" (1.8.0.6025) by AlliedModders LLC
11 "[TF2] Chat Tag" (3.5.0) by John B.
12 "Client Preferences" (1.8.0.6025) by AlliedModders LLC
13 "[Source 2013] Custom Chat Colors" (3.1.0) by Dr. McKay
14 "Fun Commands" (1.8.0.6025) by AlliedModders LLC
15 "Fun Votes" (1.8.0.6025) by AlliedModders LLC
16 "Nextmap" (1.8.0.6025) by AlliedModders LLC
17 "Player Commands" (1.8.0.6025) by AlliedModders LLC
18 "Reserved Slots" (1.8.0.6025) by AlliedModders LLC
19 "Roll The Dice (Revamped)" (1.02) by Phil25
20 "Sound Commands" (1.8.0.6025) by AlliedModders LLC
21 "[TF2] TF2Attributes" (1.2.1) by FlaminSarge
22 "tf2attributes_example.smx"
Errors:
custom-chatcolors.smx ([Source 2013] Custom Chat Colors): Could not find r
d plugin "scp"
rtd.smx (Roll The Dice (Revamped)): Depends on plugin: tf2attributes.smx
tf2attributes.smx ([TF2] TF2Attributes): Error detected in plugin startup
rror logs)
tf2attributes_example.smx: Could not find required plugin "tf2attributes"
i start to do server like 8 monts ago so i dont known a lot of sourcemod but really i serch a lot how to fix this but i cant , i want install rtd plugin but i need tf2attributes, so i need help
It says on the allied mods:
Installation (SM1.7+):
But there is no .txt?
I m running my own tf2 server, it errors on line 85 which is new Handle:hGameConf = LoadGameConfigFile("tf2.attributes");
I am aware that is is a duplicate of issue number #12 But I am not sure how to set up my gamedata file. I googled it and all I could find was issue number 12.
what keeps popping up in the console
[SM] Error parsing gameconfig file "C:\Users\Administrator\Desktop\SteamCMD\tf2\tf\addons\sourcemod\gamedata\tf2.attributes.txt":
L 12/12/2016 - 19:36:13: [SM] Error 1 on line 0, col 0: Stream failed to open
L 12/12/2016 - 19:36:13: [SM] Exception reported: Unable to open tf2.attributes: File could not be opened: The system cannot find the file specified.
L 12/12/2016 - 19:36:13: [SM] Blaming: tf2attributes.smx
L 12/12/2016 - 19:36:13: [SM] Call stack trace:
L 12/12/2016 - 19:36:13: [SM] [0] LoadGameConfigFile
L 12/12/2016 - 19:36:13: [SM] [1] Line 85, /home/forums/content/files/8/4/3/0/4/116848.attach::OnPluginStart
L 12/12/2016 - 19:36:13: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 12/12/2016 - 19:36:13: [SM] Unable to load plugin "tf2x10.smx": Could not find required plugin "tf2attributes"
i wouldn't mind help as i need this for a x10 server
I have the .smx and tf2.attributes.txt installed to plugins and gamedata respectively
Error Log:
tf2attributes.smx ([TF2] TF2Attributes): Error detected in plugin startup (see error logs)
Errors:
cw3\attributes\aw2attrib.smx (Custom Weapons 3: AW2 Attributes): Library not found: tf2attributes
cw3\attributes\moreaw2.smx (Custom Weapons: More Advanced Weaponiser 2 Attributes): Library not found: tf2attributes
cw3\attributes\orion.smx (Custom Weapons: Orion's Attributes): Library not found: tf2attributes
cw3\attributes\rays-attributes.smx (Custom Weapons 3: Ray's Attributes): Library not found: tf2attributes
cw3\modules\cw2attributes.smx (Custom Weapons 3: CW2 Attributes Module): Library not found: tf2attributes
cw3\modules\cw2sounds.smx (Custom Weapons 3: CW2 Sound Module): Library not found: tf2attributes
cw3\modules\cw3-attributes.smx (Custom Weapons 3: Attributes Module): Library not found: tf2attributes
cw3.smx (Custom Weapons 3): Library not found: tf2attributes
killstreak_drn.smx (Killstreak for Everyone): Library not found: tf2attributes
It says there is no tf2attributes library, but I don't know how to create said library.
Another error thing: 32 "[TF2] TF2Attributes" (1.2.1) by FlaminSarge
With the release of the x64 TF2 beta I was wondering if there was any chances of the gamedata being updated to support it.
From my testing in game (and from uploading the server binaries on https://asherkin.github.io/vtable/), the offsets seem to be the same, but the signatures have changed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.