pixeltris / YgoMaster

Offline Yu-Gi-Oh! Master Duel
MIT License
804 stars 119 forks source link

How to change BGM with anime soundtrack #343

Closed spitfirereza closed 1 month ago

spitfirereza commented 6 months ago

Can someone give me tutorial how to do it?

Merik2013 commented 6 months ago

Create the folder path Yu-Gi-Oh! Master Duel\YgoMaster\DataLE\ClientData\sound\audioclip\bgm for music added to this folder to overwrite tracks in the game there's a few caveats you need to adhere to.

  1. the files need to be .mp3 files. the game normally uses .wav files, but the mod only swaps in .mp3 files.
  2. the music tracks need to be named after files that the game normally uses. You're not adding new tracks so much as replacing old ones.

Currently, you can replace any track that has BGM in its name. This includes BGM_MENU_01 and _02, BGM_MENU_RETRO, BGM_MD_TEST_QUIZ, BGM_SOLO_01 to _35, BGM_DUEL_NORMAL_01 to _16, BGM_DUEL_KEYCARD_01 to _16, BGM_DUEL_CLIMAX_01 to _16, BGM_DUEL_EX_01, the BGM_DUEL_EX_02_NORMAL/KEYCARD/CLIMAX tracks , and the BGM_DUEL_EX_03_NORMAL/KEYCARD/CLIMAX tracks.

Finally, if you want to set these to be used in solo gate duels, you need to edit the individual .json for these solo gate duels and add the field "bgms":[ ]. This requires three songs to be entered or your game will go into an infinite loading screen when you load the duel. these three songs can be anything with BGM in the game, as listed above. the first song listed will be treated as the DUEL_NORMAL file that plays at the start of the duel, the second will be treated as the DUEL_KEYCARD file that plays when summon cut-in animation plays, and the third will be treated as the DUEL_CLIMAX song that plays when the duel is about to end. the songs chosen don't need to reflect that order in their name.

Ex: "bgms":[BGM_SOLO_04,BGM_DUEL_EX_02_CLIMAX,BGM_DUEL_NORMAL_15] in this example, BGM_SOLO_04 will be treated as my NORMAL track and will play at the start of the duel, BGM_DUEL_EX_02_CLIMAX will be treated as my KEYCARD track and play as soon as the first cut-in animation is played, and BGM_DUEL_NORMAL_15 will be treated as my CLIMAX track and will start when the game is about to end.

bychi2221 commented 6 months ago

@Merik2013 my game crashed before i can go to main menu (i changed "BGM_MENU_01.mp3", also i was turn off windows defender) Screenshot 2024-03-05 225008 Screenshot 2024-03-05 225052 https://drive.google.com/file/d/1d6oEXxGgv1MvRxl4Bk9AJp64hVaSho__/view?usp=sharing (This is my mp3 file) https://drive.google.com/file/d/1MebOlhTStPeZ1EknuWbobMwO03isVRZQ/view?usp=sharing (This is my vid)

pixeltris commented 6 months ago

Based on the file size in your screenshot you have the x86 version of bass.dll which is likely the reason for the crash. You want the x64 version as Master Duel is a x64 program. When you download bass24.zip the x64 dll is under /x64/bass.dll.

bychi2221 commented 6 months ago

@pixeltris oh thank you, i forgot it

pixeltris commented 1 month ago

Going to close this. I probably should document the audio stuff at some point as it currently isn't described anywhere.