Closed Xenoras closed 3 days ago
I've mentioned this issue in #2319 but it may be better to list it separately, thank you :+1:
It's an issue specifically tied to the use of the Native MIDI output on Windows, and only affects MIDI files. What I wrote there, in short: "Partially related so I'm adding it here, but exiting a game with a midi on the title screen and then reopening it from the game browser may have different results (lack of some instruments, incorrect volume of some instruments, lack of music...). This is not major since it will not continue past the title screen and that just putting the window of the game in the background and reopening it will work as a fix for a player. (Opening the settings menu on the title screen in said condition can also cause the issue to happen)." Why I didn't noticed back then was that this issue also affects tracks that are played outside of the title screen.
I'm running into this exact issue with an RPGMaker 2003 game I'm developing myself and testing in EasyRPG Player. I just tested it on the newest nightly build and confirmed it didn't work there as well. When the player moves between two maps, an event changes the midi music. Sometimes, seemingly randomly, the music won't play, or it will be garbled and only play some of the instruments. I've confirmed that when the music is muted, clicking out of the window and clicking back into it plays the music again. I didn't test that until reading this issue page.
In the easyrpg_log.txt, I see these debug messages:
[2024-02-07 13:56:56] Debug: Starting new game [2024-02-07 13:56:56] Debug: Loaded Map Map0078.lmu [2024-02-07 13:56:56] Debug: Tree: 4_3 < 4_1 [2024-02-07 13:56:57] Debug: Fluidsynth: Could not load soundfont. [2024-02-07 13:56:57] Debug: WildMidi: Could not find configuration file. [2024-02-07 13:57:00] Debug: Loaded Map Map0071.lmu [2024-02-07 13:57:00] Debug: Tree: 5_3 < 5_1 [2024-02-07 13:57:03] Debug: Loaded Map Map0064.lmu [2024-02-07 13:57:03] Debug: Tree: 5_2 < 5_1 ...
It seems like there's some kind of issue with Fluidsynth or WildMidi. I don't know why it would break sometimes but not all the time, or why it would unmute just by focusing and unfocusing the window. I've attached a fresh log that just contains me opening the game, moving between maps, and closing the game. Please let me know if there's any other information I can offer to help.
For the content of your easyrpg_log.txt file, note that Fluidsynth and WildMidi are only optional methods of playing MIDI files (where the user need to manually add files to make them work, hence why it is listed there on your side) and are not related to this issue.
This appears to be some "race condition" when changing the MIDI. Sometimes the music plays, sometimes it doesn't. So likely depends on the state of the previous MIDI :/
Thank you for supporting EasyRPG Player. Before creating an issue, please verify that your bug still occurs in the "continuous builds" of the Player. You can get them at the bottom of our download section: https://easyrpg.org/player/downloads
Please fill in the following fields before submitting an issue:
Name of the game: Vampires Dawn 2 - Ancient Blood
Player platform:
Windows
Attach files (as a .zip archive or link them)
easyrpg_log.txt
log file (you can find it in the game directory) easyrpg_log.txt Save15.zipDescribe the issue in detail and how to reproduce it:
Sometimes after a BGM change (eg after map change or after a fight), the BGM is not audible. It appears to play on mute still though. You can unmute it again by clicking out of the window and back in. The Savegame is in the Castle Map. When I loaded, the music was already gone. Just click out of the window once and back in. The music should continue. If you go out of the map and back in, the music is muted again