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

[TF2] TF2Attributes (v1.7.2, 2022/09/18)


Post New Thread Reply   
 
Thread Tools Display Modes
Peterpants
Junior Member
Join Date: Jan 2009
Old 04-06-2015 , 18:25   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #291

Just for giggles, I also downloaded the source and include and compiled it myself. Same result. Here are (hopefully) useful additional details:

Code:
sm version
 SourceMod Version Information:
    SourceMod Version: 1.7.1-dev+5181
    SourcePawn Engine: SourcePawn 1.7, jit-x86 (build 1.7.1-dev+5181)
    SourcePawn API: v1 = 4, v2 = 6
    Compiled on: Apr  4 2015 08:07:54
    Built from: https://github.com/alliedmodders/sourcemod/commit/491d24a
    Build ID: 5181:491d24a
    http://www.sourcemod.net/
sm exts list
[SM] Displaying 9 extensions:
[01] Automatic Updater (1.7.1-dev+5181): Updates SourceMod gamedata files
[02] Webternet (1.7.1-dev+5181): Extension for interacting with URLs
[03] TF2 Tools (1.7.1-dev+5181): TF2 extended functionality
[04] BinTools (1.7.1-dev+5181): Low-level C/C++ Calling API
[05] SDK Hooks (1.7.1-dev+5181): Source SDK Hooks
[06] SDK Tools (1.7.1-dev+5181): Source SDK Tools
[07] Top Menus (1.7.1-dev+5181): Creates sorted nested menus
[08] Client Preferences (1.7.1-dev+5181): Saves client preference settings
[09] SQLite (1.7.1-dev+5181): SQLite Driver
sm plugins list
[SM] Listing 17 plugins:
  01 "Admin File Reader" (1.7.1-dev+5181) by AlliedModders LLC
  02 "Admin Help" (1.7.1-dev+5181) by AlliedModders LLC
  03 "Admin Menu" (1.7.1-dev+5181) by AlliedModders LLC
  04 "Anti-Flood" (1.7.1-dev+5181) by AlliedModders LLC
  05 "Basic Ban Commands" (1.7.1-dev+5181) by AlliedModders LLC
  06 "Basic Chat" (1.7.1-dev+5181) by AlliedModders LLC
  07 "Basic Comm Control" (1.7.1-dev+5181) by AlliedModders LLC
  08 "Basic Commands" (1.7.1-dev+5181) by AlliedModders LLC
  09 "Basic Info Triggers" (1.7.1-dev+5181) by AlliedModders LLC
  10 "Basic Votes" (1.7.1-dev+5181) by AlliedModders LLC
  11 "Client Preferences" (1.7.1-dev+5181) by AlliedModders LLC
  12 "Fun Commands" (1.7.1-dev+5181) by AlliedModders LLC
  13 "Fun Votes" (1.7.1-dev+5181) by AlliedModders LLC
  14 "Player Commands" (1.7.1-dev+5181) by AlliedModders LLC
  15 "Reserved Slots" (1.7.1-dev+5181) by AlliedModders LLC
  16 "Sound Commands" (1.7.1-dev+5181) by AlliedModders LLC
  17 <Error> "[TF2] TF2Attributes" (1.1.1) by FlaminSarge
Load Errors:
[TF2] TF2Attributes: Error detected in plugin startup (see error logs)
sm plugins refresh
L 04/06/2015 - 17:23:49: [SM] Plugin encountered error 25: Call was aborted
L 04/06/2015 - 17:23:49: [SM] Native "SetFailState" reported: Could not initialize call to GEconItemSchema
L 04/06/2015 - 17:23:49: [SM] Displaying call stack trace for plugin "tf2attributes.smx":
L 04/06/2015 - 17:23:49: [SM]   [0]  Line 87, tf2attributes.sp::OnPluginStart()
[SM] The plugin list has been refreshed and reloaded.
Peterpants is offline
Peterpants
Junior Member
Join Date: Jan 2009
Old 04-06-2015 , 18:42   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #292

GAH. sorry for trippleposting.

I noticed in my copy/paste above, that tf2items was missing. I've been starting over so many times that I must have missed it on this run. I reinstalled it, now showing

Code:
[03] TF2Items (1.6.1): TF2 Item Modifier
in sm exts list.

Now it's loading, no problem.

Sigh.


I did discover something interesting, though: If the tf2.attributes.txt file is missing from gamedata, the plugin only reports that error ONCE. Upon reloading the plugin a 2nd time, even if the tf2.attributes.txt file has been put back into place, the plugin throws the "could not initialize call to GEconItemSchema" error. Only fully restarting the server fixes it:

