Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

(GTFO) Crash due to missing methods in Scene/SceneManager #35

Closed
notpeelz opened this issue Jan 27, 2021 · 5 comments
Closed

(GTFO) Crash due to missing methods in Scene/SceneManager #35

notpeelz opened this issue Jan 27, 2021 · 5 comments

Comments

@notpeelz
Copy link

I tried running UE 3.1.7 under the latest BIE version (#343 - 3b64e9).

I've also tried using the same BIE build and UE version as in #32, but to no avail:

[Message: Preloader] BepInEx 6.0.0-be.329 - GTFO
[Message: Preloader] BLEEDING EDGE Build #325 from 3d75179e8684953739fa32ce7d4c7e02879cea07 at master
[Info   :   BepInEx] System platform: Bits64, Windows
[Info   : Preloader] Running under Unity v2019.4.1.15122501
[Info   : Preloader] 0 patcher plugins loaded
[Info   : Preloader] 0 assemblies discovered
[Message:   BepInEx] Chainloader initialized
[Info   :Unhollower] Registered mono type UnhollowerRuntimeLib.DelegateSupport+Il2CppToMonoDelegateReference in il2cpp domain
[Info   :   BepInEx] 1 plugin to load
[Info   :   BepInEx] Loading [UnityExplorer 3.1.6]
[Info   :Unhollower] Registered mono type UnityExplorer.ExplorerBepInPlugin+ExplorerBehaviour in il2cpp domain
[Message:UnityExplorer] ExplorerBehaviour.Awake
[Message:UnityExplorer] Initializing Legacy Input support...
[Error  :   BepInEx] Error loading [UnityExplorer 3.1.6] : Method not found: void UnityEngine.SceneManagement.SceneManager.add_activeSceneChanged(UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene, UnityEngine.SceneManagement.Scene>)
[Message:   BepInEx] Chainloader startup complete
[Message:UnityExplorer] Loaded UI bundle
[Warning:UnityExplorer] Exception setting up UI: System.MissingMethodException: Method not found: bool UnityEngine.SceneManagement.Scene.op_Equality(UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.Scene)
  at UnityExplorer.Inspectors.SceneExplorer.Init () [0x00001] in <4cfa252ff5484d859db2e1f7557dd2f0>:0 
  at UnityExplorer.UI.Modules.HomePage.Init () [0x0001b] in <4cfa252ff5484d859db2e1f7557dd2f0>:0 
  at UnityExplorer.UI.MainMenu..ctor () [0x000f3] in <4cfa252ff5484d859db2e1f7557dd2f0>:0 
  at UnityExplorer.UI.UIManager.Init () [0x0000d] in <4cfa252ff5484d859db2e1f7557dd2f0>:0 
  at UnityExplorer.ExplorerCore.CheckUIInit () [0x00029] in <4cfa252ff5484d859db2e1f7557dd2f0>:0 

Any idea what could be causing this?

@sinai-dev
Copy link
Owner

Have you unstripped the base unity libraries by putting them in BepInEx\unhollowed\base?

@notpeelz
Copy link
Author

Ah that's my bad. I came from MelonLoader and I assumed the steps were the same.
Does BepInEx have a repo for unity libs like MelonLoader does?

@notpeelz
Copy link
Author

notpeelz commented Jan 27, 2021

Hmm, seems like BepInEx isn't passing the --unity= param to Unhollower:

[Warning:Unhollower] Not performing unstripping as unity libs are not specified

See AssemblyUnhollower/Program.cs#L222

@notpeelz
Copy link
Author

Looks like they updated the unity libs dir in 0af2cb127

It works fine if I put the Unity libs in BepInEx\unity-libs instead of BepInEx\unhollowed\base.

You might wanna update the README so that people don't get confused.

Thanks for the quick response :D

@sinai-dev
Copy link
Owner

Ah I see, yeah I wasn't aware of that either, but thanks I'll update the readme :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants