linuxgurugamer / FTLDriveContinued

Other
4 stars 4 forks source link

NullReferenceException spam #28

Closed CMXLargo closed 2 years ago

CMXLargo commented 2 years ago

Forum post from Chimichanga https://forum.kerbalspaceprogram.com/index.php?/topic/150178-112x-ftl-drive-continued/&do=findComment&comment=4093092

Good day sir, thank you for all your maintenance! I am having issues where this mod (v0.2.5) is causing nullrefs in the VAB editor.

Clean KSP installation, with only FTLDrive and dependencies Player.log: https://www.dropbox.com/s/r26376pj0qhpxy1/Player.log?dl=0

Reproduce: Go to VAB, pick up any FTL drive (not beacon) -> nullref console spam. As soon as you drop the part (or remove it from the rocket) the spam stops.

Log file line 20793 is as soon as VAB loaded. Clicking on an FTL drive to select it as the root part causes nullrefs. I then deleted the part (line 37333) and the spam stopped. I then added a non-FTL root part, and clicked to select another FTL drive, and the spam resumed (line 46855). The nullref happens as soon as the part is selected (before it can be added to a ship) so there are nullrefs before the "part added to ship" log events.

Thank you for looking into this!

linuxgurugamer commented 2 years ago

Normally I ask that people post this stuff on the forum. I'll look at this now, since you did such a good job of reporting it. Can you try with 0.2.4 and let me know if it happens with that?

CMXLargo commented 2 years ago

I have already tried it with version 0.2.4 (CKAN). The spam is the same. My first guess has been ampyear, but I can also exclude this mod. But I noticed that in the Right-click menu, the window with the values (mass, target, etc.) is not displayed. I still post a screenshot today.

linuxgurugamer commented 2 years ago

I found the problem, and a different problem as well, will be posting an update in a day or so. You can try this beta and let me know how it goes: https://www.dropbox.com/s/mpj8vwoy1o47o2b/FTLDriveContinued-0.2.5.1.zip?dl=0

CMXLargo commented 2 years ago

Perfect ... beta version works