Someone help me my scene won't open!!!!!!

LordElmo123

  • Posts: 4
Help me aghhh >:(
This kind of makes me angry thinking about the time I've put into this scene and I do not know what I did to cause it to error every time I open it. It was working I closed Stencyl and when I reopened it later it wouldn't load!!!

I will leave the error below
If someone can help me fix this please do so because it would suck if I have to restart.


This is the error details


java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 6, Size: 0
   at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:74)
   at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:54)
   at stencyl.sw.app.tasks.OpenResourceTask.done(OpenResourceTask.java:76)
   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.IndexOutOfBoundsException: Index: 6, Size: 0
   at java.util.ArrayList.rangeCheckForAdd(ArrayList.java:661)
   at java.util.ArrayList.add(ArrayList.java:473)
   at stencyl.sw.editors.scene.layerviews.ActorLayer.addActorToLayer(ActorLayer.java:208)
   at stencyl.sw.editors.scene.layerviews.InteractiveLayerView.addActorToLayer(InteractiveLayerView.java:79)
   at stencyl.sw.editors.scene.EditorSceneModel.addActorToBuckets(EditorSceneModel.java:893)
   at stencyl.sw.editors.scene.EditorSceneModel.addActor(EditorSceneModel.java:945)
   at stencyl.sw.editors.scene.EditorSceneModel.<init>(EditorSceneModel.java:206)
   at stencyl.sw.editors.scene.Designer.<init>(Designer.java:559)
   at stencyl.sw.editors.scene.SceneMainPage.initDesigner(SceneMainPage.java:307)
   at stencyl.sw.editors.scene.SceneMainPage.<init>(SceneMainPage.java:134)
   at stencyl.sw.editors.scene.SceneTab.init(SceneTab.java:140)
   at stencyl.sw.editors.scene.SceneTab.<init>(SceneTab.java:122)
   at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:832)
   at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:679)
   at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:67)
   at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:20)
   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)

Maxens

  • Posts: 3
Hello !

I got this bug today and find some quick workaround :

Go in the scene folder of your game :
Tools -> Workspace -> Game Folder -> Scene

Find your broken scene xml file, by editing xml files with notepad and finding "name=xxxx" on line 2. Reach the right scene.

I removed all the lines between <actors> and </actors>, copying them elsewhere, and then saved the scene.

Stencyl now opens the scene, I just needed to replace my actors.

Hope this helps !


TF Famux

  • Posts: 1
It's helps a lot for me.

Thanks, Maxens!

Brohan

  • Posts: 1
I have the same problem.
The scene opened very well and overnight, it does not open anymore.

In my XML I only have one title <Actors>
And in the title <name=> the name of my scene is not erroned.

Do you have an idea ?

Wacky games

  • *
  • Posts: 2
You just save my life , thanks