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:
    11,033
    Likes Received:
    17,573
    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:
    11,033
    Likes Received:
    17,573
    -tba-
     
    #2
  3. Our Grid

    Our Grid Captain

    Joined:
    Nov 2, 2016
    Messages:
    328
    Likes Received:
    308
    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,437
    Likes Received:
    13,531
    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:
    329
    Likes Received:
    164
    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,437
    Likes Received:
    13,531
    Have to wipe the playfield too. I forgot that part.
     
    #6
    Ephoie likes this.

Share This Page