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

[TF2] Friendly Mode (v. 16.0112)


Post New Thread Reply   
 
Thread Tools Display Modes
fiala06
AlliedModders Donor
Join Date: Mar 2009
Location: Eugene, OR
Old 10-10-2013 , 14:30   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #211

Quote:
Originally Posted by ddhoward View Post
The map that I use this plugin on also has sentries that spawn without an engineer actually building them, but I don't get any error logs... Also, Friendly Mode only hooks OnTakeDamage on buildings that are actually BUILT, not just spawned. Have you noticed a trend that this error spam only happens for a short while after a map change? When the map is first loaded by the server, is the sentry there? Or perhaps your brother went the extra mile and had the sentry creation fire the player_builtobject event...

But yeah, I just fixed this; I'll upload the new version soonish.
Today is the first day I noticed it. Below is my full log from today so far but looking at yesterdays it was constantly reporting it. I'm @work so I can't login and test it.

Code:
L 10/10/2013 - 00:09:36: SourceMod error session started
L 10/10/2013 - 00:09:36: Info (map "trade_plaza_invert_v59") (file "errors_20131010.log")
L 10/10/2013 - 00:09:36: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 00:09:36: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 00:09:36: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 00:09:38: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 00:09:38: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 00:09:38: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 00:09:40: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 00:09:40: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 00:09:40: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 00:09:42: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 00:09:42: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 00:09:42: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 00:09:46: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 00:09:46: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 00:09:46: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 00:09:47: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 00:09:47: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 00:09:47: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 00:09:52: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 00:09:52: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 00:09:52: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 02:41:06: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 02:41:06: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 02:41:06: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 02:41:06: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 02:41:06: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 02:41:06: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 02:41:07: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 02:41:07: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 02:41:07: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 02:41:07: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 02:41:07: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 02:41:07: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 02:41:07: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 02:41:07: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 02:41:07: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 03:07:01: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 03:07:01: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 03:07:01: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 04:02:29: [SM] Native "ClientCommand" reported: Client index 0 is invalid
L 10/10/2013 - 04:02:29: [SM] Displaying call stack trace for plugin "free_duels.smx":
L 10/10/2013 - 04:02:29: [SM]   [0]  Line 1225, D:\Serveurs\tf2\steamapps\common\Team Fortress 2 Dedicated Server\tf\addons\sourcemod\scripting\free_duels.sp::CreateDuel2_1()
L 10/10/2013 - 04:02:29: [SM]   [1]  Line 604, D:\Serveurs\tf2\steamapps\common\Team Fortress 2 Dedicated Server\tf\addons\sourcemod\scripting\free_duels.sp::ChoiceDuelPanel2_1()
L 10/10/2013 - 05:48:47: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:48:47: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:48:47: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:48:47: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:48:47: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:48:47: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:48:48: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:48:48: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:48:48: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:48:49: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:48:49: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:48:49: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:53:29: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:53:29: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:53:29: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:53:29: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:53:29: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:53:29: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:53:30: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:53:30: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:53:30: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:53:30: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:53:30: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:53:30: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:53:31: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:53:31: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:53:31: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:53:32: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:53:32: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:53:32: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 09:51:40: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 10/10/2013 - 09:51:40: [SM] Native "ReplyToCommand" reported: Language phrase "Unable to target" not found
L 10/10/2013 - 09:51:40: [SM] Displaying call stack trace for plugin "free_duels.smx":
L 10/10/2013 - 09:51:40: [SM]   [0]  Line 119, D:\Serveurs\tf2\steamapps\common\Team Fortress 2 Dedicated Server\tf\addons\sourcemod\scripting\include\commandfilters.inc::ReplyToTargetError()
L 10/10/2013 - 09:51:40: [SM]   [1]  Line 268, D:\Serveurs\tf2\steamapps\common\Team Fortress 2 Dedicated Server\tf\addons\sourcemod\scripting\free_duels.sp::loadDuel()
L 10/10/2013 - 10:17:51: [SM] Plugin encountered error 25: Call was aborted
L 10/10/2013 - 10:17:51: [SM] Native "SetFailState" reported: Database failure: Could not find Database conf "sourcebans"
L 10/10/2013 - 10:17:51: [SM] Displaying call stack trace for plugin "sourcebans.smx":
L 10/10/2013 - 10:17:51: [SM]   [0]  Line 206, D:\scripting\sourcebans.sp::OnPluginStart()
L 10/10/2013 - 10:55:41: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 10:55:41: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 10:55:41: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 11:00:51: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 11:00:51: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 11:00:51: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 11:00:52: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 11:00:52: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 11:00:52: [SM]   [0]  Line 2074, friendly.sp::BuildingTakeDamage()
fiala06 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 11-11-2013 , 02:45   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #212

