Editing Music - MoonlitDeath/Link-Evolution-Editing-Guide GitHub Wiki
Peary wrote this guide for changing music-
1. First you have to find the game’s music files. Assuming you already unpacked the game files, music is located in “YGO_2020\GeneratedSoundBanks\Windows”. Each music track is a .wem file with random numbers in it’s name, for example “23736159.wem”. It’s important that you keep track of these filenames since your new music files will need to have the exact same names as the old files you’ll be replacing.
2. You can skip this step if you want, this part is for converting the wem files to a listenable ogg format. I did this in order to know which sound file is which.
However I recommend you do this since otherwise you won’t know for sure what you’re replacing.
First, create an empty folder you’re going to work in. Then download the ww2ogg .zip archive (https://github.com/hcs64/ww2ogg/releases) and extract it to a folder with the same name as the archive (you can do this easily through the context menu), reVorb (http://yirkha.fud.cz/progs/foobar2000/revorb.exe), then create a new text file and paste this code inside of it
for %%f in (.wem) do “./ww2ogg024/ww2ogg.exe” %%f —pcb “./ww2ogg024/packed_codebooks_aoTuV_603.bin”
pause
for %%f in (.ogg) do revorb.exe %%f
pause
Save the text file with a .bat extension.
Now put the ww2ogg folder in the empty folder you made before, put reVorb.exe also in the folder you made, then put in the .bat file that you made and lastly the .wem music files that you wish to convert.
The files in your main folder should be:
- ww2ogg024 (folder)
- [numbered .wem files]
- New Text Document.bat
- reVorb.exe
Then finally, run the .bat file that you created.
If done correctly, you now have .ogg files that you can listen to. (If your media player of choice can’t read the files, i recommend media player classic, if you ever installed the K-lite codec pack, it should be on your machine)
2,5. If you really don’t want to do the step above, here’s a general idea of what the music tracks are. However i didn’t completely beat the game yet and some music may be unused so i’ll only mention the ones that i could identify. In no particular order:
Menu music: – 23736159
– 807692082
– 959055590
Duel music: – 106579929
– 285093068
– 286948245
– 700949252
– 923289688
Victory music: – 259128839
Tutorial duel music: – 264482328
Pre-duel music: – 394759100
???: – 55553408
– 189058116
– 433205816 (Possibly Arc-V duel music?)
– 543109075
– 579596695
– 597686581
– 720285706
3. Now that you hopefully know which music tracks are which, it’s up to you to decide what music you want to replace them with.
The important thing is that your music will have to be in the .wav format and each of your tracks will need to have the same numbers in their filename as the track you’ll be replacing.
If your music is in the .mp3 format or anything other than .wav, you’ll just have to convert it. Any offline or online converter should work just fine.
(I’m not sure if this part matters but my music was in the 44.1 KHz CD Quality)
4. Now that your new music is ready, both in the .wav format and with the appropriate filename, you’ll need this tool [not sure how to link to wav2wem so pretend the link is here] to convert the .wav files to the .wem ones that the game uses.
Simply unpack the archive anywhere and then inside you will see a few folders and a .bat file.
All you have to do is put your prepared .wav files in the “in” folder, run the .bat and then your processed .wem music will be in the “out” folder.
Copy them over and replace the old ones in “YGO_2020\GeneratedSoundBanks\Windows”.
Now all you have to do is recompress the game files, put them in your game folder and voila, if everything went well your music should be in the game.
Last Note:
It seems that for unknown reasons the tool doesn’t work for some people, in which case you’d have to download and use Wwise. So far it hasn’t been determined what causes this issue, according to the tool’s creator just installing Wwise on your system and then running the tool might help, and that it’s important to preserve the folder structure. Otherwise your last option would be using Wwise itself to convert the files according to one of the other guides on the topic that are available online.
You could also attempt the method described in the thread here (https://residentevilmodding.boards.net/thread/11099/automated-wav-wem-conversion)
Death note-
If the above method didn’t work or you want to try a different way, the wav2wem program made by ubergeek can be found here
If you need to listen to the game’s .wem files, you can listen to them by using the program called Foobar2000 and can download that here- https://www.foobar2000.org/
After that use the vgmstream extension found here- https://github.com/vgmstream/vgmstream/releases
Download the “foo_input_vgmstream.fb2k-component” on that page and place it in your components folder where you installed foobar, and double click that file and it should open foobar. After that, it should bring up a window, click Apply on that and it should add that to foobar, allowing you to listen to .wem formats.
Once you have a music track you want to put into the game in .wav format, place them in the wav2wem “In” folder, and rename it (for some reason the out folder will be empty if the file has names that are too long, so if you make them shorter, even 3 letters or less, then it should work). Once you have the new files in the Out folder and in .wem format, you can just rename them and place them in the games GeneratedSoundbanks folder, replacing the originals.
Music list-
23736159 Music_UI_01
55553408 duel_2_y (not used?)
106579929 mus_vrains
189058116 duel_1_r (not used?)
259128839 system_result
264482328 mus_tutorial
285093068 mus_duel_04_48k
286948245 mus_duel_04 (Same as above just longer)
394759100 mus_vs01
433205816 mus_results (not used?)
543109075 duel_2_r (not used?)
579596695 mus_arc-v (not used?)
597686581 duel_1_y (not used?)
700949252 mus_duel_01
720285706 system_deck (not used?)
807692082 mus_title
923289688 mus_NG_duel
959055590 Music_Battle_Low