Can't test game

Tobben2111

  • Posts: 185
Unexpected problem on thread Thread-70: null
java.lang.NullPointerException
   at stencyl.core.engine.snippet.ISnippet.getNiceName(ISnippet.java:465)
   at stencyl.sw.io.write.resource.HXError.getNameAndReason(HXError.java:58)
   at stencyl.sw.io.write.resource.HXWriter.parseForBehaviorCompilationErrors(HXWriter.java:4032)
   at stencyl.sw.io.write.resource.HXWriter.processOutput(HXWriter.java:3607)
   at stencyl.sw.io.write.resource.HXWriter.access$2200(HXWriter.java:78)
   at stencyl.sw.io.write.resource.HXWriter$3.parse(HXWriter.java:457)
   at stencyl.sw.util.StreamGobbler.run(StreamGobbler.java:83)

I had one actor, one scene, made walking for the actor.
I made x2 duplications of the actor.
Then I started getting errors when testing the game. I deleted all duplications, still error
Deleted all actors and scene, still error
Saved as to a new name, still error
Export and import file, still error

Making a new, fresh file works + testing games

- Tobben

Dual

  • Posts: 2
Same here i can't test when i make regions to make the game progress  :'(

Donni11

  • *
  • Posts: 2181
Found these errors in your logs :
Code: [Select]
2015-08-22 17:26:10,508 ERROR [AWT-EventQueue-0] root: Unexpected problem on thread Thread-12: null
 ERROR [pool-1-thread-2] stencyl.sw.io.write.resource.HXWriter: Failed: Building for Flash. (Return code: 1)
2015-08-22 17:26:10,539 ERROR [pool-1-thread-2] stencyl.sw.util.dg.MessageDialog: Encountered errors while building your game. - Check your logs and post them to the forums.
 [AWT-EventQueue-0] stencyl.sw.util.FileHelper: Failed to delete file or directory: C:\Users\Tobben\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt
2015-08-22 17:27:09,852 ERROR [AWT-EventQueue-0] root: Unexpected problem on thread Thread-19: null
java.lang.NullPointerException
at stencyl.core.engine.snippet.ISnippet.getNiceName(ISnippet.java:465)
at stencyl.sw.io.write.resource.HXError.getNameAndReason(HXError.java:58)
at stencyl.sw.io.write.resource.HXWriter.parseForBehaviorCompilationErrors(HXWriter.java:4032)
at stencyl.sw.io.write.resource.HXWriter.processOutput(HXWriter.java:3607)
at stencyl.sw.io.write.resource.HXWriter.access$2200(HXWriter.java:78)
at stencyl.sw.io.write.resource.HXWriter$3.parse(HXWriter.java:457)
at stencyl.sw.util.StreamGobbler.run(StreamGobbler.java:83)

I'm going to go do some research on this, I'll post back here if I find a solution.
Peace

svintaj

  • *
  • Posts: 353
I get the exact same error! Did you found a solution?

Tobben2111

  • Posts: 185
Sorry, no solution :O

I kinda lost a bit motivation again and haven't used stencyl in a while :/

captaincomic

  • *
  • Posts: 6108
This error was fixed in the latest private build:
http://community.stencyl.com/index.php/topic,45145.0.html (customer-only link)

svintaj

  • *
  • Posts: 353
Please don't loose your motivation!

I found that it was one of the snippets in CurrentGameFolder->Snippets, that was causing the NullPointerExeption for me. I did a backup of the game and then I just had to find the right snippet by deleting  half of them, Clean the project and recompile, and keep going like that until I found the broken one.

I found this by deleting everything in my game and still got the error, deleted all Atlases and Attributes there was really nothing left, but I still got this compile error. Then I started to remove things in the various folders and found out that when I deleted everything in the Snippets folder, then I could finally compile the game. 

Note: I don't know what the Snippet do or how risky it is to delete one of them! But it works for me.


captaincomic

  • *
  • Posts: 6108
These snippets are the attached events of actor types and scenes. And the error seems to come from a Snippet that refers to a missing actor type or scene, when it tries to determine the name, e.g. "Events for Scene A".

Please make a backup at least, before deleting any files from your game folder.

svintaj

  • *
  • Posts: 353
Yes absolutely, always make a full backup of your game before deleting any files!

Tobben2111

  • Posts: 185
Please don't loose your motivation!


Thx for kind words :) It's just, every time I come back to Stencyl. I do something simple like copy an actor, or scene. Something very very basic. And then I get error messages. I have no idea what so ever, what the problem is. I have made some topics in the past. It's a bit frustrating. ;P

But everytime I look at my first(and only) released game, it's not that good or anything. It brings me back to stencyl : 3 Just had a lot of fun making it. Did learn a lot. Prob first time touching something graphical.

I will keep your words in mind :) And prob come back again in a few weeks when I have less to do :)

This error was fixed in the latest private build:
http://community.stencyl.com/index.php/topic,45145.0.html (customer-only link)

Thx for the fix, captain :) Keep up your good work :)