Garry's Mod

Garry's Mod

Simple Battle Music
 This topic has been pinned, so it's probably important
NextKurome76TheSoldier  [developer] 19 Feb, 2021 @ 11:46am
Creating your own SBM DLC pack
This is a brief and simple tutorial on custom music for SBM.

First things first, prepare some music that you'd like to hear in-game. Do try to cover all three active combat types: aliens, soldiers and bosses, along with ambient. Otherwise end users will have to resort to installing other packs to fill in the missing spots.

Next up, do any trimming and cropping you need and convert the result to .ogg. It is preferable that the track you're making gradually fades in and out. Avoid abrupt starts and cuts, Audacity is a good tool for that.

EDIT: downline made a tool that can automatically convert your tracks to .ogg, along with fading then in and out, get it here: https://github.com/johnpaster/sbmconverter
you should use audacity though: https://www.audacityteam.org/download/

Finally, get the total playtime of the track you just made, in seconds. Add this value to the end of the filename, starting with an underscore.
It should look like this: TRACKNAME_999.ogg, _999 being the playtime.

EDIT: If you track is shorter than 100 seconds, make sure to use _0XX instead of _XX

Now download the template: https://mega nz/file/cFkVyaxT#zzWrpcwHdsdqkuT1gODmG03eKwA2SH-3gMx6X6yvTfM

Unpack it into your "Garry's Mod/garrysmod/addons" folder and start filling up the track types. Remember that you need to preserve the original folder structure the file comes with, including the initial template folder. You can rename it later, just don't forget that you need it. There are no minimal requirements, just do your best to have at least one track in each folder.
After you finish spreading out the tracks, clean up all the dummy files.
Once you're done with all that, give whatever you just created a bit of playtesting. Debug commands might help you with that.

If it works correctly, feel free to upload it to the workshop, using the template as your base folder. A universal frame for whatever image you picked as a logo is included in the archive, do use it to keep things noticable and recognizable. There's also a template for your addon name and description. Don't forget to add the base mod as a required item.

You can also convert old DYNAMO packs very easily to SBM.
Last edited by NextKurome76TheSoldier; 9 Sep, 2023 @ 10:56am
< >
Showing 1-10 of 10 comments
Just a friendly note doesn't appear the link to the template works just gives me an error page.
NextKurome76TheSoldier  [developer] 20 Feb, 2021 @ 3:02am 
fix up the link, its missing a dot
NextKurome76TheSoldier  [developer] 20 Feb, 2021 @ 3:02am 
steam doesnt allow mega links
rlx 4 Mar, 2021 @ 3:43am 
Original script creator here. Came to link a newer version on my new github account: https://github.com/johnpaster/sbmconverter
Would love if you linked to that instead of the older version, I've made quite a few improvements such as dynamic fade times that depend on the duration of a song or taskbar icon flashing after the work is done, along with some smaller changes.
NextKurome76TheSoldier  [developer] 4 Mar, 2021 @ 7:24am 
can do
Voovy 6 Jul, 2021 @ 7:26am 
for "battlemusic\combat\" you only have 3 folder "aliens, bosses and soldiers" unlike in the original mod (Dynamic) your have a fourth file called "cops"... where did it goes? is that normal?
NextKurome76TheSoldier  [developer] 6 Jul, 2021 @ 7:28am 
cops now share a folder with soldiers
Voovy 6 Jul, 2021 @ 7:52am 
Ok. Thank you for that quick answer.
Hans (Sam) 15 Jul, 2021 @ 12:22pm 
Short and sweet. Thanks man.
Miku 5 Aug, 2022 @ 2:21am 
I cant seem to get my music playing, even when i did everything right.
< >
Showing 1-10 of 10 comments
Per page: 1530 50