NS2 server console error,

the_tickthe_tick Netherlands Join Date: 2014-01-20 Member: 193352Members
Hi guys, this error I pasted below came with the introduction of 264, the error is persistant, recurring and causes a lot of lag on my server. When the error starts it won't stop, and can go on til the end of the round.

The server console spams this error, and would like to know what the cause could be.
Error: lua/NS2Utility_Server.lua:17: attempt to perform arithmetic on global 'kHallucinationLifeTime' (a nil value)
[Server] Script Error #1: lua/NS2Utility_Server.lua:17: attempt to perform arithmetic on global 'kHallucinationLifeTime' (a nil value)
Call stack:
#1: UpdateHallucinationLifeTime lua/NS2Utility_Server.lua:17
self = Hallucination-406 {alive=true, animationBlend=0.20000000298023, animationGraphIndex=56, animationGraphNode=1, animationSequence2=-1, animationSequence=0, animationSpeed2=1, animationSpeed=1, animationStart2=0, animationStart=1808.9996337891, armor=0, assignedTechId=198, attacking=false, collisionRep=0, creationTime=1808.9996337891, currentOrderId=2881, flinchIntensity=0, gameEffectsFlags=0, hallucinationIsVisible=true, health=14, healthIgnored=false, hotGroupNumber=0, layer1AnimationBlend=0, layer1AnimationGraphNode=15, layer1AnimationSequence2=-1, layer1AnimationSequence=-1, layer1AnimationSpeed2=1, layer1AnimationSpeed=1, layer1AnimationStart2=0, layer1AnimationStart=0, locationId=4, maxArmor=0, maxHealth=14, modelIndex=95, moving=true, physicsGroup=4, physicsGroupFilterMask=0, physicsType=4, selectionMask=0, sighted=false, syncHealth=false, teamNumber=2, techId=205, timeLastHealed=0, visibleClient=false }
#2: f1 lua/Hallucination.lua:362
self = Hallucination-406 {alive=true, animationBlend=0.20000000298023, animationGraphIndex=56, animationGraphNode=1, animationSequence2=-1, animationSequence=0, animationSpeed2=1, animationSpeed=1, animationStart2=0, animationStart=1808.9996337891, armor=0, assignedTechId=198, attacking=false, collisionRep=0, creationTime=1808.9996337891, currentOrderId=2881, flinchIntensity=0, gameEffectsFlags=0, hallucinationIsVisible=true, health=14, healthIgnored=false, hotGroupNumber=0, layer1AnimationBlend=0, layer1AnimationGraphNode=15, layer1AnimationSequence2=-1, layer1AnimationSequence=-1, layer1AnimationSpeed2=1, layer1AnimationSpeed=1, layer1AnimationStart2=0, layer1AnimationStart=0, locationId=4, maxArmor=0, maxHealth=14, modelIndex=95, moving=true, physicsGroup=4, physicsGroupFilterMask=0, physicsType=4, selectionMask=0, sighted=false, syncHealth=false, teamNumber=2, techId=205, timeLastHealed=0, visibleClient=false }
deltaTime = 0.039478678256273
#3: [string "Hallucination_OnUpdate9"]:15
self = Hallucination-406 {alive=true, animationBlend=0.20000000298023, animationGraphIndex=56, animationGraphNode=1, animationSequence2=-1, animationSequence=0, animationSpeed2=1, animationSpeed=1, animationStart2=0, animationStart=1808.9996337891, armor=0, assignedTechId=198, attacking=false, collisionRep=0, creationTime=1808.9996337891, currentOrderId=2881, flinchIntensity=0, gameEffectsFlags=0, hallucinationIsVisible=true, health=14, healthIgnored=false, hotGroupNumber=0, layer1AnimationBlend=0, layer1AnimationGraphNode=15, layer1AnimationSequence2=-1, layer1AnimationSequence=-1, layer1AnimationSpeed2=1, layer1AnimationSpeed=1, layer1AnimationStart2=0, layer1AnimationStart=0, locationId=4, maxArmor=0, maxHealth=14, modelIndex=95, moving=true, physicsGroup=4, physicsGroupFilterMask=0, physicsType=4, selectionMask=0, sighted=false, syncHealth=false, teamNumber=2, techId=205, timeLastHealed=0, visibleClient=false }
arg1 = 0.039478678256273

Comments

  • IronHorseIronHorse Developer, QA Manager, Technical Support & contributor Join Date: 2010-05-08 Member: 71669Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Subnautica Playtester, Subnautica PT Lead, Pistachionauts
  • the_tickthe_tick Netherlands Join Date: 2014-01-20 Member: 193352Members
    edited March 2014
    FYI not fixed in 264

    Error started at 263
  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    edited March 2014
    the_tick wrote: »
    FYI not fixed in 264

    Error started at 263

    Check your mod ....

    Don't blame UWE for not updating your mod :D
  • the_tickthe_tick Netherlands Join Date: 2014-01-20 Member: 193352Members
    This error happened again, it happens when hallucinations are used in the game, and caused a server choke that completely depopulated my server.

    I would like to increase the severity of this issue, and needs to be fixed.
  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    edited April 2014
    Add
    kHallucinationLifeTime = 30
    // only allow x% of affected players to create a hallucination
    kPlayerHallucinationNumFraction = 0.34
    

    to line 650 of Balance.lua in your mod ...

    Please make sure your modded files are up to date ;)

    BTW i would also suggest to remove all not needed files in the mod ( all those default stuff )

    Also instead of overwriting all those files you could just adjust them via the entry system ....
  • the_tickthe_tick Netherlands Join Date: 2014-01-20 Member: 193352Members
    I have added the line, sorry I am just not much of a programmer, the only thing I see is a reference to the ns2_utility.lua, excluding the possiblity it would have to do something with one of the mods I am running
Sign In or Register to comment.