theSpeare / RoverScience-Revisit

Revisit of RoverScience (compatibility + new features)
2 stars 5 forks source link

Compatibility with Hangar mod #1

Open theSpeare opened 8 years ago

theSpeare commented 8 years ago

apparently spawning vessels out of the hangar won't trigger RoverScience detection of wheels landed. Workaround is to reload the scene (by save or by scene change). Will investigate this further.

theSpeare commented 8 years ago

http://forum.kerbalspaceprogram.com/index.php?/topic/67979-113-roverscience-revisted-better-interactive-science-for-rovers/&page=3

for some more details. Instance was not being declared properly on RoverScience due to IsPrimary. Added a snippet of code that should be carefully noted. Could break things if I don't figure out more of this issue.

if (Instance = null)
                {
                    Instance = this;
                    Debug.Log("Instance was null; workaround fix by declaring Instance anyway");
                }

attempted fix has been pushed and released as 2.0.3