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

Backport WBI play mode changes #2224

Merged
merged 1 commit into from
Jan 10, 2021

Conversation

HebaruSan
Copy link
Member

Problems

There are some quirks with installing WBI mods after KSP-CKAN/NetKAN#8275, not really worth detailing here. Basically different parts of GUI disagree over whether various mods are compatible or not.

Causes

Some places in CKAN only check the latest version of a mod. These will be obeying the relationships added in that PR and considering things to be incompatible more often, as intended.

Other places in CKAN check all compatible versions of a mod. These may be confused by recent historical versions that have not been updated with new relationships.

Changes

Now the changes from KSP-CKAN/NetKAN#8275 are applied to the recently indexed versions.

Also a few releases that were deleted from GitHub are now frozen.

Transparency in scripting:

#!/bin/bash

TOKEN=<PASTE YOUR TOKEN HERE>

while read -r LINE
do
	if [[ $LINE =~ ^([A-Za-z][-A-Za-z0-9]*)[[:space:]]+([0-9]+)$ ]]
	then
		IDENT="${BASH_REMATCH[1]}"
		RELS="${BASH_REMATCH[2]}"
		(
			set -x
			../CKAN/_build/netkan.exe --github-token $TOKEN --releases $RELS --outputdir $IDENT ../NetKAN/NetKAN/${IDENT}.netkan
		)
	else
		echo "Bad format: $LINE"
	fi
done <<EOI
ClassicStockResources 3
Buffalo-PlayMode-CRP 4
Buffalo-PlayMode-ClassicStock 4
Buffalo 4
DSEV-PlayMode-CRP 2
DSEV-PlayMode-ClassicStock 2
DSEV-PlayMode-Pristine 2
DSEV 2
Heisenberg-PlayMode-CRP 2
Heisenberg-PlayMode-ClassicStock 2
Heisenberg-PlayMode-Pristine 2
Heisenberg-PlayMode-Simplified 2
Heisenberg 2
MOLE-PlayMode-CRP 6
MOLE-PlayMode-ClassicStock 6
MOLE-PlayMode-Pristine 6
MOLE 6
Pathfinder-PlayMode-CRP 4
Pathfinder-PlayMode-ClassicStock 4
Pathfinder-PlayMode-Pristine 4
Pathfinder-PlayMode-Simplified 4
Pathfinder 4
WildBlue-PlayMode-CRP 10
WildBlue-PlayMode-ClassicStock 10
WildBlue-PlayMode-Pristine 10
WildBlue-PlayMode-Simplified 10
WildBlue-PlayMode-USI 10
WildBlueTools 10
EOI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant