Scene became null instead of being removed.

Galdon2004

  • *
  • Posts: 313
I am using Stencyl 3.2 currently. The problem I encountered is that I went to make a new folder for scenes, and accidentally clicked on new scene instead. When I clicked to remove the new scene however, I got this error message:

Unexpected problem on thread AWT-EventQueue-0: null
java.lang.NullPointerException
   at stencyl.sw.editors.game.atlas.AtlasSceneManager.initSceneModel(AtlasSceneManager.java:504)
   at stencyl.sw.editors.game.atlas.AtlasSceneManager.initAtlasSceneMapping(AtlasSceneManager.java:490)
   at stencyl.sw.editors.game.atlas.AtlasSceneManager.<init>(AtlasSceneManager.java:94)
   at stencyl.sw.editors.game.atlas.AtlasPage.createScenesPage(AtlasPage.java:276)
   at stencyl.sw.editors.game.atlas.AtlasPage.<init>(AtlasPage.java:96)
   at stencyl.sw.editors.game.GameSettingsDialog.load(GameSettingsDialog.java:169)
   at stencyl.sw.app.tasks.OpenGameTask$3.run(OpenGameTask.java:314)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$000(Unknown Source)
   at java.awt.EventQueue$1.run(Unknown Source)
   at java.awt.EventQueue$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)

And now it gives this error when I attempt to either open or remove the scene, and my game no longer compiles.


Edit: I found a solution; going into the scenes folder and copying the scene files from another scene, then renaming those files to one number higher than the current highest scene numbers, then pasting it back into the scenes folder causes the scene to go from null to a duplicate of the scene copied, which can then be removed.

Edit 2: Now in the same game, I got another null error during compiling,  but it does not cause the compiling to fail. Not sure if it is related, but given it's the same day as the first random null error, it seems likely.

Level:     ERROR
When:      2015-05-31 19:02:13
From:      root

Unexpected problem on thread pool-7-thread-3: null

Throwable: java.lang.NullPointerException
   at stencyl.sw.editors.snippet.designer.Definition.parseForHaxe(Definition.java:1131)
   at stencyl.sw.editors.snippet.designer.Definition.parseCode(Definition.java:986)
   at stencyl.sw.editors.snippet.designer.Block.toCode(Block.java:2126)
   at stencyl.sw.editors.snippet.designer.Group.toJava(Group.java:245)
   at stencyl.sw.editors.snippet.designer.EditArea.toCode(EditArea.java:654)
   at stencyl.sw.editors.snippet.designer.EditArea.XMLToCode(EditArea.java:712)
   at stencyl.sw.io.write.resource.SnippetsWriter.convert(SnippetsWriter.java:840)
   at stencyl.sw.io.write.resource.HXWriter.compileBehavior(HXWriter.java:2001)
   at stencyl.sw.io.write.resource.HXWriter.access$000(HXWriter.java:75)
   at stencyl.sw.io.write.resource.HXWriter$1.run(HXWriter.java:996)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

« Last Edit: May 31, 2015, 05:09:45 pm by Galdon2004 »