We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, I'm not really sure where to post this, so i put it here. Whenever I try to create and executable in processing 3.3 of my game for people to use, the executable just freezes whenever run. I've tried embedding java and not embedding java, tried creating linux, windows, 64-bit and 32-bit executables. Yet, every time I run the exported .exe it just shows a white screen and ends up freezing. This is quite annoying, as it runs fine from the IDE's play button. Does anybody know what's going on, and what I can do to get it to work?
Edit: here's a link to the code if you so desire to look at it http://www.mediafire.com/file/srl4g3f5om8zw5g/GameProgram.zip
Edit2: fixed the issue, had to put all the images in the same directory as the executable
Answers
you want us to debug a program that we can't see?
these errors are generally caused by imports of libraries that aren't bundled automatically. but without seeing the code this is just a guess.
Um okay, I can give you the code if you want, it's a bit big though. There's also no imported libraries at all. Also I'm not asking for someone to debug my code, just wondering why the executable isn't running properly. Sorry for any confusion.
http://www.mediafire.com/file/srl4g3f5om8zw5g/GameProgram.zip
This post might be relevant: https://forum.processing.org/two/discussion/comment/92630/#Comment_92630
First step is to export a simple application. If you export an app in Win32, it should be able to run in Win32 and Win64 but not other OS (to keep in mind although you might know this). For now stick to exporting apps in Win32.
Are you using external resources like images, sound, fonts, etc? Do you have them in the data folder?
Kf
Ohhhkay, I found the issue, I had to move the assets folder to be in the same folder as the executable.
Thanks for the help.
second time today an executable hasn't worked because people are putting their assets in non-standard places.
the loadImage() reference is quite clear on this and the Add File... option in the menu does this automatically
even this is wrong. they should go in the data directory, a subdirectory of the sketch directory called 'data'. use the menu item.
Oh-okay... I mean, it wasn't exactly obvious to me... I usually like customizing and organizing my files in a certain way to make it easier for me to deal with large quantities of files.