I am trying to modify the model for a door. I made the changes I wanted in Blender, exported it into an OBJ (also tried FBX but that gave me the same problem), set it up in Unity and created a dfmod. However, when I either start a new game or load a save in an area with that door present, the screen freezes up in some way. I have encountered a black screen with only messages and the interaction icon appearing after loading a save. When I started a new game, I appeared to be stuck in the void.
I looked through output_log.txt and found this error:
Code: Select all
NullReferenceException: Object reference not set to an instance of an object
at DaggerfallWorkshop.Utility.RDBLayout.AddActionDoor (DaggerfallWorkshop.DaggerfallUnity dfUnity, UInt32 modelId, RdbObject obj, UnityEngine.Transform parent, UInt64 loadID) [0x00000] in <filename unknown>:0
at DaggerfallWorkshop.Utility.RDBLayout.AddActionDoors (UnityEngine.GameObject go, System.Collections.Generic.Dictionary`2 actionLinkDict, DaggerfallConnect.DFBlock& blockData, System.Int32[] textureTable, Boolean serialize) [0x00000] in <filename unknown>:0
at DaggerfallWorkshop.Utility.GameObjectHelper.CreateRDBBlockGameObject (System.String blockName, System.Int32[] textureTable, Boolean allowExitDoors, DungeonTypes dungeonType, Single monsterPower, Int32 monsterVariance, Int32 seed, DaggerfallWorkshop.DaggerfallRDBBlock cloneFrom, Boolean importEnemies) [0x00000] in <filename unknown>:0
at DaggerfallWorkshop.DaggerfallDungeon.LayoutDungeon (DaggerfallConnect.DFLocation& location, Boolean importEnemies) [0x00000] in <filename unknown>:0
at DaggerfallWorkshop.DaggerfallDungeon.SetDungeon (DFLocation location, Boolean importEnemies) [0x00000] in <filename unknown>:0
at DaggerfallWorkshop.Utility.GameObjectHelper.CreateDaggerfallDungeonGameObject (DFLocation location, UnityEngine.Transform parent, Boolean importEnemies) [0x00000] in <filename unknown>:0
at DaggerfallWorkshop.Game.PlayerEnterExit.StartDungeonInterior (DFLocation location, Boolean preferEnterMarker, Boolean importEnemies) [0x00000] in <filename unknown>:0
at DaggerfallWorkshop.Game.PlayerEnterExit+<Respawner>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0
https://github.com/XJDHDR/xjdhdr-random-code/tree/master/Random%20stuff%20uploaded%20for%20sharing%20online/Daggerfall%20Unity%20door%20problem%20files%20for%20forum
The door model I'm replacing is the secret door you open to leave the starting area of Privateer's Hold. So you can reproduce this by either loading a save made in PH or starting a new game.
Is there something wrong with my model or did I just find a bug? Help will be greatly appreciated. Thanks!
Here are the complete contents of output_log.txt if it helps. The error above starts at line 2539:
https://pastebin.com/Lv1Jy8KS