-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
Incomplete compatibility for mods without version files #8291
Comments
Just explained this on that thread, it's because it's on SpaceDock and @KSPSnark does not use .version files (Chatterer has one): CKAN needs some trustable source for its compatibility info. In this case, all the author is providing is, "Compatible with 1.11.0" via SpaceDock's version selector. I'm happy to work with Snark to add a .version file, but so far it doesn't sound like he's interested. |
I see, and thank you already for your efforts and time :) Btw, another mod coming to my mind is scatterer, latest version 0.0722 is as per the mod author and my own experience perfectly compatible with KSP 1.10.1, yet it is listed in CKAN for KSP 1.11.0 only. |
Yes, same thing, Scatterer also doesn't have a version file. |
I see, yes. And every mod version shows only a single KSP version to be compatible, same with Snark's mods, and in contrast to say Chatterer which shows version ranges. Long story short: probably not fixable with reasonable efforts? |
I would say that from CKAN's point of view, it's more like "already fixed" since there is already a complete and flexible system in place to represent mod compatibility: .version files. Anything we would do on this front would essentially be a re-invention of what .version files already do. The quality of the metadata does suffer because some authors choose not to use them, but all we can do on that front is encourage and assist when someone wants to create one. |
And manually inserting .version files into the CKAN repository is not feasible, I reckon. Question/suggestion: would it be possible to have a feature in CKAN like a checkbox "ignore warnings for this version of this mod" when starting KSP? |
Right, they need to be inside the mod's downloaded ZIP file.
There's a request for that on file at KSP-CKAN/CKAN#2955. So far it hasn't been worked on, but pull requests are welcome. |
Understood. Unfortunately I can't do programming... :( Thanks again for your time and efforts, much appreciated! :) |
Although maybe we can do something with |
Sounds promising, let me know if I can be of any help. |
Notes to self in case I have to repeat any of this... jq -rM 'select(.author == "Snark") | .identifier' ~/Downloads/KSP/CKAN-meta/*/*.ckan | uniq > identifiers
for ID in $(cat identifiers); do git -C ~/Downloads/KSP/CKAN-meta log -n 1 --name-only --pretty= -- $ID; done > files
for F in $(cat files) ; do git -C ~/Downloads/KSP/CKAN-meta log --pretty=oneline --reverse -- $F | head -n 1 ; done > commits That gets me the SHA of the original commit of the current release of each Snark mod. Now just need to pull the contents and extract the for SHA in $(cat commits|awk '{print $1}'); do git -C ~/Downloads/KSP/CKAN-meta show --pretty= $SHA | egrep '^\+[^+]' | sed -e 's/^.//' ; done > json
jq -rM '[.version, .ksp_version, .ksp_version_min, .ksp_version_max, .identifier] | @tsv' < json > compats Here they are, the original compatibilities of each release!
Ugh.
|
Xref KSP-CKAN/CKAN#202. What might be better would be to replace that "mixed with" check wtih some code to massage the values it finds, e.g. to turn this "ksp_version_min": "1.8.0",
"ksp_version": "1.11", ... into this: "ksp_version_min": "1.8.0",
"ksp_version_max": "1.11",
|
Maybe we're thinking too complicated, what about if: Snark marks the existing BBT 1.9.1 at Spacedock as compatible with KSP 1.10.1 He then adds a line to his changelog and uploads the mod again to Spadedock, this time telling Spacedock that the new upload is BBT version 1.9.2, being compatible with KSP 1.11.0 Result: two mod-wise identical uploads, but with different version numbers for different KSP version. What do you think? |
Asking mod authors who don't use or care about CKAN to change what they're doing "just for CKAN" doesn't usually turn out very well. |
Sigh... I guess you're right. :( No idea how people can not care or use it, how else could I handle managing and updating 100+ mods? Sent you a PM in the forums. |
OK, the problems with overrides are solved in KSP-CKAN/CKAN#3265, which allows us to add min version overrides to Snark's mods, which we did in #8309. Hopefully folks will point out any additional specific cases that would benefit from this. |
Hey o/ Big thanks! :) |
Ah, "Hopefully folks will point out any additional specific cases that would benefit from this." Scatterer is coming to my mind here too, I have 0.0723 installed, no issues with KSP 1.10.1 |
OK, based on the title of the forum thread and the release notes, it looks like the current Scatterer is supported back to KSP 1.9. Should be trivial to set that up now... |
And then there are mods which are listed as compatible with older KSP versions, but actually aren't. Totally not a CKAN/NetCAN issue at all, but still annoying. Example: Mentioning this as it will almost for sure cause question being posted in the technical support forums where we always tell the folks to be sure to have compatible mod versions to be installed. |
KIS has a version file; if you have corrections for its compatibility, you may submit them here: We have zero control over MJ's dev versions, that's all hand rolled by Sarbian himself. |
"KIS has a version file" - that's up to Igor as the author, isn't it? And sarbian & team did correct it, all good :) As I said, totally not a CKAN issue. |
Yes. The way it works is that you can edit the file, and then GitHub will present your changes to the owner to approve or reject them. |
Ohkay... it's probably just old fashioned me then, I'd see it as common courtesy. Then, I'm the guy who still opens the door for the lady, help her with her coat and chair, and insist paying the bill in the restaurant. |
Oh believe me, we reach out to mod authors all the time for more complex stuff, for example this chat with Angel-125 about a revamp of how his mods are handled: But in this case it's as simple as, the mod author said what the compatibility was, CKAN wasn't reflecting it, and now it is. Nobody's going to be confused or inconvenienced. Sometimes it's better to just make things work smoothly and stay out of the way. 🐕🦺 |
I take your word for it! :) I guess you're right. Won't (and can't ) step out of my shoes though, me being me. And yes, seeing how it went with Snark's mods, which were what made me open this issue in the first place, Which kind of closes the circle. |
As anticipated, not-so-experienced players run into the issue of mods wrongly being flagged as compatible with older KSP versions when they are actually not. Igor told me "I assume it may not be compatible" when I asked him about KIS 1.27 and KSP 1.10.1 May I suggest that you change the CKAN compatibility information accordingly? |
@ihsoft is in full control of KIS's compatibility metadata: |
Submitted ihsoft/KIS#385 to try to help. 🤞 |
Ok, now that would be my 1st ever PR, can you please check that I didn't botch anything. |
Nice! You've got a fork and a branch and your changes are committed, so far so good. But there are a few more steps to get the pull request created. If you go here: https://github.com/KSP-CKAN/CKAN-meta ... there should be a link or button somewhere that mentions creating a pull request. Clicking that will give you one more set of title/body to edit, and then there's another submit button towards the bottom. Normally I do this with a button that shows up after saving changes, but it's easy to miss if you aren't used to it. |
Alternatively, click on this link and it should take you to the pull request creation page: |
OK, done, is it correct? |
Yeah, looks great! The validation scripts are installing KIS with your changes to test them out: |
Thank you for your patience with old me! But even though I feel a bit like a toddler now, I think it's better to ask before botching something up. |
Nah, I did botch it up :( Should have been min. KSP version, but stupid me changed max version. I'm sorry. |
Don't worry about it, those changes are safely isolated until they're approved and merged. No harm done. |
Thanks to @DasSkelett, I could correct that mistake, should be fine now. wiping the sweat from my eye brows But even as I had a bad start, let me know if I can help in any way. |
Less than an hour for getting your first pull request merged is pretty fast. And the hope is that you will tell us when you can help, since you're clued in to which mods are compatible! |
Just created another PR :) |
As Github is not specific to CKAN, is there kind of a manual where I can find these instructions instead of bothering you again and again with such questions? |
Yes, but there's quite a lot of it and it might not always be easy to find the one thing you need to know: |
I meant the CKAN specific stuff, which naturally won't be part of the Github help pages. Like: PR for current versions should be done in the mod author's repository, for older versions at CKAN. These kind of information. |
Hmm, good question. We have a wiki wth a "contributing" section, but it looks like those pages are about developing CKAN's C# code rather than maintaining metadata. The closest thing is probably the advanced section of the adding-a-mod-to-CKAN page: At this point answering your questions as needed is probably going to be a lot easier than trying to write up a complete guide, but we can make a note about doing that at some point. |
This one might be a bit tricky: KSP-CKAN/CKAN-meta#2237 Like the Snark mods, no min or max information, just ksp_version As far as I can see, the mod author does not provide a version file, if I'm not mistaken. |
That was my CKAN version-wise oldest mod (KSP 1.6), I think it's not worth the time to go through the many mods which are flagged compatible for KSP 1.7 and onwards, or is it? |
It's up to you what you want to work on. I'm happy to help with whatever. 👍 |
"I'm happy to help with whatever" nah, the idea here is that I try to help you and the KSP community, not that I create extra and unnecessary work for you :) |
Interesting, why do I get this warning |
It may be remembering the compatibility that they had when you installed them. If so, reinstalling would fix that. |
"reinstalled mod" - already done |
...and found another candidate, @HebaruSan : Snark's Missing History. MH 1.8.2 was released on July 11th 2020 for KSP 1.10.1 (https://spacedock.info/mod/1743/MissingHistory), yet it's listed as compatible with KSP 1.11.0 only. |
CKAN 1.29.2 shows, since KSP 1.11.0 came out, for several mods wrong version compatibility information. In particular, even older mod versions are displayed as only to be compatible with KSP 1.11.0, despite the respective mods being several months old and listed earlier as compatible with older KSP versions.
Examples: Snark's mods Missing History 1.8.2, Indicator Lights 1.7, Better Burn Time 1.10, Variant Persist 1.1.
I first thought it's related to Spacedock, but Chatter as well as other mods, which are also hosted there, show correct data.
Forum discussion: https://forum.kerbalspaceprogram.com/index.php?/topic/126111-111-betterburntime-v110-provides-extra-burn-time-indicators-on-the-navball-for-suicide-burns-target-rendezvous/&do=findComment&comment=3900976
The text was updated successfully, but these errors were encountered: