Effects

Credits: Nin0, Zementblock

Effects from the original game
7xDysvlGILA

General explanation
Effects are split in two files, a  and a   file. All effect files in NSMBW can be found in the directory.

A  file contains the control information and a    file the graphic and texture data. For more information on the file formats themselves, consider visiting http://wiki.tockdom.com/wiki/BREFF_and_BREFT_(File_Format).

Some of the effects need certain sprites placed in the level to be spawned. The files  and   are always loaded though, which means adding a new entry here allows us to easily spawn the new effect with it's name only within our custom Code.

Adding new effects
(written for Windows, should work with other operating systems as well though)

After testing multiple tools, Wiimms SZS Tools proofed to be the most reliable one for adding new effects, as BrawlCrate crashes while editing breff files while BrawlBox breaks the files while saving. Wexos Toolbox supposedly didn't work for someone as well.

After installing Wiimms SZS Tools (wszst), you have to restart your computer once.

If wszst is installed it should have been added to your environment variables (Path). This makes it possible to use wzszt in the cmd without having to specify it's installation path.

Extracting the existing effects
Open the cmd and go to the folder of your effects, e.g. : Now extract the existing effects, e.g   and  :

Adding an effect
Now you you have to add a new effect. This effect has to be extracted as well using the above method.

Add the extracted files of the new effect to the extracted files of the existing effects, e.g. for  and  : (These directories get created while extracting the existing effects with wszst.)

(Re-)Create the breff and breft files
The last step now is to create the new breff and breft files. You can delete or backup your existing once at this point.

While in the directory where you extracted the existing effects type, e.g. for  and  : Now you have succesfully added your new effect(s) to the game.

Spawning effects with code
To spawn a new effect added to  and   you can use the following code: