Exporting files missing random audio tracks.

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?
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?
It is the same tracks, i named them random because i do not see anything that would connect them. The missing files do not have specific name, format, or anything else.
Here is example of the file that goes missing: https://filebin.net/uafac2dhnq1cce0x
Format is ogg (but all of my other files are ogg as well), file is played both in preview mode and in testing of the game. It only goes missing during compiling.

If you checked the box "Exclude unused files", it could do just that.
And yes, it does that. But is it bugged or something? I just have A LOT of unused files and excluding them manually would be hard...
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.
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.
Yeah, i have hundreds of audio files, so it will be problematic. Sadly i have no idea about your second suggested method. Maybe i will just try to speedrun the game to see which files missing and add them manually. But still would be nice to know why this happens.
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.
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.
As you can see, file's name is literally "ck1", 2 letters and number. File "ck2" works just fine...
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.
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.
G:\BGOE\Isekaing\Isekai\www\audio\se
I don't think Cyrillic characters would affect this, because the RPG Maker distributor lists the files locally and not like a browser.
The ideal would be to create a new project, copy the SE folder to it and distribute it to the Web.

If the same problem occurs, it may be a RAM limit, although this operation works in batch mode, it may be that the temporary file created is interrupting the complete process:
Yeah, i have hundreds of audio files...

Note: Do not check the Delete unused files option for testing
I don't think Cyrillic characters would affect this, because the RPG Maker distributor lists the files locally and not like a browser.
The ideal would be to create a new project, copy the SE folder to it and distribute it to the Web.

If the same problem occurs, it may be a RAM limit, although this operation works in batch mode, it may be that the temporary file created is interrupting the complete process:


Note: Do not check the Delete unused files option for testing
If i do that, i will have a lot more space taken than nessesary.
Currently i plan to find all those files and then add them manually.
I didn't understand, I asked to do the test regardless of the size it will take up.
The purpose of the test is this:
But still would be nice to know why this happens.
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.
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.
Wait, i think i did it wrong, because it's a middle of the night and i somehow read your message as if i had to test specific file, and not entire folder.
If i do copy the folder, and check include only used files - all files from this folders will be passed since they are unused. I can of course create an even that will play all of them, but it will take waaay too much time. Was i supposed to do it like that?
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
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
But... they copy just fine even in original build if i will not press "exclude unused files". What is the purpose of doing the same on new build?
I probably misunderstood, I thought the same problem happened in your project. I believe the only way to isolate the problem is by testing each file type step by step.

Maybe the logic of the test is obvious to me, I thought that if you did it you would understand the purpose.

If I couldn't do it, we can try to create a common event that will never be used, but I will need you to send me the CommonEvent.js file and the list of sound files. I recommend using the Windows command prompt to get this list:
Code:
dir *.ogg /b > %userprofile%\Desktop\SE_List.txt
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

Original thread: https://forums.rpgmakerweb.com/threads/exporting-files-missing-random-audio-tracks.170832/