[solved] sectors.yaml :: Expected 'SequenceStart', got 'MappingStart'

Discussion in 'Planets & Playfields' started by Sephrajin, Jun 11, 2018.

  1. Sephrajin

    Sephrajin Rear Admiral

    Joined:
    Dec 22, 2017
    Messages:
    916
    Likes Received:
    2,917
    Heyas

    So, i've created a Scenario with the SSG and exported/saved it to the /Content/Scenarios Folder.
    Loged in the Scenario to look around, all fine.

    Made a copy of sectors.yaml ! :)
    Started to modify sectors.yaml, as the players on the server wanted a 'more flat Galaxy map'.

    Now when i try to Login, it fails with the message about MappingStart instead of SequenceStart.
    Refering to some line 3... which Looks like:
    Code:
    ---
    # Sector configuration file
    Build: 1702
    Sectors:
    # Sun Star
      - Coordinates: [0, 0, 0]
        Color: 1, 1, 0
        Icon: No
        OrbitLine: false
        SectorMapType: None
        Playfields:
          - ['0, 0, 0', Sun Star, Sun Star]
    For a moment I thoughts it is the 3 dashes (---), but it is not.

    The error message looks like:
    Code:
    11-14:20:23.032 16_20 -LOG- GameOptions: Using dataset 'SP, Survival' for condition 'Survival, SP'
    YamlException: (Line: 3, Col: 1, Idx: 34) - (Line: 3, Col: 1, Idx: 34): Expected 'SequenceStart', got 'MappingStart' (at Line: 3, Col: 1, Idx: 34).
      at YamlDotNet.Core.ParserExtensions.Expect[SequenceStart] (IParser parser) [0x00000] in <filename unknown>:0
    Now i'm confused, as i dont find any error until line 3...
    In fact, until after the sun, the files are identical (actual build number aside - compared with yet another sectors.yaml i had modified but works).

    Any ideas please?
     
    #1
  2. jmcburn

    jmcburn Rear Admiral

    Joined:
    Jan 15, 2017
    Messages:
    1,110
    Likes Received:
    1,753
    it's not the sectors.yaml. It's either a nonexistent gameoptions.yaml or an error in your gameoptions.yaml (line 3).

    Try to copy the omicron-akua scenario and replace the sectors yaml in there with yours and copy your playfields in. That should work.

    /jmc
     
    #2
  3. Sephrajin

    Sephrajin Rear Admiral

    Joined:
    Dec 22, 2017
    Messages:
    916
    Likes Received:
    2,917
    Thanks, but it was a spacing in the sectors.yaml :(
    Sorry forgot to update title/post.
     
    #3
    jmcburn likes this.
  4. The Tactician[ Λ ]

    The Tactician[ Λ ] Rear Admiral

    Joined:
    Sep 8, 2017
    Messages:
    1,085
    Likes Received:
    3,781
    its always a damn typo lol
     
    #4
  5. shortybsd

    shortybsd Ensign

    Joined:
    Jul 21, 2017
    Messages:
    14
    Likes Received:
    7
    That little one extra nasty space on line 458 messed the entire file up ... gotta love yaml ;)
     
    #5

Share This Page