Needs attention How to add custom playfields to your game

Discussion in 'Custom Playfields & Systems' started by Hummel-o-War, Dec 10, 2019.

  1. Hummel-o-War

    Hummel-o-War Administrator Staff Member Community Manager

    • Developer
    Joined:
    Jun 15, 2015
    Messages:
    5,506
    Likes Received:
    8,502
    Description:
    A custom playfield for PLANETS (incl. Moons) folder consists of THREE files
    - terrain.ecf
    - playfield_dynamic.yaml (overall layout )
    - playfield_static.yaml (specific settings, POI, ressources etc)

    A custom playfield for ORBITS consists of ONE file
    - playfield_dynamic.yaml

    Usecase:

    Example A: Use in DEFAULT RANDOM scenario ( = default SP game scenario)

    1. unzip the playfield folder and make sure the folder contains the files noted above
    2. Copy the folder to ..\Empyrion - Galactic Survival\Content\Playfields
    3. Go to ...\Empyrion - Galactic Survival\Content\RandomPresets
    4. Open the 'solarsystemconfig' with Notepad++ or Editor
    5. If your custom playfield is a PLANET, add it to the 'SectorPlanets:' area by using its FOLDER name

    Note: If your custom playfield is an ORBIT or a MOON or has a custom playfield TYPE, you might need to add further changes to the 'PlanetTypes' section

    Example

    Code:
          - Name: TemperateStarter (< this is a playfield TYPE)
            Color: [0.04, 0.8, 0.1]
            Icon: Circle
            Distance: [400, 850]
            PlayerStart: true
            # Neighbor 'Name, Probability [0..1]'
            Neighbor:
              - Snow, 1
              - SpaceTradingStation, 0.3
            OrbitType: [OrbitStarter]         (< Add the folder name of a custom orbit, so it will spawn with ANY playfield using this planet TYPE )
            MoonProb: 1
            MoonType: [MoonStarter]        (< Add the folder name of a custom moon playfield, so it will spawn with ANY playfield using this planet TYPE )
            Climate: Temperate
            PlayfieldLevel: [1,1]
            Playfields:
                - TemperateStarterCustom  (< this is the planet FOLDER name)
    
    If your custom planet playfield uses a CUSTOM playfield TYPE, you can simply copy such an entry and enter the custom playfield TYPE in the first line + add the playfield FOLDER name in the last line)

    EXAMPLE B: Use in a custom scenario (Random Gen)

    The same steps as above are used, except you first need to open the scenario folder, like ..\Empyrion - Galactic Survival\Content\Scenarios\Default Multiplayer where you can find the \Playfields and the \RandomPresets folder!

    EXAMPLE C: Fixed solar system (non-random)

    1. unzip the playfield folder and make sure the folder contains the files noted above
    2. Go to the scenario folder, f.ex.: ..\Empyrion - Galactic Survival\Content\Scenarios\MSS Akua-Omicron
    2. Copy the unzipped custom playfield folder to ..\Playfields
    3. Go to the sector setup folder: ..\Empyrion - Galactic Survival\Content\Scenarios\MSS Akua-Omicron\Sectors
    4. Open the Sectors.yaml with Notepad++ or Editor
    5. Add your custom playfields (planets, moons or orbits) with the appropriate settings

    Code:
        - Coordinates: [-29, -7, -13]
          SectorMapType: Planet
          Playfields:
          - ['0, 0, 0', Oscutune, Ocean ]
          - ['-6041, 0, 5619', Oscutune Moon, MoonDesert ]    
          - ['0, 0, 0', Oscutune Orbit, SpaceOrbit ]
      
    Note: you need to set this manually! The entry requires Coordinates, SectorMapType (Planet) and at least an Orbit and Planet entry (for this SectorMapType; Other types might require different parameters > check the MSS Akua-Omicron scenario Sectors.yaml for examples!).
     
    #1
  2. Hummel-o-War

    Hummel-o-War Administrator Staff Member Community Manager

    • Developer
    Joined:
    Jun 15, 2015
    Messages:
    5,506
    Likes Received:
    8,502
    -tba-
     
    #2
  3. Our Grid

    Our Grid Captain

    Joined:
    Nov 2, 2016
    Messages:
    100
    Likes Received:
    58
    It would be fantastic if you could give some direction on the process to edit an existing orbit or planet in a currently played save/server. Seems like many of us like to fine tune things well into our saves. The simplest way for us to get familiar with doing so used to be to copy a typical template and add it in to the sectors file. Looks like a number of things have changed in the file structure and use by the game. If you can run us through adding to, or editing an existing save, it would be a great hopping off point to doing our own mods to the solar system (galaxy!). Thank you!
     
    #3
  4. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,395
    Likes Received:
    12,004
    This is pretty simple actually and basically the same process as editing a playfield in a scenario.
    Just go to your save folder, open up the templates folder, and you can see all the playfield.yaml files there and edit them as needed.
    Might need to delete the cache as well, not sure on that though.
     
    #4
    Ephoie and Needleship like this.
  5. Fenra369

    Fenra369 Commander

    Joined:
    Apr 5, 2016
    Messages:
    340
    Likes Received:
    139
    My experience with this has been anything but easy. Dealing with cache issues, sync problems, etc... It does require careful process to undersatnd what you can and cannot edit in an existing playfield, as well as an understanding that the client (player) may not see the same as the server (the folder you're editing).
     
    #5
  6. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,395
    Likes Received:
    12,004
    Have to wipe the playfield too. I forgot that part.
     
    #6
    Ephoie likes this.
  7. japp_02

    japp_02 Commander

    Joined:
    Feb 11, 2021
    Messages:
    524
    Likes Received:
    200
    What about playfields for planets with the name
    Playfield.yaml
    and where the other 2 names appear like
    _playfield_static.yaml
    _playfield_dynamic.yaml

    If I use these without making any changes in those files in a custom scenario together with a modded orbit playfiled, a modded 'space_dynamic.yaml' (in my case a copy of the Default Creative folder where I mod only the SpaceOrbitCreative) I get error messages and cannot load the custom scenario.
    Thanks for any help!
     
    #7
    Last edited: Feb 7, 2024
  8. japp_02

    japp_02 Commander

    Joined:
    Feb 11, 2021
    Messages:
    524
    Likes Received:
    200
    The Playfield.yaml is a synthesis of the 2 files above.
    My errors come from me forgetting to set the right Validator in the gameoptions.yaml file, it must corrispond to the mode set in the FixedPlayerStart section.
     
    #8

Share This Page