Pages: 1
Posted on 10-04-18, 05:20 pm
Flurry


Karma: 724
Posts: 254/258
Since: 10-14-11
I see that it's possible to add additional sounds to .swar files, such as the following:


(Sound 11 is the new sound that I added).

I'd like to use this new sound in the PlaySNDEffect function. However, I do not know the value for it.
How can I go about finding the value needed?
Posted on 10-04-18, 08:36 pm
Nipper Plant


Karma: 2406
Posts: 369/417
Since: 08-17-15
You can't. The SFX functions are hardcoded to play only the original SFX.
Posted on 10-04-18, 08:59 pm
Mariomaster

Karma: 8528
Posts: 1366/1681
Since: 06-09-12
Well, asm hacking does exist to change hardcoded stuff
_________________________
GitHub - Kuribo64 - YouTube
Posted on 10-05-18, 02:43 pm (rev. 1 by  KTRMAmbiance on 10-05-18, 02:44 pm)
Buzzy Beetle


Karma: 929
Posts: 242/394
Since: 11-20-15
If that new sound is being used by a SSAR that uses a SBNK that manages the sound effects (i.e. WAVE_VS_COMMON_PLAYER_BASE_SE.sbnk), then it's possible to use the new sound file. You can edit the sound effect's corresponding SBNK file using Nitro Studio or a hex editor, to make it use the new file.
_________________________
Pages: 1