Kitty Corp Meow Mix Forums

Super Smash Bros. Brawl Hacking => Music & SFX => Topic started by: PlayingGames97 on November 05, 2017, 10:46:15 AM



Title: BRSTM files don't play in Dolphin
Post by: PlayingGames97 on November 05, 2017, 10:46:15 AM
No idea why this is happening, but I have two BRSTM files with loops assigned that I've made myself with BrawlBox v0.71.

Neither of them play when added to my virtual SD card (with the correct names, yes). I have no idea if it's because the files are too loud or large.

Here are the BRSTM files I've made:
https://drive.google.com/open?id=0B7fMVFszCNqid09HMW9oekpQT3M
https://drive.google.com/open?id=0B7fMVFszCNqiTFprUGJMVmN1MFU


Title: Re: BRSTM files don't play in Dolphin
Post by: Ebola16 on November 11, 2017, 10:44:26 PM
Using Brawlex with File Patch Code File Patch Code v3.5.1 can cause the problem you describe. Use File Patch Code v3.5.1b instead, which can be found in the original Brawlex download.

If it's not that, enable logging in Dolphin and see if it shows anything abnormal when playing your files. They worked fine for me in Dolphin.


Title: Re: BRSTM files don't play in Dolphin
Post by: PlayingGames97 on November 13, 2017, 10:00:34 AM
Using Brawlex with File Patch Code File Patch Code v3.5.1 can cause the problem you describe. Use File Patch Code v3.5.1b instead, which can be found in the original Brawlex download.

If it's not that, enable logging in Dolphin and see if it shows anything abnormal when playing your files. They worked fine for me in Dolphin.
Sorry for the late reply. I used the code you gave me and tried playing the game with logging enabled, and then without it. Same result.


Title: Re: BRSTM files don't play in Dolphin
Post by: Ebola16 on November 13, 2017, 10:46:46 AM
Ok, there's a few possibilities for the cause of your problem.

Test these on Dolphin 5.0-5810:

Are there still audio issues with the files you made if you use them to replace a different BRSTM?

Are there still audio issues if you replace one of the problematic BRSTMs with a different one that is known to not have issues (like any of the other music included in the game)?

And can you post the contents of your log once audio problems occur?


Title: Re: BRSTM files don't play in Dolphin
Post by: PlayingGames97 on November 13, 2017, 11:54:31 AM
Ok, there's a few possibilities for the cause of your problem.

Test these on Dolphin 5.0-5810:

Are there still audio issues with the files you made if you use them to replace a different BRSTM?

Are there still audio issues if you replace one of the problematic BRSTMs with a different one that is known to not have issues (like any of the other music included in the game)?

And can you post the contents of your log once audio problems occur?

Yes, and yes.

And here's the log:
03:04:226 HW\EXI_DeviceIPL.cpp:339 N[OSREPORT]:  File Read  (SD): Open failed (/private/wii/app/RSBE/pf/sound/strm/G04.brstm) 
03:05:394 HW\EXI_DeviceIPL.cpp:339 N[OSREPORT]:  File Read  (SD): Open failed (/private/wii/app/RSBE/pf/sound/strm/G05.brstm) 
03:06:579 HW\EXI_DeviceIPL.cpp:339 N[OSREPORT]:  File Read  (SD): Open failed (/private/wii/app/RSBE/pf/sound/strm/G07.brstm) 
03:08:430 HW\EXI_DeviceIPL.cpp:339 N[OSREPORT]:  File Read  (SD): Open failed (/private/wii/app/RSBE/pf/sound/strm/G08.brstm) 


Title: Re: BRSTM files don't play in Dolphin
Post by: Ebola16 on November 13, 2017, 12:53:32 PM
Answering yes to my second question indicates an issue that will be difficult to debug. If you want, you can upload your SD contents (before inserting the problematic BRSTMs) to a file sharing service and post the link here. Include a .txt file with the codes included in your .gct and the two BRSTM files in the root of your SD card. I'll insert the BRSTM files myself.


