jrossignol / ContractConfigurator

A config file based solution for creating new contracts for Kerbal Space Program.
https://forum.kerbalspaceprogram.com/index.php?/topic/91625-1
Other
64 stars 67 forks source link

PartValidation part = 1.25_Heatshield isn't working #181

Closed SimonTheSourcerer closed 9 years ago

SimonTheSourcerer commented 9 years ago

Looks like _ is a illegal char but can still be used in names like: "1.25Heatshield" (DeadlyReentry). Error: "[Exception]: FormatException: Unknown char: "

There is a problem with - too for example Mark1-2Pod (vanilla) gets his name split. [Exception]: ArgumentException: 'Mark1' is not a valid Part.

jrossignol commented 9 years ago

Ugh, both of these are ugly, but should be fixable.

SimonTheSourcerer commented 9 years ago

Both things allready worked in earlier versions. I recently updated to 0.7.x and I got this :)

jrossignol commented 9 years ago

Yeah, its because of the introduction of the expressions. Everything can potentially be parsed as an expression, so some of the parsing got a little tightened up... there's lots of exceptions already, just need to loosen it a bit for part names.

jrossignol commented 9 years ago

Fixed in development version.