Code:
sm plugins unload_all;sm plugins refresh
[SM] All plugins have been unloaded.
[SM] The plugin list has been refreshed and reloaded.
I then renamed tf2.attributes.txt to something else.

Code:
sm plugins unload_all;sm plugins refresh
[SM] All plugins have been unloaded.
L 04/06/2015 - 17:34:03: [SM] Error parsing gameconfig file "c:\ti\servers\tftest\tf\addons\sourcemod\gamedata\tf2.attributes.txt":
L 04/06/2015 - 17:34:03: [SM] Error 1 on line 0, col 0: Stream failed to open
L 04/06/2015 - 17:34:03: [SM] Native "LoadGameConfigFile" reported: Unable to open tf2.attributes: File could not be opened: The system cannot find the file specified.<0D>

L 04/06/2015 - 17:34:03: [SM] Displaying call stack trace for plugin "tf2attributes.smx":
L 04/06/2015 - 17:34:03: [SM]   [0]  Line 76, tf2attributes.sp::OnPluginStart()
[SM] The plugin list has been refreshed and reloaded.
sm plugins unload_all;sm plugins refresh
[SM] All plugins have been unloaded.
L 04/06/2015 - 17:34:34: [SM] Plugin encountered error 25: Call was aborted
L 04/06/2015 - 17:34:34: [SM] Native "SetFailState" reported: Could not initialize call to GEconItemSchema
L 04/06/2015 - 17:34:34: [SM] Displaying call stack trace for plugin "tf2attributes.smx":
L 04/06/2015 - 17:34:34: [SM]   [0]  Line 87, tf2attributes.sp::OnPluginStart()
[SM] The plugin list has been refreshed and reloaded.
Notice that I unloaded and refreshed twice in a row but the second time the error was different.



TLDR: i got it working with a completely fresh install of all the latest snapshots.
Peterpants is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 04-08-2015 , 01:31   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #293

So this is a Windows server? The plugin still works in its entirety for me, without changes to gamedata, on Windows. I'm trying to figure out what could be causing this...
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
martellus
Member
Join Date: Jan 2013
Old 04-15-2015 , 23:07   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #294

I moved to a windows server yesterday, been switching over to windows files from linux files, but now I am getting this error


Code:
L 04/16/2015 - 03:08:09: [SM] Plugin encountered error 25: Call was aborted
L 04/16/2015 - 03:08:09: [SM] Native "SetFailState" reported: Could not initialize call to CEconItemSchema::GetAttributeDefinition
L 04/16/2015 - 03:08:09: [SM] Displaying call stack trace for plugin "tf2attributes.smx":
L 04/16/2015 - 03:08:09: [SM] [0] Line 97, /home/groups/alliedmodders/forums/files/8/4/3/0/4/116848.attach::OnPluginStart()
I cant think of what I might be missing right now, any ideas?

Just updating everything fixed it, im dumb

Last edited by martellus; 04-16-2015 at 14:09.
martellus is offline
kgbproject
Member
Join Date: Nov 2014
Location: Russia
Old 05-01-2015 , 04:58   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #295

Last server update plugin work-100%
Today server update plugin work-0%
kgbproject is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 05-06-2015 , 23:14   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #296

Still no issues with current Windows gamedata on my end, as a heads up to anybody having issues.
If you've still got issues with the plugin not working, then gather as much information as you can and post it.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
bottiger
AlliedModders Donor
Join Date: Dec 2010
Old 05-14-2015 , 01:48   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #297

There is a bug with the code "pAttribDef < Address_MinimumValid".

I am getting addresses like eb461394 occasionally which comes out to be -347729004 which is lower than Address_MinimumValid which is 0x1000.

To fix this I would add "&& pAttribDef > Address:-1"
__________________
bottiger is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 05-16-2015 , 04:36   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #298

Please edit your post to contain punctuation (and possibly grammar) so that people can understand what you're saying.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 05-16-2015 , 05:07   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #299

Are you using attribute 128 at all (only while activate)?

That can mess up the initial clip sometimes.
__________________
Chdata is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 05-16-2015 , 14:17   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #300

Instead of using TF2Attributes, try using TF2Items_OnGiveNamedItem.

You can look at VSH's usage of the function to see how it puts

Edit: Yeah, the reason yours probably doesn't work is this:

Imagine adding 2x ammo to a player's weapon during the middle of gameplay.

Well, you just increased the limit, but you didn't give them more ammo.

Yours does just that, just shortly after they're given the weapon.

So you simply need to convert this to TF2Items to add the attrib before the weapon is equipped to the player.
__________________

Last edited by Chdata; 05-16-2015 at 14:20.
Chdata 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 02:58.


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