Level boundaries

JCrawJCraw Join Date: 2012-12-26 Member: 176326Members
<div class="IPBDescription">validation of invalid origin</div>
I am seeing the following error when spawning Marines from the Ready Room:
Warning: A Marine went out of bounds, destroying...

Looking at the call stack, I go from Player:SetOrigin(origin) in Player.lua (2087) directly to InvalidOriginMixin:OnInvalidOrigin() in InvalidOriginMixer.lua. It appears this validation occurs in the engine. Is there a way to get more info on this validation?

A side question that would also fix this problem for me is, what are the boundaries of a level and can they be changed?

Comments

  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    edited December 2012
    This means an entity, in this case a player is out of bounds. Literally going over 32.000 grid units from the origin (coordinate x:0, y:0, z:0), Spark destroys the related entities. If you're building a map, it should be close enough to the the origin. But also try to avoid having the origin itself in your map as there is currently a bug, which causes some things (sounds/FX/weapons) get teleported or played at origin.

    You can see and hear this on certain maps :P

    Docking, north west in the sky above Landing Pad
    Mineshaft, 4 meters above the powernode in Central Drilling
    Summit, outside the south wall of Flight (listen for it, phantom Skulk bites often occur there :P)
    Tram, the hallway north of Repair to the right of the entrance into Ore
  • JCrawJCraw Join Date: 2012-12-26 Member: 176326Members
    Ok the problem was because I was using coordinates I took from the map editor, which did not correlate with the in-game coordinates.

    A position in the map editor with coordinates such as 3000, 2000, 3000 ended up being located at 100, 40, 100 in-game.

    What I'm doing is spawning a marine to a location instead of spawning near the command center. I wasn't sure how to set a location in the map to spawn to, so I just used coordinates.

    Is there a way to translate map editor coordinates to in-game coordinates? Is there a way to set a location on the map that I can then get the coordinates of and spawn to?
  • MendaspMendasp I touch maps in inappropriate places Valencia, Spain Join Date: 2002-07-05 Member: 884Members, NS1 Playtester, Contributor, Constellation, NS2 Playtester, Squad Five Gold, NS2 Map Tester, Reinforced - Shadow, WC 2013 - Shadow, Retired Community Developer
    edited December 2012
    Change the editor units to meters in the editor settings.

    And you'll get the coordinates your player is in if you type "locate" in console.
  • fsfodfsfod uk Join Date: 2004-04-09 Member: 27810Members, NS2 Developer, Constellation, NS2 Playtester, Squad Five Blue, Squad Five Silver, Squad Five Gold, Subnautica Playtester, NS2 Community Developer, Pistachionauts
    the hardcoded limit in ingame units is x/z -2000 to 2000 and y is -250 to 250
Sign In or Register to comment.