Duck Game

Duck Game

查看统计:
Mettymagic 2017 年 9 月 20 日 下午 9:11
Game crashes whenever controller disconnects
I have a very loose Xbox One controller cord which sometimes disconnects and reconnects itself very quickly. However, in this game it's an issue, because whenever the controller disconnects the game freezes then crashes. It's odd, because the error log says I'm using Windows 8 when I'm using Windows 10. Maybe this is the cause?

Error Log:

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at DuckGame.Editor.UndoCommand() in E:\gamedev\DuckGame_Steam\duckgame\DuckGame\src\MonoTime\LevelEditor\Editor.cs:line 476
at DuckGame.Editor.Update() in E:\gamedev\DuckGame_Steam\duckgame\DuckGame\src\MonoTime\LevelEditor\Editor.cs:line 1720
at DuckGame.DuckGameEditor.Update() in E:\gamedev\DuckGame_Steam\duckgame\DuckGame\src\DuckGame\Levels\DuckGameEditor.cs:line 24
at DuckGame.Level.DoUpdate() in E:\gamedev\DuckGame_Steam\duckgame\DuckGame\src\MonoTime\Level.cs:line 962
at DuckGame.Level.UpdateCurrentLevel() in E:\gamedev\DuckGame_Steam\duckgame\DuckGame\src\MonoTime\Level.cs:line 153
at DuckGame.MonoMain.RunUpdate(GameTime gameTime) in E:\gamedev\DuckGame_Steam\duckgame\DuckGame\src\MonoTime\MonoMain.cs:line 1187
at DuckGame.MonoMain.Update(GameTime gameTime) in E:\gamedev\DuckGame_Steam\duckgame\DuckGame\src\MonoTime\MonoMain.cs:line 885
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at DuckGame.Program.DoMain(String[] args) in E:\gamedev\DuckGame_Steam\duckgame\DuckGame\src\Program.cs:line 121
at DuckGame.Program.Main(String[] args) in E:\gamedev\DuckGame_Steam\duckgame\DuckGame\src\Program.cs:line 36

Date: 09/17/2017
Version: 1.0.6451.27778
Platform: Windows 8
Online: FALSE
Editor: True
Time Played: 00:01:23
Special Code: DROPPED ITEM
Code: 12345
Adapter Resolution: 1280x720
Game Resolution: 1920x1080
Fullscreen: True
Device: False
Level: DuckGame.DuckGameEditor
Mods: 0 (0 enabled)
Command Line:
发帖日期: 2017 年 9 月 20 日 下午 9:11
回复数: 0