I can't believe you're still stuck on the music file issue when I told you several posts ago that you need to trial & error on your music file. You're already giving the answer to your problem your self: "When all of the music2 references are commented out, the script works 100% fine." Are you even reading what we are suggesting / advising you? Start focussing on music2.
- Let and load the music only, don't play use PlayMusic yet. Does your script load?
- If PlayMusic(music2) crashes, go compare the song to another song that is working (like your Music1). Is it same format for file, khz, bitrate ? ? ? If not, try to make them similar.
- Maybe the selected song is too big in filesize/quality? Have you tried like only cutting 10 seconds of track in Audacity, and trying to play that?
I can come up with dozen more types of tests but you seriously executed none of them so far because I haven't seen you attempting it when I told you it was your music file. You only commented it out. Well, that is only step 1, where the rest?
The file size is not too big; I have already proven that with my other script. I have used audacity to cut length, and that did not work for the boss track. For the stage track, a few minor tweaks allowed it to run. All of my music tracks have the same file format (.wav), same bitrate, and same KHz. I have tweaked the second file a number of times, so I'm more worried about the problem being the way I called the music tracks.
Loading the second music track causes the massive delay at the start, but does not cause the temporary freeze at the boss battle.
Swapping the two tracks freezes Danmakufu at the very start.
I understand that the problem is in regards to the second track. Both have 2 audio channels, 1411200 bit rate, are .wav, have the same privileges, etc. The latter has been edited multiple times, and that was why I asked about any specific audio restrictions on Danmakufu.
Loading a .mp3 export does not lag at the start. Playing it DOES WORK.
The issue I have is that although a .mp3 may work for most people, it does not work for me, and I cannot test it properly as a result.
I'm going to close the question for now and just release it with .mp3 files. If that works better, then so be it.