RavenDreamer / ONIMods

Collection of Mods I've written for Klei's Oxygen Not Included
GNU General Public License v3.0
2 stars 3 forks source link

FluidShipping causes game to crash on startup #1

Closed gbakeman closed 4 years ago

gbakeman commented 4 years ago

Game version: RP-383949 ModLoader: v0.5.2

Using the November 29 build here on the Steam Workshop, my game is crashing when I first start it. Here is what I'm finding in the log:

[WARNING] Missing Anim: [HashedString]. You may have to run Collect Anim on the Assets prefab NullReferenceException: Object reference not set to an instance of an object at KAnimControllerBase.set_AnimFiles (KAnimFile[]) <0x00052> at BuildingLoader.Add2DComponents (BuildingDef,UnityEngine.GameObject,string,bool,int) <0x001b0> at BuildingLoader.CreateBuildingComplete (UnityEngine.GameObject,BuildingDef) <0x003e7> at BuildingConfigManager.RegisterBuilding (IBuildingConfig) <0x0026f> at (wrapper dynamic-method) GeneratedBuildings.LoadGeneratedBuildings_Patch1 (System.Collections.Generic.List1<System.Type>) <0x002cf> at LegacyModMain.LoadBuildings (System.Collections.Generic.List1) <0x000c4> at LegacyModMain.Load () <0x0013a> at Assets.CreatePrefabs () <0x00018> at Assets.OnPrefabInit () <0x00d51> at KMonoBehaviour.InitializeComponent () <0x00195>

Rethrow as Exception: Error in GameAssets(Clone).Assets.OnPrefabInit at KMonoBehaviour.InitializeComponent () [0x00000] in :0 at KMonoBehaviour.Awake () [0x00000] in :0 UnityEngine.Object:Internal_InstantiateSingleWithParent_Injected(Object, Transform, Vector3&, Quaternion&) UnityEngine.Object:Internal_InstantiateSingleWithParent(Object, Transform, Vector3, Quaternion) UnityEngine.Object:Instantiate(Object, Vector3, Quaternion, Transform) UnityEngine.Object:Instantiate(GameObject, Vector3, Quaternion, Transform) Util:KInstantiate(GameObject, Vector3, Quaternion, GameObject, String, Boolean, Int32) Util:KInstantiate(GameObject, GameObject, String) LaunchInitializer:Update()

(Filename: Line: -1)

Removing the mod from my mods folder allows the game to startup normally. The only other mod I'm using right now is the More Canister Fillers mod.

gbakeman commented 4 years ago

Sorry, it looks like this was due to some modding confusion on my part! I thought mods needed to go in the [GameDirectory]\Mods\ folder, which is where I had installed this mod originally. I moved it to Documents\Klei\OxygenNotIncluded\mods\local\, enabled it in the mods menu, and everything is working fine now.