Add new version import format for KSA#518
Merged
HebaruSan merged 3 commits intoKSP-SpaceDock:alphafrom Nov 16, 2025
Merged
Conversation
This was referenced Nov 17, 2025
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Kitten Space Agency started its public pre-alpha a few days ago, and there are already some mods on its forum. They're mostly hosted at sites like Google Drive and Mediafire, so @V1TA5 wants to add KSA to SpaceDock. To do that, we'll need a way to query for game version updates, and the KSA devs have helpfully provided this URL for that:
{ "Version": "2025.11.4.2791", "Url": "https://ksa.ahwoo.com/" }We can paste that URL into the notifications settings, but the JSON format can't be parsed by any of the existing format options.
Changes
json_objectformat is supported for builds URLs, with theArgumentvalue treated as the property that contains the version. We would set it toVersionfor KSA.docker-composeis now deprecated and replaced bydocker compose. So I did a search-replace for that.FROM x as y, which is now changed toFROM x AS y.With these changes, my local test server successfully pulled the current version into its
GameVersiondb.