Skip to content

A exefs mod to play custom sounds in Tears Of The Kingdom.

License

Notifications You must be signed in to change notification settings

MediaMoots/Custom_SLink_Mod-TOTK

 
 

Repository files navigation

Custom SLink Mod - TOTK

A exefs mod to play custom sounds in Tears Of The Kingdom.

Installing

Download the latest release and install it as a ExeFS mod.

Usage guide for Modders

Type: Default playback

Syntax:

  • Prefix: CSM_
  • After Prefix: None
  • Postfix: None

Example

  • SLink Call: CSM_MySFX
  • BWAV Name in BARS: CSM_MySFX

Notes

Any slink calls with the prefix CSM_ will be rerouted and the asset with that name will be played directly.

So for example, if you have a sound effect/bgm you want to add, name it CSM_MySFX and then mod SLink calls in eventflows/ainb/asb/etc to call CSM_MySFX.

If a bwav with that name exists in the loaded bars for that event/actor/etc then it will play.

Type: Random playback

Syntax:

  • Prefix: CSM_RND_
  • After Prefix: Number of random sounds
  • Postfix: None

Example

  • SLink Call: CSM_RND_5_MySFX
  • BWAVs in BARS: CSM_MySFX_0, CSM_MySFX_1, CSM_MySFX_2, CSM_MySFX_3, CSM_MySFX_4, CSM_MySFX_5

Notes

Any slink calls with the prefix CSM_RND_ will be treated as a random sound playback.

A number needs to be provided after CSM_RND_ that indicates the maximum number of random sounds.

The mod will then call a random sound in range of 0 -> the maximum number specified.

Note

Use https://github.com/MediaMoots/TOTK_BARS_Tool to add bwavs to bars.

ToDo

  • Support more AssetParam configs

Credit

  • exlaunch - @shadowninja108
  • mc_decompressor @watertoon
  • Atmosphère: A great reference and guide.
  • oss-rtld: Included for (pending) interop with rtld in applications (License here).

About

A exefs mod to play custom sounds in Tears Of The Kingdom.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 63.8%
  • C 29.0%
  • Assembly 3.8%
  • Makefile 2.2%
  • Python 0.6%
  • Shell 0.4%
  • Batchfile 0.2%