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

Karma: 674
Posts: 254/257
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
Buzzy Beetle

Karma: 2017
Posts: 369/398
Since: 08-17-15
You can't. The SFX functions are hardcoded to play only the original SFX.
tre3 z0N3

Posted on 10-04-18, 08:59 pm

Karma: 8205
Posts: 1366/1617
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)

Karma: 796
Posts: 242/338
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