ManlyMarco / RuntimeUnityEditor

In-game inspector and debugging tools for applications made with Unity3D game engine
GNU General Public License v3.0
802 stars 98 forks source link

F12 doesn't bring up the RuntimeUnityEditor interface but there's no log issues that I can see that would suggest a failure #63

Closed majeric closed 9 months ago

majeric commented 9 months ago

I've also disabled the use of F12 in steam so that's not potentially overriding it. Suggestions?

[Message:   BepInEx] BepInEx 5.4.22.0 - Lethal Company (2024-01-05 6:38:28 PM)
[Info   :   BepInEx] Running under Unity v2022.3.9.15351836
[Info   :   BepInEx] CLR runtime version: 4.0.30319.42000
[Info   :   BepInEx] Supports SRE: True
[Info   :   BepInEx] System platform: Bits64, Windows
[Message:   BepInEx] Preloader started
[Info   :   BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.22.0]
[Info   :   BepInEx] 1 patcher plugin loaded
[Info   :   BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader]
[Message:   BepInEx] Preloader finished
[Message:   BepInEx] Chainloader ready
[Message:   BepInEx] Chainloader started
[Info   :   BepInEx] 4 plugins to load
[Info   :   BepInEx] Loading [Fix Resolution 1.0.0]
[Info   :  HarmonyX] ### Harmony id=harmony-auto-270b19c1-f37a-4145-b603-92d63a40e0d8, version=2.9.0.0, location=F:\SteamLibrary\steamapps\common\Lethal Company\BepInEx\core\0Harmony.dll, env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from void FixResolution.Main::Awake(), location F:\SteamLibrary\steamapps\common\Lethal Company\BepInEx\plugins\FixResolution.dll
### At 2024-01-20 11.41.37
[Info   :  HarmonyX] Patching void UnityEngine.Camera::set_targetTexture(UnityEngine.RenderTexture value) with 1 prefixes, 0 postfixes, 0 transpilers, 0 finalizers
1 prefixes:
* static void FixResolution.Main::TargetTexturePrefix(UnityEngine.Camera __instance, UnityEngine.RenderTexture& __0)

[Info   :  HarmonyX] Running ILHook manipulator on void UnityEngine.Camera::set_targetTexture(UnityEngine.RenderTexture value)
[Info   :  HarmonyX] Writing prefixes
[Info   :  HarmonyX] Patching void HUDManager::UpdateScanNodes(GameNetcodeStuff.PlayerControllerB playerScript) with 0 prefixes, 1 postfixes, 0 transpilers, 0 finalizers
1 postfixes:
* static void FixResolution.Main::UpdateScanNodesPostfix(HUDManager __instance, GameNetcodeStuff.PlayerControllerB playerScript)

[Info   :  HarmonyX] Running ILHook manipulator on void HUDManager::UpdateScanNodes(GameNetcodeStuff.PlayerControllerB playerScript)
[Info   :  HarmonyX] Writing postfixes
[Info   :   BepInEx] Loading [Remove Camera Filter 1.0.0]
[Info   :   BepInEx] Loading [Runtime Unity Editor 5.2.1]
[Info   :   BepInEx] Loading [Viewbob Fix 1.1]
[Info   :  HarmonyX] Created Harmony instance id=snet0.lcviewbobfix, version=2.0.0.0, location=F:\SteamLibrary\steamapps\common\Lethal Company\BepInEx\core\0Harmony20.dll - Started from System.Void HarmonyLib.Tools.Logger::Log(HarmonyLib.Tools.Logger+LogChannel,System.Func`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]],System.Boolean) location=F:\SteamLibrary\steamapps\common\Lethal Company\BepInEx\core\0Harmony.dll
[Info   :  HarmonyX] Patching snet0.lcviewbobfix...
[Info   :  HarmonyX] Patching System.Void GameNetcodeStuff.PlayerControllerB::SpawnPlayerAnimation()
[Info   :  HarmonyX] HarmonyPrepare result: True
[Info   :  HarmonyX] Patching void GameNetcodeStuff.PlayerControllerB::SpawnPlayerAnimation() with 0 prefixes, 1 postfixes, 0 transpilers, 0 finalizers
1 postfixes:
* static void LCViewbob.Patches.AnimPatch::Postfix()

[Info   :  HarmonyX] Running ILHook manipulator on void GameNetcodeStuff.PlayerControllerB::SpawnPlayerAnimation()
[Info   :  HarmonyX] Writing postfixes
[Info   :  HarmonyX] Patching snet0.lcviewbobfix took 7ms
[Message:   BepInEx] Chainloader startup complete
[Info   : Unity Log] Saving changed settings
[Info   : Unity Log] Facepunch transport is disabled.
[Info   : Unity Log] Returning week num: 5
[Info   : Unity Log] week num: 5
majeric commented 9 months ago

Is there any way to configure the F12 option?

ManlyMarco commented 9 months ago

Hotkey is configurable in the config file. From your log it looks like RUE never actually initializes, maybe it gets destroyed by the game. Try using a different entry point or hiding the manager object in bepinex config.

majeric commented 9 months ago

Cool. Okay. I mean there's no error messages. I do see that it's Loading" but if there's a "load complete" message then clearly it's not finishing.

Which config file? Is there one specific to RUE or the BepInEx config?

majeric commented 9 months ago

Hiding the Manager Game Object did the trick in the BepInEx.cfg config file.

HideManagerGameObject = true

This indicates that it's been initialized property.

[Info   :Runtime Unity Editor] Successfully initialized 14/14 features: CursorUnlocker, WireframeFeature, ContextMenu, Taskbar, MouseInspect, ReplWindow, ObjectViewWindow, ProfilerWindow, ObjectTreeViewer, Inspector, ClipboardWindow, ChangeHistoryWindow, DnSpyHelper, GizmoDrawer

Still not sure how to configure the F12 for the RUE. That would still be handy to avoid input conficts.

ManlyMarco commented 9 months ago

You can either edit RUEs cfg file or use the configuration manager plugin.