Changing the Exception Handler Message

From NSMBW Knowledge Base
Jump to navigation Jump to search

In order to edit the Exception Handler Message of Newer Super Mario Bros Wii, you need to know how to compile NewerSMBW's source code.

Tutorial written by User:RedStoneMatt, and slightly edited by User:9211tr.


Step 1: Opening the File which contains the Exception Handler Message[edit | edit source]

Randomcrap.S location.png

In the Newer Source Code, go to the folder:

NewerSMBW-master/Kamek/src

if you're using the master branch of Newer Source Code.

If you're using the no-translations branch, it will be:

NewerSMBW-no-translations/Kamek/src

If you've done this correctly, you'll see this folder:

Now, open the randomcrap.S file with Notepad++ or another text-editing software.

Step 2: Editing the Exception Handler Message[edit | edit source]

Exephandlermessage.png

In the randomcrap.S file, go the the 615th line and you'll see the Exception Handler Message:

Now, you just have to edit the text. In order to go to the next line, use \n. In order to add a left slash character, use \\. In order to add a double quote character, use \".

Here is an example of an edited Exception Handler Message:

.string "OOF! \"MyHack\" has crashed.\nPlease take a screenshot of the info below,\nsave it where you want and do what you want with it\nsince nobody cares about it\nYou can scroll through this report using the D-Pad.\n"

Step 3: Compiling[edit | edit source]

Now, you just need to compile your edited source code. After recompiling it, just copy the bin files into your NewerRes folder and launch the game.

Step 4: How to see the edited Exception Handler Message[edit | edit source]

On a real Wii or Wii U[edit | edit source]

The easiest way, simply make an error in the file you want in your Newer Source code and launch the game. If the error you made crashes the game, you'll see the edited Exception Handler Message you just made.

The quicker way, without modifying the Newer Source code, is to use this save file pack here. Read the readme.txt file in the pack before doing anything.



On a Wii Emulator (Dolphin)[edit | edit source]

Open Dolphin

Dolphinlog.png









Click View > Show Log and View > Show Log Configuration.








Togglelog.png







A window will appear, Click Log Configuration and then click Toggle All Log Types.




Seelog.png





Then, click Log and you'll be able to see the logs of the game.

Now, make an error in a Newer Sources file. Launch the game, if the error you made crashes the game, two things can happen: Most of the time, Dolphin will just show some errors and crashes, but if you're very lucky, you'll see the Exception Handler Message in the logs of the game.