178place
Multiversal Mechatronics - KSP All the ideas and discussions
0 votes Vote

mechjeb.attitudeTo in version 1.9.4 no longer takes "left", "right", "up", "down", "forward", "back" as valid arguments for the direction argument, just a vector

This was valid syntax (from Kerbin Return Script by olex)
mechjeb.attitudeTo("up", "SURFACE_NORTH") -- vertical ascent
it gives the error:
Coroutine exception: Exception - usage: attitudeTo(vector, reference)
Took me a while to figure out why my autom8 scripts were no longer working

This can be seen in the source due to the lines:
if ((arg.Count() != 2) || !(arg[0] is LuaTable))
{
throw new Exception("usage: attitudeTo(vector, reference)");
}

The syntax now must be: mechjeb.attitudeTo({0,0,0}, "SURFACE_NORTH")
(though I'm not sure that in this case {0,0,0} is equivalent to "up")

Please eirther restore the gunctionality of allowing a string for a direction or publish a conversion table
so that we can fix our autom8 scripts

Thank

Giuseppe , 13.11.2012, 21:04
Idea status: under consideration

Comments

Leave a comment