Tutorial  Updated

How to put custom songs in XY (finally)

Hey guys !
So maybe you have seen me posting threads about this, wanting to know how to do it. Well today I will show you how to do it yourself !
Credits to recordreader and PlatinumMaster for achieving this in first and showing me how to do it myself, super appreciated :)
You will need
- An XY extracted game
-the sound folder
-HxD
-Audacity
- Brawlbox
- Internet connection

Firstly, download everything. Then, download a song from youtube or anywhere where you can get a song (get a song you want in the game). Open it in Audacity, and edit the song how you want. (For the battle songs, I recommend increasing the volume a bit because of the sound effects). Once you are done, export the audio as a WAV 16 bits.

Now open brawlbox and go to file, new, audio, brstm audio stream and open your wav.
Now you can play around to set a start loop point and a end loop point. When you have a good loop, don’t touch anything else and leave brawlbox there (or minimize it) as we will need the start and end values later.

Open HxD and load the xy_sound.bcsar( make a backup of it first) in it. You will also need this pastebin : https://pastebin.com/EJetua4J that was made by soneek. It contains all of the original loop points for every song. In HxD, go to search, Number, and type in the start loop value of the original song. Tick the direction : all then click OK. Now, open your web browser and search for a decimal to hexadecimal converter, and convert YOUR start loop point to hexadecimal. Now you want to REVERSE it. For example, if your start loop point is 233832 and the hexadecimal output is 39168, then the value you want is 68 91 03 00. To back to HxD, and edit the original start loop with your reversed one. Do all the steps again for the end loop point. Once it’s done, save everything and close HxD.

You might have noticed that XY is using .aac audio files. You will need to convert your .wav to .aac. Open your web browser and search for a wav to aac convertor, and convert your wav. Once you get you .aac, you will need to rename it to the oeiginal song file name. For example, if you want to replace the pokemon league music, you will need to name it the same way as the original one, so bgm_xy_pokemon_league.
Do all the steps for every song you want.

Okay you want to load your custom musics. We will be using LayeredFS. In your luma folder, create a titleid folder. In this one, create a folder named with the title id of your game
X: 000400000055D00
Y: 000400000055E00
Now create a romfs folder in this one, then a sound folder. In the sound folder put all your custom .aac AND your edited xy_sound.bcsar, otherwise your songs won’t loop correctly.
If everything was done correctly, it should look like this
/luma/titles/[titleID]/romfs/sound/your-custom-song.aac
xy_sound.bcsar

Put that folder on your SD card and check Enable Game Patching in the luma configuration folder.
And there you go ! If everything was done correctly, you should get custom songs in XY !
PlatinumMaster’s video showcasing this :
Thanks for reading ! (Share this tutorial if you liked it!)
If you plan on making a tutorial video, please credit PlatinumMaster and recordreader.
 
Last edited by XLuma,

PlatinumMaster

Active Member
Newcomer
Joined
Apr 5, 2016
Messages
26
Trophies
0
Location
Twinleaf Town, Sinnoh
XP
149
Country
United States
i need help. you weren't specific at the part where we had to import the sound and type the loop start value. like where am i suppose to search? it gives me 5 options and i pasted the start value 449992 for the trainer battle music (xy vs trainer) at "find" and selected all directions. It couldn't find the value.

--------------------- MERGED ---------------------------

i have a problem. im struggling with the part where i must type the loop start value and idk which option to choose when i search. i get 5 more options. i went to find and pasted the loop start value and it didnt find anything. yes i have pasted the xy sound file it is the xy vs trainer sound. Could you explain it to me in full detail please??
Sorry for the late response, I don't really check this site too much.
When you type in the loop value in the search bar, you just need to select "dec", as you are specifying a decimal value.
 

Fanco

New Member
Newbie
Joined
Feb 25, 2021
Messages
1
Trophies
0
Age
24
XP
42
Country
United States
I hope you're gonna be able to resolve my problem, but it's not quite simple.

When I launch the game and listen the changed musics, the loop is perfect, but 2 or 3 seconds later, the loop happens twice.
Do you know why ?
 
Last edited by Fanco,

Gross_saftig

New Member
Newbie
Joined
Apr 22, 2021
Messages
1
Trophies
0
Age
19
XP
41
Country
United Kingdom
I dont understand what I'm doing wrong, but if I launch the game without the sound folder it runs, but when I have the sound folder, it fails to launch and crashes to a black screen whenever I load the game, so i cant play it with the custom music. Anyone know what i did wrong
Edit: managed to load the game when I took out the sound.bcsar file. Which now means custom music plays, but it no longer loops correctly, am I missing something with the bcsar file? Could someone explain in detail what I need to do, at the moment I go into HxD, search the original number using integer number, with dec selected at the top of the screen, then replace it with my reversed hexadecimal number(not sure if there are supposed to be letters in the numbers because none if the original loop points do)then I save and place in the sound file.
 
Last edited by Gross_saftig,

Pixel64

Member
Newcomer
Joined
Nov 18, 2021
Messages
20
Trophies
0
XP
75
Country
Canada
I'm not sure if this is true, but It seems to me that if you try to loop longer than the original audio, the loop will happen at whenever the original audio file ended. If this is the case, is there any workaround? If not, it's unfortunate.
 

aweirdmike_

New Member
Newbie
Joined
Jun 1, 2023
Messages
1
Trophies
0
Age
18
XP
19
Country
Austria
Hey thanks for this tutorial! I was able to change the trainer battle music, however I have a small problem now, each time that I edit the xy_sound.bcsar for a second time, I always get an error messages when I load the game, so I only can change one game song because if I try to change a second song I get that error, I don´t know what could be the problem. Once again, thanks for the tutorial!

Edit: Never mind! I solved the problem! Thanks man!!!! I can finally change the music. Thank you for this amazing tutorial!
hey, i have the same problem! How did u fix it?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: In the end that call ended up costing Dell millions in lost contracts with Raytheon, and really...