Closed discus-sions closed 3 weeks ago
for context here is that ui message i was talking about (this is after running bepinex for the first time)
[Error : BepInEx] Error loading [UnityExplorer 4.12.1]: System.IO.FileNotFoundException: Could not load file or assembly 'UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
at UniverseLib.Universe.Init(Single startupDelay, Action onInitialized, Action`2 logHandler, UniverseLibConfig config)
at UnityExplorer.ExplorerCore.Init(IExplorerLoader loader)
at UnityExplorer.ExplorerBepInPlugin.Init()
at UnityExplorer.ExplorerBepInPlugin.Load()
at BepInEx.Unity.IL2CPP.IL2CPPChainloader.LoadPlugin(PluginInfo pluginInfo, Assembly pluginAssembly) in /home/runner/work/BepInEx/BepInEx/Runtimes/Unity/BepInEx.Unity.IL2CPP/IL2CPPChainloader.cs:line 134
at BepInEx.Bootstrap.BaseChainloader`1.LoadPlugins(IList`1 plugins) in /home/runner/work/BepInEx/BepInEx/BepInEx.Core/Bootstrap/BaseChainloader.cs:line 411
This isn't a bug(Nor is it due to old Unity.). Unity's Il2Cpp has a setting to exclude unnecessary code when building a game, and if this is the case, DLLs and other code required by UE may not be present in the game and may not work.
Okay, thanks for asnwering. So is there nothing I can do? I should just close this now?
Yes, even I can't help you. I'll close this ticket.
Are you on the latest version of UnityExplorer?
Which release are you using?
BepInEx IL2CPP CoreCLR
Which game did this occur on?
Papers Please
Describe the issue.
Pretty sure this is just an issue with how old this game is. (2020 unity version). This game also doesn't use any of UnityEngine's built in UI, so I had to add the UnityEngine.UI dll to the BepInEx/interop folder to get UnityExplorer to not error on load.
Relevant log output