In Game Sounds not Working through Zip in Developer Help
|
|
My problem may be similar to Kiyo's. But mine is likely worse. Ok. This problem does not occur with the executable file saved on my computer. But, obviously, in order for others to download my game, I had to create a .zip file containing a "Copy" of the executable [as well as the resource] file. Well, this so called "Copy" includes NONE of the sounds [apparently], because I cannot hear any of them when I play my game through the Download link (on my game's homepage). However, to reiterate, I CAN hear ALL of the sounds when I run my game using the executable file saved on my computer. Of course, no one else can run this file (again, pointing out the obvious). So why does the zip produce this error? Could this have anything to do with the way the executable file is compressed within the zipped folder? The zipped executable is less than half the size of the original. I find this to be most odd. Is it also possible that I did not package my files correctly (since this is where the zip is created)?
|
As for your problem, it's likely that files are not being included in your .rsc file. If you have Clean Compile selected when you are packaging your files, everything that is not explicitly included in your code is not packaged into the .rsc file. Files that are explicitly included are anything that is written in single quotes, like so:
If the file is written in double quotes, then it is not explicitly included, and rather is fetched at runtime:
Files specified as such are not included into your .rsc file until they are fetched while the game is running, and if you Clean Compile the new .rsc file never gets them. The solution is to simply change the double quotes to single quotes.