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

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


Post New Thread Reply   
 
Thread Tools Display Modes
arynn24
New Member
Join Date: Dec 2018
Old 12-30-2018 , 00:12   Re: [TF2] TF2Attributes (v1.2.1, 07/02/2015)
Reply With Quote #571

Quote:
Originally Posted by PC Gamer View Post
Did you download the tf2.attributes.txt file from GitHub and place it in your sourcemod/gamedata folder? (link:https://github.com/FlaminSarge/tf2attributes )
Yeah, I did. I even re-installed the .txt you linked, no difference. If you could, is there a way you can link me to a tutorial to make sure I have everything right?

Also, I couldn't find any videos on my own.

Last edited by arynn24; 12-30-2018 at 00:42. Reason: Forgot a note.
arynn24 is offline
arynn24
New Member
Join Date: Dec 2018
Old 12-30-2018 , 02:38   Re: [TF2] TF2Attributes (v1.2.1, 07/02/2015)
Reply With Quote #572

If it's possible, could someone send me files for working TF2Attributes?
arynn24 is offline
ProfessorHeavy
New Member
Join Date: Apr 2014
Old 01-03-2019 , 16:56   Re: [TF2] TF2Attributes (v1.2.1, 07/02/2015)
Reply With Quote #573

Quote:
Originally Posted by arynn24 View Post
Yeah, I did. I even re-installed the .txt you linked, no difference. If you could, is there a way you can link me to a tutorial to make sure I have everything right?

Also, I couldn't find any videos on my own.
Quote:
Originally Posted by arynn24 View Post
If it's possible, could someone send me files for working TF2Attributes?
Arynn, you are using an out of date version. Use the version on GitHub.
https://github.com/FlaminSarge/tf2attributes
That error you're getting can be ignored, it really doesn't matter since TF2Attributes does not actually use SetCustomName. But the main problem is that you are using the version on here instead of GitHub. Go to there and download the files.
ProfessorHeavy is offline
di018
New Member
Join Date: Aug 2018
Location: Russia.
Old 01-29-2019 , 00:14   Re: [TF2] TF2Attributes (v1.2.1, 07/02/2015)
Reply With Quote #574

Greetings, everyone.
After another TF2 update i have seen this errors:
Code:
L 01/29/2019 - 11:00:14: [tf2attributes.smx] Could not initialize call to CEconItemSchema::GetItemDefinition
L 01/29/2019 - 11:00:14: [tf2attributes.smx] Could not initialize call to CEconItemView::GetSOCData
L 01/29/2019 - 11:00:14: [tf2attributes.smx] Could not initialize call to CEconItem::SetCustomName
L 01/29/2019 - 11:00:14: [SM] Exception reported: Could not initialize call to GEconItemSchema
L 01/29/2019 - 11:00:14: [SM] Blaming: tf2attributes.smx
L 01/29/2019 - 11:00:14: [SM] Call stack trace:
L 01/29/2019 - 11:00:14: [SM]   [0] SetFailState
L 01/29/2019 - 11:00:14: [SM]   [1] Line 131, C:\sourcemod\tf2attributes\tf2attributes.sp::OnPluginStart
Anyone know how to fix that?

EDIT:Lollery, idk why, but it no longer appears... Somehow, I just restart the server and everything works well now.

Last edited by di018; 01-29-2019 at 00:37.
di018 is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 02-04-2019 , 19:11   Re: [TF2] TF2Attributes (v1.2.1, 07/02/2015)
Reply With Quote #575

I've created an experimental branch with a couple of new features, namely a native to check if an attribute name is valid and a native to use the game's handling to add attributes to players for a timed duration. The codebase was also refactored in the process.

Take a look here. If you happen to run into any regressions / bugs (especially with the new runtime address assertions), shoot me a PM or file an issue on Github.

Edit: I've since released an update containing a fix in the new gamedata and a new native. You can grab that here.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 03-11-2019 at 07:01. Reason: words
nosoop is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 04-05-2019 , 15:07   Re: [TF2] TF2Attributes (v1.2.1, 07/02/2015)
Reply With Quote #576

I'm not sure if I've got an old version of the tf2attributes.inc file, but there are a few things I noticed wrong with my copy;

1. The __pl_tf2attributes_SetNTVOptional bit is missing a return type (should be SharedPlugin IIRC). Had a compiler warning about this when I tried compiling a plugin that used TF2Attributes.
2. The natives TF2Attrib_SetInitialValue, TF2Attrib_GetInitialValue, TF2Attrib_SetIsSetBonus and TF2Attrib_GetIsSetBonus are all commented out at the bottom but are still included in the aforementioned __pl_tf2attributes_SetNTVOptional code, marking them as optional. I'm not 100% certain if they are deprecated, but if they are, those 4 natives should be uncommented, and have #pragma deprecated insertreasonhere lines added above each of them.

Last edited by 404UserNotFound; 04-05-2019 at 21:21.
404UserNotFound is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-05-2019 , 16:04   Re: [TF2] TF2Attributes (v1.2.1, 07/02/2015)
Reply With Quote #577

Quote:
Originally Posted by 404UNF View Post
I'm not sure if I've got an old version of the tf2attributes.inc file, but there are a few things I noticed wrong with my copy;

1. The __pl_tf2attributes_SetNTVOptional bit is missing a return type (should be SharedPlugin IIRC). Had a compiler warning about this when I tried compiling a plugin that used TF2Attributes.
2. The natives TF2Attrib_SetInitialValue, TF2Attrib_GetInitialValue, TF2Attrib_SetIsSetBonus and TF2Attrib_GetIsSetBonus are all commented out at the bottom but are still included in the aforementioned __pl_tf2attributes_SetNTVOptional code, marking them as optional. I'm not 100% certain if they are deprecated, but if they are, those 4 natives should be uncommented, and have #pragma deprecated insertreasonhere lines added above each of them.
Maybe my monitor is going bad but why are you using such a hard to read color
Mitchell is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 04-05-2019 , 21:22   Re: [TF2] TF2Attributes (v1.2.1, 07/02/2015)
Reply With Quote #578

Quote:
Originally Posted by Mitchell View Post
Maybe my monitor is going bad but why are you using such a hard to read color
Whoops, I've fixed that up. I forgot not everyone is using Stylish and that neat dark theme for the forums that Maxximou5 made.

Last edited by 404UserNotFound; 04-05-2019 at 21:23.
404UserNotFound is offline
JoinedSenses
Senior Member
Join Date: Sep 2013
Old 04-08-2019 , 10:01   Re: [TF2] TF2Attributes (v1.2.1, 07/02/2015)
Reply With Quote #579

SetNTVOptional is type void
__________________
JoinedSenses is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-09-2019 , 16:45   Re: [TF2] TF2Attributes (v1.2.1, 07/02/2015)
Reply With Quote #580

Quote:
Originally Posted by 404UNF View Post
I'm not sure if I've got an old version of the tf2attributes.inc file, but there are a few things I noticed wrong with my copy;

1. The __pl_tf2attributes_SetNTVOptional bit is missing a return type (should be SharedPlugin IIRC). Had a compiler warning about this when I tried compiling a plugin that used TF2Attributes.
2. The natives TF2Attrib_SetInitialValue, TF2Attrib_GetInitialValue, TF2Attrib_SetIsSetBonus and TF2Attrib_GetIsSetBonus are all commented out at the bottom but are still included in the aforementioned __pl_tf2attributes_SetNTVOptional code, marking them as optional. I'm not 100% certain if they are deprecated, but if they are, those 4 natives should be uncommented, and have #pragma deprecated insertreasonhere lines added above each of them.
I don't know about the initial value, but Valve removed set bonuses from the game some time ago.
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 00:20.


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