i can't do anything

Poinex

  • Posts: 2
When i want to create something, a scene, etc the program show me this.. >:( >:(

java.lang.RuntimeException: java.lang.ClassCastException: stencyl.sw.editors.snippet.designer.block.DummyField cannot be cast to javax.swing.JComponent
   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.ClassCastException: stencyl.sw.editors.snippet.designer.block.DummyField cannot be cast to javax.swing.JComponent
   at stencyl.sw.editors.snippet.designer.block.Block.addField(Block.java:3173)
   at stencyl.sw.editors.snippet.designer.Definition.addParameterStart(Definition.java:744)
   at stencyl.sw.editors.snippet.designer.Definition.parseForGUIStart(Definition.java:698)
   at stencyl.sw.editors.snippet.designer.palette.Palette.createAndAddElement(Palette.java:521)
   at stencyl.sw.editors.snippet.designer.palette.Palette.createNodes(Palette.java:381)
   at stencyl.sw.editors.snippet.designer.palette.Palette.createSection(Palette.java:289)
   at stencyl.sw.editors.snippet.designer.palette.SubcategoryListing.addButton(SubcategoryListing.java:134)
   at stencyl.sw.editors.snippet.designer.palette.SubcategoryListing.<init>(SubcategoryListing.java:81)
   at stencyl.sw.editors.snippet.designer.palette.SubPaletteContainer.<init>(SubPaletteContainer.java:36)
   at stencyl.sw.editors.snippet.designer.palette.CategoryListing.addButton(CategoryListing.java:94)
   at stencyl.sw.editors.snippet.designer.palette.CategoryListing.<init>(CategoryListing.java:65)
   at stencyl.sw.editors.snippet.designer.palette.PaletteContainer.<init>(PaletteContainer.java:69)
   at stencyl.sw.editors.snippet.designer.SnippetDesigner.<init>(SnippetDesigner.java:346)
   at stencyl.sw.editors.scene.SceneTab.init(SceneTab.java:164)
   at stencyl.sw.editors.scene.SceneTab.<init>(SceneTab.java:119)
   at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:792)
   at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:639)
   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)

Justin

  • *
  • Posts: 3956
This is caused by some outdated Spanish translations.
Open the file [stencyl install]/lang/es/behavior-blocks.lang and find the following lines

Code: [Select]
scene.savegame=guardar juego como %0 usando %1 como tテュtulo y luego... [i:save]
scene.loadgame=cargar archivo de guardado %0 y luego... [i:save]

Change them to this, then open Stencyl again.

Code: [Select]
scene.savegame=guardar juego y luego... [e:dash] %1 [i:save]
scene.loadgame=cargar archivo de guardado y luego... [e:dash] %1 [i:save]

For Live Support: Join our discord channel and ping me @justin.

Poinex

  • Posts: 2
Finally! Thanks justin it's solved!

ElMongi

  • Posts: 4
This is caused by some outdated Spanish translations.
Open the file [stencyl install]/lang/es/behavior-blocks.lang and find the following lines

Code: [Select]
scene.savegame=guardar juego como %0 usando %1 como tテュtulo y luego... [i:save]
scene.loadgame=cargar archivo de guardado %0 y luego... [i:save]

Change them to this, then open Stencyl again.

Code: [Select]
scene.savegame=guardar juego y luego... [e:dash] %1 [i:save]
scene.loadgame=cargar archivo de guardado y luego... [e:dash] %1 [i:save]

You are my god