PDA

View Full Version : [Music / SFX] Restart Music [MusicRestart.txt]



EcoloTheHeroOfSega
January 6th, 2018, 19:12
Quickie here!

Is there the beginning of a song in SRB2 that you like but you don't want to just do tunes? Well RESTARTMUSIC IS FOR YOU.

Put this in your AutoExec.cfg file (If you made one):
alias RestartMusic "exec MusicRestart.txt"

What this does is restart your music when you want to.

Sky
January 6th, 2018, 23:36
Late welcome to modifications! Was in a rush and forgot to give the standard welcome post.

Sonic Fan2000
January 8th, 2018, 19:05
very very good wad! i rate 10 of 10 it helped very much in my time in playing srb2 online when song i don't like play i restart very good! nice!

ampersand
January 8th, 2018, 19:08
But...
There's already a command to restart the audio...
It came bunded with 2.1.20 and it's named restartaudio

Sky
January 8th, 2018, 20:25
But...
There's already a command to restart the audio...
It came bunded with 2.1.20 and it's named restartaudioInteresting...didn't know that command existed. Compared the two though, and the restartaudio command seems to cause a minor lag spike while this one doesn't. I'm assuming restartaudio restarts the entire audio system for SRB2, causing the lag spike. This script just resets it with the tunes command. So eh.

ampersand
January 8th, 2018, 20:55
Ah, that makes sense.

EcoloTheHeroOfSega
January 21st, 2018, 05:53
Its ok! rushes always happen.

- - - - - - - - - -

oops! Code is wrong!