Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage modules with hardcoded game versions #2970

Merged

Conversation

HebaruSan
Copy link
Member

Motivation

Currently we have 29 netkans with x_netkan_staging enabled because the KSP version compatibility info is hard coded in the netkan, and hence might be out of date anytime a new version is released. This has been a bit tedious to set manually for each such netkan, and it is pretty much the same thing every time, hence it would be nice to automate.

Changes

Now a new StagingTransformer does this automatically. It runs first so it can see the raw netkan data without interference by other transformers, and if it finds ksp_version, ksp_version_min, or ksp_version_max, it enables staging and sets the reason to a string explaining what keys were found, their values, and how to proceed. This way, any netkan with hard coded compatibility info will automatically be staged every time, and we can remove the staging properties from the netkans that have it.

@HebaruSan HebaruSan added Enhancement Easy This is easy to fix Pull request Netkan Issues affecting the netkan data labels Jan 24, 2020
@techman83
Copy link
Member

That's really neat!

Copy link
Member

@DasSkelett DasSkelett left a comment

Choose a reason for hiding this comment

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

That's cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy This is easy to fix Enhancement Netkan Issues affecting the netkan data Pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants