Janus1992 / KSP_Starship-kOS-Interface

An Interface for automating the 'Starship Expansion Project' and 'Starship Launch Expansion' mods within Kerbal Space Program
GNU General Public License v3.0
15 stars 2 forks source link

Booster fails to switch to next Engine Mode #1

Closed TospTV closed 2 years ago

TospTV commented 2 years ago

I got this Error after Stage Separation although Tundra Exploration is installed and the .dll is in the GameData Folder

image

Janus1992 commented 2 years ago

That shouldn't happen of course, thanks for reporting the problem!

Was there a time when you didn't have Tundra Exploration installed and maybe saved the craft files? If so that would be one way that I can think of that may cause the loss of access to engine mode switching. You could try to reinstall the craft files and see if that fixes things, but otherwise it's a bug (maybe other mods interfere, but I could fix that).

Could you please do the following:

That would help me narrow down the problem.

TospTV commented 2 years ago

I already had TundraExploration installed before installing your Script, so that can't be the problem...

I tried typing in the command you sent in the Ship and Booster CPU, but nothing happened the 3 times I tried. Then I tried printing the Modules and it looks like maybe some other Mod is interfering the script. I'll try to figure out which Mod is causing this issue.

image

TospTV commented 2 years ago

And here is the full Error message after i now found out that, when you make the window bigger, it shows a much longer error

image

Janus1992 commented 2 years ago

Thanks! That first screenshot was all I needed to confirm what had happened. When you printed the modules you could see that you have a "ModuleGimbal" right at the start, which I don't have (and I guess gets added by some mod). I used the bad practice to get a module by index (number 0, the first module) instead of by name. But I changed that now.

Can you try out the new version that I just uploaded and see if it works for you?

TospTV commented 2 years ago

Thanks for your help! This problem seems to be fixed with the update. But there is now a new problem: A few seconds after stage separation i got this error. Seems like there's some problem with the gridfins

image

Janus1992 commented 2 years ago

Weird, since that module is part of the plugin of the Starship Expansion Project.. It should really have that module. Could you try again, and when it fails mid-flight type this in the booster cpu: print fin[0]:modules. Do you have any mods that could possibly interfere, and if yes, could you try temporarily removing those to see if that fixes things?

TospTV commented 2 years ago

I found out that the mod Atmospheric Autopilot changes some modules (see image). By removing the mod everything finally worked as intended, so maybe add that Mod to "Doesn't work with" in your infographic. Thanks for your help and for the amazing script!

image

Janus1992 commented 2 years ago

All right, I will do that! Thanks for reporting the first bug!