ManlyMarco / RuntimeUnityEditor

In-game inspector and debugging tools for applications made with Unity3D game engine
GNU General Public License v3.0
802 stars 98 forks source link

ArgumentException: Type UnityEngine.Rect is not supported by the config system #31

Closed benediktwerner closed 1 year ago

benediktwerner commented 1 year ago

When running the just released version 4 with the game Stacklands and BepInEx 5.4.21 (the latest as far as I can see?) I get the error mentioned in the title blocking most of the useful modules. Here's a more detailed log:

[Message:   BepInEx] BepInEx 5.4.21.0 - Stacklands (04.05.2022 01:33:52)
[Info   :   BepInEx] Running under Unity v2020.3.6.3378102
[Info   :   BepInEx] CLR runtime version: 4.0.30319.17020
[Info   :   BepInEx] Supports SRE: False
[Info   :   BepInEx] System platform: Bits64, Windows
[Message:   BepInEx] Preloader started
[Info   :   BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.21.0]
[Info   :   BepInEx] 1 patcher plugin loaded
[Info   :   BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader]
[Message:   BepInEx] Preloader finished
[Message:   BepInEx] Chainloader ready
[Message:   BepInEx] Chainloader started
[Info   :   BepInEx] 1 plugins to load
[Info   :   BepInEx] Loading [Runtime Unity Editor 4.0.0.1]
[Message:   BepInEx] Chainloader startup complete
[Info   : Unity Log] Odin Serializer ArchitectureInfo initialization with defaults (all unaligned read/writes disabled).
[Info   : Unity Log] Odin Serializer detected whitelisted runtime platform WindowsPlayer and memory read test succeeded; enabling all unaligned memory read/writes.
[Warning:Runtime Unity Editor] Vectrosity.dll is not available, drawing gizmos will be disabled
[Warning:Runtime Unity Editor] Failed to initialize ReplWindow - System.ArgumentException: Type UnityEngine.Rect is not supported by the config system. Supported types: String, Boolean, Byte, SByte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Single, Double, Decimal, Enum, Color, Vector2, Vector3, Vector4, Quaternion
  at BepInEx.Configuration.ConfigFile.Bind[T] (BepInEx.Configuration.ConfigDefinition configDefinition, T defaultValue, BepInEx.Configuration.ConfigDescription configDescription) [0x0005d] in <fe49c90fe8e24102b42489c11910c71c>:0 
  at BepInEx.Configuration.ConfigFile.Bind[T] (System.String section, System.String key, T defaultValue, System.String description) [0x00017] in <fe49c90fe8e24102b42489c11910c71c>:0 
  at RuntimeUnityEditor.Bepin5.RuntimeUnityEditor5+Bep5InitSettings.RegisterSetting[T] (System.String category, System.String name, T defaultValue, System.String description, System.Action`1[T] onValueUpdated) [0x0001a] in <475749b1241b4432b549113e0bbf08ea>:0 
  at RuntimeUnityEditor.Core.Window`1[T].AfterInitialized (RuntimeUnityEditor.Core.Utils.Abstractions.InitSettings initSettings) [0x00031] in <eec145b60b9a4c2d88dd2224695b82aa>:0 
  at RuntimeUnityEditor.Core.FeatureBase`1[T].RuntimeUnityEditor.Core.IFeature.OnInitialize (RuntimeUnityEditor.Core.Utils.Abstractions.InitSettings initSettings) [0x00019] in <eec145b60b9a4c2d88dd2224695b82aa>:0 
  at RuntimeUnityEditor.Core.RuntimeUnityEditorCore.AddFeatureInt (RuntimeUnityEditor.Core.IFeature feature) [0x00000] in <eec145b60b9a4c2d88dd2224695b82aa>:0 
  at RuntimeUnityEditor.Core.RuntimeUnityEditorCore..ctor (RuntimeUnityEditor.Core.Utils.Abstractions.InitSettings initSettings) [0x000ce] in <eec145b60b9a4c2d88dd2224695b82aa>:0 

Version 3 works just fine.