diff --git a/PregnancyPlus/AI_PregnancyPlus/AI_PregnancyPlus.csproj b/PregnancyPlus/AI_PregnancyPlus/AI_PregnancyPlus.csproj index ed91e60..128d340 100644 --- a/PregnancyPlus/AI_PregnancyPlus/AI_PregnancyPlus.csproj +++ b/PregnancyPlus/AI_PregnancyPlus/AI_PregnancyPlus.csproj @@ -39,22 +39,23 @@ + False - ..\..\packages\IllusionLibs.BepInEx.Harmony.2.2.0.1\lib\net35\0Harmony.dll + ..\..\packages\IllusionLibs.BepInEx.Harmony.2.5.4\lib\net35\0Harmony.dll False ..\..\packages\IllusionLibs.AIGirl.Assembly-CSharp.2020.5.29.2\lib\net46\Assembly-CSharp.dll False - - ..\..\packages\IllusionLibs.BepInEx.5.4.4\lib\net35\BepInEx.dll + + ..\..\packages\IllusionLibs.BepInEx.5.4.15\lib\net35\BepInEx.dll False False - ..\..\packages\IllusionLibs.BepInEx.Harmony.2.0.3.1\lib\net35\BepInEx.Harmony.dll + ..\..\packages\IllusionLibs.BepInEx.Harmony.2.5.4\lib\net35\BepInEx.Harmony.dll False @@ -62,13 +63,13 @@ False False - - ..\..\packages\IllusionModdingAPI.AIAPI.1.17.0\lib\net46\AIAPI.dll + + ..\..\packages\IllusionModdingAPI.AIAPI.1.30.0\lib\net46\AIAPI.dll False False - ..\..\packages\ExtensibleSaveFormat.AIGirl.16.2.0.2\lib\net46\AI_ExtensibleSaveFormat.dll + ..\..\packages\ExtensibleSaveFormat.AIGirl.16.8.0\lib\net46\AI_ExtensibleSaveFormat.dll False False diff --git a/PregnancyPlus/AI_PregnancyPlus/packages.config b/PregnancyPlus/AI_PregnancyPlus/packages.config index 9a2e702..e095eec 100644 --- a/PregnancyPlus/AI_PregnancyPlus/packages.config +++ b/PregnancyPlus/AI_PregnancyPlus/packages.config @@ -1,10 +1,10 @@  - - + + - - + + diff --git a/PregnancyPlus/HS2_PregnancyPlus/HS2_PregnancyPlus.csproj b/PregnancyPlus/HS2_PregnancyPlus/HS2_PregnancyPlus.csproj index dcd40b6..59982b5 100644 --- a/PregnancyPlus/HS2_PregnancyPlus/HS2_PregnancyPlus.csproj +++ b/PregnancyPlus/HS2_PregnancyPlus/HS2_PregnancyPlus.csproj @@ -39,9 +39,10 @@ + False - ..\..\packages\IllusionLibs.BepInEx.Harmony.2.0.3.1\lib\net35\0Harmony.dll + ..\..\packages\IllusionLibs.BepInEx.Harmony.2.5.4\lib\net35\0Harmony.dll False @@ -53,12 +54,12 @@ False - ..\..\packages\IllusionLibs.BepInEx.5.1.0\lib\net35\BepInEx.dll + ..\..\packages\IllusionLibs.BepInEx.5.4.15\lib\net35\BepInEx.dll False False - ..\..\packages\IllusionLibs.BepInEx.Harmony.2.0.3.1\lib\net35\BepInEx.Harmony.dll + ..\..\packages\IllusionLibs.BepInEx.Harmony.2.5.4\lib\net35\BepInEx.Harmony.dll False @@ -66,13 +67,13 @@ False False - - ..\..\packages\IllusionModdingAPI.HS2API.1.15.0\lib\net46\HS2API.dll + + ..\..\packages\IllusionModdingAPI.HS2API.1.30.0\lib\net46\HS2API.dll False False - ..\..\packages\ExtensibleSaveFormat.HoneySelect2.16.2.0.2\lib\net46\HS2_ExtensibleSaveFormat.dll + ..\..\packages\ExtensibleSaveFormat.HoneySelect2.16.8.0\lib\net46\HS2_ExtensibleSaveFormat.dll False False diff --git a/PregnancyPlus/HS2_PregnancyPlus/packages.config b/PregnancyPlus/HS2_PregnancyPlus/packages.config index 463fd52..9af115e 100644 --- a/PregnancyPlus/HS2_PregnancyPlus/packages.config +++ b/PregnancyPlus/HS2_PregnancyPlus/packages.config @@ -1,10 +1,10 @@  - - - + + + - + diff --git a/PregnancyPlus/KKS_PregnancyPlus/KKS_PregnancyPlus.csproj b/PregnancyPlus/KKS_PregnancyPlus/KKS_PregnancyPlus.csproj index 208f512..e5a0d8a 100644 --- a/PregnancyPlus/KKS_PregnancyPlus/KKS_PregnancyPlus.csproj +++ b/PregnancyPlus/KKS_PregnancyPlus/KKS_PregnancyPlus.csproj @@ -39,6 +39,7 @@ + ..\..\packages\IllusionLibs.BepInEx.Harmony.2.5.4\lib\net35\0Harmony.dll False @@ -60,11 +61,11 @@ False --> - ..\..\packages\ExtensibleSaveFormat.KoikatsuSunshine.16.3.0\lib\net46\KKS_ExtensibleSaveFormat.dll + ..\..\packages\ExtensibleSaveFormat.KoikatsuSunshine.16.8.0\lib\net46\KKS_ExtensibleSaveFormat.dll False - - ..\..\packages\IllusionModdingAPI.KKSAPI.1.24.0\lib\net46\KKSAPI.dll + + ..\..\packages\IllusionModdingAPI.KKSAPI.1.30.0\lib\net46\KKSAPI.dll False diff --git a/PregnancyPlus/KKS_PregnancyPlus/packages.config b/PregnancyPlus/KKS_PregnancyPlus/packages.config index 3881f98..a2a5ab4 100644 --- a/PregnancyPlus/KKS_PregnancyPlus/packages.config +++ b/PregnancyPlus/KKS_PregnancyPlus/packages.config @@ -2,8 +2,8 @@ - - + + diff --git a/PregnancyPlus/PregnancyPlus.Core/PPPlugin.cs b/PregnancyPlus/PregnancyPlus.Core/PPPlugin.cs index 0894d31..6e4a8ff 100644 --- a/PregnancyPlus/PregnancyPlus.Core/PPPlugin.cs +++ b/PregnancyPlus/PregnancyPlus.Core/PPPlugin.cs @@ -6,6 +6,7 @@ using KKAPI.Studio; using KKAPI.Maker; using KKAPI.Chara; +using KKAPI.Utilities; #if KKS || AI using KKAPI.MainGame; #endif @@ -71,6 +72,26 @@ internal void Start() //Set up studio/malker GUI sliders PregnancyPlusGui.InitStudio(hi, this); PregnancyPlusGui.InitMaker(hi, this); + + + //Requires KKAPI 1.30+ and Bepinex 5.4.15 to use the timeline interpolable, but its just a soft depencendy for this plugin + try { + //Set up the timeline imterpolable tool + if (TimelineCompatibility.IsTimelineAvailable()) + { + const string timelineGUID = "PregnancyPlus";//Never change + + TimelineCompatibility.AddCharaFunctionInterpolable( + timelineGUID, + "0", + "Pregnancy+", + (oci, ctrl, leftValue, rightValue, factor) => ctrl.MeshInflate(factor * 40, "timeline_interpolable"), + null, + (oci, ctrl) => (int)ctrl.infConfig.inflationSize/40 + ); + } + } + catch {} }