PDA

View Full Version : Libcod server crash



agribilos
12th February 2023, 05:27
Hi one of my servers is sometimes crashing with the following error. I'm using the latest version of voron. Any ideas? Looks like a spectator did a kill? How is that possible?


******* script runtime error *******
Illegal team string 'spectator'. Must be allies, or axis.: (file 'maps/mp/gametypes/tdm.gsc', line 506)
teamscore = getTeamScore(attacker.pers["team"]);
*
called from:
(file 'maps/mp/gametypes/_spawnlogic.gsc', line 757)
[[level.spawnlogic_oldCallbackPlayerKilled]](
*
called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 93)
[[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration);
*
called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 90)
CodeCallback_PlayerKilled(eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration)
*
called from:
(file 'maps/mp/gametypes/tdm.gsc', line 350)
self finishPlayerDamage(eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime);
*
called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 83)
[[level.callbackPlayerDamage]](eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset);
*
started from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 64)
CodeCallback_PlayerDamage(eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset)
*
************************************
********************
ERROR: script runtime error
(see console for details)
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 64)

********************

Dimitrio290
12th February 2023, 17:07
Looks like a spectator did a kill? How is that possible?

Throwing a grenade and join the spectator, for example. You can repeat this and see if it causes an error

agribilos
12th February 2023, 18:05
I could not reproduce the error. It also not happening so often so it is not a major issue.

IzNoGoD
12th February 2023, 20:09
Just add a check there, or a callback upon firing a nade to disappear when the person that threw the nade goes spec.