Help needed Scenario - How do i Alter Size of Asteroid Fields

Discussion in 'Scenarios' started by tony hug, Jun 18, 2021.

  1. tony hug

    tony hug Commander

    Joined:
    Sep 27, 2015
    Messages:
    124
    Likes Received:
    96
    I am Trying to do a Space Start Scenario

    It is set in an Asteroid Field With a Ring of Asteroids around some custom POIs (blowed up planet pretend)
    I have Created the Ring Asteroid field
    However Cannot Work out How to change its size (seems to default to pretend Planet Size 2)

    Uses Space_dynamic.yaml File

    1. Does Anyone Know how to do this (alter size) - or is it fixed by law
    2. Does anyone know how to add a description to the Playfield to explain what it is (as with static playfields)

    i have tried everything i can think of / borrow from other playfields - but just crashes empyrion
    the file below works - but i ain't got the features (1),(2) above. Empyion uses the <Fieldname> option
    ------------------------------------------------------
    The start of my file goes like this :
    ------------------------------------------------------

    # Playfield Characteristics
    Gravity: 0
    AtmosphereEnabled: False
    PvPProb: 0
    UseFixed: True
    Radiation: [2,4]
    TemperatureDay: [-130,-100]
    Music: [DistantWorlds, Migration, space]

    PlayfieldType: Space
    PlanetType: Space

    Skybox:
    - [SunFlareWhite4Space, SkyboxStarsCyan, PrefabNebulaBlueYellow]
    - [SunFlareWhite3Space, SkyboxStarsBlue, PrefabNebulaBlueGlittery]
    - [SunFlareWhiteSpace, SkyboxStarsBlack, PrefabNebulaBlue]


    ### Resource Asteroid not relavant to question ##

    POIs:
    - Name: [AsteroidFieldBoxExclude, AsteroidFieldFewBoxExclude, AsteroidFieldRing,AsteroidRingPlanet]
    FieldName: [AsteroidFieldRing] # used if playfield is not an orbit
    CountMinMax: [ 1, 1 ]
    Probability: 1
    BaseField: True
    Properties:
    - Key: Color
    Value: "0.3, 0.5, 0.7"

    -------------------------------------------------------------------------
     
    #1
    Sup likes this.
  2. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,395
    Likes Received:
    12,004
    There's no way to change it.

    As for a description just add this to your space_dynamic.yaml file, here is an example from my own scenario. You can edit the description as needed. The formatting codes you can use too.

    Code:
    Description: "Difficulty: [c][00ff00]Easy[-][/c]
    
    
    Habitable systems are often highly populated with an abundance of faction presence, based on territory.
    
    [b]Orbital Stats:[/b] Habitable System
    
    [c][D2AF00][b]Increased:[/b][-][/c][c][DBDBDB] trading, common ores, civilian, bandits and pirates.[-][/c]
    
    [c][D2AF00][b]Decreased:[/b][-][/c][c][DBDBDB] Military.[-][/c]
    
    
    [c][ffffff][i]Mining asteroids claimed by a faction is considered an act of war. Presence of POIs affected by galaxy faction territory.[/i][-][/c]"
     
    #2
    tony hug likes this.
  3. tony hug

    tony hug Commander

    Joined:
    Sep 27, 2015
    Messages:
    124
    Likes Received:
    96
    Thanks for the information about the Asteroid field, knowing gives me a path forward

    As for the Description - Every attempt i have made to stick it into my space_dynamic.yaml file - Just results in Crash on Scenario select
    i have tried in several places in the file -- but no deal - works ok on planet playfields - just not in the Asteroid belt i have.
     
    #3
  4. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,395
    Likes Received:
    12,004
    Are you making sure to use quotations exactly like the example I posted above?

    Description: "this is an asteroid field."
     
    #4
  5. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,395
    Likes Received:
    12,004
    You could upload or message me your space_dynamic file with the description added and tonight I'll take a look.
    If I don't get back to you just tag me here in case I forgot.
     
    #5
  6. tony hug

    tony hug Commander

    Joined:
    Sep 27, 2015
    Messages:
    124
    Likes Received:
    96

    Ahh i think i have found the problem
    i suspect a bug in the YAML parser

    No-Work -->
    Description: "Difficulty: this is an asteroid field."


    Work -->
    Description: "Difficulty this is an asteroid field."


    The parser seems to dislike <Difficulty:> specifically the colon after difficulty
    maybe because its a key word used elsewhere
    though it should ignore everything in the " "

    but thanks and i really appeciate the offer, though don't need it now
     
    #6
  7. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,395
    Likes Received:
    12,004
    Weird because it works for me. Are you using a different language setting?
     
    #7
  8. tony hug

    tony hug Commander

    Joined:
    Sep 27, 2015
    Messages:
    124
    Likes Received:
    96
    Not that i know of...
    i am using v1.5 though if thats any different -- And didn't get these problems when using Playfied_static.yaml planet files only the space_dynamic.yaml (s)

    wierdly its taking me ages to get the Descriptions to work though
    At moment any : in the text causes the thing to crash out
    Also starting description section with "[c][234567]] ... crashes but "-[c][234567] .. doesn't
     
    #8

Share This Page