RUMBLE does not support other mod managers. If you want to use a manager, you must use the RUMBLE Mod Manager, a manager specifically designed for this game.
Decompiled source of Mirror v1.2.1
Mods/Mirror.dll
Decompiled 2 weeks agousing System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using Il2CppRUMBLE.Interactions.InteractionBase; using Il2CppRUMBLE.Managers; using Il2CppRUMBLE.Utilities; using MelonLoader; using Mirror; using RumbleModUI; using RumbleModdingAPI; using UnityEngine; using UnityEngine.Events; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: MelonInfo(typeof(MirrorClass), "Mirror", "1.2.0", "UlvakSkillz", null)] [assembly: MelonGame("Buckethead Entertainment", "RUMBLE")] [assembly: MelonColor(255, 195, 0, 255)] [assembly: MelonAuthorColor(255, 195, 0, 255)] [assembly: VerifyLoaderVersion(0, 6, 6, true)] [assembly: AssemblyDescription("Creates a Mirror for the Dressing Room and Parks")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("3b03f008-9dbb-4382-a110-b59ee8b632ca")] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("Mirror")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+24f25cbf7b5f1e078eac4c1dc9bf5e19fe41d0bd")] [assembly: AssemblyProduct("Mirror")] [assembly: AssemblyTitle("Mirror")] [assembly: AssemblyVersion("1.0.0.0")] namespace Mirror; public static class BuildInfo { public const string ModName = "Mirror"; public const string ModVersion = "1.2.0"; public const string Description = "Creates a Mirror for the Dressing Room and Parks"; public const string Author = "UlvakSkillz"; public const string Company = ""; } public class MirrorClass : MelonMod { [CompilerGenerated] private sealed class <poseModel>d__12 : IEnumerator<object>, IEnumerator, IDisposable { private int <>1__state; private object <>2__current; public MirrorClass <>4__this; private GameObject <modelGO>5__1; private GameObject <playerGO>5__2; private int <i>5__3; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <poseModel>d__12(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { <modelGO>5__1 = null; <playerGO>5__2 = null; <>1__state = -2; } private bool MoveNext() { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <modelGO>5__1 = ((Component)PreviewPlayerController.GetGameObject().transform.GetChild(0).GetChild(1).GetChild(0)).gameObject; <playerGO>5__2 = ((Component)((Component)Singleton<PlayerManager>.instance.localPlayer.Controller).gameObject.transform.GetChild(1).GetChild(1).GetChild(0)).gameObject; break; case 1: <>1__state = -1; break; } if (<>4__this.currentScene == "Gym" && <>4__this.mirror.active && !<>4__this.doFreeze) { <modelGO>5__1.transform.localRotation = <playerGO>5__2.transform.localRotation; <i>5__3 = 0; while (<i>5__3 < <modelGO>5__1.transform.childCount - 1) { <>4__this.PoseChildren(((Component)<modelGO>5__1.transform.GetChild(<i>5__3)).gameObject, ((Component)<playerGO>5__2.transform.GetChild(<i>5__3 + 1)).gameObject); <i>5__3++; } <>2__current = (object)new WaitForFixedUpdate(); <>1__state = 1; return true; } <>4__this.doFreeze = false; return false; } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } private string currentScene = "Loader"; private bool mirrorToggled = false; private GameObject ddolMirror; private GameObject mirror; private GameObject camera; public static Mod Mirror = new Mod(); private bool doFreeze = false; public override void OnLateInitializeMelon() { //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Expected O, but got Unknown Calls.onMapInitialized += loadMirror; ddolMirror = Object.Instantiate<GameObject>(Calls.LoadAssetFromStream<GameObject>((MelonMod)(object)this, "Mirror.mirror", "Mirror")); ddolMirror.SetActive(false); ((Object)ddolMirror).name = "Mirror"; Object.DontDestroyOnLoad((Object)(object)ddolMirror); Mirror.ModName = "Mirror"; Mirror.ModVersion = "1.2.0"; Mirror.SetFolder("Mirror"); Mirror.AddToList("Freeze Model", false, 0, "Freezes the Player Model while Mirror is Toggled On", new Tags()); UI.instance.UI_Initialized += UIInit; Mirror.ModSaved += Save; } private void UIInit() { UI.instance.AddMod(Mirror); } private void Save() { doFreeze = (bool)Mirror.Settings[0].SavedValue; Mirror.Settings[0].SavedValue = false; Mirror.Settings[0].Value = false; if (!doFreeze && currentScene == "Gym" && mirrorToggled) { MelonCoroutines.Start(poseModel()); } } public override void OnSceneWasLoaded(int buildIndex, string sceneName) { currentScene = sceneName; mirrorToggled = false; } private void loadMirror() { //IL_0114: Unknown result type (might be due to invalid IL or missing references) //IL_0139: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0179: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Unknown result type (might be due to invalid IL or missing references) //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_00e8: Unknown result type (might be due to invalid IL or missing references) if (!(currentScene == "Gym") && !(currentScene == "Park")) { return; } mirror = Object.Instantiate<GameObject>(ddolMirror); GameObject val = Create.NewButton(); ((Object)val).name = "Mirror Toggle"; if (currentScene == "Gym") { mirror.transform.position = new Vector3(-1.4f, 1f, 0.3f); mirror.transform.rotation = Quaternion.Euler(0f, 223f, 0f); val.transform.position = new Vector3(-1.69f, 1.3f, -2.09f); val.transform.rotation = Quaternion.Euler(90f, 0.6424f, 0f); } else { mirror.transform.position = new Vector3(-13.5155f, -5.1345f, -8.6418f); mirror.transform.rotation = Quaternion.Euler(0f, 62.2366f, 0f); val.transform.position = new Vector3(-12.0155f, -5.2345f, -9.0418f); val.transform.rotation = Quaternion.Euler(90f, 334.3802f, 0f); } camera = ((Component)mirror.transform.GetChild(1)).gameObject; ((Component)val.transform.GetChild(0)).gameObject.GetComponent<InteractionButton>().onPressed.AddListener(UnityAction.op_Implicit((Action)delegate { doFreeze = false; mirrorToggled = !mirrorToggled; mirror.SetActive(mirrorToggled); if (currentScene == "Gym") { ((Behaviour)((Component)PreviewPlayerController.GetGameObject().transform.GetChild(0)).GetComponent<Animator>()).enabled = !mirrorToggled; if (mirrorToggled) { MelonCoroutines.Start(poseModel()); } } })); } [IteratorStateMachine(typeof(<poseModel>d__12))] private IEnumerator poseModel() { //yield-return decompiler failed: Unexpected instruction in Iterator.Dispose() return new <poseModel>d__12(0) { <>4__this = this }; } private void PoseChildren(GameObject modelGO, GameObject playerGO) { //IL_000d: Unknown result type (might be due to invalid IL or missing references) modelGO.transform.localRotation = playerGO.transform.localRotation; if (!(((Object)modelGO).name != "Bone_Head")) { return; } for (int i = 0; i < modelGO.transform.childCount; i++) { try { if (((Object)((Component)modelGO.transform.GetChild(i)).gameObject).name == ((Object)((Component)playerGO.transform.GetChild(i)).gameObject).name) { PoseChildren(((Component)modelGO.transform.GetChild(i)).gameObject, ((Component)playerGO.transform.GetChild(i)).gameObject); } else if (((Object)((Component)modelGO.transform.GetChild(i)).gameObject).name == "Shiftsocket_R") { PoseChildren(((Component)modelGO.transform.GetChild(i)).gameObject, ((Component)playerGO.transform.GetChild(i + 1)).gameObject); } } catch { } } } public override void OnFixedUpdate() { //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Unknown result type (might be due to invalid IL or missing references) if (mirrorToggled) { Vector3 val = mirror.transform.InverseTransformPoint(((Component)Singleton<PlayerManager>.instance.localPlayer.Controller).gameObject.transform.GetChild(2).GetChild(0).GetChild(0) .position); camera.transform.position = mirror.transform.TransformPoint(new Vector3(val.x, val.y, 0f - val.z)); Vector3 val2 = mirror.transform.TransformPoint(new Vector3(0f - val.x, val.y, val.z)); camera.transform.LookAt(val2); } } }