Cannot deal damage on my custom map - RESOLVED
Legend_Boss
UK Join Date: 2014-02-27 Member: 194394Members
I have created a custom map, called 'ns2_combi'. you can find it in the workshop and in the mapping forum here. I have a problem when I attempt to play against bots. The problem being nobody(including bots) can hurt anything.
I thought it may have been my computer but when the map got played on a server we had the same problem.
All teams and structures would not take damage.Both deleted and game fixed since
I thought it may have been my computer but when the map got played on a server we had the same problem.
All teams and structures would not take damage.Both deleted and game fixed since
Comments
Fairly sure something is up with your gamerules in the map.
This is exactly the problem. As deathsrhoud said here http://forums.unknownworlds.com/discussion/comment/2229617/#Comment_2229617 you need to have the "NS2 Gamerules" entity placed in your level somewhere.
[Server] Script Error #1: lua/NS2Gamerules.lua:531: calling 'GetInitialTechPoint' on bad self (number expected, got nil)
Call stack:
#1: GetInitialTechPoint [C]:-1
#2: resetGame lua/NS2Gamerules.lua:531
self = NS2Gamerules-1468 { }
team1CommanderClient = nil
team2CommanderClient = nil
techPoints = {1=TechPoint-3391 {animationGraphIndex=2, attachedId=-1, collisionRep=0, extendAmount=0, locationId=2, modelIndex=6, occupiedTeam=0, physicsGroup=14, physicsGroupFilterMask=0, physicsType=4, showObjective=false, smashScouted=false, smashed=false, techId=52 }, 2=TechPoint-2750 {animationGraphIndex=2, attachedId=-1, collisionRep=0, extendAmount=0, locationId=4, modelIndex=6, occupiedTeam=0, physicsGroup=14, physicsGroupFilterMask=0, physicsType=4, showObjective=false, smashScouted=false, smashed=false, techId=52 }, 3=TechPoint-3913 {animationGraphIndex=2, attachedId=-1, collisionRep=0, extendAmount=0, locationId=6, modelIndex=6, occupiedTeam=0, physicsGroup=14, physicsGroupFilterMask=0, physicsType=4, showObjective=false, smashScouted=false, smashed=false, techId=52 }, 4=TechPoint-2432 {animationGraphIndex=2, attachedId=-1, collisionRep=0, extendAmount=1, locationId=8, modelIndex=6, occupiedTeam=0, physicsGroup=14, physicsGroupFilterMask=0, physicsType=4, showObjective=false, smashScouted=false, smashed=false, techId=52 } }
resourcePoints = ClassEntityList { }
team1TechPoint = nil
team2TechPoint = TechPoint-3391 {animationGraphIndex=2, attachedId=-1, collisionRep=0, extendAmount=0, locationId=2, modelIndex=6, occupiedTeam=0, physicsGroup=14, physicsGroupFilterMask=0, physicsType=4, showObjective=false, smashScouted=false, smashed=false, techId=52 }
#3: ResetGame lua/NS2Plus/Server/CHUD_ServerStats.lua:218
self = NS2Gamerules-1468 { }
#4: lua/NS2Gamerules.lua:1032
self = NS2Gamerules-1468 { }
timePassed = 0.086532197892666
[17714.535] Main : Error: Failed to add an obstacle at 143.61, -53.67, 127.43!
inbetween 6 of the stack traces posted above.
Probably not too relevant but server consoles are spammed (a little) with that after every round end. At one point this was supposed to be looked at.
Yeah that means the NS2Gamerules entity is missing as i guessed ; )
http://wiki.unknownworlds.com/ns2/Ns2_sample#Absolute_minimum_.28no_commander_mode.29
duplicate locations
Not sure what this is
I went through every corner of the map and came across a second ns2 gamerules. This may have been causing the problem?
I have updated the map with te deleted duplicate locations and ns2 game rules. Everything seems okay now