News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Editing the End Credits in Super Mario 2  (Read 2280 times)

vince94

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Editing the End Credits in Super Mario 2
« on: May 14, 2014, 08:58:35 pm »
I'm making a hack of Mario 2, and I'd like to fix some typos ("Clawglip" to "Clawgrip," "Hoopstar" to "Hoopster," and the Birdo/Ostro mix-up).
I made this table from examining the PPU when the end credits roll:
D0=A
D2=B
D4=C
D6=D
D8=E
DA=F
DC=G
DE=H
E0=I
E2=J
E4=K
E6=L
E8=M
EA=N
EC=O
EE=P
F0=Q
F2=R
F4=S
F6=T
F8=U
FA=V
FC=W
FE=X
CC=Y
CE=Z

However, when I search for stuff with the table file loaded into WindHex, the search fails.
Does anyone know how this text is stored?

KingMike

  • Forum Moderator
  • Hero Member
  • *****
  • Posts: 6928
  • *sigh* A changed avatar. Big deal.
    • View Profile
Re: Editing the End Credits in Super Mario 2
« Reply #1 on: May 15, 2014, 01:17:43 am »
I'm not sure but I have heard the text is sprites, and as such is stored as sprite data.
Try searching every 4 bytes (since each sprite definition is 4 bytes) C***L***A (or some games might omit the property byte, since it is the same, so if that doesn't work try wildcards with letters 3 bytes apart).
"My watch says 30 chickens" Google, 2018

CUE

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Nasío pa'jakear
Re: Editing the End Credits in Super Mario 2
« Reply #2 on: May 15, 2014, 03:25:07 am »
"CAST" -> 184ED, each 4 bytes -> D4=C, D0=A, F4=S, F6=T
"MARIO" -> 18B77, each 4 bytes -> E8=M, D0=A, F2=R, E0=I, EC=O

Found with rsearch: http://www.romhacking.net/utilities/998/

Examples:
> RSEARCH sm2.nes CAST 4 4 2
> RSEARCH sm2.nes MARIO 4 4 2

4 = char separaton (min & max)
2 = code increment (B=A+2, C=B+2, ...)

vince94

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: Editing the End Credits in Super Mario 2
« Reply #3 on: May 16, 2014, 10:40:14 am »
For anyone else hacking this, this is how all the text in the credits seems to work:
[letter] [00] [horizontal_position] [F9]
« Last Edit: May 16, 2014, 12:38:06 pm by vince94 »

CUE

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Nasío pa'jakear
Re: Editing the End Credits in Super Mario 2
« Reply #4 on: May 16, 2014, 10:44:48 am »
The format of NES sprites is :
- byte 0: Y position - 1
- byte 1: tile number
- byte 2: color & attibutes
- byte 3: X position