Forum Discussion

Andretti9's avatar
Andretti9
Copper Contributor
Apr 19, 2024

Duck Game Crashes

I am hoping that someone here might be able to steer me in the right direction. I have posted in the game's forum, but I am not receiving any support there. I have a new laptop running Windows 11. We are getting frequent game crashes while playing Duck Game. I am wondering if it is a compatibility issue as the game is older. Any help would be GREATLY appreciated. Here is our most recent crash report:

 

System.InvalidOperationException: An unexpected error has occurred.
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.DrawUserIndexedPrimitives[T](PrimitiveType primitiveType, T[] vertexData, Int32 vertexOffset, Int32 numVertices, Array indexData, Int32 indexOffset, Int32 primitiveCount, VertexDeclaration vertexDeclaration, _D3DFORMAT indexFormat)
at DuckGame.MTSpriteBatcher.FlushVertexArray(Int32 start, Int32 end) in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\Render\SpriteBatcher.cs:line 709
at DuckGame.MTSpriteBatcher.DrawBatch(SpriteSortMode sortMode) in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\Render\SpriteBatcher.cs:line 485
at DuckGame.MTSpriteBatch.End() in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\Render\MTSpriteBatch.cs:line 151
at DuckGame.Layer.End(Boolean transparent, Boolean isTargetDraw) in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\Layer.cs:line 897
at DuckGame.Layer.Draw(Boolean transparent, Boolean isTargetDraw) in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\Layer.cs:line 1154
at DuckGame.LayerCore.DrawLayers() in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\Layer.cs:line 381
at DuckGame.Level.DoDraw() in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\Level.cs:line 1081
at DuckGame.Level.DrawCurrentLevel() in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\Level.cs:line 198
at DuckGame.MonoMain.RunDraw(GameTime gameTime) in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\MonoMain.cs:line 2524
at DuckGame.MonoMain.Draw(GameTime gameTime) in C:\gamedev\duckgame_current_steam\duckgame\DuckGame\src\MonoTime\MonoMain.cs:line 2246
Last 8 Lines of Console Output:
Creating ghost (1442)
@received Activating NMItemSpawned (2044->2045)((0)(H)LawMac,76561198093753884)(16)
@received Activating NMFireGun (2045->2046)((0)(H)LawMac,76561198093753884)(16)
@sent Sent NMKillDuck (421)((0)(H)LawMac,76561198093753884)(16)
Creating ghost (1443)
@received Activating NMItemSpawned (2046->2047)((0)(H)LawMac,76561198093753884)(16)
Creating ghost (8879)
Creating ghost (8880)

Date: 04/19/2024 03:58:56
Version: 1.1.7717.16376
Platform: Windows 10 (Steam Build 8782838)(SFX)
Online: 1 (C,0.01582697)

Mods: nomods
Time Played: 00:39:02 (140607)
Special Code: men20
Resolution: (A)1920x1080 (G)1920x1080 (Fullscreen(W))(RF 140420)
Level: Content/levels/deathmatch/office01_8.lev
Command Line:

3 Replies

  • ayaans's avatar
    ayaans
    Copper Contributor

    It sounds frustrating to deal with those crashes, especially since Duck Game is an older title that might have compatibility issues with Windows 11. You could try running the game in compatibility mode for Windows 10 or earlier versions and see if that helps. Also, updating your graphics drivers or reinstalling DirectX might resolve the issue.

    I came across some helpful discussions on All Yono Games that might offer additional solutions for game crashes. It’s worth checking out. Hope you get it sorted soon!

Resources