Hi. I'm using a L4D2 plugin that keeps reporting hundreds of the same error in the log. This:
Code:
L 03/07/2020 - 10:36:46: [SM] Exception reported: Entity 3 (3) is invalid
L 03/07/2020 - 10:36:46: [SM] Blaming: lastboss.smx
L 03/07/2020 - 10:36:46: [SM] Call stack trace:
L 03/07/2020 - 10:36:46: [SM] [0] GetEntDataVector
L 03/07/2020 - 10:36:46: [SM] [1] Line 903, D:\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\lastboss.sp::AddVelocity
L 03/07/2020 - 10:36:46: [SM] [2] Line 768, D:\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\lastboss.sp::JumpingTimer
These are the sections the plugin is complaning about
:
Code:
public Action:JumpingTimer(Handle:timer)
{
if(form_prev == FORMFOUR && idBoss)
AddVelocity(idBoss, GetConVarFloat(sm_lastboss_jumpheight_forth));
else
KillTimer(timer);
}
public AddVelocity(client, Float:zSpeed)
{
if(g_iVelocity == -1) return;
new Float:vecVelocity[3];
GetEntDataVector(client, g_iVelocity, vecVelocity);
vecVelocity[2] += zSpeed;
TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, vecVelocity);
}
How can this be fixed? I would ask in the original thread, but the plugin author hasn't posted anything in the past 9 years.