What File is this in?

Discussion in 'Custom Playfields & Systems' started by Greystar, Jun 7, 2022.

  1. Greystar

    Greystar Ensign

    Joined:
    Mar 26, 2017
    Messages:
    13
    Likes Received:
    4
    I am editing some of the playfield files and for the life of me can't find the file that is triggering this error.
    07-18:56:47.732 13_56 -EXC- YamlDotNet.Core.SemanticErrorException: (Line: 549, Col: 8, Idx: 15487) - (Line: 549, Col: 8, Idx: 15487): While parsing a block mapping, did not find expected key.
    at YamlDotNet.Core.Parser.ParseBlockMappingKey (System.Boolean isFirst) [0x000d8] in <d43d2ed7565c41478307bcec140df821>:0
    at YamlDotNet.Core.Parser.StateMachine () [0x000d1] in <d43d2ed7565c41478307bcec140df821>:0
    at YamlDotNet.Core.Parser.MoveNext () [0x0001f] in <d43d2ed7565c41478307bcec140df821>:0
    at YamlDotNet.Core.ParserExtensions.Allow[T] (YamlDotNet.Core.IParser parser) [0x00018] in <d43d2ed7565c41478307bcec140df821>:0
    at YamlDotNet.Core.ParserExtensions.Expect[T] (YamlDotNet.Core.IParser parser)
    at YamlDotNet.Serialization.NodeDeserializers.CollectionNodeDeserializer.DeserializeHelper (System.Type tItem, YamlDotNet.Core.IParser parser, System.Func`3[T1,T2,TResult] nestedObjectDeserializer, System.Collections.IList result, System.Boolean canUpdate) [0x000e2] in <d43d2ed7565c41478307bcec140df821>:0

    I have checked all the files that I remember editing at line 549 and I am either missing it or it's in a file other than I think it is. This error shows up at about 51% of the Planet Loading "event" when the scenario is starting.
     
    #1
  2. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,413
    Likes Received:
    12,016
    Check the playfields folder in the save game folder. Most likely it would be the last one created. Then you can go to the templates folder in the save game and find the corresponding playfield.yaml file and maybe find the error on line 549 there.

    You can also selectively remove entries from your sectors.yaml file in your scenario then start a new save game and repeat until the error goes away then you at least know which playfield file is corrupt.
     
    #2
    Greystar likes this.
  3. Greystar

    Greystar Ensign

    Joined:
    Mar 26, 2017
    Messages:
    13
    Likes Received:
    4
    Thanks, I found it and it was something stupid (mis-aligned sections, YAML files are way to picky (I understand no tabs but not lined up with everything else is a bit TOO picky for my taste)).
     
    #3
    ravien_ff likes this.
  4. zaphodikus

    zaphodikus Captain

    Joined:
    Oct 1, 2016
    Messages:
    471
    Likes Received:
    226
    That's because the yaml parser used is perhaps not that verbose at blowing up nicely. It's far too time consuming and I use an online yaml checker because it's just to easy to waste loads of time. Checking before launch helps.

    Is there any chance people can recommend support tools that they use. I mean actual "tools" not fragileworks, that reduce frustration.
     
    #4

Share This Page