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

Fix missing DLC registration gap #3136

Merged
merged 1 commit into from
Aug 6, 2020

Conversation

HebaruSan
Copy link
Member

Problem

Up until a few minutes ago, the v1.28.0 client thought nobody on KSP 1.10.x had any DLCs installed.
KSP-CKAN/CKAN-meta#2130 added the new DLC metadata to fix this, but in the meantime the client should have fallen back on mocked-up CkanModules to represent the DLC.

Cause

The fallback code only runs in case the DLC identifier isn't found. If the identifier exists but the DLC version found on disk isn't available (99.99% of real world usages), then RegisterDlc does nothing.

Changes

Now RegisterDlc always adds something to the installed modules list. First it looks for the identifier and version in the available modules list, and if either isn't found, then it makes the fake module, as intended.

Fixes #3135.

@HebaruSan HebaruSan added Bug Something is not working as intended Core (ckan.dll) Issues affecting the core part of CKAN Pull request Registry Issues affecting the registry Relationships Issues affecting depends, recommends, etc. labels Aug 6, 2020
@HebaruSan HebaruSan requested a review from DasSkelett August 6, 2020 22:43
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.

Took me some time to get the reproduction of the issue set up.
Works nicely!

@HebaruSan HebaruSan merged commit e6042c4 into KSP-CKAN:master Aug 6, 2020
@HebaruSan HebaruSan deleted the fix/missing-dlc branch August 6, 2020 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is not working as intended Core (ckan.dll) Issues affecting the core part of CKAN Registry Issues affecting the registry Relationships Issues affecting depends, recommends, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not detecting KSP version when mod that depends on DLC is installed
2 participants