Error. Encountered errors whilst building your game. Check your logs and post...

robrob

  • Posts: 42
Hi all,

My game's been compiling just fine then I got an error and was asked to post logs to the forum.  These are the logs.  What could the issue be?

As a note, I've never had a file called "50-0.png" so I suspect Stencyl made it.  But how can I fix this issue?


Level:     ERROR
When:      2015-04-05 16:16:28:655
From:      stencyl.sw.io.write.resource.HXWriter

Source '/Users/xxxx/stencylworks/games/Game Name/resources/50-0.png' does not exist

Throwable: java.io.FileNotFoundException: Source '/Users/xxxx/stencylworks/games/Game Name/resources/50-0.png' does not exist
   at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1074)
   at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1038)
   at stencyl.sw.io.write.resource.HXWriter.write(HXWriter.java:864)
   at stencyl.sw.io.write.resource.HXWriter.access$200(HXWriter.java:74)
   at stencyl.sw.io.write.resource.HXWriter$2.doInBackground(HXWriter.java:285)
   at stencyl.sw.io.write.resource.HXWriter$2.doInBackground(HXWriter.java:277)
   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)

ETHproductions

  • *
  • Posts: 430
You are correct in your assumption that Stencyl created the 50-0.png file. It's supposed to be an animation for one of your actors, probably one that you deleted. Here's how this problem can usually be solved:

- In Stencyl, press Debug > View > View Folder for Your Game, then open .../YourGameName /resources.
- Inside this folder should be the images for all of your actors, backgrounds and so on. Create an image called 50-0.png; it shouldn't matter what it is, so it can be blank.

I hope this helps you solve the problem. Happy Easter! :)
Fontstruct - Stencyl - Website (in progress)

Proud Member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

akshai

  • Posts: 2
how to find error

akshai

  • Posts: 2
how can I fix this issue?

Level:     ERROR
When:      2016-11-03 03:57:54:832
From:      stencyl.sw.io.read.BackgroundReader

Could not load background image for ID: 14

Throwable: javax.imageio.IIOException: Can't read input file!
   at javax.imageio.ImageIO.read(ImageIO.java:1301)
   at stencyl.sw.util.gfx.ImageUtil.readRasterImage(ImageUtil.java:152)
   at stencyl.sw.io.read.BackgroundReader.loadImages(BackgroundReader.java:179)
   at stencyl.sw.io.read.BackgroundReader.read(BackgroundReader.java:74)
   at stencyl.core.lib.io.IOHelper.read(IOHelper.java:112)
   at stencyl.core.lib.io.IOHelper.read(IOHelper.java:103)
   at stencyl.core.lib.ResourceList.init(ResourceList.java:81)
   at stencyl.core.lib.ResourceList.<init>(ResourceList.java:57)
   at stencyl.core.lib.ResourceList.createList(ResourceList.java:47)
   at stencyl.core.lib.Game.load(Game.java:1692)
   at stencyl.sw.app.tasks.OpenGameTask.startOpeningGame(OpenGameTask.java:152)
   at stencyl.sw.app.tasks.OpenGameTask.doInBackground(OpenGameTask.java:117)
   at stencyl.sw.app.tasks.OpenGameTask.doInBackground(OpenGameTask.java:34)
   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)

crvjuegos

  • Posts: 1
Can not run Stencyl - these are the logs. Pease help

wbhyvong

  • Posts: 14
hello everybody
encountered error while building your game
check your logs and post them to the forums
Please help, thanks

maicolonix

  • Posts: 1




cuando intento poner una entidad me aparece un letrero q dice q ocurrio un problema inesperado y si le das en detalles te aparece esto :
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.actor.ActorTab.<init>(ActorTab.java:176)
   at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:786)
   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)


wbhyvong

  • Posts: 14
Thank, i do'nt understand.
What can I do ?

robo12j

  • Posts: 4
me to I can't understand to so... :(

Dagger6Taj

  • Posts: 3
Hi Stencyl! Can you please tell me whats wrong with my code so I can fix it? Thank You! :)

orbinho11

  • Posts: 13
Thank, i do'nt understand.
What can I do ?


wbhyvong, this error occurs when you change the app ID.

-change your app ID back to what it was;
-click "run -> clean project" (be sure to save your game)
- publish

This should help ;)

isidora55

  • Posts: 1
ayuda yo tengo este error :

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.actor.ActorTab.<init>(ActorTab.java:176)
   at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:786)
   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: 4716
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

Loma

  • Posts: 1
Hi,

I want to test my game but I have this message that comes when I threw it !
Can you help to find what's the problem please ?

Thank you

mdotedot

  • Posts: 1654
Mac OSX > 10.11
Flash
Error: The input swf newgrounds.swf is corrupted

This will be addressed in Stencyl 3.5 which is not public.

Use HTML5 or Native on Mac to test instead of Flash

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.