Skip to content

Fixes #2488 toggle panels logspam#2504

Merged
Dunbaratu merged 1 commit intoKSP-KOS:developfrom
Dunbaratu:fixes_2488_toggle_panel_logspam
Apr 28, 2019
Merged

Fixes #2488 toggle panels logspam#2504
Dunbaratu merged 1 commit intoKSP-KOS:developfrom
Dunbaratu:fixes_2488_toggle_panel_logspam

Conversation

@Dunbaratu
Copy link
Member

To fix #2488 - KSP calls all solar panels "ModuleDeployableSolarPanel" even if
they aren't deployable. The only way to tell if it's actually deployable
(versus fixed in place) is to see if it had an animation defined.

It seems the protection against calling Extend() or Retract() on
panels that aren't deployable only existed in the UI where
KSP disabled the gui fields if the animation isn't there.
That same protection didn't exist in the lower level API, so
I had to add the same protections in our code.

To fix KSP-KOS#2488 - KSP calls all solar panels "ModuleDeployableSolarPanel" even if
they aren't deployable.   The only way to tell if it's actually deployable
(versus fixed in place) is to see if it had an animation defined.

It seems the protection against calling Extend() or Retract() on
panels that aren't deployable only existed in the UI where
KSP disabled the gui fields if the animation isn't there.
That same protection didn't exist in the lower level API, so
I had to add the same protections in our code.
@Dunbaratu Dunbaratu merged commit 104f2dc into KSP-KOS:develop Apr 28, 2019
@Dunbaratu Dunbaratu added the bug Weird outcome is probably not what the mod programmer expected. label May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Weird outcome is probably not what the mod programmer expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"panels off" and "toggle panels" result in continuous log spam

1 participant