Skip to content

Resolve compatibility issue with current ROLib version - #1

Open
panic-7700 wants to merge 3 commits into
KSP-RO:masterfrom
panic-7700:master
Open

Resolve compatibility issue with current ROLib version#1
panic-7700 wants to merge 3 commits into
KSP-RO:masterfrom
panic-7700:master

Conversation

@panic-7700

Copy link
Copy Markdown

This simply gets the existing version of ROStations working with the current RO/RP-1 versions. I've made no changes to functionality. I'm new to KSP modding, so let me know if there is any specific testing I should be doing for this!

(I also updated the .csproj, in the hopes that using the KSPRoot global would be useful to other folks.)

@panic-7700 panic-7700 changed the title Resolve compatibility issues with current ROLib version Resolve compatibility issue with current ROLib version Apr 30, 2026
Comment thread Source/ROStations/ROStations.csproj
/// Calls the generic ROT procedural drag-cube updating routines. Will update the drag cubes for whatever the current model state is.
/// </summary>
private void UpdateDragCubes() => ROLModInterop.OnPartGeometryUpdate(part, true);
private string ShapeKey => $"ROStations|{coreModule}|{upperModule}|{lowerModule}|{topModule}|{bottomModule}|{bodyRadialModule}|{upperRadialModule}|{lowerRadialModule}|{currentHabitat}|{currentVScale}|{currentDiameter}";

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is the correct way of creating a uid here. Using currentHabitat seems like it's more likely to pick up changes with the upper/lower/etc modules, but it does not inherently represent external dimensions as the slider can be adjusted independently.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coreModule, upperModule etc are of type ROLModelModule. Does that type really have a sane ToString() implementation?
There also appears to be a bunch of VScale parameters (currentTopVScale, currentUpperVScale, currentLowerVScale, currentBottomVScale which can all affect the mesh of the resulting part. Oof, and then there's a bunch of rotations as well. I cannot even start to comprehend what those V.Offset and H.Offset fields do.
Overall the amount of knobs you can tune here is absolutely overwhelming and perhaps it shouldn't try to use the drag cube cache at all?

@panic-7700

Copy link
Copy Markdown
Author

Any chance of a review or merge here?

@siimav

siimav commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

The KSPRoot addition needs this as well:
https://github.com/KSP-RO/RP-1/blob/c96fda74195f6befa5be6c7a96cfd15b75a88dd2/Source/RP0/RP0.csproj#L38-L41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants