View Single Post
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 12-31-2018 , 10:45   Re: Freak Fortress 2 1.10.14 Released
Reply With Quote #2982

I having troubles with the error
Code:
L 12/31/2018 - 14:48:51: [SM] Exception reported: Property "m_iItemDefinitionIndex" not found (entity 1117/eyeball_boss)
L 12/31/2018 - 14:48:51: [SM] Blaming: freak_fortress_2.smx
L 12/31/2018 - 14:48:51: [SM] Call stack trace:
L 12/31/2018 - 14:48:51: [SM]   [0] GetEntProp
L 12/31/2018 - 14:48:51: [SM]   [1] Line 6834, D:\Codes\tf2_freakfortress2\addons\sourcemod\scripting\freak_fortress_2.sp::OnTakeDamage
L 12/31/2018 - 14:48:51: [SM] Exception reported: Property "m_iItemDefinitionIndex" not found (entity 1117/eyeball_boss)
It keeps spamming in the error log and the spell Monoculuses does 0 damage.
I customized the freak_fortress_2.sp for weapons changes. And I found that line 6834 is about the Ullapool Caber
Code:
			new index=(IsValidEntity(weapon) && weapon>MaxClients && attacker<=MaxClients ? GetEntProp(weapon, Prop_Send, "m_iItemDefinitionIndex") : -1);
			if(index==307)  //Ullapool Caber
			{
				if(detonations[attacker]<allowedDetonations)
				{
					detonations[attacker]++;
					PrintHintText(attacker, "%t", "Detonations Left", allowedDetonations-detonations[attacker]);
					if(allowedDetonations-detonations[attacker])  //Don't reset their caber if they have 0 detonations left
					{
						SetEntProp(weapon, Prop_Send, "m_bBroken", 0);
						SetEntProp(weapon, Prop_Send, "m_iDetonated", 0);
					}
				}
			}
I've been troubled by this problem for two months. Please I need help from you guys. ;-;
BTW. Happy New Year to you~~ φ(゜▽゜*)♪
Attached Files
File Type: sp Get Plugin or Get Source (freak_fortress_2.sp - 164 views - 269.9 KB)
File Type: log errors_20181231.log (301.3 KB, 102 views)

Last edited by Hoto Cocoa; 12-31-2018 at 10:50.
Hoto Cocoa is offline