Oxygen Not Included

Oxygen Not Included

Translate Fix 翻译修正
DarkEviL 25 Nov, 2024 @ 9:56pm
Game Crash
I enabled this mod and the game crashed on loading with this information:

Exception in RegisterBuilding for type PressureDoorConfig from Assembly-CSharp
System.TypeInitializationException: The type initializer for 'TranslateFixMod.MockRoomConstraints' threw an exception. ---> System.MissingMethodException: Method not found: void .Constraint..ctor(System.Func`2<KPrefabID, bool>,System.Func`2<Room, bool>,int,string,string,System.Collections.Generic.List`1<RoomConstraints/Constraint>)
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Reflection.RuntimeFieldInfo.GetValueInternal(System.Reflection.RuntimeFieldInfo,object)
at System.Reflection.RuntimeFieldInfo.GetValue (System.Object obj) [0x0005e] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
at TranslateFixMod.TestTranslatePath.fixRoomTranslate () [0x0008f] in <8aece4a1c6ba44ebb18d522599da97ad>:0
at TranslateFixMod.TestTranslatePath.Postfix () [0x0007d] in <8aece4a1c6ba44ebb18d522599da97ad>:0
at (wrapper dynamic-method) PressureDoorConfig.PressureDoorConfig.CreateBuildingDef_Patch2(PressureDoorConfig)
at (wrapper dynamic-method) BuildingConfigManager.BuildingConfigManager.RegisterBuilding_Patch0(BuildingConfigManager,IBuildingConfig)
at (wrapper dynamic-method) GeneratedBuildings.GeneratedBuildings.LoadGeneratedBuildings_Patch65(System.Collections.Generic.List`1<System.Type>)

at UnityEngine.Debug.LogError (System.Object message, UnityEngine.Object context) [0x00000] in <82f243aab18c4f32918da2df41974365>:0
at Debug.LogError (System.Object obj, UnityEngine.Object context) [0x00000] in <5dfe0ae6d45544628b5ae53433ea03d4>:0
at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <5dfe0ae6d45544628b5ae53433ea03d4>:0
at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <5dfe0ae6d45544628b5ae53433ea03d4>:0
at GeneratedBuildings.GeneratedBuildings.LoadGeneratedBuildings_Patch65 (System.Collections.Generic.List`1[T] ) [0x00000] in <a68254e14f8f4e0b99360e84d2e9b774>:0
at LegacyModMain.LoadBuildings (System.Collections.Generic.List`1[T] types) [0x00000] in <a68254e14f8f4e0b99360e84d2e9b774>:0
at LegacyModMain.Load () [0x00000] in <a68254e14f8f4e0b99360e84d2e9b774>:0
at Assets.Assets.CreatePrefabs_Patch2 (Assets ) [0x00000] in <a68254e14f8f4e0b99360e84d2e9b774>:0
at Assets.Assets.OnPrefabInit_Patch6 (Assets ) [0x00000] in <a68254e14f8f4e0b99360e84d2e9b774>:0
at KMonoBehaviour.InitializeComponent () [0x00000] in <5dfe0ae6d45544628b5ae53433ea03d4>:0
at KMonoBehaviour.Awake () [0x00000] in <5dfe0ae6d45544628b5ae53433ea03d4>:0
at UnityEngine.Object.Internal_InstantiateSingleWithParent_Injected (UnityEngine.Object , UnityEngine.Transform , UnityEngine.Vector3& , UnityEngine.Quaternion& ) [0x00000] in <82f243aab18c4f32918da2df41974365>:0
at UnityEngine.Object.Internal_InstantiateSingleWithParent (UnityEngine.Object data, UnityEngine.Transform parent, UnityEngine.Vector3 pos, UnityEngine.Quaternion rot) [0x00000] in <82f243aab18c4f32918da2df41974365>:0
at UnityEngine.Object.Instantiate (UnityEngine.Object original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.Transform parent) [0x00000] in <82f243aab18c4f32918da2df41974365>:0
at UnityEngine.Object.Instantiate[T] (T original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.Transform parent) [0x00000] in <82f243aab18c4f32918da2df41974365>: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 <5dfe0ae6d45544628b5ae53433ea03d4>:0
at Util.KInstantiate (UnityEngine.GameObject original, UnityEngine.GameObject parent, System.String name) [0x00000] in <5dfe0ae6d45544628b5ae53433ea03d4>:0
at LaunchInitializer.Update () [0x00000] in <a68254e14f8f4e0b99360e84d2e9b774>:0
Build: U53-643502-SC