Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Stage, RCS, SAS and Action Button/Lock Stuck On #646
I have encountered an issue while using Remote Tech in which I am unable to launch unmanned vehicles. The stage lock light is stuck on and won't disengage, despite the fact that I have a connection, enough energy to power my probe core, and fuel available. Pressing alt + L also does nothing, and time acceleration is at 1x.
Upon opening the debug menu with alt + F12, I saw the following locks in my Input Lock stack:
Screenshot (note that I said in the image caption that it fixed my problem. It removed the locks the first time I did it, but after reloading and trying it again, the locks no longer get removed by clicking the Clear Locks button.)
Leaving the launch pad and returning to the Space Center while in this state seems to leave the locks in the Input Lock stack:
I believe the issue may be caused by line 109 in RTCore.cs - if
Sadly I'm not quite sure what action I took ingame that may have triggered this scenario, but I have a feeling that something I did caused my game data to get into a configuration such that the Update method in RTCore.cs is not releasing locks properly. I was able to use probes normally for about a dozen unmanned missions before this began happening. Reinstalling Remote Tech did not help.
I cancelled all my contracts and aborted all my missions except for the one on the launchpad to see if that would help, but still no luck.
Please let me know if there is anything more I can do to help.
PS - Thanks for maintaining the mod! Bugs like this can be a bummer, but Remote Tech is still one of my favorite KSP mods! =D
I'm debugging this locally and it appears that my first guess was wrong, each time through the Update method, it is hitting this block of code:
I'll continue debugging to see if I can get more info.
Adding a ReleaseLocks() call after the foreach loop seems to fix the issue, and still allows ships to become uncontrollable if they lose connection. But I have a feeling that isn't the right solution here. Sadly I don't know enough about the Remote Tech mod to guess what the "right" solution is.
Please let me know if there is anything more I can do to help diagnose this!
(this bug is also reported in the issue #1)
Given that, I decide to exclude the stage-lock indicator from RemoteTech's
I found out why the current state of the stage-lock indicator is set up in a particular way. When the staging command triggered by pressing
I am going to leave this issue open for current and future RT developers for records.
Yes, it is possible to replace KSP's stock
However, I am not sure if this change is trivial or significant. Third-party mods could subclass and replace the