Jump to content

sairaf

Members
  • Posts

    1
  • Joined

  • Last visited

Reputation

0 Neutral
  1. This would be amazing but I haven't had any luck getting it to work with a PartModule - seems to work fine with a KSPAddon, though. I have the log file here. This is on a clean install and the only mod used (apart from the obvious) is ModuleManager. Issue can be reproduced with the following mod: using UnityEngine; namespace ReloadingModTest { public class ReloadableTestModule : PartModule { public override void OnStart(StartState state) { Debug.Log("On Start before reloading"); } } } Changing "before" to "after", compiling, renaming, overwriting the original file then clicking Reload leads to the error. I had a look through the manual and didn't find anything that would fix this. Adding the OnDestroy method with Destroy(gameobject) makes it worse because it destroys the part the module belongs to causing issues in game and leading to a different error. Using Destroy(this) instead is the same as not having anything, as expected. Unfortunately, I believe the exception is thrown on the method that would log the actual error reloading the module, so I have no idea what it might be. Any help would be appreciated. Thanks! (I know this is an old thread but the download link points to a 1.3 version so I guess this is still updated.)
×
×
  • Create New...