error in testing due to collision

jjessicavvu

  • Posts: 2
i'm completely new to stencyl and i legitimately don't know what i'm doing. when i changed the collision bounds from square to polygon collisions for my tiles it wouldn't let me test the game? it came up with an error - when i changed it back to square collision it worked so i assume it has something to do with polygon collision??

java.lang.RuntimeException: java.lang.NullPointerException
   at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:74)
   at stencyl.sw.app.tasks.SaveGameTask.done(SaveGameTask.java:58)
   at javax.swing.SwingWorker$5.run(SwingWorker.java:737)
   at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832)
   at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
   at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842)
   at javax.swing.Timer.fireActionPerformed(Timer.java:313)
   at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
   at java.awt.EventQueue.access$500(EventQueue.java:97)
   at java.awt.EventQueue$3.run(EventQueue.java:709)
   at java.awt.EventQueue$3.run(EventQueue.java:703)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.NullPointerException
   at stencyl.core.lib.scene.TileEdgeGraph.takeNextPoint(TileEdgeGraph.java:75)
   at stencyl.core.lib.scene.SceneTileCombiner.processScene(SceneTileCombiner.java:288)
   at stencyl.sw.io.write.resource.SceneWriter.writeXML(SceneWriter.java:556)
   at stencyl.sw.io.write.resource.SceneWriter.write(SceneWriter.java:80)
   at stencyl.sw.editors.scene.SceneTab.save(SceneTab.java:278)
   at stencyl.sw.app.doc.Workspace.saveResource(Workspace.java:1828)
   at stencyl.sw.app.doc.Workspace.saveResourceToMemory(Workspace.java:1871)
   at stencyl.sw.io.write.resource.ScenesWriter.write(ScenesWriter.java:138)
   at stencyl.sw.io.write.MasterWriter.saveGame(MasterWriter.java:93)
   at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:35)
   at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:15)
   at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at javax.swing.SwingWorker.run(SwingWorker.java:334)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   at java.lang.Thread.run(Thread.java:748)

Justin

  • *
  • Posts: 4528
Looks like an uncommon bug. If you'd like to make it easier to find and fix the bug, here are some things you could provide to make it faster.

1. Is this something you can reproduce? (You may want to save a backup of your game before trying to do so.) If so, an exact list of steps taken to reproduce the bug.
2. One of the following two things:
  - Your whole Stencyl project. This would be easiest. You can send me a link via PM or send the game on Discord.
  - Screenshot of your scene, your tileset with collision shape overlays turned on, and the collision shape editor with the new shape you're applying to your tile. Presumably, I could reproduce the issue with this information.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)