Title: Re: BRSTM files don't play in Dolphin
Post by: PlayingGames97 on November 13, 2017, 04:39:25 PM
Answering yes to my second question indicates an issue that will be difficult to debug. If you want, you can upload your SD contents (before inserting the problematic BRSTMs) to a file sharing service and post the link here. Include a .txt file with the codes included in your .gct and the two BRSTM files in the root of your SD card. I'll insert the BRSTM files myself.
Ok, here you go. https://drive.google.com/open?id=1ePcjkRHL-DZddY-tL39nSAyY3LAxIZcO


Title: Re: BRSTM files don't play in Dolphin
Post by: Ebola16 on November 13, 2017, 08:20:01 PM
Just making sure, you need to rename your BRSTM files to the ones you want to replace. 608 and 609 won't be detected by Brawl. If you want to add songs instead you'll need the Custom Sound Engine v3.0 - Currently in Public Testing Phase (https://smashboards.com/threads/custom-sound-engine-v3-0-currently-in-public-testing-phase.431467/) and related codes.

Additionally, you're probably experiencing https://bugs.dolphin-emu.org/issues/10636
Dolphin incorrectly treated 2 GiB SD cards as SDHC. This should be fixed in Dolphin 5.0-5821 and later.


Title: Re: BRSTM files don't play in Dolphin
Post by: PlayingGames97 on November 14, 2017, 03:55:36 PM
Just making sure, you need to rename your BRSTM files to the ones you want to replace. 608 and 609 won't be detected by Brawl. If you want to add songs instead you'll need the Custom Sound Engine v3.0 - Currently in Public Testing Phase (https://smashboards.com/threads/custom-sound-engine-v3-0-currently-in-public-testing-phase.431467/) and related codes.

Additionally, you're probably experiencing https://bugs.dolphin-emu.org/issues/10636
Dolphin incorrectly treated 2 GiB SD cards as SDHC. This should be fixed in Dolphin 5.0-5821 and later.
Getting 6 and G mixed up. Huh... :S


Title: Re: BRSTM files don't play in Dolphin
Post by: Ebola16 on November 14, 2017, 04:02:11 PM
Getting 6 and G mixed up. Huh... :S

That would definitely be a problem!


Title: Re: BRSTM files don't play in Dolphin
Post by: Roadhog360 on November 17, 2017, 03:21:03 PM
I'm having the same problem. Dolphin just plays a messed up version of the replaced song instead of the one I put in. If it's over a CSE slot, it plays Mushroomy Kingdom's theme at a really high pitch instead.


Title: Re: BRSTM files don't play in Dolphin
Post by: Ebola16 on November 17, 2017, 06:10:59 PM
I'm having the same problem. Dolphin just plays a messed up version of the replaced song instead of the one I put in. If it's over a CSE slot, it plays Mushroomy Kingdom's theme at a really high pitch instead.
Make sure you have the appropriate file patch code for your build.

 If you want, you can upload your SD contents (before inserting the problematic BRSTMs) to a file sharing service and post the link here. Include a .txt file with the codes included in your .gct and the problematic BRSTM files in the root of your SD card. I'll insert the BRSTM files myself.


Title: Re: BRSTM files don't play in Dolphin
Post by: Roadhog360 on November 18, 2017, 12:24:16 PM
Make sure you have the appropriate file patch code for your build.

 If you want, you can upload your SD contents (before inserting the problematic BRSTMs) to a file sharing service and post the link here. Include a .txt file with the codes included in your .gct and the problematic BRSTM files in the root of your SD card. I'll insert the BRSTM files myself.
Hm, before I try uploading a 2GB behemoth of a file, what FPC is recommended for Brawl? I use 3.5.1 pretty sure, but just send me the one you recommend I use just to be safe, even if it's 3.5.1.
BTW, I tried DMing you on Discord but you don't seem to be online.

EDIT: Uploading video now.


Title: Re: BRSTM files don't play in Dolphin
Post by: Ebola16 on November 18, 2017, 12:29:44 PM
3.5.1 is fine unless you're using Brawlex. Brawlex needs 3.5.1b which is in the original Brawlex download.


Title: Re: BRSTM files don't play in Dolphin
Post by: Roadhog360 on November 18, 2017, 12:32:20 PM
3.5.1 is fine unless you're using Brawlex. Brawlex needs 3.5.1b which is in the original Brawlex download.
I am indeed using BEx, let me try 3.5.1b.
BTW, this only happens on Dolphin, custom music is fine on Wii.


Title: Re: BRSTM files don't play in Dolphin
Post by: Ebola16 on November 18, 2017, 12:34:04 PM
I am indeed using BEx, let me try 3.5.1b.
BTW, this only happens on Dolphin, custom music is fine on Wii.

I suspect that's your problem. If it's not you can upload your files.


Title: Re: BRSTM files don't play in Dolphin
Post by: Roadhog360 on November 18, 2017, 12:38:48 PM
https://youtu.be/7IS48Qe2qts
Also, here's the aforementioned video in my edit. I'm applying FPC 3.5.1b now but I think maybe seeing, or rather, hearing exactly what happens to me can help you help us. First song played is CSE, which all CSE songs sound the same. The second song, the Smash 4 menu theme, is over Menu 2 and so you can get a grasp of what happens when I play a song over CSE slots or replaced slots.

Post Merge: November 18, 2017, 12:41:17 PM
DERP... It seems Bandicam recorded NONE of the game audio, I'll make a new video later, trying 3.5.1b now.


Title: Re: BRSTM files don't play in Dolphin
Post by: Ebola16 on November 18, 2017, 12:46:17 PM
If the problem isn't solved by 3.5.1b it would be more practical for me to have the files as previously mentioned so I can see what's going on in your setup.


Title: Re: BRSTM files don't play in Dolphin
Post by: Roadhog360 on November 18, 2017, 12:50:26 PM
Yes, that was my next plan.


Post Merge: November 18, 2017, 12:57:50 PM
Okay, so it didn't work, so I'm uploading the file now. Don't see how taking out the BRSTMs will help, but I'm still doing it since you asked me to.

Post Merge: November 18, 2017, 04:34:56 PM
Still uploading... 62%...

Post Merge: November 18, 2017, 05:47:29 PM
And the power went out right when it was at like, 80%. With how long that took, I'm not trying to uploa again, sorry. Please just tell me what you do so I can fix the problem.


Title: Re: BRSTM files don't play in Dolphin
Post by: Ebola16 on November 18, 2017, 06:09:45 PM
There's too many possibilities at this point so explaining what to do without having access to the files is impractical. I'd suggest trying the upload again later. Also, notifications aren't sent for post merges so you probably shouldn't reply until you have a link to your files.


Title: Re: BRSTM files don't play in Dolphin
Post by: Roadhog360 on November 18, 2017, 06:21:48 PM
https://gamebanana.com/gamefiles/5678
Here, try this then.
It's not the same build but the same exact issue happens.
At the time, I didn't know how to change the My Music menu (I do now) so the replaced songs in this build are Menu 2 (Melee) and Green Greens (Melee).


Title: Re: BRSTM files don't play in Dolphin
Post by: Ebola16 on November 18, 2017, 07:46:02 PM
https://gamebanana.com/gamefiles/5678
Here, try this then.
It's not the same build but the same exact issue happens.
At the time, I didn't know how to change the My Music menu (I do now) so the replaced songs in this build are Menu 2 (Melee) and Green Greens (Melee).
For the setup you linked, I was able to reproduce the faster, distorted audio when replacing W15.brstm with an arbitrary brstm. The included codes used a File Patch Code that wasn't File Patch Code 3.5.1b. Replacing the old code with File Patch Code 3.5.1b solved the problem for me. I couldn't test any CSE related codes as there was no string that matched "custom sound engine" or "cse" in the codes .txt file

Post Merge: November 18, 2017, 08:06:11 PM
Menu 2 (Melee) and Green Greens (Melee) also sounded fine after replacing the file patch code


Title: Re: BRSTM files don't play in Dolphin
Post by: Roadhog360 on November 19, 2017, 01:11:50 AM
Huh, strange. When I did the FPC update, it was still distorted. At the time, CSE was not applied as this build doesn't have custom music over new slots so I didn't need it.
I'll try again, and also I'll attempt uploading sd.raw if it still does not work.

Edit: Strangely enough, doing it again worked. Thanks so much for directing me towards the solution, and at that I hope it helps the person above find their solution, too!
In case he doesn't want to dig for FPC 3.5.1b, here.
File Patch Code v3.5.1b
E0000000 80008000
225664EC 00000000
0401BFE0 4858BE20
065A7E00 00000070
38A00067 38810020
3CE0805A 60E37C18
4BE52531 38A0007F
3883FFE8 38610020
4BE52521 38A00068
60E47C18 38610020
9421FF80 BC410008
38610088 4BA74DB9
7C7C1B78 2C030000
4082000C 38210080
4800001C B8410008
38210080 4BE524E5
38610008 4BA742E1
7C7C1B78 4BA741E8
040223E0 48585BC0
065A7FA0 00000028
80010044 3C608001
6063581C 7C001800
4082000C 7FDDC850
3BDEFFE0 93DB0008
4BA7A424 00000000
0401CD0C 4858B1F4
065A7F00 00000038
2C030000 4182000C
4BA7DD51 4BA74E04
80780008 2C030000
41820014 8118000C
7C634214 7C7B1850
48000008 8078000C
4BA74DE0 00000000
043EE9D8 48000014
043EEBD4 48000014
043D8B9C 48000018
043E9B4C 38600000
043E9D38 38600000
043D8C80 60000000
80000000 80406920
80000001 805A7C00
8A001001 00000000
045A7C10 2F525342
045A7C14 452F7066
80000001 805A7B00
8A001001 00000000
065A7B10 0000000F
2F525342 452F7066
2F736F75 6E642F00
041C6CE0 483E0D20
065A7A00 00000028
9421FF80 BC410008
3C60805A 60637B1F
4BE52931 B8410008
38210080 4BE52995
4BC1F2C4 00000000
065A7900 00000078
9421FF80 7C0802A6
9001000C BC810010
9421FF00 7C872378
54B2BA7E 7CD33378
38800000 9081000C
90810010 90610014
90810018 3880FFFF
9081001C 38610020
90610008 7CE43B78
38A00080 4BE529F5
38610008 4BA752A1
60000000 80210000
B8810010 8001000C
7C0803A6 80210000
4E800020 00000000
043E399C 481C3F04
065A78A0 00000010
80BC0020 7CA59214
3A400000 4BE3C0F4
043DBAEC 481CBDE4
065A78D0 00000018
800302A4 2C130000
41820008 7E609B78
3A600000 4BE3420C
041CDF7C 483D9884
065A7800 00000098
818C0014 9421FF80
BC410008 60000000
60000000 60000000
60000000 7C882378
3C60804D 60630000
3C80805A 60847B00
7CC53378 38C04200
80E40080 2C070000
40820014 60000000
480000B9 2C030000
41820010 B8410008
80210000 4BC26724
70A501FF 3868FFFF
3C80804C 6084FFFF
7C842A14 38A04001
38A5FFFF 8C040001
9C030001 2C050000
4082FFF0 B8410008
80210000 4BC2670C
141CCF90 483DA770
065A7700 00000048
9421FF80 BC410008
7FE3FB78 3C80805A
60847B00 38A00000
38C04000 480001E5
90640080 807F0008
907A0014 907A005C
907A0074 B8410008
80210000 807F0000
4BC25854 00000000
E0000000 80008000


Title: Re: BRSTM files don't play in Dolphin
Post by: Ebola16 on November 19, 2017, 01:48:06 AM
Great!