Super Mario World

From Data Crystal
Revision as of 18:18, 19 February 2006 by Sukasa (talk | contribs)
Jump to navigation Jump to search

Super Mario World was the first SNES game, and is quite possibly the most extensively hacked SNES game.




Lunar Magic is the principal Super Mario World hacking utility. It is available here.

See also: List of Super Mario World utilities


There are ostensibly many complete hacks of Super Mario World.

See also: List of Super Mario World hacks

Level Format

Super Mario World uses an object-based format to store it's levels. These objects are grouped into 4 main categories:

  • Standard objects
  • Tileset specific Objects
  • Extended Objects
  • Direct MAP16 Objects

Standard objects Standard objects are such items are concrete blocks or pipes that use mainly the first page of8x8 and 16x16 tiles.

Tileset Specific Objects Tileset specific objects are objects listrs chosen by level tileset, and mainly use graphics from the second 8x8 page, and both normal MAP16 pages. These objects are not as widely available as other objecfts due to memory restraints and SMW's internal coding.

Extended Objects These objects are objects that were so far out to left field, or just used so rarely, they were not used as commonly as other objects, and so stored in their own definition.

Direct MAP16 objects Inclusion of an ASM hack by FuSoYa in Lunar Magic allows hackers to incorpaorate specific tiles in the MAP16 tables into a level. Normally, you would need a special object to do so, which is one reason for the disporportionate number of extended objects with a size of 1x1 16x16 tiles.


Blocktool is a program that allows you to enter your own custom block code and have it executed when certain events happen and when conditions are right. Unfortunately, when you have too many blocks, Super Mario world cannot handle nearly as many sprites onscreen at the same time, and your game experience goes down the drain. This is because of a loop in blocktool that execute once a frame for every custom block you have in your hack. Example: 21 blocks = 21 loops through the blocktool code, every frame. See where the slowdown comes from?

Blocktool Ω

Blocktool Ω is a new version of blocktool under development by Sukasa that aims to elimanate slowdown, regardless of how many custom block you have, by using a (large) 41/2-bank table and the SNES's multiplication registers to save time and CPU cycles.


RATS tags are some of the most important tags in an SMW ROM to a hacker. These tags are a way of reserving sections of the SMW ROM for your own use, so that it will not be overwritten by Lunar Magic. The format of the tag is quite simple, but seems complex from how it is explained elsewhere.

First, you have the ASCII text string "RATS" to write in. Then, you have a 16-bit number of the amount of bytes you want to reserve. Second, you have another 16-bit number that is the reverse of the first number. To get this number easily, just take the number &hFFFF and subtract your first number from it. After that, you can place your data following the tag, and then finally, you end your RATS tage with an &hFF after your data. Easy!


See also: Super Mario World:Fun facts

External Links