Closed tsbockman closed 10 years ago
I decided to do #1 and #2. I had no idea how long this one had been open :P 3 might still be useful but i think it would be part of a much finer time control api like the "Time Control" mod
thanks @tsbockman
I'm still getting "Array index is out of range." when doing things like "SET WARP TO 0." :\
when you say "things like" do you mean that there is a line of your code that reads
SET WARP TO 0.
and you get that exception?
yes, but strangely I've not had this bug in a while. I think what was causing it was to go into physical time warp under 69500, then try changing warp > 70km
A KSP bug
When launching from Kerbin, the time warp mode sometimes remains stuck in physics mode even after leaving the atmosphere and cutting the throttle. I believe this is a bug in the stock game, however when flying manually it is easily worked around by clicking the 1x (normal speed) button manually, causing the game to switch to rails mode if it didn't do so automatically.
KOS script errors
However, KOS seems to be unable to trigger the switch from physics warp to rails warp. As a result, my auto-warping scripts tend to crash a lot with the message,
Which occurs when a script tries to set WARP to a level higher than 3 while in physics mode. (WARP levels 4-7 are only valid when in rails mode.)
Failed scripting solutions
I have inserted gratuitous commands like
into my scripts to try and force the game to switch to rails mode if available, but unlike manually clicking the 1x button, this doesn't seem to help when a script does it.
(Strangely, I think it may actually be the act of moving the mouse over the UI which causes the game to recheck if rails warp is available, rather than clicking on the 1x button, specifically.)
Possible KOS solutions
Any one of these changes would allow me to solve my current problem, but the most comprehensive solution on KOS' part would be to implement 1, 2, and 3 combined. I strongly suspect that 4 is possible to do in a plugin, but I understand that is outside of the scope of the KOS project.