BepInEx.ConfigurationManager icon indicating copy to clipboard operation
BepInEx.ConfigurationManager copied to clipboard

18.1 IL2CPP - Doesn't work in most games

Open p1xel8ted opened this issue 1 year ago • 4 comments

image

[Error :Configuration Manager] Failed to draw setting DebugMode - Il2CppInterop.Runtime.ObjectCollectedException: Object was garbage collected in IL2CPP domain at Il2CppInterop.Runtime.InteropTypes.Il2CppObjectBase.get_Pointer() in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/InteropTypes/Il2CppObjectBase.cs:line 32 at UnityEngine.GUILayoutOption..ctor(Type type, Object value) at UnityEngine.GUILayout.MaxWidth(Single maxWidth) at ConfigurationManager.ConfigurationManager.DrawSettingName(SettingEntryBase setting) in D:\SVN\BepInEx.ConfigurationManager\ConfigurationManager.Shared\ConfigurationManager.cs:line 645 at ConfigurationManager.ConfigurationManager.DrawSingleSetting(SettingEntryBase setting) in D:\SVN\BepInEx.ConfigurationManager\ConfigurationManager.Shared\ConfigurationManager.cs:line 624 [Error :Configuration Manager] Failed to draw setting CorrectFixedUpdateRate - Il2CppInterop.Runtime.ObjectCollectedException: Object was garbage collected in IL2CPP domain at Il2CppInterop.Runtime.InteropTypes.Il2CppObjectBase.get_Pointer() in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/InteropTypes/Il2CppObjectBase.cs:line 32 at UnityEngine.GUILayoutOption..ctor(Type type, Object value) at UnityEngine.GUILayout.MaxWidth(Single maxWidth) at ConfigurationManager.ConfigurationManager.DrawSettingName(SettingEntryBase setting) in D:\SVN\BepInEx.ConfigurationManager\ConfigurationManager.Shared\ConfigurationManager.cs:line 645 at ConfigurationManager.ConfigurationManager.DrawSingleSetting(SettingEntryBase setting) in D:\SVN\BepInEx.ConfigurationManager\ConfigurationManager.Shared\ConfigurationManager.cs:line 624

BE 674 Standard setting, not a custom drawer or anything

p1xel8ted avatar Dec 02 '23 10:12 p1xel8ted

Currently it only works in some games that have unstripped UnityEngine.IMGUIModule.dll which this appears to not be one of.

ManlyMarco avatar Dec 02 '23 14:12 ManlyMarco

Hi, do you know any example of game this is working?

Uklosk avatar Jun 21 '24 19:06 Uklosk

HoneyCome, RoomGirl, not much else since it needs a separate fix to patch imgui classes back in.

ManlyMarco avatar Jun 21 '24 20:06 ManlyMarco

IIRC https://github.com/BepInEx/Il2CppInterop/pull/108 fixed this issue for me - though it's been a while

thegu5 avatar Sep 13 '24 20:09 thegu5

Hi, do you know any example of game this is working?

Deep Rock Galactic: Survivor (which is on PC Gamepass)

BlueRaja avatar Sep 25 '25 05:09 BlueRaja