Scrolling Game Development Kit Forum
Welcome, Guest. Please login or register.
2010-09-08, 07:05:15 PM

Login with username, password and session length
Search:     Advanced search
8920 Posts in 1007 Topics by 168 Members
Latest Member: mogzdogz
* Home Help Search Login Register
+  Scrolling Game Development Kit Forum
|-+  SGDK Version 2
| |-+  Help, Errors, FAQ
| | |-+  SGDK2 map editor crashing issues
« previous next »
Pages: [1] Print
Author Topic: SGDK2 map editor crashing issues  (Read 241 times)
durnurd
Lead Lemming
Expert
Fanatic
*****
Posts: 1155


Games completed so far: 0

durnurd@hotmail.com
View Profile WWW
« on: 2010-04-17, 09:48:15 AM »

I know you just said you wanted to release SGDK2.  BUT:

  • There's nothing stopping a user from creating a layer of size 0,0.  Opening the editor for that layer causes the app to repeatedly throw a division-by-zero error and you can't continue.
  • There's no way to re-make the Designer Background layer.  You can't specify nothing for the tileset.
  • On my machine at least, it crashes whenever you try to open a layer editor when another one is already open (or when you try to open an animation preview when a layer editor is open).  Essentially, only one at a time, or it throws the following two errors:

    System.NullReferenceException: Object reference not set to an instance of an object.
       at OpenTK.GLControl.MakeCurrent()
       at SGDK2.Display.OnResize(EventArgs e)
       at ...

    System.ComponentModel.Win32Exception: Error creating window handle.
       at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
       at System.Windows.Forms.Control.CreateHandle()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at OpenTK.GLControl.ValidateState()
       at ...

On these ones you can continue, just close the other window first and you can re-open the new one and it works fine.  But it's probably something that should be handled.
Logged

Edward Dassmesser
bluemonkmn
SGDK Author
Administrator
Fanatic
*****
Posts: 2146


2678251 BlueMonkMN@gmail.com
View Profile WWW Email
« Reply #1 on: 2010-04-25, 11:48:12 AM »

I can't get any error when creating a layer of size 0,0.  Can you identify the line of code that's generating the error?
Logged

durnurd
Lead Lemming
Expert
Fanatic
*****
Posts: 1155


Games completed so far: 0

durnurd@hotmail.com
View Profile WWW
« Reply #2 on: 2010-04-26, 05:54:17 PM »

After more testing, I found that it only crashes when the layer size is 0,0 and the virtual size is not
Logged

Edward Dassmesser
bluemonkmn
SGDK Author
Administrator
Fanatic
*****
Posts: 2146


2678251 BlueMonkMN@gmail.com
View Profile WWW Email
« Reply #3 on: 2010-04-27, 05:48:48 AM »

Thanks, that clears that up.  I'll just add an error message to prevent creating layers where SizeInTiles is zero.
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!