Skip to content

Commit

Permalink
Mod upgrade pipeline (#91)
Browse files Browse the repository at this point in the history
* Create ModUpgradePipeline modding patch. This patch will store and use mods' versions when running SaveUpgradePipeline scripts.

* Go back to storing versions for all assemblies. Bump KSPCF version to minor, not revision.

* Fix readme to link PR
  • Loading branch information
NathanKell authored and gotmachine committed Dec 7, 2022
1 parent 1596a17 commit 565302e
Show file tree
Hide file tree
Showing 6 changed files with 496 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GameData/KSPCommunityFixes/KSPCommunityFixes.version
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"NAME": "KSPCommunityFixes",
"URL": "https://raw.githubusercontent.com/KSPModdingLibs/KSPCommunityFixes/master/GameData/KSPCommunityFixes/KSPCommunityFixes.version",
"DOWNLOAD": "https://github.com/KSPModdingLibs/KSPCommunityFixes/releases",
"VERSION": {"MAJOR": 1, "MINOR": 21, "PATCH": 1, "BUILD": 0},
"VERSION": {"MAJOR": 1, "MINOR": 22, "PATCH": 0, "BUILD": 0},
"KSP_VERSION": {"MAJOR": 1, "MINOR": 12, "PATCH": 3},
"KSP_VERSION_MIN": {"MAJOR": 1, "MINOR": 8, "PATCH": 0},
"KSP_VERSION_MAX": {"MAJOR": 1, "MINOR": 12, "PATCH": 3}
Expand Down
5 changes: 5 additions & 0 deletions GameData/KSPCommunityFixes/Settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ KSP_COMMUNITY_FIXES
// Fix Admin Building not using HeadImage if that is defined for a Department
DepartmentHeadImage = true
// Stores mod versions in sfs and craft files, and uses those versions for the SaveUpgradePipeline,
// so mods can do versioning based on their own version numbers and not have to always run their
// upgrade scripts.
ModUpgradePipeline = false
// ##########################
// Localization tools
// ##########################
Expand Down
2 changes: 2 additions & 0 deletions KSPCommunityFixes/KSPCommunityFixes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<ItemGroup>
<Publicize Include="Assembly-CSharp" />
<DoNotPublicize Include="Assembly-CSharp:BaseField`1.OnValueModified" />
<DoNotPublicize Include="Assembly-CSharp:SaveUpgradePipeline.SaveUpgradePipeline.OnSetCfgNodeVersion" />
<Publicize Include="UnityEngine.CoreModule:UnityEngine.Object.m_CachedPtr" />
<Publicize Include="mscorlib:System.Reflection.Assembly.GetTypes" />
</ItemGroup>
Expand All @@ -99,6 +100,7 @@
<Compile Include="BugFixes\CometMiningNotRemovingMass.cs" />
<Compile Include="BugFixes\EnginePlateAirstreamShieldedTopPart.cs" />
<Compile Include="BugFixes\StrategyDuration.cs" />
<Compile Include="Modding\ModUpgradePipeline.cs" />
<Compile Include="Performance\AsteroidAndCometDrillCache.cs" />
<Compile Include="BugFixes\DoubleCurvePreserveTangents.cs" />
<Compile Include="Performance\CommNetThrottling.cs" />
Expand Down
Loading

0 comments on commit 565302e

Please sign in to comment.