Nivekk / KOS

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

v0.9.2 vessel:distance not a proper number #270

Open JoCRaM opened 10 years ago

JoCRaM commented 10 years ago

possibly similar to #244 - I see it's cast to a float too.

SET d TO VESSEL("test"):DISTANCE+5. Can't add a number to a number.

JoCRaM commented 10 years ago

also headings and bearings.

PRINT ROUND(v:BEARING).

doesn't

JoCRaM commented 10 years ago

is the "proper" fix to teach it how to cast floats do doubles when it needs to?

JoCRaM commented 10 years ago

OOOps, forgot to mention the work arounds in case anyone is searching for this:

LOCK vessel_foo_direction to VESSEL("foo"):DIRECTION. LOCK vessel_foo_distance to VESSEL(:"foo"):DISTANCE.

and so on.

a1270 commented 10 years ago

These are issues from the conversion from using floats to double per default. I plan on fixing all the float returns to doubles after i get some of the bigger fixes merged. I also don't recall what ones i fixed in previous pulls and don't want to fix them in two pulls.

EDIT: seems i need to do this for the save file fix. I'll add it to the top of my list.