Loading...
Logo
Processing Forum
Any time I export my program as an applet, uploading the sketch results in a short loading screen followed by an infinite white screen. To test the issue, I attempted to export the program as an application for mac, full screen, with exit button. However, this resulted in an infinite gray screen, and had to be force quit. I've seen some people mention this when coding in German or using GSVideo... but since I'm doing neither, I'm not sure what the issue is.

I've deleted all unnecessary files from my sketch folder. However, I use 5 songs and 4 clips. Could this many media sources be an issue? (Or minim?)

Thanks!
Lauren

Replies(7)

As often, it is useful to display the Java console when dealing with applets!
I always activate mine, so I could see this:
==== JavaSound Minim Error ====
==== Unsupported Audio File: not a MPEG stream:null

Exception in thread "Animation Thread" java.lang.NullPointerException
    at ddf.minim.javasound.JSMinim.getAudioRecordingStream(JSMinim.java:201)
    at ddf.minim.Minim.loadFile(Minim.java:357)
    at ddf.minim.Minim.loadFile(Minim.java:341)
    at TowerD.setup(TowerD.java:51)
    at processing.core.PApplet.handleDraw(PApplet.java:1608)
    at processing.core.PApplet.run(PApplet.java:1530)
    at java.lang.Thread.run(Unknown Source)
Ensure you have your sound files in the jar. Also, if you have Processing 1.5, upgrade to 1.5.1, there was a problem with exporting resources in the previous version.



Thanks for your quick response phi.lho! 

I'm not seeing this warning in my console, are you displaying a console in the applet? If so, how could I do this in the future, too?

Also, I'm using 1.5.1 on mac. The sound files are in the sketch folder when I export to applet. Is there something else I need to do to ensure they are in my .jar?

Lauren
No, the Java console works for all applets, it isn't tied to Processing. Search the name in Google to see how to activate it on your system.
Perhaps the sound files must not go in the jar, after all, but ensure you have uploaded them along with the jar.

[EDIT] Tested again, it looks like you solved your problem... The game looks impressive, professional look.
What I just tested was moving the image and sound files into the data file before exporting... what a dirty little mistake I've made! The new applet has been uploaded to the original link and works, it's painfully slow to try and play or watch though!

I've definitely going to look into the Java console more, I'd like to be more informed about this!

Thanks again phi.lho, you've been a phenomenal help!
I appreciated the game (final score 4328 in the easy mode), although it is indeed very slow. I appreciate you handle the arrow keys, and not only WSAD as these keys are not handy to use on my French keyboard. Nice game.
hah, I am impressed you were able to play it at such a pace! I made it with a partner and I'll let her know our first tester enjoyed themselves. :)

Also, I am very relieved that you appreciate our attempt to create flexible controls and give the game a polished look!

- Lauren