Additional Music Slots

This article describes how to add additional music slots to the source of Newer Super Mario Bros. Wii.

For prerequisites, please see Setting Up and Compiling the Newer Sources.

music.cpp
In your  folder, locate the file   and open it with a text editor.

In line 21, there is a function that declares each variable of a list to be constants. Constants cannot be altered by the program.

The technical lingo aside, this is where the list of songs is generated for the game.

If we carefully check out the structure of this list then we'll notice the following:
 * Each entry is written on a new line.
 * The entry on the first line has ***Song ID 100*** later in-game.
 * The last possible song ID is.
 * To skip a song ID, an empty new line needs to be added.
 * The original game uses song IDs  (0 = "None").

It is therefore recommended to add new entries starting with song ID  to prevent interfering with Newer's songs.

The Original Code


Modified for Additional Songs


Additional Steps

 * If any of the new song IDs are used in a zone, then the equivalent .brstm or .er file needs to be present inside  in the Newer file system. See Custom Music.
 * The text file for Reggie (Next) holding all the music entries needs to be updated so that all new entries are available. This is done in the file  inside the folder

Setting the song ID to the respective number without changing  works as well. It's just more convenient having the correct song names shown inside Reggie.


 * A modified music.txt file