1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

Placing Planets and Spawn Points

Discussion in 'Multiplayer' started by Godslayer, Feb 24, 2016.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. Godslayer

    Godslayer Trainee Engineer

    Messages:
    2
    So I'm setting up a dedicated server and have been running in to problems placing planets.
    What I'd like to have is that when spawning in, players spawn within the gravity field of a planet. I've played on servers where you start just above the planet in a lander, and have to land to the planet, then build until you can leave it. I'd like something similar.
    The problem I'm running into is I can't seem to figure out how to either move or create a planet in the right place to get this working, or set the spawn zone of the atmospheric landers.
    I've tried moving planets in SE Toolbox, but I must be doing something wrong. The planets move, but not where I think they should.
    Do planets use some other strange set of GPS cords? My players all seem to spawn within about 1000/m of the center of the map (0.0.0) but when I set a planet to within 40k of there, it appears much farther away.
    I noticed in the Planet scenario that the Earthlike planet there has its center set to 0.0.0, but its over 105k from center. I guess there is some part of how they work that I don't understand yet.
    Anyone know how they work or how I can get the landers to spawn in the grav field?
     
  2. rexxar

    rexxar Senior Engineer

    Messages:
    1,532
    I think what I did is create a new star system world, and used SEToolbox to copy the planets from that over into my current world. That way the Earth planet is at the right position for the atmospheric lander to spawn.

    I could be misremembering though, I might have copied all my old ships into the new world with planets. Try it the first way and see what happens.
     
  3. fartmans

    fartmans Trainee Engineer

    Messages:
    35
    I would just like the center of the circle or sphere used for the spawn area to be definable. Would also be great if there was a graceful way to disable spawn ships.
     
  4. Zourage

    Zourage Trainee Engineer

    Messages:
    1
    I manage a server with planets (fresh map). A bug popped up once where spawn moved from the orbit of the planet to 6million km away. After asking on reddit and doing some searching, it appears spawn will happen at some distance from cords 0,0,0 & will change to a ridiculous amount if objects are spawning beyond the world limit. My suggestion to you is to try to get the planet you want to spawn into at 0,0,0 and set the world size to infinite. As far as I'm aware you can't change the actual spawn location.
     
  5. Ronin1973

    Ronin1973 Master Engineer

    Messages:
    4,964
  6. RelicSage

    RelicSage Trainee Engineer

    Messages:
    26
    I have my own Dedicated Server ( steam://connect/23.236.180.35:29016 ) that spawns you near ingora ( Gas Giant https://steamcommunity.com/sharedfiles/filedetails/?id=770063865&searchtext=ingora ) and within it's gravity field that requires the player to escape the gravity pull of the Gas Giant or end up pancaked. In order to adjust the spawn location and distance you'll need to do two things, please note this only works with your own spawn ships you'll need to make a mod of your own. First make sure you have SEToolbox ( https://github.com/midspace/SEToolbox ) and open your world. Locate the planet you wish for the players to spawn near and grab the POSITION of the planet you want ( XYZ cords ). Once you have the position coordinates you need to open your spawn ships SBC file with Notepad or Notepad++ and locate the following line (near the top )

    <CubeGrids>
    <CubeGrid>
    <EntityId>123687734709742621</EntityId>
    <PersistentFlags>CastShadows InScene</PersistentFlags>
    <PositionAndOrientation>
    <Position x="1031072" y="131072" z="1631072" />
    <Forward x="0" y="0" z="-1" />
    <Up x="0" y="1" z="0" />
    </PositionAndOrientation>

    Where you see <Position x="1031072" y="131072" z="1631072" /> that is the location of the Mars Atmospheric Lander that spawns just above Mars.

    Next you'll need to add the following two lines between <PersistentFlags>CastShadows InScene</PersistentFlags> and <PositionAndOrientation>

    <UsePositionForSpawn>true</UsePositionForSpawn>
    <PlanetSpawnHeightRatio>0.005</PlanetSpawnHeightRatio>

    Now you should have something like this:

    <CubeGrids>
    <CubeGrid>
    <EntityId>123687734709742621</EntityId>
    <PersistentFlags>CastShadows InScene</PersistentFlags>
    <UsePositionForSpawn>true</UsePositionForSpawn>
    <PlanetSpawnHeightRatio>0.005</PlanetSpawnHeightRatio>
    <PositionAndOrientation>
    <Position x="1031072" y="131072" z="1631072" />
    <Forward x="0" y="0" z="-1" />
    <Up x="0" y="1" z="0" />
    </PositionAndOrientation>

    So now we have something to work with. So the position XYZ equates to the planets position ( this allows you spawn ship to spawn near the planet that you want in your map and not just the planet at the center of your system ) Next item is the PlanetSpawnHeightRatio...the 0.005 is the standard setting for the Mars Atmospheric Lander. The 0.005 is the percent of distance between the Atmosphere and the end of the gravity field. So if the Atmosphere is 6 km from the surface and then end of the gravity field is 16 km that leaves a distance of 10 km now calculate 0.005% of 10 km and poof you have your height.

    please let me know if this helps :D and feel free to take a look at the server. Includes quite a number mods, but for environmental improvements. Custom planets, constant pirate attacks, Soon there will be more cargo ships with different behaviors and working on a my own economic system (Currency and trading but simplified)

    Also if you would like to have your own Spawn ships without the standard ones locate the RespawnShips.sbc in the data folder, Create your Mod and open the file.

    Locate <Ship> and change it to <Ship Enabled="false"> on the standard spawn ships save it and load your mod poof all standard spawn ships gone leaving yours only :D

    Example:

    <Ship Enabled="false">
    <Id>
    <TypeId>RespawnShipDefinition</TypeId>
    <SubtypeId>PlanetaryLander</SubtypeId>
    </Id>
    <DisplayName>DisplayName_PlanetaryLander</DisplayName>
    <Icon>Textures\GUI\Icons\Fake.dds</Icon>
    <CooldownSeconds>900</CooldownSeconds>
    <Prefab>AtmosphericLander</Prefab>
    </Ship>
     
    • Like Like x 1
Thread Status:
This last post in this thread was made more than 31 days old.