Random Orbit Start

Discussion in 'Scenarios' started by victusfate, Feb 10, 2019.

  1. victusfate

    victusfate Ensign

    Joined:
    Feb 5, 2019
    Messages:
    29
    Likes Received:
    21
    I've been working on a new scenario with a procedurally generated system and I'd like the players to have the option of beginning in Orbit, particularly near or within a derelict space ship (starting with BAO derelict mining ship).

    I can start at a temperate planet aok from copying the random scenario and modifying. But as soon as I try to add other starts (arid or snow planet & orbit) the scenario errors out on load.

    By opening the console I can sometimes debug what went wrong but it feels like scenario editing should be a larger part of the base game since it changes with each version. Any chance we'll get built in scenario editing tools? I have tried SSG and another third party tool but without much luck.

    If it's worth anything, I've been a professional developer since the mid 1990s and I've never pulled out so much hair as when trying to get simple ideas to work with these yaml files (or adding them from scratch). Part of the issue is many of the examples I can find in the wild are for older versions of the game and break on load, or are more geared towards fixed scenarios (sectors)
     
    #1
  2. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    3,229
    Likes Received:
    6,696
    Just add the player start tag (forget exactly what it is) to the orbit in your solarsystemconfig.yaml file and it will show up as a valid starting location. You'll also need to set the player start in your orbit's dynamic.yaml as your POI otherwise the player will spawn in an escape pod in space. :D
     
    #2
  3. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    3,229
    Likes Received:
    6,696
    I'll try to post up an example later if nobody else beats me to it.
     
    #3
  4. victusfate

    victusfate Ensign

    Joined:
    Feb 5, 2019
    Messages:
    29
    Likes Received:
    21
    Hey thanks I have time this afternoon to try it - should be easy to do with a minimal playfield file
     
    #4
  5. victusfate

    victusfate Ensign

    Joined:
    Feb 5, 2019
    Messages:
    29
    Likes Received:
    21
    I got AridStarter and TemperateStarter working aok, but no luck getting the orbital start to show up in the list of starting options

    Here are my files atm/work in progress:
    https://github.com/victusfate/Oblivion
     
    #5
  6. victusfate

    victusfate Ensign

    Joined:
    Feb 5, 2019
    Messages:
    29
    Likes Received:
    21
    Heads up when I load it I'm getting an error while its trying to generate the system (Planet X has a null orbit)
     
    #6
  7. victusfate

    victusfate Ensign

    Joined:
    Feb 5, 2019
    Messages:
    29
    Likes Received:
    21
    Got my error cleared up by copying and modifying SpaceOrbitStarter from
    C:\Program Files (x86)\Steam\steamapps\common\Empyrion - Galactic Survival\Content\Playfields
    to my scenario Playfields and renaming to MyOrbitStarter (and the references in solarsystemconfig.yaml)

    still no luck getting MyOrbitStarter to show up in the possible starting locations
     
    #7
  8. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    3,229
    Likes Received:
    6,696
    I'll try to take a look tonight and remember how I got it to work when I get home.
     
    #8
  9. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    3,229
    Likes Received:
    6,696
    Did some testing. It seems you can't set an orbit as a player start in a random scenario. You can set an asteroid field (or trade station, I assume).
    I also wasn't able to set the items the player starts with (it gave an error).

    Here's what to add to your solarsystemconfig.yaml in the entry for the asteroid field or trade station you want to be a starter:

    Code:
            PlayerStart: true
    Here's what you add to space_dynamic.yaml, between the POIs and the DroneBaseSetup:

    Code:
        - Mode: Survival             
          Spawn: Structure
          Structure: "Trading Station"
          Armor: ArmorMedium
    Change the name in the structure field to the spawn name of your POI.

    Another limitation is you can't use a custom description in space_dynamic.yaml :(
     
    #9
    victusfate likes this.
  10. victusfate

    victusfate Ensign

    Joined:
    Feb 5, 2019
    Messages:
    29
    Likes Received:
    21
    Bummer on the random Orbit no go and no description. I guess I can setup a start in an asteroid field with POIs. I'll try that and make sure there is enough Pentaxid to get to a higher resource location

    Appreciate the help ravien, who knows maybe these rules will change in coming patches.
     
    #10
    ravien_ff likes this.
  11. victusfate

    victusfate Ensign

    Joined:
    Feb 5, 2019
    Messages:
    29
    Likes Received:
    21
    got the changes to solarsystemconfig.yaml
    Do you have a full working file example for that space_dynamic.yaml for an asteroid field or trade station start?
    Having some issues with undefined references. Tried copying in the content playfields for SpaceAsteroidField and a new one SpaceAsteroidFieldStarter (with mods) but no luck yet.

    NullReferenceException: Object reference not set to the instance of an object

    Or an example of a directory with both dynamic and static yaml files for a start at a trading station. I can always modify a working example by adding additional POIs that I want and making one of them the structure spawn or the position can be near one of their entrances.
     
    #11
    Last edited: Feb 11, 2019
  12. victusfate

    victusfate Ensign

    Joined:
    Feb 5, 2019
    Messages:
    29
    Likes Received:
    21
    Alternatively I could mix a sector defined orbit + planet with a random playfield if that's possible.
    I've seen a bunch of sector examples with space starts
     
    #12
  13. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    3,229
    Likes Received:
    6,696
    Yeah I'll upload them here once I get a chance!
     
    #13
    victusfate likes this.

Share This Page