Raised This Month: $535 Target: $400
 133% 

[TF2] Hidden dev attributes


Post New Thread Reply   
 
Thread Tools Display Modes
Fearts
ferts of daeth
Join Date: Oct 2008
Old 11-16-2021 , 00:02   Re: [TF2] Hidden dev attributes
Reply With Quote #41

After the last TF2 update the gamedata signatures I believe have broken for this plugin. If someone could fix this it would be very helpful.
__________________
Fearts is offline
Mikusch
AlliedModders Donor
Join Date: Oct 2019
Location: Germany
Old 11-16-2021 , 18:40   Re: [TF2] Hidden dev attributes
Reply With Quote #42

Quote:
Originally Posted by Fearts View Post
After the last TF2 update the gamedata signatures I believe have broken for this plugin. If someone could fix this it would be very helpful.
Valve changed something in CPopulationManager::FindPopulationFileByShort Name, so that signature needs updating, as well as the offset for g_pFullFileSystem.

Update these lines:
Code:
            "addr_g_pFullFileSystem"
            {
                "linux"
                {
                    "signature" "g_pFullFileSystem"
                    "read"    "0"
                }
                "windows"
                {
                    "signature" "CPopulationManager::FindPopulationFileByShortName"
                    "read"    "52"
                    "read"    "0"
                }
            }
Code:
"CPopulationManager::FindPopulationFileByShortName"
{
    "library"        "server"
    "windows"    "\x55\x8B\xEC\x81\xEC\x04\x01\x00\x00\x8D\x85\xFC\xFE\xFF\xFF\x56\x68\x04\x01\x00\x00\x6A\x00\x50\xE8\x2A\x2A\x2A\x2A\x8B\x75\x08"
}
__________________

Last edited by Mikusch; 11-16-2021 at 18:41.
Mikusch is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 11-16-2021 , 20:33   Re: [TF2] Hidden dev attributes
Reply With Quote #43

Quote:
Originally Posted by Mikusch View Post
Valve changed something in CPopulationManager::FindPopulationFileByShort Name, so that signature needs updating, as well as the offset for g_pFullFileSystem.

Update these lines:
Tested and confirmed working. Thanks Mikusch!
PC Gamer is offline
Zethax
Member
Join Date: Sep 2015
Location: In my couch
Old 12-22-2021 , 02:27   Re: [TF2] Hidden dev attributes
Reply With Quote #44

I hope this doesn't count as advertising, but I made a repo for some custom attributes I'm making that use this plugin as a backbone. They can be applied onto custom weapons and base weapons alike.
also if I could get some criticism on the code itself that'd be GREAT

There's only one attribute in the repo at the time of writing, but I'm planning on adding more. Link
__________________
I code, I guess.
Zethax is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 02-17-2022 , 23:37   Re: [TF2] Hidden dev attributes
Reply With Quote #45

Of note, that I think 'ability doubletap teleport' isn't for teleporters, it instead causes you to teleport/'blink' in the direction you doubletap. Currently STAGING_ONLY in TF2 so probably can't function regardless.
__________________
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.
FlaminSarge is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 02-19-2022 , 10:37   Re: [TF2] Hidden dev attributes
Reply With Quote #46

Quote:
Originally Posted by Zethax View Post
also if I could get some criticism on the code itself that'd be GREAT
Since you asked, I'd highly recommend using my fork of TF2Attributes. It's able to use the game's own functions for calculating attribute values in aggregate, so you don't have to iterate over client / weapons for the same effect nor retrieve the values manually.

e.g. with kill_with_any_weapon_heals, you could drop the loop and simplify the code down to
Code:
int iHealAmount = TF2Attrib_HookValueInt(0, "health_on_kill_any_weapon", iAttacker);
HealPlayer(iAttacker, iHealAmount, 1.5);
__________________
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; 02-19-2022 at 10:41.
nosoop is online now
404UserNotFound
BANNED
Join Date: Dec 2011
Old 02-21-2022 , 10:01   Re: [TF2] Hidden dev attributes
Reply With Quote #47

Quote:
Originally Posted by FlaminSarge View Post
Of note, that I think 'ability doubletap teleport' isn't for teleporters, it instead causes you to teleport/'blink' in the direction you doubletap. Currently STAGING_ONLY in TF2 so probably can't function regardless.
Likely correct, definitely something I need to look into for the TCRF.net "Development:Team_Fortress_2" article where I'm documenting the source code leak's staging build features. I definitely need to set a server up and mess with this plugin and get some footage of things.
404UserNotFound is offline
possibly_yaboi_mark
Junior Member
Join Date: Jul 2022
Old 07-17-2022 , 22:30   Re: [TF2] Hidden dev attributes
Reply With Quote #48

Quote:
Originally Posted by Mikusch View Post
Valve changed something in CPopulationManager::FindPopulationFileByShort Name, so that signature needs updating, as well as the offset for g_pFullFileSystem.

Update these lines:
Code:
            "addr_g_pFullFileSystem"
            {
                "linux"
                {
                    "signature" "g_pFullFileSystem"
                    "read"    "0"
                }
                "windows"
                {
                    "signature" "CPopulationManager::FindPopulationFileByShortName"
                    "read"    "52"
                    "read"    "0"
                }
            }
Code:
"CPopulationManager::FindPopulationFileByShortName"
{
    "library"        "server"
    "windows"    "\x55\x8B\xEC\x81\xEC\x04\x01\x00\x00\x8D\x85\xFC\xFE\xFF\xFF\x56\x68\x04\x01\x00\x00\x6A\x00\x50\xE8\x2A\x2A\x2A\x2A\x8B\x75\x08"
}
so, after installing this (into addons/sourcemod), my server crashes whenever it attempts to load the plugin, and seeing this and the fact i'm running a windows server, i assumed that i needed to add the above code into tf2hiddenattribs.sp. the problem is i have no idea how i'm supposed to read this post (im new here (signed up yesterday), and i'm historically bad at seeing small details only, so please humor me here). do i add these two bits of code somewhere (doesnt state where in the file)? do i need to replace one already existing code and place in the other (cant find the code im supposed to replace)? i generally cannot tell.
possibly_yaboi_mark is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 07-18-2022 , 15:36   Re: [TF2] Hidden dev attributes
Reply With Quote #49

Quote:
Originally Posted by possibly_yaboi_mark View Post
do i add these two bits of code somewhere (doesnt state where in the file)? do i need to replace one already existing code and place in the other (cant find the code im supposed to replace)? i generally cannot tell.
Those were suggested edits to the tf2.hiddenattribs.txt gamedata file. I've edited it for you. You can place the attached edited tf2.hiddenattribs.txt file into your /sourcemod/gamedata/ folder.

Enjoy!
Attached Files
File Type: txt tf2.hiddenattribs.txt (2.0 KB, 32 views)
PC Gamer is offline
Naydef
Senior Member
Join Date: Dec 2015
Location: Doom Town, Nevada
Old 10-07-2022 , 06:12   Re: [TF2] Hidden dev attributes
Reply With Quote #50

It seems TF2 update (October 5, 2022) broke one of the signatures for Windows. I uploaded an updated gamedata file.
Attached Files
File Type: txt tf2.hiddenattribs.txt (1.7 KB, 33 views)
__________________
My plugins:
*None for now*


Steam:
naydef

Last edited by Naydef; 10-07-2022 at 06:13.
Naydef is offline
Reply


Thread Tools
Display Modes

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 22:41.


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