I haven't been really able to focus on this one as of late; my boyfriend's desktop recently took a huge shit, so he's been needing to give me less and less time borrowing his laptop. However, my new machine will be arriving at my door tomorrow afternoon, and we're finishing up a fresh new OS install on his desktop as I write this.

I'm aware of a few bugs and issues that I need to sort out with Friendly Mode. A huge update is planned once I settle in to my new machine, which will separate most the functions of the plugin into various individual modules. This is a preferable for several reasons, the three most notable being:
  1. Making Friendly Mode easier to modify/update
  2. Allowing server ops to decide what functions they want and do not want even installed
  3. Allowing for several different methods of achieving one goal to be created, where server ops can decide what they want. (For example, an admin can decide whether he wants the noblock module that utilizes CollisionHook, or just the one that changes the m_CollisionGroup. Or whether he wants simple alpha changing, or advanced SetTransmit functionality.)
__________________

Last edited by ddhoward; 11-11-2013 at 02:46.
ddhoward is offline
Rd1981
Senior Member
Join Date: Apr 2011
Old 11-15-2013 , 02:45   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #213

Players can taunt while turning on friendly mode which makes the weapons blocks useless unless they switch after their friendly.
Rd1981 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 11-15-2013 , 03:11   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #214

Quote:
Originally Posted by Rd1981 View Post
Players can taunt while turning on friendly mode which makes the weapons blocks useless unless they switch after their friendly.
While I was not aware of this issue, I was already planning an update that would have the interesting side-effect of fixing this. (setting the weapon by SetEntPropEnt(client, Prop_Data, "m_hActiveWeapon", weapon), rather than by FakeClientCommand()). Thanks for the tip.
__________________

Last edited by ddhoward; 11-15-2013 at 03:11.
ddhoward is offline
BEESLEY
New Member
Join Date: Nov 2013
Old 11-16-2013 , 06:32   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #215

Probably The worst plugin i have come across
BEESLEY is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 11-16-2013 , 11:23   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #216

Quote:
Originally Posted by BEESLEY View Post
Probably The worst plugin i have come across
How so?
__________________
ddhoward is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 11-16-2013 , 12:39   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #217

I've had reports of friendly players being able to heal non friendly players. I have not confirmed this myself though, anyway to block it without restricting weapons?
Snaggle is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 11-16-2013 , 13:18   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #218

That is the point of blocking the mediguns. If blocking the healing itself is possible, I don't know how to do it.
__________________
ddhoward is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 11-16-2013 , 20:26   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #219

Quote:
Originally Posted by ddhoward View Post
That is the point of blocking the mediguns. If blocking the healing itself is possible, I don't know how to do it.
I was more or less just checking, it might of been something you weren't aware of. I'll use that method then.
Snaggle is offline
thesupremecommander
Member
Join Date: Apr 2012
Old 11-17-2013 , 13:14   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #220

Quote:
Originally Posted by ddhoward View Post
That is the point of blocking the mediguns. If blocking the healing itself is possible, I don't know how to do it.
Could you check the "player_healed" event? Even if you couldn't block the healing by stopping the event, you could just remove the health gained.

Quote:
Originally Posted by ddhoward View Post
Plans, goals, and dreams:
I am mostly using this plugin as a way to learn this stuff. As such, modifications and updates will come slowly, unless I have assistance. That being said, I hope to one day include:
  • A cvar that, when enabled, will clear the domination/revenge status of a player entering friendly mode.
  • A way to distinguish Friendly players without alpha changing.
  • In CTFPlayer, there's the tables "m_bPlayerDominated" and "m_bPlayerDominatingMe". If you check those tables, clearing the entire one for the player as well as removing the dominations for the player he's dominating/dominated by should be good enough.
  • Perhaps use custom player models (like Model Manager) and/or custom particle effects? White would be a pretty good neutral color that's easy to recognize at the same time.
thesupremecommander 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 07:50.


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