Retro Hackers LogoGuestLog in

Summer Tree
News
Database
Users
Projects
Game Ports
Videos
Music
Material
Feedback

Mario Smoke Fix

Original game : Super Mario 64

Platform : N64

Author : zoinknoise

Release date : 18 March 2020

Category : Bug Fix

Patch version : 2.0

Modifications : G

Downloads : 2920

ROM Information

Database match: Super Mario 64 (USA)
Database: No-Intro: Nintendo 64 (v. 20180814-043336)
File/ROM SHA-1: 9BEF1128717F958171A4AFAC3ED78EE2BB4E86CE
File/ROM CRC32: 3CE60709

Hack description

This is a set of three BPS patches to fix Mario's "on fire" texture in SM64. Thanks to the recent decompilation efforts, it's now known that this texture is displayed in the wrong format by the game, resulting in black garbage pixels. Since video game smoke of this era was often depicted with black garbage pixels, the mistake went unnoticed for over two decades. This patch corrects the error by displaying the texture correctly as proper transparent smoke. It does not add any new art; the texture has been inside the ROM all along.

Simply apply the patch you want to the respective version of the game. Since the Shindou Edition has not yet been decompiled at the time of writing, no patch is available for it.

If you are decompiling the game, you can make this change very easily without using patches:
-Open /actors/burn_smoke/model.inc.c
-On line 47, change the reference "G_IM_FMT_RGBA" to "G_IM_FMT_IA"

At build time, this will compile the texture into IA16 format (correct) instead of RGBA16 (incorrect).

(O2 compressed the US AND Japanese versions to reduce their lag. - Wizard)

Screenshots

Contributions

ContributorType of contributionDescription
zoinknoiseHacking

Reviews

Wish it could work with the Reduced Lag hackShift2020-12-06Version 2.0

It's nice that this easily fixes the smoke clouds in game, they look a lot better. But it'd be even better if it could be made compatible with the Reduced Lag hack by Nintendo 64 Wizard, as they both come from the same decompiling efforts.

This patch isn't particularly useful for anyone2020-04-10Version 2.0

I don't know why this needed to be a rom made with the SM64 decompilation project, this is extremely unsuitable for other romhackers, due to how since there's so much more changed other than the smoke fix by using decomp. Other romhackers can't use it for their projects due to that, this change needed a total of 3 bytes to be altered, yet these patch files are gigantic. I would highly recommend changing this so it is not just a big file size change for nothing, as it stands, its only useful for people who want to see the smoke change and nothing else, so I don't think this is a very good patch in the slightest.