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

[Bug]: System.ArgumentException: Class System.Object does not inherit from a class registered in il2cpp #221

Open
1 task done
lontrr opened this issue Apr 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@lontrr
Copy link

lontrr commented Apr 22, 2023

Are you on the latest version of UnityExplorer?

  • Yes, I'm on the latest version of UnityExplorer.

Which release are you using?

MelonLoader IL2CPP

Which game did this occur on?

Rust, unity version: 2021.3.21f1

Describe the issue.

Just launching the game with melon loader and unity explorer mod

Relevant log output

[12:35:20.805] ------------------------------
[12:35:20.833] MelonLoader v0.6.1 Open-Beta
[12:35:20.834] OS: Windows 11
[12:35:20.834] Hash Code: 696B58144EEC73C72FA36A811CA73312EEE4EC28AD5E3527BDA1E14F388A
[12:35:20.834] ------------------------------
[12:35:20.835] Game Type: Il2cpp
[12:35:20.835] Game Arch: x64
[12:35:20.835] ------------------------------
[12:35:20.835] Core::BasePath = C:\Program Files (x86)\Steam\steamapps\common\Rust
[12:35:20.835] Game::BasePath = C:\Program Files (x86)\Steam\steamapps\common\Rust
[12:35:20.835] Game::DataPath = C:\Program Files (x86)\Steam\steamapps\common\Rust\RustClient_Data
[12:35:20.836] Game::ApplicationPath = C:\Program Files (x86)\Steam\steamapps\common\Rust\RustClient.exe
[12:35:20.836] Runtime Type: net6
[12:35:20.917] ------------------------------
[12:35:20.918] Game Name: Rust
[12:35:20.918] Game Developer: Facepunch Studios LTD
[12:35:20.919] Unity Version: 2021.3.21f1
[12:35:20.919] Game Version: 1.0
[12:35:20.919] ------------------------------

[12:35:21.412] Preferences Loaded!

[12:35:21.429] Loading Plugins from 'C:\Program Files (x86)\Steam\steamapps\common\Rust\Plugins'...
[12:35:21.430] 0 Plugins loaded.
[12:35:21.726] [MelonStartScreen] Initializing...
[12:35:21.764] [MelonStartScreen] Using Start Screen Theme: "Default"
[12:35:21.885] [MelonStartScreen] Failed to find the signature for field m_D3D12WaitForLastPresentationAndGetTimestamp in module. Signature: 48 89 5c 24 08 57 48 81 ec 90 00 00 00 0f 29 b4 24 80 00 00 00 48 8b d9
[12:35:21.902] Loading Il2CppAssemblyGenerator...
[12:35:21.910] [Il2CppAssemblyGenerator] Contacting RemoteAPI...
[12:35:22.092] [Il2CppAssemblyGenerator] Game Not Found on RemoteAPI Host (https://api.melonloader.com/api/v1/game/rust)
[12:35:22.092] [Il2CppAssemblyGenerator] RemoteAPI.DumperVersion = null
[12:35:22.092] [Il2CppAssemblyGenerator] RemoteAPI.ObfuscationRegex = null
[12:35:22.092] [Il2CppAssemblyGenerator] RemoteAPI.MappingURL = null
[12:35:22.092] [Il2CppAssemblyGenerator] RemoteAPI.MappingFileSHA512 = null
[12:35:22.102] [Il2CppAssemblyGenerator] Using Dumper Version: 2022.1.0-pre-release.10
[12:35:22.103] [Il2CppAssemblyGenerator] Using Il2CppInterop Version = 1.4.5
[12:35:22.103] [Il2CppAssemblyGenerator] Using Unity Dependencies Version = 2021.3.21
[12:35:22.104] [Il2CppAssemblyGenerator] Using Deobfuscation Regex = null
[12:35:22.104] [Il2CppAssemblyGenerator] Cpp2IL is up to date.
[12:35:22.105] [Il2CppAssemblyGenerator] UnityDependencies is up to date.
[12:35:22.105] [Il2CppAssemblyGenerator] Checking GameAssembly...
[12:35:22.237] [Il2CppAssemblyGenerator] Assembly is up to date. No Generation Needed.

[12:35:22.238] Loading Mods from 'C:\Program Files (x86)\Steam\steamapps\common\Rust\Mods'...
[12:35:22.240] ------------------------------
[12:35:22.263] Melon Assembly loaded: '.\Mods\UnityExplorer.ML.IL2CPP.net6preview.dll'
[12:35:22.264] SHA256 Hash: '181bf3901b820fabbf279fa02d29645c13e9b6c77619dccb0fac1c3cce410375'

[12:35:22.438] ------------------------------
[12:35:22.439] UnityExplorer v4.9.0
[12:35:22.439] by Sinai
[12:35:22.439] Assembly: UnityExplorer.ML.IL2CPP.net6preview.dll
[12:35:22.439] ------------------------------
[12:35:22.439] ------------------------------
[12:35:22.439] 1 Mod loaded.

[12:35:22.816] Class::Init signatures have been exhausted, using a substitute!
[12:35:22.842] Registered mono type Il2CppInterop.Runtime.DelegateSupport+Il2CppToMonoDelegateReference in il2cpp domain
[12:35:22.871] Registered mono type MelonLoader.Support.MonoEnumeratorWrapper in il2cpp domain
[12:35:22.873] Registered mono type MelonLoader.Support.SM_Component in il2cpp domain
[12:35:22.880] Support Module Loaded: C:\Program Files (x86)\Steam\steamapps\common\Rust\MelonLoader\Dependencies\SupportModules\Il2Cpp.dll
[12:35:22.905] [UnityExplorer] UnityExplorer 4.9.0 initializing...
[12:35:22.923] [UnityExplorer] [UniverseLib] UniverseLib 1.5.1 initializing...
[12:35:22.939] [UnityExplorer] System.ArgumentException: Class System.Object does not inherit from a class registered in il2cpp
   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp(Type type, RegisterTypeOptions options)
   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp(Type type, RegisterTypeOptions options)
   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp(Type type, RegisterTypeOptions options)
   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp(Type type, RegisterTypeOptions options)
   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp(Type type, RegisterTypeOptions options)
   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp(Type type, RegisterTypeOptions options)
   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp(Type type, RegisterTypeOptions options)
   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp(Type type, RegisterTypeOptions options)
   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp(Type type)
   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp[T]()
   at UniverseLib.UniversalBehaviour.Setup()
   at UniverseLib.Universe.Init(Single startupDelay, Action onInitialized, Action`2 logHandler, UniverseLibConfig config)
   at UnityExplorer.ExplorerCore.Init(IExplorerLoader loader)
   at UnityExplorer.ExplorerMelonMod.OnApplicationStart()
   at MelonLoader.MelonEvent.<>c.<Invoke>b__1_0(LemonAction x) in D:\a\MelonLoader\MelonLoader\MelonLoader\Melons\Events\MelonEvent.cs:line 174
   at MelonLoader.MelonEventBase`1.Invoke(Action`1 delegateInvoker) in D:\a\MelonLoader\MelonLoader\MelonLoader\Melons\Events\MelonEvent.cs:line 143
@lontrr lontrr added the bug Something isn't working label Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant