[TF2] Rebalanced Fortress 2 (v1.8.2 - 2019-22-01)
What's this?
Rebalanced Fortress 2 is a simple yet powerful plugin that allows any server owner to modify the attributes of (almost) every item (and class) in Team Fortress 2 that's given to the player, including weapons, shields or even hats! If you think an item deserves more of the spotlight, or if you think a weapon is horribly broken, you will be able to change the attributes of such weapon to your heart's content. In addition, it's possible to add information related to those changes to let everyone know about what was changed. This is the public version of the plugin used by the Custom TF2 Weapons group for their Official Weapon Changes servers (which is why the release version is v1.43, as it was private before) and gives different sets of attributes to the official weapons of the game. In addition, it's also the successor of Balance Fortress 2, a plugin I also made myself. How does it work? A file, tf2rebalance_attributes.txt contained within the data folder, is the one that contains the changes you wish to add to the classes or weapons, which you can modify to your heart's content in case you wish to modify anything. When a player spawns, their weapon will be automatically replaced by the same one but with the attributes that were specified in the file. If a class was modified, then the attributes, if specified, will be added to such class as well and attributes given to classes will not stack or mesh with other classes' given attributes. Installation: The plugin's GitHub page can be seen here. The releases page can be seen here. (Latest version: 1.8.2)
Cvars and commands
If you like this plugin and wish to see more like them, be sure to donate through my Ko-Fi page here. It's not required, but any amount helps and it's really appreciated. Thanks for reading and enjoy! |
Re: [TF2] Rebalanced Fortress 2 (v1.43 - 2018-03-08)
Great plugin. I've been able to test my balance changes that I have worked on since 2011 and pitched to valve a few times when I visited them.
As for testing purposes, I tried your mod along this one https://forums.alliedmods.net/showthread.php?t=287668 however this mod seems to give the bots the default unlock weapons and it ignores the attributes you set on the mod, however this does not apply to players ofcourse, only bots. Is this something you are able to fix or do I have to tinker with the other plugin? Or is this a limitation of the TF2Items dependency? |
Re: [TF2] Rebalanced Fortress 2 (v1.43 - 2018-03-08)
Thanks for mentioning this issue. What the plugin you posted does, based on the source code, is change the item definition index of the currently-equipped bot weapon/wearable (shields, boots...) and then equip a weapon afterwards. This means that the weapon doesn't reinitialize, which means that it's not catched by TF2Items (which my plugin uses) and doesn't change any attributes, only the weapon that the bots initially spawn with.
I will look into coding a solution for this, so the weapons can be changed after a set timer, which should increase the compatibility with that plugin and others that use similar solutions. |
Re: [TF2] Rebalanced Fortress 2 (v1.50 - 2018-23-08)
Rebalanced Fortress 1.50 has been released, changes include:
heavyisgps: I tested both my plugin with sm_tfrebalance_changetimer set to 0.2 and with Give Bots Weapons installed and both worked quite well. Hopefully this update will be useful to you. |
Re: [TF2] Rebalanced Fortress 2 (v1.50 - 2018-23-08)
1 Attachment(s)
Hi, I tested it and it works! sort of.
However on certain weapons with more attributes, the stats doesn't load. It gives me this output in the server. L 08/24/2018 - 14:59:15: [SM] Exception reported: Cowardly refusing to add invalid attribute index "0" to an item. L 08/24/2018 - 14:59:15: [SM] Blaming: tf2rebalance_jug.smx L 08/24/2018 - 14:59:15: [SM] Call stack trace: L 08/24/2018 - 14:59:15: [SM] [0] TF2Items_SetAttribute L 08/24/2018 - 14:59:15: [SM] [1] Line 371, E:\tf2\tf\addons\sourcemod\scripting\tf2rebal ance_jug.sp::Timer_ChangeWeapons L 08/24/2018 - 14:59:15: [SM] Exception reported: Cowardly refusing to add invalid attribute index "0" to an item. L 08/24/2018 - 14:59:15: [SM] Blaming: tf2rebalance_jug.smx L 08/24/2018 - 14:59:15: [SM] Call stack trace: L 08/24/2018 - 14:59:15: [SM] [0] TF2Items_SetAttribute L 08/24/2018 - 14:59:15: [SM] [1] Line 371, E:\tf2\tf\addons\sourcemod\scripting\tf2rebal ance_jug.sp::Timer_ChangeWeapons L 08/24/2018 - 14:59:16: [SM] Exception reported: Cowardly refusing to add invalid attribute index "0" to an item. L 08/24/2018 - 14:59:16: [SM] Blaming: tf2rebalance_jug.smx L 08/24/2018 - 14:59:16: [SM] Call stack trace: L 08/24/2018 - 14:59:16: [SM] [0] TF2Items_SetAttribute L 08/24/2018 - 14:59:16: [SM] [1] Line 371, E:\tf2\tf\addons\sourcemod\scripting\tf2rebal ance_jug.sp::Timer_ChangeWeapons L 08/24/2018 - 14:59:16: [SM] Exception reported: Cowardly refusing to add invalid attribute index "0" to an item. L 08/24/2018 - 14:59:16: [SM] Blaming: tf2rebalance_jug.smx L 08/24/2018 - 14:59:16: [SM] Call stack trace: L 08/24/2018 - 14:59:16: [SM] [0] TF2Items_SetAttribute L 08/24/2018 - 14:59:16: [SM] [1] Line 371, E:\tf2\tf\addons\sourcemod\scripting\tf2rebal ance_jug.sp::Timer_ChangeWeapons It doesn't happen on all weapons, only some. I've attached my balance file. And 2 items I know that doesn't load are the bison and sydney sleeper stats. This does not happen if the cvar is set to 0 instead of 0.2 |
Re: [TF2] Rebalanced Fortress 2 (v1.50 - 2018-23-08)
1 Attachment(s)
I took a look at the file you attached. On the bison section, there was a "static_attribs" section, probably as a result of copying data from the item schema, which caused the plugin to hang on there. I couldn't see what was the problem with the Sydney Sleeper section, but it failing might've been a result of how strangely-formatted the file was.
I strongly recommend you to use Notepad++ to edit config files like this one, and use tabs to separate sections. I attached a fixed and reformatted version of the config file you sent, hopefully it's of use to you. |
Re: [TF2] Rebalanced Fortress 2 (v1.50 - 2018-23-08)
So this plugin is just tf2items, but done through tf2attributes?
|
Re: [TF2] Rebalanced Fortress 2 (v1.50 - 2018-23-08)
In simple terms, my plugin is a simpler tf2items_manager with extra compatibility with other plugins, with the chance of also adding attributes onto classes right as they spawn if tf2attributes is installed. It's also possible to give players info about the changes done to the classes or weapons if the server owner wishes so.
The general purpose of this plugin is to provide custom balance on both weapons and classes on servers that wish to have it and give information as/if needed, so it works as an all-in-one suit for server owners who wish not to have 3 different plugins for different purposes and would like to have everything in one. |
Re: [TF2] Rebalanced Fortress 2 (v1.50 - 2018-23-08)
1 Attachment(s)
I've been tinkering with this for many hours, I've completely reformatted my code so it's nice and viewable, used Notepad++ with some code plugins to make it all nice and tidy.
However the server can crash if things are done in this order:Server crashes. Steps to reproduce. 1. Start server 2. Set sm_tfrebalance_changetimer 0.2 in server console 3. Join server 4. Go in spectator 5. Add bots with tf_bot_add 6. Server crashes and closes The server also crashes if I load up an MVM map with changetimer active after changing classes. To not get the server to crash but still give the trace error, and make some weapons not load in. Also if I join, set the changetimer and another player joins, it crashes the server. 1. Start server (not mvm map) 2. Join server 3. Go in spectator 4. Set sm_tfrebalance_changetimer 0.2 in server console 5. Add bots with tf_bot_add 6. Switch class to some of the weapons changed 7. Gives error in console L 08/24/2018 - 23:26:41: [SM] Exception reported: Cowardly refusing to add invalid attribute index "0" to an item. L 08/24/2018 - 23:26:41: [SM] Blaming: tf2rebalance_jug.smx L 08/24/2018 - 23:26:42: [SM] Call stack trace: L 08/24/2018 - 23:26:42: [SM] [0] TF2Items_SetAttribute L 08/24/2018 - 23:26:42: [SM] [1] Line 371, E:\tf2\tf\addons\sourcemod\scripting\tf2rebal ance_jug.sp::Timer_ChangeWeap I haven't been able to figure out what causes this, as some weapons are loaded and others aren't. You can clearly see which weapons it is by switching to the class that has the weapon equipped as the server throws the error then. I've attached the current file I'm using, and there should be no problem with the values I've set. I've gone over it for hours. I've found that only the items that use the "keepattribs" "1" gives this error, and causes the crash in MvM. |
Re: [TF2] Rebalanced Fortress 2 (v1.50 - 2018-23-08)
Thanks for your throughout testing.
Originally the plugin wasn't meant for MvM, so there's ought to be some issues on a gamemode that I haven't tested, I will look into what I can do to fix it. As for the "cowardly refusing" error, I'll look into what's causing it again. |
| All times are GMT -4. The time now is 14:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.