diff --git a/KK_VREnhancement/KK_VREnhancement.csproj b/KK_VREnhancement/KK_VREnhancement.csproj index ed3a7c8..735d70d 100644 --- a/KK_VREnhancement/KK_VREnhancement.csproj +++ b/KK_VREnhancement/KK_VREnhancement.csproj @@ -3,12 +3,13 @@ + Debug + AnyCPU + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBE} library netcoreapp3.1 KK_VREnhancement - KK_VREnhancement - Debug - AnyCPU + KK_VREnhancement v3.5 512 true @@ -18,20 +19,22 @@ true embedded false - ..\bin\BepInEx\plugins - DEBUG;TRACE + ..\bin\KK_VREnhancement\BepInEx\plugins + DEBUG;TRACE;KK prompt 4 + false embedded true - ..\bin\BepInEx\plugins - TRACE + ..\bin\KK_VREnhancement\BepInEx\plugins + TRACE;KK prompt 4 true + false diff --git a/KK_VREnhancement/VRControllerCollider.Helper.cs b/KK_VREnhancement/VRControllerCollider.Helper.cs index 4630a55..5e0f6c1 100644 --- a/KK_VREnhancement/VRControllerCollider.Helper.cs +++ b/KK_VREnhancement/VRControllerCollider.Helper.cs @@ -25,7 +25,8 @@ internal static void StopHelperCoroutine(VRPlugin pluginInstance) //Got tired of searching for the correct hooks, just check for new dynamic bones on a loop. Genious! internal static IEnumerator LoopEveryXSeconds() { - while(coroutineActive) { + while(coroutineActive) + { VRControllerCollider.SetVRControllerColliderToDynamicBones(); // VRPlugin.Logger.Log(LogLevel.Info, $"Camera distance {distance}"); diff --git a/KK_VREnhancement/VREnhancementPlugin.cs b/KK_VREnhancement/VREnhancementPlugin.cs index 49b745c..18ae1a8 100644 --- a/KK_VREnhancement/VREnhancementPlugin.cs +++ b/KK_VREnhancement/VREnhancementPlugin.cs @@ -33,7 +33,7 @@ internal void Start() "Will move the VR camera view in front of the heroine as they move around during TalkScene/HScene. This mimics the default KK behavior. \n\nWhen disabled, you stay put as the heroine moves around."); MoveWithTalkScene.SettingChanged += MoveWithTalkScene_SettingsChanged; - EnableControllerColliders = Config.Bind("", "Enable VR controller colliders", true, + EnableControllerColliders = Config.Bind("", "Enable VR controller collision (boop!)", true, "Allows collision of VR controllers with all dynamic bones.\n\nBoop!"); EnableControllerColliders.SettingChanged += EnableControllerColliders_SettingsChanged; @@ -42,7 +42,7 @@ internal void Start() bool vrFlag = Environment.CommandLine.Contains("--novr"); VREnabled = !noVrFlag && (vrFlag || SteamVRDetector.IsRunning); - if (debugLog) VRPlugin.Logger.Log(LogLevel.Info, $" VREnabled {VREnabled}"); + if (VRPlugin.debugLog) VRPlugin.Logger.LogInfo($" VREnabled {VREnabled}"); //IF not VR dont bother with VR hooks if (!VREnabled) return; @@ -58,17 +58,21 @@ internal void Start() internal void MoveWithTalkScene_SettingsChanged(object sender, System.EventArgs e) { - if (!MoveWithTalkScene.Value) { + if (!MoveWithTalkScene.Value) + { VRCameraController.ClearLastPosition(); } } internal void EnableControllerColliders_SettingsChanged(object sender, System.EventArgs e) { - if (!EnableControllerColliders.Value) { + if (!EnableControllerColliders.Value) + { //Just stop the dynamic bone search loop VRControllerColliderHelper.StopHelperCoroutine(this); - } else { + } + else + { if (!VREnabled) return; VRControllerColliderHelper.TriggerHelperCoroutine(this); } diff --git a/KK_VREnhancement.sln b/VREnhancement.sln similarity index 100% rename from KK_VREnhancement.sln rename to VREnhancement.sln diff --git a/release.cmd b/release.cmd index a6453c9..ab6584e 100644 --- a/release.cmd +++ b/release.cmd @@ -1,7 +1,9 @@ ::Zips the dll into the correct directory structure for release ::Make sure to increment the version -::CLear last release -rd /s /q "./release" +set kk_version=0.1 +set kk_name=KK_VREnhancement -"%ProgramFiles%\7-Zip\7z.exe" a -tzip "./release/KK_VREnhancement v0.1.zip" "./bin/BepinEx" -mx0 \ No newline at end of file +IF EXIST "./bin/%kk_name%/BepinEx/plugins/%kk_name%.dll" "%ProgramFiles%\7-Zip\7z.exe" a -tzip "%HOMEPATH%/downloads/%kk_name% v%kk_version%.zip" "./bin/%kk_name%/BepinEx" -mx0 + +start %HOMEPATH%/downloads \ No newline at end of file