[Message: Preloader] BepInEx 6.0.0-be.697 - project_elera
[Message: Preloader] Built from commit 53625800b86f6c68751445248260edf0b27a71c2
[Info : BepInEx] System platform: Windows 10 64-bit
[Info : BepInEx] Process bitness: 64-bit (x64)
[Info : BepInEx] Running under Unity 2021.3.45f2
[Info : BepInEx] Runtime version: 6.0.7
[Info : BepInEx] Runtime information: .NET 6.0.7
[Message:InteropManager] Downloading unity base libraries
[Message:InteropManager] Extracting downloaded unity base libraries
[Message:InteropManager] Running Cpp2IL to generate dummy assemblies
[Info : Cpp2IL] [Library] Initializing Metadata...
[Error :InteropManager] Failed to generate Il2Cpp interop assemblies: Cpp2IL.Core.Exceptions.LibCpp2ILInitializationException: Fatal Exception initializing LibCpp2IL!
---> System.FormatException: Unsupported metadata version found! We support 23-29, got 31
at LibCpp2IL.Metadata.Il2CppMetadata.ReadFrom(Byte[] bytes, UnityVersion unityVersion) in /home/runner/work/Cpp2IL/Cpp2IL/LibCpp2IL/Metadata/Il2CppMetadata.cs:line 71
at LibCpp2IL.LibCpp2IlMain.Initialize(Byte[] binaryBytes, Byte[] metadataBytes, UnityVersion unityVersion) in /home/runner/work/Cpp2IL/Cpp2IL/LibCpp2IL/LibCpp2IlMain.cs:line 149
at LibCpp2IL.LibCpp2IlMain.LoadFromFile(String pePath, String metadataPath, UnityVersion unityVersion) in /home/runner/work/Cpp2IL/Cpp2IL/LibCpp2IL/LibCpp2IlMain.cs:line 202
at Cpp2IL.Core.Cpp2IlApi.InitializeLibCpp2Il(String assemblyPath, String metadataPath, UnityVersion unityVersion, Boolean allowUserToInputAddresses) in /_/Cpp2IL.Core/Cpp2IlApi.cs:line 62
--- End of inner exception stack trace ---
at Cpp2IL.Core.Cpp2IlApi.InitializeLibCpp2Il(String assemblyPath, String metadataPath, UnityVersion unityVersion, Boolean allowUserToInputAddresses) in /_/Cpp2IL.Core/Cpp2IlApi.cs:line 68
at BepInEx.Unity.IL2CPP.Il2CppInteropManager.RunCpp2Il() in /home/runner/work/BepInEx/BepInEx/Runtimes/Unity/BepInEx.Unity.IL2CPP/Il2CppInteropManager.cs:line 301
at BepInEx.Unity.IL2CPP.Il2CppInteropManager.GenerateInteropAssemblies() in /home/runner/work/BepInEx/BepInEx/Runtimes/Unity/BepInEx.Unity.IL2CPP/Il2CppInteropManager.cs:line 236
[Info : Preloader] 0 patcher plugins loaded
[Info : Preloader] 0 assemblies discovered
[Message:AssemblyPatcher] Executing 0 patch(es)
[Message: BepInEx] Chainloader initialized
Based on the log file you provided, you are encountering a well-known compatibility issue with BepInEx. The error message Unsupported metadata version found! We support 23-29, got 31 indicates that the version of BepInEx you are using is outdated and cannot handle the game files it's trying to modify.
Cause of the Error
The core of the problem lies in the version of the game's engine and the version of your modding tool :
- Game Engine: The game you are trying to mod was built using a recent version of the Unity engine (likely 2022.3.x or newer), which uses metadata version 31 for its compiled code.
- BepInEx Version: Your BepInEx installation (6.0.0-be.697) includes a component called Cpp2IL, which is used to interact with IL2CPP games. The version of Cpp2IL in your build only supports older metadata versions (from 23 to 29).
When BepInEx starts, it fails during the preloader stage because it cannot parse this unrecognized metadata version, leading to the LibCpp2ILInitializationException and preventing any mods from loading.
How to Fix the Issue
To resolve this, you need to update BepInEx to a more recent "bleeding edge" build. These builds contain the latest features and bug fixes, including the necessary support for metadata version 31.
Here are the steps to update your BepInEx installation:
- Download the Latest Build: Go to the official BepInEx builds website. You will need a build that is newer than the one you currently have. Look for the latest successful build for bepinex_be.
- Select the Correct Package: From the build artifacts, download the correct package for your game. Based on your log, you are running a 64-bit IL2CPP game on Windows, so you will likely need the BepInEx_UnityIL2CPP_x64... file.
- Update Your Installation:
- Extract the contents of the downloaded ZIP file.
- Copy the extracted files into your game's root directory, overwriting the old BepInEx files when prompted.
After replacing the files, run the game again. The updated version of BepInEx will correctly recognize and handle metadata version 31, allowing the game and your mods to load properly.
README:
You must be registered to see the links
How to ->
You must be registered to see the links
Source and installer ->
You must be registered to see the links