Bug Issue: Unexpected error when modifying two tilesets at once


Pages: 1

letmethink

  • Master Stencyler
  • *
January 27, 2016, 01:25:57 pm
Open two tilesets, and in one of the tilesets have a tile which is set to a custom collision set. In the other tileset, remove the tile and save it. Then go to the other open tileset and use control + r to reset it. If you click on the tile which had the custom collision tile on it, you will see that it now has no collision on it.

Upon attempting to run the scene now, you will get this issue whenever you attempt to run a scene with this tile in (and at other points sometimes)

Code: [Select]
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:56)
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:756)
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:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
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.sw.io.write.resource.SceneWriter.processScene(SceneWriter.java:1107)
at stencyl.sw.io.write.resource.SceneWriter.writeXML(SceneWriter.java:694)
at stencyl.sw.io.write.resource.SceneWriter.write(SceneWriter.java:80)
at stencyl.sw.editors.scene.SceneTab.save(SceneTab.java:273)
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:104)
at stencyl.sw.io.write.MasterWriter.saveGame(MasterWriter.java:97)
at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:35)
at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:13)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


Issue updated by captaincomic - February 07, 2016, 06:19:42 am
  • Status changed from New to Confirmed


captaincomic

  • Master Stencyler
  • *
February 07, 2016, 06:23:16 am
It looks like custom collision shapes are stored per game. They need to be stored per tileset instead.


Issue updated by Justin - April 07, 2016, 11:24:02 pm
  • Issue Assigned from (none) to Justin


Pages: 1

Details

  • Reported
    January 27, 2016, 01:25:57 pm
  • Updated
    April 07, 2016, 11:24:02 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Confirmed
  • Priority
    Normal
  • Version
    Stencyl 3.4
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Tileset Editor

Tags