Skip to content

Custom Sound System

Melvin "Dumbass" Shwuaner edited this page Mar 7, 2025 · 11 revisions

NeoModLoader now allows you to load your own custom sounds from your mod into the game. these sounds must have the .WAV file format. sounds also have a data storer which stores data (is 3D, volume, Type (music / sound), loopcount) which is stored in a .json file with the same name as the .wav file (not required), you can also set this data using the ModifyWavData function in the custom soundmanager.

these sounds can be called using musicbox.playsound (recommended) or CustomSoundManager.LoadCustomSound

the typical .json file that stores the data looks like Type 1 means Sound, Type 0 means Music

{"3D":true,"Volume":50.0,"Type":1,"LoopCount":0}

Clone this wiki locally