WhirligigGirl / Alien-Space-Programs

Moves the KSC to other planets in the stock Kerbol system in KSP.
Creative Commons Attribution Share Alike 4.0 International
3 stars 3 forks source link

Kopernicus exception on MacOS KSP with Minmus or Tylo as home world #12

Closed gordonfpanam closed 6 years ago

gordonfpanam commented 6 years ago

LOG 10:44:41.064] Exception: PostSpawnOrbit reference body for "Kerbin" could not be found. Missing body name is "Bin". [WRN 10:44:41.065] DontDestroyOnLoad only work for root GameObjects or components on root GameObjects. [EXC 10:44:41.089] NullReferenceException: Object reference not set to an instance of an object Kopernicus.RuntimeUtility.UpdateMenu () Kopernicus.RuntimeUtility.Start ()

At least, this is on a first attempt. Windows KSP seems OK.

I'll update this issue with further testing results.

gordonfpanam commented 6 years ago

Minmus and Tylo are not working on MacOS, producing a Kopernicus pop-up when the KSP Menu loads. Other home worlds seem OK. Might be due to a lack of atmosphere? I'll try to hack in really thin atmospheres to see what happens.

gordonfpanam commented 6 years ago

Turns out this isn't specific to MacOS. Any home world re-parented around something other than the Sun will cause this exception. Parenting the home world around the Sun and the re-parenting it with PostSpawnOrbit{} seems to fix it in Kopernicus 1.3.1-2.

I had a mess of other changes as well, condensed into a 1.1.1-pre-release. I'll do a pull request after I've done more testing.