Nivekk / KOS

Fully programmable autopilot mod for KSP.
Other
80 stars 30 forks source link

RFC: new saving/loading of save file variables. #265

Open a1270 opened 10 years ago

a1270 commented 10 years ago

This splits up variables in five nodes: numbers, strings, bools, kostypes and variables. The latter is for when it's not the first four. That is for debugging and can be removed. It casts the strings to string,numbers to double and bools to bool, putting kostypes through Expression.

This fixes #220 as far as i can tell at the cost of breaking old saves. Anyone know how to convert in a reasonable way? I'll link a compiled dll upon request.

a1270 commented 10 years ago

Expression has issues with VERSION. I'd suggest making VERSION return a string. Then you add RELEASE. All subelements will return a double or int. So 0 is major, 9 is minor and 3 is release.