diff --git a/HollowSpouse.cs b/HollowSpouse.cs new file mode 100644 index 0000000..b7250ea --- /dev/null +++ b/HollowSpouse.cs @@ -0,0 +1,73 @@ +using Modding; +using UnityEngine; +using System.IO; +using System.Diagnostics; +namespace HollowSpouse +{ + public class HollowSpouse : Mod, IGlobalSettings, ITogglableMod + { + + private float falltimer = 0f; + + public bool ToggleButtonInsideMenu => true; + + public static GlobalSettings GS { get; set; } = new GlobalSettings(); + + new public string GetName() => "HollowSpouse"; + + public override string GetVersion() => "0.9.5"; + + public Process processTemp; + public override void Initialize() + { + if (Process.GetProcessesByName("lovespouse").Length == 0) + { + Process.Start(Application.dataPath + "/Managed/Mods/HollowSpouse/" + "lovespouse.exe"); + + } + if(File.Exists(Application.dataPath + "/Managed/Mods/HollowSpouse/" + "vib.dat")) + { + File.Delete(Application.dataPath + "/Managed/Mods/HollowSpouse/" + "vib.dat"); + } + ModHooks.HeroUpdateHook += HeroUpdateHook; + } + + private void HeroUpdateHook() + { + if (Process.GetProcessesByName("lovespouse").Length == 0) + { + Process.Start(Application.dataPath + "/Managed/Mods/HollowSpouse/" + "lovespouse.exe"); + + } + File.WriteAllText(Application.dataPath + "/Managed/Mods/HollowSpouse/" + "vib.dat","SHAKE " + ((int)(9 * (1 - ((float)GameObject.Find("Knight").GetComponent().playerData.health / (float)GameObject.Find("Knight").GetComponent().playerData.maxHealth)))).ToString() + " 0.1"); + } + + + public void Unload() + { + processTemp.Kill(); + ModHooks.HeroUpdateHook -= HeroUpdateHook; + Log("Mod unloaded"); + } + + public void OnLoadGlobal(GlobalSettings s) => GS = s; + + public GlobalSettings OnSaveGlobal() => GS; + } + + public class GlobalSettings + { + + } +} + +/*Falltimer max amounts: + * Resting Grounds drop: 4.036 + * King's Pass drop: 4.086 + * Crossroads drop: 4.270 + * Cliffs leftside drop: 6.822 + * CoT elevator drop: 8.289 + * Abyss full drop: 11.000 + * + * Built in BIG_FALL_TIME = 1.1 + */ \ No newline at end of file diff --git a/HollowSpouse.csproj b/HollowSpouse.csproj new file mode 100644 index 0000000..0c8e4f1 --- /dev/null +++ b/HollowSpouse.csproj @@ -0,0 +1,342 @@ + + + + C:\Program Files (x86)\Steam\steamapps\common\Hollow Knight\hollow_knight_Data\Managed + + C:\Program Files (x86)\Steam\steamapps\common\Hollow Knight\hollow_knight_Data\ManagedMods\ + + + + + HollowSpouse + HollowSpouse + net472 + HollowSpouse + HollowSpouse + A Hollow Knight Mod + Copyright © 2924 + 0.9.5.0 + 0.9.5.0 + bin\$(Configuration)\ + latest + + + + + + + + + + + + + + + + + + + + SHA256 - $(AssemblyTitle).dll, Version $(AssemblyVersion): + + + + + + SHA256 - $(AssemblyTitle).zip: + + + + + + + + + + + + + + $(HollowKnightRefs)/Assembly-CSharp.dll + + + $(HollowKnightRefs)/Assembly-CSharp-firstpass.dll + + + $(HollowKnightRefs)/GalaxyCSharp.dll + + + $(HollowKnightRefs)/MMHOOK_Assembly-CSharp.dll + + + $(HollowKnightRefs)/MMHOOK_PlayMaker.dll + + + $(HollowKnightRefs)/Mono.Cecil.dll + + + $(HollowKnightRefs)/Mono.Security.dll + + + $(HollowKnightRefs)/MonoMod.RuntimeDetour.dll + + + $(HollowKnightRefs)/MonoMod.Utils.dll + + + $(HollowKnightRefs)/netstandard.dll + + + $(HollowKnightRefs)/Newtonsoft.Json.dll + + + $(HollowKnightRefs)/PlayMaker.dll + + + E:\Hollow Knight 1.5 Modded\hollow_knight_Data\Managed\Mods\Satchel\Satchel.dll + + + $(HollowKnightRefs)/System.ComponentModel.Composition.dll + + + $(HollowKnightRefs)/System.Configuration.dll + + + $(HollowKnightRefs)/System.Diagnostics.StackTrace.dll + + + $(HollowKnightRefs)/System.EnterpriseServices.dll + + + $(HollowKnightRefs)/System.Globalization.Extensions.dll + + + $(HollowKnightRefs)/System.IO.Compression.dll + + + $(HollowKnightRefs)/System.Net.Http.dll + + + $(HollowKnightRefs)/System.Runtime.Serialization.Xml.dll + + + $(HollowKnightRefs)/System.ServiceModel.Internals.dll + + + $(HollowKnightRefs)/System.Transactions.dll + + + + $(HollowKnightRefs)/System.Xml.XPath.XDocument.dll + + + $(HollowKnightRefs)/Unity.Timeline.dll + + + $(HollowKnightRefs)/UnityEngine.dll + + + $(HollowKnightRefs)/UnityEngine.AccessibilityModule.dll + + + $(HollowKnightRefs)/UnityEngine.AIModule.dll + + + $(HollowKnightRefs)/UnityEngine.AndroidJNIModule.dll + + + $(HollowKnightRefs)/UnityEngine.AnimationModule.dll + + + $(HollowKnightRefs)/UnityEngine.ARModule.dll + + + $(HollowKnightRefs)/UnityEngine.AssetBundleModule.dll + + + $(HollowKnightRefs)/UnityEngine.AudioModule.dll + + + $(HollowKnightRefs)/UnityEngine.ClothModule.dll + + + $(HollowKnightRefs)/UnityEngine.ClusterInputModule.dll + + + $(HollowKnightRefs)/UnityEngine.ClusterRendererModule.dll + + + $(HollowKnightRefs)/UnityEngine.CoreModule.dll + + + $(HollowKnightRefs)/UnityEngine.CrashReportingModule.dll + + + $(HollowKnightRefs)/UnityEngine.DirectorModule.dll + + + $(HollowKnightRefs)/UnityEngine.DSPGraphModule.dll + + + $(HollowKnightRefs)/UnityEngine.GameCenterModule.dll + + + $(HollowKnightRefs)/UnityEngine.GIModule.dll + + + $(HollowKnightRefs)/UnityEngine.GridModule.dll + + + $(HollowKnightRefs)/UnityEngine.HotReloadModule.dll + + + $(HollowKnightRefs)/UnityEngine.ImageConversionModule.dll + + + $(HollowKnightRefs)/UnityEngine.IMGUIModule.dll + + + $(HollowKnightRefs)/UnityEngine.InputLegacyModule.dll + + + $(HollowKnightRefs)/UnityEngine.InputModule.dll + + + $(HollowKnightRefs)/UnityEngine.JSONSerializeModule.dll + + + $(HollowKnightRefs)/UnityEngine.LocalizationModule.dll + + + $(HollowKnightRefs)/UnityEngine.ParticleSystemModule.dll + + + $(HollowKnightRefs)/UnityEngine.PerformanceReportingModule.dll + + + $(HollowKnightRefs)/UnityEngine.Physics2DModule.dll + + + $(HollowKnightRefs)/UnityEngine.PhysicsModule.dll + + + $(HollowKnightRefs)/UnityEngine.ProfilerModule.dll + + + $(HollowKnightRefs)/UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + $(HollowKnightRefs)/UnityEngine.ScreenCaptureModule.dll + + + $(HollowKnightRefs)/UnityEngine.SharedInternalsModule.dll + + + $(HollowKnightRefs)/UnityEngine.SpriteMaskModule.dll + + + $(HollowKnightRefs)/UnityEngine.SpriteShapeModule.dll + + + $(HollowKnightRefs)/UnityEngine.StreamingModule.dll + + + $(HollowKnightRefs)/UnityEngine.SubstanceModule.dll + + + $(HollowKnightRefs)/UnityEngine.SubsystemsModule.dll + + + $(HollowKnightRefs)/UnityEngine.TerrainModule.dll + + + $(HollowKnightRefs)/UnityEngine.TerrainPhysicsModule.dll + + + $(HollowKnightRefs)/UnityEngine.TextCoreModule.dll + + + $(HollowKnightRefs)/UnityEngine.TextRenderingModule.dll + + + $(HollowKnightRefs)/UnityEngine.TilemapModule.dll + + + $(HollowKnightRefs)/UnityEngine.TLSModule.dll + + + $(HollowKnightRefs)/UnityEngine.UI.dll + + + $(HollowKnightRefs)/UnityEngine.UIElementsModule.dll + + + $(HollowKnightRefs)/UnityEngine.UIElementsNativeModule.dll + + + $(HollowKnightRefs)/UnityEngine.UIModule.dll + + + $(HollowKnightRefs)/UnityEngine.UmbraModule.dll + + + $(HollowKnightRefs)/UnityEngine.UNETModule.dll + + + $(HollowKnightRefs)/UnityEngine.UnityAnalyticsModule.dll + + + $(HollowKnightRefs)/UnityEngine.UnityConnectModule.dll + + + $(HollowKnightRefs)/UnityEngine.UnityCurlModule.dll + + + $(HollowKnightRefs)/UnityEngine.UnityTestProtocolModule.dll + + + $(HollowKnightRefs)/UnityEngine.UnityWebRequestAssetBundleModule.dll + + + $(HollowKnightRefs)/UnityEngine.UnityWebRequestAudioModule.dll + + + $(HollowKnightRefs)/UnityEngine.UnityWebRequestModule.dll + + + $(HollowKnightRefs)/UnityEngine.UnityWebRequestTextureModule.dll + + + $(HollowKnightRefs)/UnityEngine.UnityWebRequestWWWModule.dll + + + $(HollowKnightRefs)/UnityEngine.VehiclesModule.dll + + + $(HollowKnightRefs)/UnityEngine.VFXModule.dll + + + $(HollowKnightRefs)/UnityEngine.VideoModule.dll + + + $(HollowKnightRefs)/UnityEngine.VirtualTexturingModule.dll + + + $(HollowKnightRefs)/UnityEngine.VRModule.dll + + + $(HollowKnightRefs)/UnityEngine.WindModule.dll + + + $(HollowKnightRefs)/UnityEngine.XRModule.dll + + + + + + + + + + \ No newline at end of file diff --git a/HollowSpouse.sln b/HollowSpouse.sln new file mode 100644 index 0000000..a4a4233 --- /dev/null +++ b/HollowSpouse.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32526.322 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HollowSpouse", "HollowSpouse.csproj", "{679944DB-D6BE-4258-B246-C03D342855A9}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {679944DB-D6BE-4258-B246-C03D342855A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {679944DB-D6BE-4258-B246-C03D342855A9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {679944DB-D6BE-4258-B246-C03D342855A9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {679944DB-D6BE-4258-B246-C03D342855A9}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {67194F59-56BC-4C13-84FC-DF2DC928356B} + EndGlobalSection +EndGlobal diff --git a/ReadMe.md b/ReadMe.md new file mode 100644 index 0000000..0dfc90d --- /dev/null +++ b/ReadMe.md @@ -0,0 +1,5 @@ +# HollowSpouse + +A mod for the Hollow Knight + +Allows lovespouse devices to interact with the game diff --git a/lovespouse.exe b/lovespouse.exe new file mode 100644 index 0000000..197d722 Binary files /dev/null and b/lovespouse.exe differ