我想保存一个游戏,但是每次保存的时候,游戏都会卡住。画面就会冻结。我可以按escape键解冻,游戏就继续。然而,保存并没有注册。当我回到开始菜单并选择我试图保存的磁贴时,游戏完全冻结,即使它看起来是空的。有人知道是什么问题吗?
7/05/2020 16:07:50 / Save[0] bag missing???
7/05/2020 16:09:09 / Save[0] Error during SaveInfos : Mono.Data.SqliteClient.SqliteSyntaxException: 43 values for 40 columns
at Mono.Data.SqliteClient.SqliteCommand.GetNextStatement (System.IntPtr pzStart, System.IntPtr& pzTail, System.IntPtr& pStmt) [0x00000] in <00000000000000000000000000000000>:0
at Mono.Data.SqliteClient.SqliteCommand.ExecuteReader (System.Data.CommandBehavior behavior, System.Boolean want_results, System.Int32& rows_affected) [0x00000] in <00000000000000000000000000000000>:0
at Mono.Data.SqliteClient.SqliteCommand.ExecuteNonQuery () [0x00000] in <00000000000000000000000000000000>:0
at DBManager.SaveInfos (CTEnum+SaveTableDataKind _kind, System.Int32 _num) [0x00000] in <00000000000000000000000000000000>:0
at DataMgr.SaveGameData () [0x00000] in <00000000000000000000000000000000>:0
at SaveNLoad.SaveSlot () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.GUI+WindowFunction.Invoke (System.Int32 id) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Events.InvokableCall`1[T1].Invoke (T1 args0) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0
at System.Reflection.EventInfo+AddEventAdapter.Invoke (System.Object _this, System.Delegate dele) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.EventSystems.StandaloneInputModule.ReleaseMouse (UnityEngine.EventSystems.PointerEventData pointerEvent, UnityEngine.GameObject currentOverGo) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.EventSystems.StandaloneInputModule.ProcessMousePress (UnityEngine.EventSystems.PointerInputModule+MouseButtonEventData data) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent (System.Int32 id) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.EventSystems.EventSystem.Update () [0x00000] in <00000000000000000000000000000000>:0
7/05/2020 16:09:28 / Save[1] Error during SaveInfos : Mono.Data.SqliteClient.SqliteSyntaxException: 43 values for 40 columns
at Mono.Data.SqliteClient.SqliteCommand.GetNextStatement (System.IntPtr pzStart, System.IntPtr& pzTail, System.IntPtr& pStmt) [0x00000] in <00000000000000000000000000000000>:0
at Mono.Data.SqliteClient.SqliteCommand.ExecuteReader (System.Data.CommandBehavior behavior, System.Boolean want_results, System.Int32& rows_affected) [0x00000] in <00000000000000000000000000000000>:0
at Mono.Data.SqliteClient.SqliteCommand.ExecuteNonQuery () [0x00000] in <00000000000000000000000000000000>:0
at DBManager.SaveInfos (CTEnum+SaveTableDataKind _kind, System.Int32 _num) [0x00000] in <00000000000000000000000000000000>:0
at DataMgr.SaveGameData () [0x00000] in <00000000000000000000000000000000>:0
at SaveNLoad.SaveSlot () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.GUI+WindowFunction.Invoke (System.Int32 id) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Events.InvokableCall`1[T1].Invoke (T1 args0) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0
at System.Reflection.EventInfo+AddEventAdapter.Invoke (System.Object _this, System.Delegate dele) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.EventSystems.StandaloneInputModule.ReleaseMouse (UnityEngine.EventSystems.PointerEventData pointerEvent, UnityEngine.GameObject currentOverGo) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.EventSystems.StandaloneInputModule.ProcessMousePress (UnityEngine.EventSystems.PointerInputModule+MouseButtonEventData data) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent (System.Int32 id) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.EventSystems.EventSystem.Update () [0x00000] in <00000000000000000000000000000000>:0
我不是 sql 专家,但这个错误似乎确实描述了你试图保存更多的值,而不是你的变量。
7/05/2020 16:09:09 / Save[0] Error during SaveInfos : Mono.Data.SqliteClient.SqliteSyntaxException:
40列43个数值