javisar/ONI-Modloader-Mods

Crash on load: Cloud Save patch breaks configuration

Opened this issue · 0 comments

Error in CustomGameSettings(Clone).CustomGameSettings.OnPrefabInit
System.TypeInitializationException: The type initializer for 'CustomWorldSize.CustomWorldSize' threw an exception. ---> System.MissingMethodException: void Klei.CustomSettings.ToggleSettingConfig..ctor(string,string,string,Klei.CustomSettings.SettingLevel,Klei.CustomSettings.SettingLevel,string,string,int,int,bool)
--- End of inner exception stack trace ---
at (wrapper dynamic-method) CustomGameSettings.AddSettingConfig_Patch1(object,Klei.CustomSettings.SettingConfig)
at CustomGameSettings.OnPrefabInit () [0x00006] in <11c39c590d2042eda80ba0afaad84878>:0
at KMonoBehaviour.InitializeComponent () [0x00068] in <823c73e1dded498b9eec52a50d2e15ee>:0

at UnityEngine.Debug.LogError (System.Object message, UnityEngine.Object context) [0x00000] in :0
at Debug.LogError (System.Object obj, UnityEngine.Object context) [0x00000] in <823c73e1dded498b9eec52a50d2e15ee>:0
at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <823c73e1dded498b9eec52a50d2e15ee>:0
at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <823c73e1dded498b9eec52a50d2e15ee>:0
at KMonoBehaviour.InitializeComponent () [0x00000] in <823c73e1dded498b9eec52a50d2e15ee>:0
at KMonoBehaviour.Awake () [0x00000] in <823c73e1dded498b9eec52a50d2e15ee>:0
at UnityEngine.Object.Internal_InstantiateSingleWithParent_Injected (UnityEngine.Object data, UnityEngine.Transform parent, UnityEngine.Vector3& pos, UnityEngine.Quaternion& rot) [0x00000] in :0
at UnityEngine.Object.Internal_InstantiateSingleWithParent (UnityEngine.Object data, UnityEngine.Transform parent, UnityEngine.Vector3 pos, UnityEngine.Quaternion rot) [0x00000] in :0
at UnityEngine.Object.Instantiate (UnityEngine.Object original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.Transform parent) [0x00000] in :0
at UnityEngine.Object.Instantiate[T] (T original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.Transform parent) [0x00000] in :0
at Util.KInstantiate (UnityEngine.GameObject original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.GameObject parent, System.String name, System.Boolean initialize_id, System.Int32 gameLayer) [0x00000] in <823c73e1dded498b9eec52a50d2e15ee>:0
at Util.KInstantiate (UnityEngine.GameObject original, UnityEngine.GameObject parent, System.String name) [0x00000] in <823c73e1dded498b9eec52a50d2e15ee>:0
at LaunchInitializer.Update () [0x00000] in <11c39c590d2042eda80ba0afaad84878>:0

public static SettingConfig UseCustomWorld = new ToggleSettingConfig(UseCustomWorldSize,