Need help with changing music slots

Status
Not open for further replies.
So, i'm currently making a music wad just for fun, but i wanted to have each map have it's own music. So for example, all 7 special stages in srb2 have the same tune, but i want to change that so each special stage will have a different song for it. I've been looking everywhere i could think of and i couldn't find a solution to that so, help would be much appreciated.
 
Hi,

Part I (for any case) - Create a music wad:

1) Download and install SLADE: http://wiki.srb2.org/wiki/SLADE.
2) Create a new wad archive: click on the "A" icon in the toolbar.
3) Import the sound files: click on the double-green arrow icon. SLADE will create an entry for each imported file.
4) Rename the entries to O_MAPxxM. xx is the map number. For map numbers greater than 99, use Extended Map Numbers. Special stages are 50 through 57.
5) Save it as wad file, preferably no spaces in the file name.

More info: http://wiki.srb2.org/wiki/Sound_and_Music_Tutorial

Part II (only for special stages) - The trick: overriding the MAINCFG

1) Create a text file
2) Add this:
Code:
Level 50
MusicSlot = 50
TypeOfLevel = 4097
SkyNum = 50
NoPerfectBonus = 1

Level 51
MusicSlot = 51
TypeOfLevel = 4097
SkyNum = 51
NoPerfectBonus = 1

Level 52
MusicSlot = 52
TypeOfLevel = 4097
SkyNum = 52
NoPerfectBonus = 1

Level 53
MusicSlot = 53
TypeOfLevel = 4097
SkyNum = 53
NoPerfectBonus = 1

Level 54
MusicSlot = 54
TypeOfLevel = 4097
SkyNum = 54
NoPerfectBonus = 1

Level 55
MusicSlot = 55
TypeOfLevel = 4097
SkyNum = 55
NoPerfectBonus = 1

Level 56
MusicSlot = 56
TypeOfLevel = 4097
SkyNum = 56
NoPerfectBonus = 1

Level 57
MusicSlot = 57
TypeOfLevel = 4097
Skynum = 57
NoPerfectBonus = 1
MusicSlot = xx tells SRB2 which music to play

3)Save it as MAINCFG.txt
4) Open up your music wad in SLADE, import the text file into your music wad.
5) Make sure that SLADE created a MAINCFG entry.
6) Save it.
6) Start up SRB2 and load your music wad by addfile command.

More info: http://wiki.srb2.org/wiki/Level_Header

I'm using the a SLADE devbuild. If you use the latest stable, these instructions may be slightly different.

Please, reply with the result.
 
Last edited:
Sorry that i'm late with the reply, but your instructions worked like a charm! I have a question though, so i can get a better understanding of this.

So each time you begin a new paragraph for the MAINCFG text file, you need to write "Level *Map number here* at the beginning, right? So for example, if the map is called "mapAA", so it has letters in it instead of numbers, do i begin the paragraph with "Level AA", or does it work differently then that?
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top