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
<RootNamespace>ROStations</RootNamespace>
<AssemblyName>ROStations</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
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.

TexturesUnlimited seems to have been built with 4.8; when I tried this with 4.7.2, the build did not succeed:

0>Microsoft.Common.CurrentVersion.targets(2437,5): Warning MSB3274 : The primary reference "000_TexturesUnlimited/Plugins/TexturesUnlimited.dll" could not be resolved because it was built against the ".NETFramework,Version=v4.8" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.7.2".

0>ModuleROStations.cs(5,7): Error CS0246 : The type or namespace name 'KSPShaderTools' could not be found (are you missing a using directive or an assembly reference?)
0>ModuleROStations.cs(13,87): Error CS0246 : The type or namespace name 'IRecolorable' could not be found (are you missing a using directive or an assembly reference?)
0>ModuleROStations.cs(437,16): Error CS0246 : The type or namespace name 'RecoloringData' could not be found (are you missing a using directive or an assembly reference?)
0>ModuleROStations.cs(450,54): Error CS0246 : The type or namespace name 'RecoloringData' could not be found (are you missing a using directive or an assembly reference?)
0>ModuleROStations.cs(462,16): Error CS0246 : The type or namespace name 'TextureSet' could not be found (are you missing a using directive or an assembly reference?)

/// 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.

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.

1 participant