Jump to content

使用沙盒填充功能,游戏崩溃


PrometheusLi
  • Branch: Live Branch Version: Windows Pending

打开游戏之后不开启任何mod,点击沙盒工具的填充功能就直接崩溃

Snipaste_2025-05-10_00-48-37.png


Steps to Reproduce

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

System.Collections.Generic.List'1[T].get_Item (System.Int32 index) (位于 <8ce0bd04a7a04b4b9395538239d3fdd8>:0)
SandboxFloodTool.PaintCell (System.Int32 cell) (位于 <5375d36347d34bc0b1ea487bdcad48e4>:0)
SandboxFloodTool.<OnPrefabInit>b__6_1 (System.Collections.Generic.HashSet'1[T] cells) (位于 <5375d36347d34bc0b1ea487bdcad48e4>:0)
FloodTool.OnLeftClickDown (UnityEngine.Vector3 cursor_pos) (<5375d36347d34bc0b1ea487bdcad48e4>: 0)
SandboxFloodTool.OnLeftClickDown (UnityEngine.Vector3 cursor_pos) ) (<5375d36347d34bc0b1ea487bdcad48e4>:0)
PlayerController.OnKeyDown (KButtonEvent e) (<5375d36347d34bc0b1ea487bdcad48e4>:0)
KInputHandler.HandleKeyDown (KButtonEvent e) ) <1f583ce96a48430ba66629e5477a0517>:0)
KInputHandler.HandleKeyDown (KButtonEvent e) )<1f583ce96a48430ba66629e5477a0517>:0)
KInputHandler.HandleEvent (KInputEvent e) (at <1f583ce96a48430ba66629e5477a0517>: 0)
KInputController.Dispatch () (at <1f583ce96a48430ba66629e5477a0517>:0)
KInputManager.Dispatch () (at <1f583ce96a48430ba66629e5477a0517>:0)
KInputManager.Update () (at <1f583ce96a48430ba66629e5477a0517>:0)
GameInputManager.Update () (at <1f583ce96a48430ba66629e5477a0517>:0)
Global.Update ()(位于 <5375d36347d34bc0b1ea487bdcad48e4>:0)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
LogCatcher:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

内部版本: U55-663500-SCR




User Feedback


Delete your kplayerprefs.yaml in Documents/Klei/OxygenNotIncluded/ to fix it. It's crashing because the last element you painted is from a mod.

  • Like 2

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...