From c447465521df3c9fac558d4e213fb0e8e9032bae Mon Sep 17 00:00:00 2001 From: severedsolo Date: Mon, 27 Jan 2020 17:35:14 +0000 Subject: [PATCH] Fix lastProgressUpdate not working --- .idea/.idea.Bureaucracy/.idea/workspace.xml | 77 +++++++++++---------- Bureaucracy/Bureaucracy.cs | 2 + GameData/Bureaucracy/Bureaucracy.version | 2 +- GameData/Bureaucracy/Changelog.cfg | 6 ++ 4 files changed, 49 insertions(+), 38 deletions(-) diff --git a/.idea/.idea.Bureaucracy/.idea/workspace.xml b/.idea/.idea.Bureaucracy/.idea/workspace.xml index 53ff295..525072a 100644 --- a/.idea/.idea.Bureaucracy/.idea/workspace.xml +++ b/.idea/.idea.Bureaucracy/.idea/workspace.xml @@ -3,7 +3,7 @@ - + @@ -251,7 +250,8 @@ - + + @@ -295,86 +295,86 @@ - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + @@ -1661,6 +1661,9 @@ + + + diff --git a/Bureaucracy/Bureaucracy.cs b/Bureaucracy/Bureaucracy.cs index 2849b34..1b1d703 100644 --- a/Bureaucracy/Bureaucracy.cs +++ b/Bureaucracy/Bureaucracy.cs @@ -101,6 +101,7 @@ public void OnLoad(ConfigNode node) RandomEventLoader.Instance.OnLoad(node); UiController.Instance.OnLoad(node); node.TryGetValue("existingSave", ref existingSave); + node.TryGetValue("lastProgressUpdate", ref lastProgressUpdate); if(progressEvent == null) progressEvent = new ManagerProgressEvent(); Debug.Log("[Bureaucracy]: OnLoad Complete"); } @@ -117,6 +118,7 @@ public void OnSave(ConfigNode node) RandomEventLoader.Instance.OnSave(node); UiController.Instance.OnSave(node); node.SetValue("existingSave", existingSave, true); + node.SetValue("lastProgressUpdate", lastProgressUpdate, true); Debug.Log("[Bureaucracy]: OnSave Complete"); } diff --git a/GameData/Bureaucracy/Bureaucracy.version b/GameData/Bureaucracy/Bureaucracy.version index 780f8d4..e4c78b7 100644 --- a/GameData/Bureaucracy/Bureaucracy.version +++ b/GameData/Bureaucracy/Bureaucracy.version @@ -11,7 +11,7 @@ { "MAJOR" : 1, "MINOR" : 1, - "PATCH" : 0, + "PATCH" : 1, "BUILD" : 0 }, "KSP_VERSION" : diff --git a/GameData/Bureaucracy/Changelog.cfg b/GameData/Bureaucracy/Changelog.cfg index 8ac3326..20b4909 100644 --- a/GameData/Bureaucracy/Changelog.cfg +++ b/GameData/Bureaucracy/Changelog.cfg @@ -3,6 +3,12 @@ KERBALCHANGELOG showChangelog = True modName = Bureaucracy + VERSION + { + version = 1.1.1 + change = Fixed issue where "incremental progress" would try and catch up from Y1 D1 the first time the mod is loaded. The fix is retroactive, so you may see this bug one more time when launching the save after upgrading. + } + VERSION { version = 1.1