Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 08-29-2013 , 16:19   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #121

Is this update required for Linux Servers too?
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 09-02-2013 , 02:12   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #122

Why is TF2Attrib_GetIsSetBonus disabled? and is it safe to re-enable it?
Pelipoika is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-02-2013 , 02:13   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #123

Quote:
Originally Posted by Pelipoika View Post
Why is TF2Attrib_GetIsSetBonus disabled? and is it safe to re-enable it?
Valve removed set bonuses. This includes the bool that was used to tell if it's a set bonus.

Edit: If you look in the netprops list, these are what attributes look like now:
Code:
    Table: 000 (offset 0) (type DT_ScriptCreatedAttribute)
     Member: m_iAttributeDefinitionIndex (offset 4) (type integer) (bits 16)
     Member: m_iRawValue32 (offset 8) (type integer) (bits 32)
     Member: m_nRefundableCurrency (offset 12) (type integer) (bits 32)
They used to have m_bIsSetBonus, but it's gone now.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 09-02-2013 at 02:16.
Powerlord is offline
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 09-02-2013 , 07:39   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #124

Quote:
Originally Posted by Powerlord View Post
Valve removed set bonuses. This includes the bool that was used to tell if it's a set bonus.

Edit: If you look in the netprops list, these are what attributes look like now:
Code:
    Table: 000 (offset 0) (type DT_ScriptCreatedAttribute)
     Member: m_iAttributeDefinitionIndex (offset 4) (type integer) (bits 16)
     Member: m_iRawValue32 (offset 8) (type integer) (bits 32)
     Member: m_nRefundableCurrency (offset 12) (type integer) (bits 32)
They used to have m_bIsSetBonus, but it's gone now.
So you can't no longer detect set bonuses? :/
Pelipoika is offline
thesupremecommander
Member
Join Date: Apr 2012
Old 09-02-2013 , 08:02   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #125

Quote:
Originally Posted by Pelipoika View Post
So you can't no longer detect set bonuses? :/
Yeah, but only because they don't quite exist anymore. The only ones that remain are cosmetic (calling card + sandstorm taunt).
thesupremecommander is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 09-03-2013 , 19:00   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #126

Seems like Team Fortress 2 update broke again TF2Attributes
I wonder why this plugin signatures break every update.
__________________
...

Last edited by Oshizu; 09-03-2013 at 19:03.
Oshizu is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 09-03-2013 , 19:07   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #127

Quote:
Originally Posted by Oshizu View Post
Seems like Team Fortress 2 update broke again TF2Attributes
I wonder why this plugin signatures break every update.
well, they get messed with a lot, and windows doesn't have debug symbols?

can't even analyze the file because ida takes like 30 seconds to respond to any command :/
the hell?

Anyways, it looks like only "CEconItemSchema::GetAttributeDefinition" for windows changed.
bleh others changed too.

I think this is for windows:
PHP Code:
            "CEconItemSchema::GetAttributeDefinitionByName"    //const char*, returns CEconItemAttributeDefinition
            
{
                
"library"            "server"
                "windows"            "\x55\x8B\xEC\x83\xEC\x1C\xA1\x2A\x2A\x2A\x2A\x53\x56\x66\x0F\x57\xC0\x66\x0F\x13\x45\xF4\x83\x78\x08\x00\x57\x8B\xF9\x74\x2A\x8B\x40\x08\x68\x2A\x2A\x2A\x2A\x8B\x50\x50\x68\x2A\x2A\x2A\x2A\x68\x2A\x2A\x2A\x2A\x68\x2A\x2A\x2A\x2A\x68\x2A\x2A\x2A\x2A\x68\x2A\x2A\x2A\x2A\x6A\x00\x6A\x00\x6A"
                "linux"                "@_ZN15CEconItemSchema28GetAttributeDefinitionByNameEPKc"
                "mac"                "@_ZN15CEconItemSchema28GetAttributeDefinitionByNameEPKc"
            

edit: i'm dumb.

this works, now

need to find: "CEconItemSchema::GetAttributeDefinition"
I thought this was it, but honestly I have no idea:
PHP Code:
            "CEconItemSchema::GetAttributeDefinition"    //int, returns CEconItemAttributeDefinition <--
            
{
                
"library"            "server"
                "windows"            "\x55\x8B\xEC\x8B\x41\x04\x3B\x45\x08\x75\x10\x8B\x51\x08"
                "linux"                "@_ZN15CEconItemSchema22GetAttributeDefinitionEi"
                "mac"                "@_ZN15CEconItemSchema22GetAttributeDefinitionEi"
            

looks like it's doing something similar to the linux func, idk really they are always so different. There's probably an easy way to find them that I don't know
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 09-03-2013 at 22:18.
friagram is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 09-04-2013 , 20:59   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #128

I've looked but I'm not sure of a way to fix this... anyone had any luck?
Horsedick is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-04-2013 , 22:59   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #129

Quote:
Originally Posted by Horsedick View Post
I've looked but I'm not sure of a way to fix this... anyone had any luck?
I think FlaminSarge is looking into it now.

Having said that, my Linux server appears to be loading TF2Attributes fine with no gamedata changes.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 09-04-2013 at 23:24.
Powerlord is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 09-05-2013 , 00:19   Re: [TF2] TF2Attributes (v1.1.1, 08/27/2013)
Reply With Quote #130

Updated the gamedata. Only Windows changed.

EDIT: Updated again, with... semi-proper wildcarding? I think?

If anything is crashing and you think it's related to this, use the following gamedata file instead. It's not wildcarded properly, but it won't crash for this patch.

Otherwise please use the gamedata file attached to the first post, so I can confirm that it works for everyone (it works for me, at the very least).
Attached Files
File Type: txt tf2.attributes.txt (7.2 KB, 150 views)
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 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.

Last edited by FlaminSarge; 09-05-2013 at 01:24.
FlaminSarge 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 13:23.


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