Sign in to follow this  
PureTryOut

[SOLVED]Script runtime error

Recommended Posts

I've noticed that I get lots of errors in my console:

******* script runtime error *******
cannot cast undefined to bool: (file 'maps/mp/gametypes/_globallogic.gsc', line 5133)
if ( !self.cancelKillcam && doKillcam && level.killcam )
*
called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 69)
[[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration);
*
started from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 5215)
wait desiredDelay - waitedTime;
*
************************************

Looking at it, it looks like it happens whenever a killcam plays. This is not a problem as it does not seem to do anything in-game, but I would like to clear up the console.

What is happening, and am I somehow the only one?

EDIT: Solved it, I messaged the original creator and he created a patch for me which fixed it.

Share this post


Link to post
Share on other sites
Guest Ares

I believe that it means that one of those three variables (self.cancelKillcam, doKillcam, level.killcam) isn't defined as a boolean.

Share this post


Link to post
Share on other sites

I do have the following files modified:

localized_english_iw07.iwd
maps
mp
gametypes
dm.gsc
dom.gsc
sd.gsc
war.gsc
_dBots.gsc
_finalkillcam.gsc
_killcam.gsc
_rank.gsc
_teams.gsc

So yes I do have some files changed talking about killcam, but they add a final killcam, and have (as far as I know) nothing to do with the regular killcams...

Share this post


Link to post
Share on other sites
Guest Ares

I'm just guessing here, but maybe the final killcam is modifying one of those variables. Could you try disabling it and see if the error continues to pop up?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this