I faced same issue before, it seems lik MV is quite constantly does that. One person on this forums told me that it might occur only if the file is called trough script or something instead of events, but it's not like that - i have play se command, i have certain set of files with simillar names (the only difference is the number), and... few of them are missing.
I thought that maybe it's because of encrypting. But nope, compiling without encryption does the same. Then, what is the problem?
Is it really "random" audio tracks? or is it always the same tracks that are missing?
Are the tracks used ingame?
If you checked the box "Exclude unused files", it could do just that.
Are the tracks available in the sound test inside rpg maker mv?
What file format are you using for the tracks?
I don't know if this is a solution, but try creating a common event that is never called and insert all the sound effects into it.
If there are a lot of sound effects it will be exhausting.
So the ideal would be to use a text editor to insert directly into the JSON file and some method like BATHSCRIPT or NODE.js to list the files already in JSON format corresponding to a common event.
If you have problems with this later, I can create it for you.
there are actually two reasons why files could go missing, and with all the tries around excluding failing, it should be checked if the other reason might be the cause.
if either the folderpath or the filename of those files contain letters forbidden under networking rules, then the engine will have problems handling them.
under networking rules, only latin letters, arabic numbers and a very limited number of special symbols are allowed. Spaces are forbidden as well, which is why every file on the internet uses underscore to replace spaces.
and the folderpath? please list it from drive letter on.
there is absolutely no randomness in the computer, everything happens for a reason - although that reason can be very obscure. And we need to collect facts until we find that reason.
Sorry, misunerstood you. Yeah, the file does not compile even if i put it to new project.
Edit: nope, i forgot to include it in the event. It works fine in new project. So... what's wrong?
Next step:
The purpose of the test is not to find out exactly what is causing the problem, but rather to gather information.
Now copy the img and audio folders to the new project and repeat the process.
If the problem does not occur:
Copy all the files from the data folder except the plugins folder and the plugins.json file.
(Disable all Plugins)
If the problem does not occur:
Copy all the files from the plugins folder and repeat the process.
If the problem does not occur:
Enable all plugins and repeat the process.
I don't know if you understand the purpose of this, but this is intended to isolate the cause of the problem, at some point the error will repeat itself, when this happens you will realize which file or configuration is causing this.
The process I'm referring to is "Deploy" to see if the OGG files will copy. It's not to test if they will play in-game.
Good luck
Do i have to change anything in this code? Or type it as it is?
It's a basic command that will create a TXT on your desktop, as long as you run the command prompt from your project's SE folder.
If it is Windows 10+ just right click inside the folder and select PowerShell or Command Prompt