sinai-dev / UnityExplorer

An in-game UI for exploring, debugging and modifying IL2CPP and Mono Unity games.
GNU General Public License v3.0
2.33k stars 355 forks source link

[Bug]: System.TypeLoadException: Could not load type 'UniverseLib.Runtime.Mono.MonoProvider' from assembly 'UniverseLib.Mono, Version=1.5.1.0, Culture=neutral, PublicKeyToken=null'. #222

Open WhiteMCWizard opened 1 year ago

WhiteMCWizard commented 1 year ago

Are you on the latest version of UnityExplorer?

Which release are you using?

MelonLoader Mono

Which game did this occur on?

5.2.2a0

Describe the issue.

image

Relevant log output

[17:34:39.397] ------------------------------
[17:34:39.398] MelonLoader v0.5.7 Open-Beta
[17:34:39.399] OS: Windows 11
[17:34:39.399] Hash Code: 49564857519949491004949495353555351101991025110156509910198100565010099
[17:34:39.400] ------------------------------
[17:34:39.400] Game Type: Mono
[17:34:39.401] Game Arch: x86
[17:34:39.403] ------------------------------
[17:34:39.405] Core::BasePath = C:\Users\jonat\Documents\duckworld revive\DuckWorld
[17:34:39.407] Game::BasePath = C:\Users\jonat\Documents\duckworld revive\DuckWorld
[17:34:39.411] Game::DataPath = C:\Users\jonat\Documents\duckworld revive\DuckWorld\DuckWorld_Data
[17:34:39.412] Game::ApplicationPath = C:\Users\jonat\Documents\duckworld revive\DuckWorld\DuckWorld.exe

[17:34:39.508] ------------------------------
[17:34:39.510] Game Name: UNKNOWN
[17:34:39.510] Game Developer: UNKNOWN
[17:34:39.517] Unity Version: 5.2.2a0
[17:34:39.518] Game Version: UNKNOWN
[17:34:39.519] ------------------------------

[17:34:39.892] Preferences Loaded!

[17:34:39.940] Loading Plugins from 'C:\Users\jonat\Documents\duckworld revive\DuckWorld\Plugins'...
[17:34:39.943] 0 Plugins loaded.

[17:34:41.239] Loading Mods from 'C:\Users\jonat\Documents\duckworld revive\DuckWorld\Mods'...
[17:34:41.239] ------------------------------
[17:34:41.270] Melon Assembly loaded: '.\Mods\UnityExplorer.ML.Mono.dll'
[17:34:41.271] SHA256 Hash: '7e6c95c5f0db2d6b22f506aad4d268a96250bd64d8e259b7e4073106250f36d2'

[17:34:41.354] ------------------------------
[17:34:41.355] UnityExplorer v4.9.0
[17:34:41.356] by Sinai
[17:34:41.357] Assembly: UnityExplorer.ML.Mono.dll
[17:34:41.358] ------------------------------
[17:34:41.360] ------------------------------
[17:34:41.361] 1 Mod loaded.

[17:34:41.379] Support Module Loaded: C:\Users\jonat\Documents\duckworld revive\DuckWorld\MelonLoader\Dependencies\SupportModules\Mono.dll
[17:34:41.412] [UnityExplorer] UnityExplorer 4.9.0 initializing...
[17:34:41.444] [UnityExplorer] [UniverseLib] UniverseLib 1.5.1 initializing...
[17:34:41.657] [UnityExplorer] [ERROR] System.TypeLoadException: Could not load type 'UniverseLib.Runtime.Mono.MonoProvider' from assembly 'UniverseLib.Mono, Version=1.5.1.0, Culture=neutral, PublicKeyToken=null'.
  at UniverseLib.Universe.Init (Single startupDelay, System.Action onInitialized, System.Action`2 logHandler, UniverseLibConfig config) [0x00000] in <filename unknown>:0 
  at UnityExplorer.ExplorerCore.Init (IExplorerLoader loader) [0x00000] in <filename unknown>:0 
  at UnityExplorer.ExplorerMelonMod.OnApplicationStart () [0x00000] in <filename unknown>:0 
  at MelonLoader.MelonEvent+<>c.<Invoke>b__1_0 (MelonLoader.LemonAction x) [0x00000] in <filename unknown>:0 
  at MelonLoader.MelonEventBase`1[T].Invoke (System.Action`1 delegateInvoker) [0x00000] in <filename unknown>:0
1036023 commented 1 year ago

Hey, found a way to fix it? I get exactly the same error, on exactly the same game. Also, I know this is off-topic, but why did you take down your decompiled version of DuckWorld and how did you succeed in building that version? I spent hours trying to fix an error that prevented me from building it. Also also, does your version work serverless once it’s build?

WhiteMCWizard commented 1 year ago

@1036023 What’s your discord

1036023 commented 1 year ago

Helle_Crew#2876