Keep getting "Ns2 gamerules cannot find techpoint for team 1 error"

aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
I'm not sure what's causing it. I have 2 techpoints in the room, an ns2_gamerules in the readyroom, and even 2 resource nodes along with lights.

I keep getting many console errors for some reason, and seem to have everything I need for the basic map to start properly. Any ideas?

Comments

  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    so you have two techpoints.... Are they both set to team 2?

    If not, post the log and we'll get the error extremely quickly... That's what we do around here :D
  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
    Apparantly one was set to "marine team only" and the other "either team". I set both to either team so its working now. Thanks for the fast response.
  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
    Well I guess it solved the problem on one of my maps, but not on the either. Same issue, same initial setup, and both tech points are setup correctly, but I'm still getting a million console errors. How do I check the log?
  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    Goto Run then type %appdata%

    This will open the roaming folder, scroll to Natural Selection 2, then look for log.txt
  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
    Relevant portion of the log:
    Warning -- Found only 0 tech_point entities.
    Warning -- Found only 0 resource_point entities.
    Error: lua/NS2Gamerules.lua:73: ChooseTechPoint couldn't find a tech point for team 1
    [Server] Script Error #671: lua/NS2Gamerules.lua:73: ChooseTechPoint couldn't find a tech point for team 1
    Call stack:
    #1: assert [C]:-1
    #2: ChooseTechPoint lua/NS2Gamerules.lua:73
    self = NS2Gamerules-3884 { }
    techPoints = { }
    teamNumber = 1
    validTechPoints = { }
    totalTechPointWeight = 0
    chosenTechPointWeight = 0
    chosenTechPoint = nil
    currentWeight = 0
    #3: resetGame lua/NS2Gamerules.lua:477
    self = NS2Gamerules-3884 { }
    team1CommanderClientIndex = nil
    team2CommanderClientIndex = nil
    techPoints = { }
    resourcePoints = ClassEntityList { }
    team1TechPoint = nil
    team2TechPoint = nil
    #4: ResetGame lua/Server/CHUD_ServerStats.lua:134
    self = NS2Gamerules-3884 { }
    #5: lua/NS2Gamerules.lua:924
    self = NS2Gamerules-3884 { }
    timePassed = 0.032927758991718
    Client disconnected (127.0.0.1) Server shutdown
    Error: Attempted to load remote options from a file that does not exist.
  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    Well, according to this, it hasn't found any techpoints or res nodes at all, let alone any for a particular team..
  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
    That's the odd thing, I have those things. Anyways, here's the level if anybody can troubleshoot. It's pretty basic, as I'm just learning the editor.

    https://www.dropbox.com/s/0i862d989v958gn/aerotest2.level
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    edited June 2014
    AFAIK this is the absolute minimum for a working test map http://wiki.unknownworlds.com/ns2/Ns2_sample#Absolute_minimum_.28no_commander_mode.29

    I'm guessing the missing location entities are the cause, it's unable to determin which powernode/resnode/techpoint make up a base.
  • VetinariVetinari Join Date: 2013-07-23 Member: 186325Members, Squad Five Blue, Reinforced - Shadow, WC 2013 - Silver
    Without reading the log - do you have location entities? Each TP should have it's own location & RT.
  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    edited June 2014
    Your map is crashing because the first error in the log, which you have overlooked is:
    Warning: A PowerPoint went out of bounds, destroying...
    Error: lua/PowerPoint.lua:640: attempt to call method 'MarkBlipDirty' (a nil value)
    [Server] Script Error #1: lua/PowerPoint.lua:640: attempt to call method 'MarkBlipDirty' (a nil value)
    

    I am trying to build your map with teh basic entities to return to you, but it has this odd error which I have never seen before. I am currently scouring your map for a misplaced powerpoint.

    Once I have completed this I will return it to you with the minimum entities required. I will finish updating your map to work at the most basic level.

    I will also post in here with the list of entities, as it is rather less than most people seem to think. I have created loads of little mod test maps, and while you get errors, you can test the map, or in my case the game code with very few entities.
  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    edited June 2014
    Lol, location entity seems to be the issue.. That is all you are missing.. and a couple of res nodes.. Powerpoints are not required in the map, you have everything else you need.

    Edit - Commander cameras are not needed either.. Although the you can't do anything in the comm chair without it and a minimap.
  • SamusDroidSamusDroid Colorado Join Date: 2013-05-13 Member: 185219Members, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Gold, Subnautica Playtester, NS2 Community Developer, Pistachionauts
    You don't have any locations
  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
    I originally had a big location entity when I had just one powerpoint, but deleted it for a while and had the error when it was in anyways. I added in 3 location entities and scaled it to cover the appropriate rooms individually. Still getting the same error.

    Updated version: https://www.dropbox.com/s/0i862d989v958gn/aerotest2.level
  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
    I can load into my map just fine, but I'm surrounded by the void. I can see my readyroom/level off in the distance though. If I move around a little, I just seem to fall and die in the void. I started a new map from scratch with a similar design, and have a readyroom and everything with multiple readyroom_start entities placed.
  • VetinariVetinari Join Date: 2013-07-23 Member: 186325Members, Squad Five Blue, Reinforced - Shadow, WC 2013 - Silver
    You need:

    - ns2_gamerules
    - two TPs
    - two RTs
    - two locations, covering a TP and a RT each
    - a light, just so you can see shit
    - a readyroom spawn somewhere (in the map works just fine. use j1 or j2 to join teams)

    That should do it. Powernodes are not required. Make sure to place the readyroom spawn somewhere where you can't fall off the map.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    Usually a "Warning: A >any entity< went out of bounds, destroying..." error means that you placed them too far away from the origin. Something like 40.000 grid units is the maximum you can stray away from the origin. I'm guessing that is similar to the Yaxis 1014 meters (yeah I've got it set to meters :P)
  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
    Kouji_San wrote: »
    Usually a "Warning: A >any entity< went out of bounds, destroying..." error means that you placed them too far away from the origin. Something like 40.000 grid units is the maximum you can stray away from the origin. I'm guessing that is similar to the Yaxis 1014 meters (yeah I've got it set to meters :P)

    I was about 40,000 grid units on the Y axis away from origin. Moved everything down real close to the origin and it solved the problem. Thanks!

Sign In or Register to comment.