Views: 943,078,689
18 users online: ASSATAKKU,  Atari2.0, AttentionDeficitDad, bandicoot, Big T_332, CalHal, GangsterJerby, mikairanutshack, NerdHasGoneAWOL, Olhi, Raymondsze, RichardDS90, Stivi, TenBlade, The Central Scrutinizer, Ultima, VLSkoot, WhiteYoshiEgg - Guests: 89 - Bots: 214 Users: 52,440 (2,009 active)
Latest: valsillios
Tip: Fix any errors you see before releasing any demos; "I'll fix it later" isn't a good excuse.
Not logged in.
First part of credits black if triggered from main exit (solved)
Forum Index - SMW Hacking - SMW Hacking Help - First part of credits black if triggered from main exit (solved)
Pages: « 1 » Link
I hijacked the level end routine to warp to credits after the end of the level. This works great when I take the secret exit, or the "boss exit" (ending the level by killing a boss), but not the main exit. When I do take the main exit, the first part of the credits (the staff roll) is completely black. The music still plays, however, and the further parts of the credits work fine.

org $00CA01
LDX #$08
STX $13C6+!Base2
LDY #$18
STY $0100+!Base2
INC $13D9+!Base2

(Base2 is $6000 when using SA-1, $0 otherwise)

This happens both with SA-1 and without.
I've done a lot more research on this, but still no results. I grabbed an old version of bsnes with a debugger, set a breakpoint at the start of my code, and dumped the RAM every time I reached the level end. I then beat a level 9 times - thrice using the main exit, thrice using the secret exit and thrice by beating a boss. Then I compared the RAM dumps and looked that addresses that had one value when the credits worked and a different one when they didn't. I put all those addresses in a file and looked each of them up in the RAM map. In total I got 72 addresses, but I still haven't figured out what the problem is. Here's a link to the document if anyone wants to help me.
Looking at the document you posted

Address $7E0DAE: $0F, $00 ; Handles brightness and force blank. (max brightness in others, min in main) interesting?
Address $7E0DAF: $01, $00 ; others: growing mosaic, main: shinking mosaic

These look like the most interesting ones. Try setting these addresses to the values that work (The ones from the secret exit)
It was the mosaic one. I actually tried every one with "interesting?" in the end individually, but didn't think of the mosaic one. (I must've figured that if there is no actual mosaic, then that could not have been the problem.) Anyways, thanks so much for the help!
The "mosaic" address just tells the game in what direction it should fade (0 fade out, 1 fade in) it handles both mosaic and brightness. If the animation doesn't use mosaic it just handles brightness.

But yeah, the ram map's description never actually mentions that
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - First part of credits black if triggered from main exit (solved)

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2021 - SMW Central
Legal Information - Privacy Policy - Link To Us


Follow Us On

  • YouTube
  • Twitch
  • Twitter


  • Super Mario Bros. X Community
  • Mario Fan Games Galaxy
  • sm64romhacks