Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Enemy or Decoration number limit causes error?

A topic by Scruffy86 created 24 days ago Views: 117 Replies: 3
Viewing posts 1 to 3
(1 edit)

I'm wondering if there is a known limit for enemies or decorations. I have 85 enemy types and 109 decorations. When I tried to add another enemy or another decoration into the enemy and decoration editor, tthe game crashes and deletes the map I have open. It seems like this is because the editor has reached the enemy and decoration limit and it causes a problem with memory? Or is there likely some other problem happening?

*UPDATE* It seems like it might be a problem with the editor, maybe there is no actual entity limit, but perhaps a sprite limit in the editor? Because if I manually rename the sprites Entity0-Entity3 and place them directly into the Sprites\Decorations folder, bypassing the decoration editor,  the editor accepts them and does not crash.

> it crashes
> Log is not included
Ok.

Here is the log: 


Source: System.Drawing

Reason: Parameter is not valid.

Stack trace:    at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)

   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)

   at EasyFPSEditor15.MapPictureLayer..ctor(Int32 cellSize)

   at EasyFPSEditor15.MapWindow.Clear()

   at EasyFPSEditor15.Map.Clear()

   at EasyFPSEditor15.Map.Load(String path)

   at EasyFPSEditor15.Map.Reload()

   at EasyFPSEditor15.Editors.DecorationsEditor.DecorationsEditorFormClosing(Object sender, FormClosingEventArgs e)

   at System.Windows.Forms.Form.OnFormClosing(FormClosingEventArgs e)

   at System.Windows.Forms.Form.WmClose(Message& m)

   at System.Windows.Forms.Form.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)