
[Bug]: Unhandled exception. System.IO.FileNotFoundException: ...\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL\Plugins\Cpp2IL.Plugin.StrippedCodeRegSupport.dll
Kreyren opened this issue ยท 2 comments
All of the following criteria must be met
- All Requirements must be installed.
- Changed the title so that it doesn't just says "[Bug]: "
- I have searched the GitHub issues for my bug, even in the closed issues.
All of the following are optional to answer
- Tried reinstalling the Game.
- Tried reinstalling MelonLoader.
- Tried restarting PC.
- Was able to see the Start Screen.
Describe the issue.
[UnityMemory] Configuration Parameters - Can be set up in boot.config
"memorysetup-bucket-allocator-granularity=16"
"memorysetup-bucket-allocator-bucket-count=8"
"memorysetup-bucket-allocator-block-size=4194304"
"memorysetup-bucket-allocator-block-count=1"
"memorysetup-main-allocator-block-size=16777216"
"memorysetup-thread-allocator-block-size=16777216"
"memorysetup-gfx-main-allocator-block-size=16777216"
"memorysetup-gfx-thread-allocator-block-size=16777216"
"memorysetup-cache-allocator-block-size=4194304"
"memorysetup-typetree-allocator-block-size=2097152"
"memorysetup-profiler-bucket-allocator-granularity=16"
"memorysetup-profiler-bucket-allocator-bucket-count=8"
"memorysetup-profiler-bucket-allocator-block-size=4194304"
"memorysetup-profiler-bucket-allocator-block-count=1"
"memorysetup-profiler-allocator-block-size=16777216"
"memorysetup-profiler-editor-allocator-block-size=1048576"
"memorysetup-temp-allocator-size-main=4194304"
"memorysetup-job-temp-allocator-block-size=2097152"
"memorysetup-job-temp-allocator-block-size-background=1048576"
"memorysetup-job-temp-allocator-reduction-small-platforms=262144"
"memorysetup-allocator-temp-initial-block-size-main=262144"
"memorysetup-allocator-temp-initial-block-size-worker=262144"
"memorysetup-temp-allocator-size-background-worker=32768"
"memorysetup-temp-allocator-size-job-worker=262144"
"memorysetup-temp-allocator-size-preload-manager=262144"
"memorysetup-temp-allocator-size-nav-mesh-worker=65536"
"memorysetup-temp-allocator-size-audio-worker=65536"
"memorysetup-temp-allocator-size-cloud-worker=32768"
"memorysetup-temp-allocator-size-gfx=262144"
[00:52:05.791] ------------------------------
[00:52:05.793] MelonLoader v0.7.1 Open-Beta
[00:52:05.794] OS: Wine 9.7
[00:52:05.794] Hash Code: E02D6B4281E511A9F1EA88CD1737B993A6B9C7C5566EFBE68300B1
FCF1479C14
[00:52:05.795] ------------------------------
[00:52:05.798] Game Type: Il2cpp
[00:52:05.799] Game Arch: x64
[00:52:05.799] ------------------------------
[00:52:05.800] Command-Line:
[00:52:05.800] ------------------------------
[00:52:05.801] Core::BasePath = Z:\home\kreyren\Games\Schedule I
[00:52:05.801] Game::BasePath = Z:\home\kreyren\Games\Schedule I
[00:52:05.802] Game::DataPath = Z:\home\kreyren\Games\Schedule I\Schedule I_Data
[00:52:05.803] Game::ApplicationPath = Z:\home\kreyren\Games\Schedule I\Schedule
I.exe
[00:52:05.803] Runtime Type: net6
[00:52:05.950] ------------------------------
[00:52:05.951] Game Name: Schedule I
[00:52:05.952] Game Developer: TVGS
[00:52:05.954] Unity Version: 2022.3.32f1
[00:52:05.954] Game Version: 0.3.6f3
[00:52:05.955] ------------------------------
[00:52:06.337] Preferences Loaded!
[00:52:06.392] Loading UserLibs...
[00:52:06.396] 0 UserLibs loaded.
[00:52:06.397] Loading Plugins...
[00:52:06.402] 0 Plugins loaded.
[00:52:08.744] Loading Il2CppAssemblyGenerator...
[00:52:08.828] [Il2CppAssemblyGenerator] Contacting RemoteAPI...
[00:52:09.209] [Il2CppAssemblyGenerator] Game Not Found on RemoteAPI Host (https
://api.melonloader.com/api/v1/game/schedule-i)
[00:52:09.210] [Il2CppAssemblyGenerator] RemoteAPI.DumperVersion = null
[00:52:09.211] [Il2CppAssemblyGenerator] RemoteAPI.ObfuscationRegex = null
[00:52:09.212] [Il2CppAssemblyGenerator] RemoteAPI.MappingURL = null
[00:52:09.213] [Il2CppAssemblyGenerator] RemoteAPI.MappingFileSHA512 = null
[00:52:09.228] [Il2CppAssemblyGenerator] Using Cpp2IL Version: 2022.1.0-pre-rele
ase.19
[00:52:09.229] [Il2CppAssemblyGenerator] Using Il2CppInterop Version = 1.5.0-ci.
625+51abbdd5e95447d4450eb82bde1b77ecff3cea74
[00:52:09.230] [Il2CppAssemblyGenerator] Using Unity Dependencies Version = 2022
.3.32
[00:52:09.230] [Il2CppAssemblyGenerator] Using Deobfuscation Regex = null
[00:52:09.231] [Il2CppAssemblyGenerator] Cpp2IL is up to date.
[00:52:09.233] [Il2CppAssemblyGenerator] Cpp2IL.Plugin.StrippedCodeRegSupport is
up to date.
[00:52:09.233] [Il2CppAssemblyGenerator] UnityDependencies is up to date.
[00:52:09.234] [Il2CppAssemblyGenerator] Checking GameAssembly...
[00:52:09.436] [Il2CppAssemblyGenerator] Assembly Generation Needed!
[00:52:09.458] [Il2CppAssemblyGenerator] Executing Cpp2IL...
[00:52:09.471] [Il2CppAssemblyGenerator] "Z:\home\kreyren\Games\Schedule I\Melon
Loader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL\Cpp2IL.exe" --game-path "Z:\h
ome\kreyren\Games\Schedule I" --exe-name "Schedule I" --output-as dummydll --use
-processor attributeanalyzer attributeinjector
[00:52:10.211] [Il2CppAssemblyGenerator] ===Cpp2IL by Samboy063===
[00:52:10.212] [Il2CppAssemblyGenerator] A Tool to Reverse Unity's "il2cpp" Buil
d Process.
[00:52:10.217] [Il2CppAssemblyGenerator] Version 2022.1.0-pre-release.19+edbb994
9b3f999a44bb42aea14f357d6e0e7820f
[00:52:10.218] [Il2CppAssemblyGenerator]
[00:52:10.228] [Il2CppAssemblyGenerator] [Warn] [Program] Looks like you're runn
ing in wine or proton. Disabling ANSI color codes.
[00:52:10.246] [Il2CppAssemblyGenerator] [Info] [Program] Running on Win32NT
[00:52:10.377] [Il2CppAssemblyGenerator] [Info] [Plugins] Loading plugins from Z
:\home\kreyren\Games\Schedule I\MelonLoader\Dependencies\Il2CppAssemblyGenerator
\Cpp2IL\Plugins...
[00:52:10.513] [Il2CppAssemblyGenerator] Unhandled exception. System.IO.FileNotF
oundException:
[00:52:10.514] [Il2CppAssemblyGenerator] File name: 'Z:\home\kreyren\Games\Sched
ule I\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL\Plugins\Cpp2IL.Plu
gin.StrippedCodeRegSupport.dll'
[00:52:10.515] [Il2CppAssemblyGenerator] at System.Runtime.Loader.AssemblyLoa
dContext.<LoadFromPath>g____PInvoke|5_0(IntPtr __ptrNativeAssemblyBinder_native,
UInt16* __ilPath_native, UInt16* __niPath_native, ObjectHandleOnStack __retAsse
mbly_native)
[00:52:10.515] [Il2CppAssemblyGenerator] at System.Runtime.Loader.AssemblyLoa
dContext.<LoadFromPath>g____PInvoke|5_0(IntPtr __ptrNativeAssemblyBinder_native,
UInt16* __ilPath_native, UInt16* __niPath_native, ObjectHandleOnStack __retAsse
mbly_native)
[00:52:10.515] [Il2CppAssemblyGenerator] at System.Runtime.Loader.AssemblyLoa
dContext.LoadFromPath(IntPtr ptrNativeAssemblyBinder, String ilPath, String niPa
th, ObjectHandleOnStack retAssembly)
[00:52:10.515] [Il2CppAssemblyGenerator] at System.Runtime.Loader.AssemblyLoa
dContext.InternalLoadFromPath(String assemblyPath, String nativeImagePath)
[00:52:10.516] [Il2CppAssemblyGenerator] at System.Runtime.Loader.AssemblyLoa
dContext.LoadFromAssemblyPath(String assemblyPath)
[00:52:10.516] [Il2CppAssemblyGenerator] at System.Reflection.Assembly.LoadFr
om(String assemblyFile)
[00:52:10.517] [Il2CppAssemblyGenerator] at Cpp2IL.Core.Cpp2IlPluginManager.L
oadFromDirectory(String pluginsDir) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL.
Core\Cpp2IlPluginManager.cs:line 30
[00:52:10.517] [Il2CppAssemblyGenerator] at Cpp2IL.Core.Cpp2IlApi.Init(String
pluginsDir) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL.Core\Cpp2IlApi.cs:line
30
[00:52:10.517] [Il2CppAssemblyGenerator] at Cpp2IL.Program.GetRuntimeOptionsF
romCommandLine(String[] commandLine) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL
\Program.cs:line 498
[00:52:10.518] [Il2CppAssemblyGenerator] at Cpp2IL.Program.Main(String[] args
) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL\Program.cs:line 594
[00:52:10.592] [Il2CppAssemblyGenerator] WineDbg attached to pid 0000
OS: NixOS 25.05 (fork) nixos.tupac.stable derivation -- Arcanyx-org/NiXium@9be6556
Game: Schedule I
Loaded in Bottles 51.21 and tested against:
- soda-9.0-1
- caffe-9.7
- kron4ek-wine-10.11-staging-tk-amd64
- ge-proton10-8
I followed the instructions and launching the loader with WINEDLLOVERRIDES="version=n,b" %command%
and installed vcredist2022
workaround. Dotnet appears to be handled by the loader
Possible complications: NixOS is using sandboxing, but wine seems to be able to see the file in Schedule I\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL\Plugins\Cpp2IL.Plugin.StrippedCodeRegSupport.dll
so that's unlikely to be the cause?
It's looking for C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL\Program.cs
which is not present in the wineprefix and shouldn't be looking for it at all?
Tested with 0.7.1 and 0.7.0 resulting in same issue and i started with https://github.com/LavaGang/MelonLoader/releases/latest/download/MelonLoader.x64.zip which seemed to have downloaded 0.7.1
I use Windows version of melon launcher in wine.
Cpp2IL.exe is set as executable: -rwxr-xr-x 1 kreyren users 14478147 Jul 5 00:42 Cpp2IL.exe
I did try system wine without bottles with the same result.
Tried using bottles from flatpak which doesn't launch for me as the bottles can't see UnityPlayer.dll even with permission granted via flatseal.. so that bottles upstream doesn't have to do full karen about this.
Did you attach your log file?
Yes, I attached my log file to the text box above.
Hi, having the same issue here on arch (so don't think the aforementioned sandboxing has anything to do with it). The file really exists, has all the correct permissions, even successfully stating that it is up to date Cpp2IL.Plugin.StrippedCodeRegSupport is up to date
[02:06:45.465] ------------------------------
[02:06:45.467] MelonLoader v0.7.1 Open-Beta
[02:06:45.467] OS: Wine 10.0
[02:06:45.468] Hash Code: E02D6B4281E511A9F1EA88CD1737B993A6B9C7C5566EFBE68300B1FCF1479C14
[02:06:45.469] ------------------------------
[02:06:45.472] Game Type: Il2cpp
[02:06:45.473] Game Arch: x64
[02:06:45.474] ------------------------------
[02:06:45.474] Command-Line:
[02:06:45.475] ------------------------------
[02:06:45.476] Core::BasePath = Z:\home\sigvaldr\.local\share\Steam\steamapps\common\Schedule I
[02:06:45.477] Game::BasePath = Z:\home\sigvaldr\.local\share\Steam\steamapps\common\Schedule I
[02:06:45.477] Game::DataPath = Z:\home\sigvaldr\.local\share\Steam\steamapps\common\Schedule I\Schedule I_Data
[02:06:45.478] Game::ApplicationPath = Z:\home\sigvaldr\.local\share\Steam\steamapps\common\Schedule I\Schedule I.exe
[02:06:45.479] Runtime Type: net6
[02:06:45.563] ------------------------------
[02:06:45.564] Game Name: Schedule I
[02:06:45.564] Game Developer: TVGS
[02:06:45.566] Unity Version: 2022.3.32f1
[02:06:45.566] Game Version: 0.3.6f6
[02:06:45.567] ------------------------------
[02:06:45.816] Preferences Loaded!
[02:06:45.830] Loading UserLibs...
[02:06:45.833] 0 UserLibs loaded.
[02:06:45.834] Loading Plugins...
[02:06:45.837] 0 Plugins loaded.
[02:06:47.178] Loading Il2CppAssemblyGenerator...
[02:06:47.221] [Il2CppAssemblyGenerator] Using Cpp2IL Version: 2022.1.0-pre-release.19
[02:06:47.222] [Il2CppAssemblyGenerator] Using Il2CppInterop Version = 1.5.0-ci.625+51abbdd5e95447d4450eb82bde1b77ecff3cea74
[02:06:47.223] [Il2CppAssemblyGenerator] Using Unity Dependencies Version = 2022.3.32
[02:06:47.224] [Il2CppAssemblyGenerator] Using Deobfuscation Regex = null
[02:06:47.224] [Il2CppAssemblyGenerator] Cpp2IL is up to date.
[02:06:47.225] [Il2CppAssemblyGenerator] Cpp2IL.Plugin.StrippedCodeRegSupport is up to date.
[02:06:47.226] [Il2CppAssemblyGenerator] UnityDependencies is up to date.
[02:06:47.227] [Il2CppAssemblyGenerator] Checking GameAssembly...
[02:06:47.343] [Il2CppAssemblyGenerator] Assembly Generation Needed!
[02:06:47.355] [Il2CppAssemblyGenerator] Executing Cpp2IL...
[02:06:47.356] [Il2CppAssemblyGenerator] "Z:\home\sigvaldr\.local\share\Steam\steamapps\common\Schedule I\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL\Cpp2IL.exe" --game-path "Z:\home\sigvaldr\.local\share\Steam\steamapps\common\Schedule I" --exe-name "Schedule I" --output-as dummydll --use-processor attributeanalyzer attributeinjector
[02:06:47.591] [Il2CppAssemblyGenerator] ===Cpp2IL by Samboy063===
[02:06:47.592] [Il2CppAssemblyGenerator] A Tool to Reverse Unity's "il2cpp" Build Process.
[02:06:47.594] [Il2CppAssemblyGenerator] Version 2022.1.0-pre-release.19+edbb9949b3f999a44bb42aea14f357d6e0e7820f
[02:06:47.594] [Il2CppAssemblyGenerator]
[02:06:47.601] [Il2CppAssemblyGenerator] [Warn] [Program] Looks like you're running in wine or proton. Disabling ANSI color codes.
[02:06:47.608] [Il2CppAssemblyGenerator] [Info] [Program] Running on Win32NT
[02:06:47.700] [Il2CppAssemblyGenerator] [Info] [Plugins] Loading plugins from Z:\home\sigvaldr\.local\share\Steam\steamapps\common\Schedule I\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL\Plugins...
[02:06:47.790] [Il2CppAssemblyGenerator] Unhandled exception. System.IO.FileNotFoundException:
[02:06:47.792] [Il2CppAssemblyGenerator] File name: 'Z:\home\sigvaldr\.local\share\Steam\steamapps\common\Schedule I\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL\Plugins\Cpp2IL.Plugin.StrippedCodeRegSupport.dll'
[02:06:47.792] [Il2CppAssemblyGenerator] at System.Runtime.Loader.AssemblyLoadContext.<LoadFromPath>g____PInvoke|5_0(IntPtr __ptrNativeAssemblyBinder_native, UInt16* __ilPath_native, UInt16* __niPath_native, ObjectHandleOnStack __retAssembly_native)
[02:06:47.792] [Il2CppAssemblyGenerator] at System.Runtime.Loader.AssemblyLoadContext.<LoadFromPath>g____PInvoke|5_0(IntPtr __ptrNativeAssemblyBinder_native, UInt16* __ilPath_native, UInt16* __niPath_native, ObjectHandleOnStack __retAssembly_native)
[02:06:47.792] [Il2CppAssemblyGenerator] at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyBinder, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
[02:06:47.793] [Il2CppAssemblyGenerator] at System.Runtime.Loader.AssemblyLoadContext.InternalLoadFromPath(String assemblyPath, String nativeImagePath)
[02:06:47.793] [Il2CppAssemblyGenerator] at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
[02:06:47.793] [Il2CppAssemblyGenerator] at System.Reflection.Assembly.LoadFrom(String assemblyFile)
[02:06:47.793] [Il2CppAssemblyGenerator] at Cpp2IL.Core.Cpp2IlPluginManager.LoadFromDirectory(String pluginsDir) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL.Core\Cpp2IlPluginManager.cs:line 30
[02:06:47.793] [Il2CppAssemblyGenerator] at Cpp2IL.Core.Cpp2IlApi.Init(String pluginsDir) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL.Core\Cpp2IlApi.cs:line 30
[02:06:47.793] [Il2CppAssemblyGenerator] at Cpp2IL.Program.GetRuntimeOptionsFromCommandLine(String[] commandLine) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL\Program.cs:line 498
[02:06:47.794] [Il2CppAssemblyGenerator] at Cpp2IL.Program.Main(String[] args) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL\Program.cs:line 594