TalonBraveInfo / OpenHoW

Open-source reimplementation of Gremlin's Hogs of War (PC/PSX).
http://talonbrave.info
GNU General Public License v3.0
166 stars 12 forks source link

ScriptConfig::GetColourProperty fails to read the colour. #103

Closed DummkopfOfHachtenduden closed 5 years ago

DummkopfOfHachtenduden commented 5 years ago

ScriptConfig::GetColourProperty fails to read the colour which results in a partially read manifest.

[08/06/19 17:13:33] warning: (RegisterManifest) Failed to read map config, "./campaigns/how/maps/camp.map"!
Failed to parse entirety of colour from JSON property, "ambientColour"!

camp.map

{
  "name":"$map_how_camp",
  "author":"Unknown",
  "ambientColour":"88 88 96",
  "skyColourTop":"0 104 156",
  "skyColourBottom":"223 255 255",
  "sky":"coldsky",
  "modes":[
    "training"
  ]
}

https://github.com/TalonBraveInfo/OpenHoW/blob/fe9be0ad24763064cb4a55b3776f82e8499bba36/src/engine/map_manager.cpp#L50-L53

hogsy commented 5 years ago

Will check this first thing when I get home.

DummkopfOfHachtenduden commented 5 years ago

Fixed 👍