I have so many files in my game folder that I couldn't be sure which ones were or were not being used on my own, but luckily there's that handy option when exporting a game that says 'only include used files'.
The problem is, I just exported a game using that option and it came out unplayable; every time an enemy attacks it gives me an error that there's a sound effect or a .png file it's looking for that doesn't exist, and the game breaks.
Did I do something wrong during export? Because I don't want to include 'everything' and have the game be a couple Gigs big, but the slim version is completely broken.
The problem is that this option doesn't really know perfectly what you're using and what you're not. Some plugins will load images/sounds/videos and those won't be listed by the engine when exporting(Only those included thru the database, I think, are marked as "used")
I recommend that you export everything, and manually check which resources you're not going to use, because no system is going to be 100% accurate to detect that.
1) The "only include used files" option does work for two cases, but can't work for the third:
- it will include files that are used regularly in database and in map events
- it will include files that have been registered with special plugin commands
it will NOT include files that are used by plugins but not registered by them, and giving a filename in a notetag is NOT enough to register it.
To include the third group of files the best option is to create a useless map in your game that is not connected by any transfer, and use the critical files there - then the engine should also include them.
2) that said, there might be another cause for your problems - usually only very few plugins require massive number of extra files.
And that second option is if either your foldernames or your filenames do not follow networking rules.
Because the browser has problems loading files if either their names or the folder path to the game contains letters or symbols that are not allowed under networking rules.
However, we would need a console screenshot of that error message to decide which is the case here - play your game, when the error message comes next press F8 (or go through your browser s developer menues to the console) and then give a screenshot of that.
I played it and made a note of all the mising files and added them in; it should work now.
The missing files appear to be exclusively SE files and animation images that are used in monster basic attacks. I don't think any plugins would mess with that, but either way, it should be playable now.
I think there is nothing better than exporting everything to prevent the game from breaking.
I'm literally having the same issue right now. I finished a demo of my game, but as soon as it starts, it says that it failed to load audio/se/blow1.ogg
That sucks because I don't remember ANYTHING in my game to use that sound, at least nothing that I programmed myself.
I'm taking the advice above and waiting to see what happens. My game is distributing everything, and even if that means manually taking out crap that the game doesn't use, I'm okay with that.
It's better than having the game crash every 5 seconds.