Glampi42 / ONI-Mods

My mods for the game Oxygen Not Included
MIT License
5 stars 1 forks source link

BUG!!! #11

Closed Lundalex closed 2 months ago

Lundalex commented 2 months ago

Happened when I just added a chain (clicked on the chain button in the UI, then clicked on some build tasks tasks (1st, 2st, 3st, crashed on 4st)

NullReferenceException: Object reference not set to an instance of an object at ChainErrand.ChainedErrandPacks.DiggablePack.GetChoreFromErrand (Diggable errand) [0x00000] in <3c925cda528e4e90aa8113b34f9bda07>:0 at ChainErrand.ChainedErrandPacks.AChainedErrandPack2[ErrandType,ChainedErrandType].GetChoreFromErrand (System.Object errand) [0x00000] in <3c925cda528e4e90aa8113b34f9bda07>:0 at ChainErrand.ChainHierarchy.ChainedErrand.ConfigureChorePrecondition (Chore chore) [0x0000f] in <3c925cda528e4e90aa8113b34f9bda07>:0 at ChainErrand.ChainHierarchy.Chain.CreateOrExpandLink (System.Int32 linkNumber, System.Boolean insertNewLink, System.Collections.Generic.Dictionary2[TKey,TValue] linkErrands, System.Boolean forceInsertAtLinkNumber) [0x00152] in <3c925cda528e4e90aa8113b34f9bda07>:0 at ChainErrand.ChainToolUtils.CreateOrExpandLink (System.Collections.Generic.Dictionary`2[TKey,TValue] linkErrands) [0x0003b] in <3c925cda528e4e90aa8113b34f9bda07>:0 at ChainErrand.ChainTool.OnDragComplete (UnityEngine.Vector3 cursorDown, UnityEngine.Vector3 cursorUp) [0x00147] in <3c925cda528e4e90aa8113b34f9bda07>:0 at DragTool.OnLeftClickUp (UnityEngine.Vector3 cursor_pos) [0x00175] in <93e6d51e7c504f4483a782aaaf7248c3>:0 at PlayerController.OnKeyUp (KButtonEvent e) [0x000ab] in <93e6d51e7c504f4483a782aaaf7248c3>:0 at KInputHandler.HandleKeyUp (KButtonEvent e) [0x0001c] in <0a61a0e7beaf44b6b425814476821935>:0 at KInputHandler.HandleKeyUp (KButtonEvent e) [0x0006f] in <0a61a0e7beaf44b6b425814476821935>:0 at KInputHandler.HandleEvent (KInputEvent e) [0x0001e] in <0a61a0e7beaf44b6b425814476821935>:0 at KInputController.Dispatch () [0x0001c] in <0a61a0e7beaf44b6b425814476821935>:0 at KInputManager.Dispatch () [0x00017] in <0a61a0e7beaf44b6b425814476821935>:0 at KInputManager.Update () [0x0002e] in <0a61a0e7beaf44b6b425814476821935>:0 at GameInputManager.Update () [0x000dc] in <0a61a0e7beaf44b6b425814476821935>:0 at Global.Update () [0x0005c] in <93e6d51e7c504f4483a782aaaf7248c3>:0

Glampi42 commented 2 months ago

Could you please send a screenshot of the errand that causes the crash when added to a chain? Also, this is just the crash error message, not the full log. I would like to have the whole Player.log file which is located at .../User/AppData/LocalLow/Klei/OxygenNotIncluded/Player.log

Lundalex commented 2 months ago

My guees is that the bug occurs when I click on an unreachable task. In the first screenshot, this is the case, and the game crashes. In the second screenshot, I can add the digging task to the chain without issues. Crash: Skärmbild 2024-08-05 211410 Works: Skärmbild 2024-08-05 211325 Crash player.log: Player.log

Glampi42 commented 2 months ago

Fixed in v1.0.4.0.