sumghai / FusTek_StationParts

Parts Pack for Kerbal Space Program, featuring ISS-inspired habitation, science lab and other crew compartments for building space stations and planetary outposts.
Other
21 stars 8 forks source link

Multiple instances of the CurvedWallPadded_Viewport IVA prop not working #46

Closed sumghai closed 9 years ago

sumghai commented 9 years ago

The CurvedWallPadded_Viewport prop represents the inside window frame corresponding to the round viewports found on most Karmony station module exteriors, and uses JSIActionGroupSwtich to animate an integrated window privacy/blast shutter.

At the moment, CurvedWallPadded_Viewport is defined once in the Props folder, and multiple instances of the prop are instantiated when putting together IVAs for Habitation, Science and Utilities modules.

Unfortunately, RasterPropMonitor (which provides JSIActionGroupSwtich) does not appear to be able to handle multiple instances of the same animated prop - for instance, the Hab module has six of these viewports, but only the one defined last in the Hab's Internals.CFG file (which happens to be the one next to one of the sleeping areas) can actually be toggled - the other five viewport shutters are non-responsive.

Obviously, this needs to be fixed.

EDIT: To clarify -

sumghai commented 9 years ago

@MOARdV, who is currently maintaining RasterPropMonitor on @Mihara's, has informed me he would look into this issue when he has some free time, and suggested that it may possibly be something to do with the plugin itself.

sumghai commented 9 years ago

I think that for the time being, I'll just leave the module windows open, and comment out the JSI RPM prop animation PartModule until further notice.

sumghai commented 9 years ago

@MOARdV and I are investigating this issue at Mihara/RasterPropMonitor/issues/169

sumghai commented 9 years ago

As it turned out, the viewport focus hitbox was overlapping and intersecting with the shutter toggle hitbox. All I need to do is to make the former smaller, and we should be in business :)

sumghai commented 9 years ago

Pushed a temporary fix, whereby the viewport focus hitboxes were replaced with cylindrical mesh colliders, and the temporary shutter toggle hitbox is marked more clearly.

The final version of the prop will have a proper switch panel, with an animated SHUTTER and dummy DEMIST button.

sumghai commented 9 years ago

@sharpspoonful has reported that all accessible* instances viewport toggles are working.

I think I can close this bad boy now, and work on refining the appearance of the shutter toggle button later.