blowfishpro / B9PartSwitch

A Kerbal Space Program plugin designed to implement switching of part meshes, resources, and nodes
GNU Lesser General Public License v3.0
50 stars 33 forks source link

Missing value breaks parsing of .version file #102

Closed HebaruSan closed 5 years ago

HebaruSan commented 5 years ago

The current download has:

  "KSP_VERSION" : {
    "MAJOR" : 1,
    "MINOR" : 5,
    "PATCH" : 
  }

PATCH is missing. This causes an error if you try to parse it:

Unexpected character encountered while parsing value: }. Path 'KSP_VERSION.PATCH', line 18, position 2.

HebaruSan commented 5 years ago

Now there's an extra close brace at the end of the file:

{
  "NAME"     : "B9 Part Switch",
  "DOWNLOAD" : "https://github.com/blowfishpro/B9PartSwitch/releases",
  "URL"      : "https://s3.amazonaws.com/blowfish-ksp-b9partswitch-avc/ksp-1.5/B9PartSwitch.version",
  "GITHUB" : {
    "USERNAME"   : "blowfishpro",
    "REPOSITORY" : "B9PartSwitch"
  },
  "VERSION" : "2.4.2",
  "KSP_VERSION" : "1.5.0"
  }  // <----- THIS ONE
}

Additional text encountered after finished reading JSON content: }. Path '', line 12, position 0.