Points of Required Attention™
Smaghetti, a new Super Mario Advance 4 editor, is currently in development! Check out the thread HERE!

Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,314,561
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 03-28-24 11:49 PM
Guest: Register | Login

0 users currently in ROM Hacking | 4 guests

Main - ROM Hacking - Game Genie Code Troubles New thread | New reply


GameGenie81
Posted on 12-06-07 08:50 AM (rev. 2 of 12-06-07 08:54 AM) Link | Quote | ID: 71273


Koopa
Level: 24

Posts: 16/100
EXP: 77913
Next: 212

Since: 08-15-07
From: Milwaukie, OR

Last post: 5405 days
Last view: 5358 days
Hi,

Does anyone know what would be the proper hex value to go with hex address 0x1107 (0x9107 as recognized by the NES' CPU) to make the following SMB level songs play all the time for always (except for the scene movement and bonus stage songs which are unchanged by this code), rather than shift songs every now and then?

The GG codes that are not properly described:

TZEPYO (hex value 2E) - Low background music
TPEPYO (hex value 1E) - Koopa Stage music
YYAPYO (hex value 7F) - Star Man music

The same results are confirmed when I entered these same codes in NEStopia and FCE Ultra.

Only KAEPYO (underwater; hex value 8C) and PTEPYP (underground; hex value 61) hold true to their descriptions.

Thank you,



Ben


____________________
We are a nation with no geographic boundaries, bound together through our beliefs. We are like-minded individuals, sharing a common vision, pushing toward a world rid of color lines.

frantik
Posted on 12-06-07 11:06 AM Link | Quote | ID: 71279


Red Koopa
Level: 28

Posts: 41/139
EXP: 127105
Next: 4233

Since: 10-09-07

Last post: 4461 days
Last view: 4454 days
the problems stem from the fact 9107 is in the middle of an LDY command ($9106:AC 4E 07 LDY $074E) . The value you are changing causes it to pull a value from different parts of memory in the $07xx range. You need the number stored in the memory address to be between 0 and 3 for the main music types which are water, underground, overworld, and castle respectively. unfortunately it's not so easy to find areas in memory which will always be a certain value (excluding 0 which isn't too hard)

you're better off rewriting the whole line to something like LDY #$01 cause then you can just change the numeric value. This will cost you 3 game genie codes though

try replacing AC 42 07 with A0 XX EA. (where XX is 00 thru 03)

EZAPTP
AAAPYP (or PAAPYP, ZAAPYP, LAAPYP)
XTAOAO

GameGenie81
Posted on 12-06-07 10:23 PM (rev. 2 of 12-07-07 03:36 AM) Link | Quote | ID: 71299


Koopa
Level: 24

Posts: 17/100
EXP: 77913
Next: 212

Since: 08-15-07
From: Milwaukie, OR

Last post: 5405 days
Last view: 5358 days
Posted by frantik
try replacing AC 42 07 with A0 XX EA. (where XX is 00 thru 03)

EZAPTP
AAAPYP (or PAAPYP, ZAAPYP, LAAPYP)
XTAOAO



Let me give you some more insight on these codes, courtesy of FCEUXD:

KAEPYO - Underwater music
Address: 9107
Compare: N/A
Value: 8C
Possible affected ROM addresses: 001117, 003117, 005117, 007117
Debug line: $9106:AC 8C 07 LDY $078C = #$00

PTEPYP - Underground music
Address: 9107
Compare: N/A
Value: 61
Possible affected ROM addresses: Same as KAEPYO
Debug line: $9106:AC 61 07 LDY $0761 = #$02

TPEPYO - Starman music
Address: 9107
Compare: N/A
Value: 1E
Possible affected ROM addresses: Same as KAEPYO
Debug line: $9106:AC 1E 07 LDY $071E = #$FF

TZEPYO - Low background music
Address: 9107
Compare: N/A
Value: 2E
Possible affected ROM addresses: Same as KAEPYO
Debug line: $9106:AC 2E 07 LDY $072E = #$08

YYAPYO - Koopa Stage music
Address: 9107
Compare: N/A
Value: 7F
Possible affected ROM addresses: Same as KAEPYO
Debug line: $9106:AC 7F 07 LDY $077F = #$0D



____________________
We are a nation with no geographic boundaries, bound together through our beliefs. We are like-minded individuals, sharing a common vision, pushing toward a world rid of color lines.

frantik
Posted on 12-07-07 09:46 AM Link | Quote | ID: 71323


Red Koopa
Level: 28

Posts: 42/139
EXP: 127105
Next: 4233

Since: 10-09-07

Last post: 4461 days
Last view: 4454 days
Posted by GameGenie81
Posted by frantik
try replacing AC 42 07 with A0 XX EA. (where XX is 00 thru 03)

EZAPTP
AAAPYP (or PAAPYP, ZAAPYP, LAAPYP)
XTAOAO



Let me give you some more insight on these codes, courtesy of FCEUXD:




Notice in the first two codes (the ones that work) the value being read is between 0 and 5 (specifically KAEPYO you see LDY $078C = #$00 and PTEPYP you see LDY $0761 = #$02 )

You need to load a value between 0 and 5 into Y for the song selection routine to work properly. The songs are 0= water, 1=overworld, 2= underground, 3=castle 4 = cloud level/starman, 5 = pipe intro

GameGenie81
Posted on 02-06-08 08:43 PM Link | Quote | ID: 76517


Koopa
Level: 24

Posts: 34/100
EXP: 77913
Next: 212

Since: 08-15-07
From: Milwaukie, OR

Last post: 5405 days
Last view: 5358 days
Posted by frantik
the problems stem from the fact 9107 is in the middle of an LDY command ($9106:AC 4E 07 LDY $074E) . The value you are changing causes it to pull a value from different parts of memory in the $07xx range. You need the number stored in the memory address to be between 0 and 3 for the main music types which are water, underground, overworld, and castle respectively. unfortunately it's not so easy to find areas in memory which will always be a certain value (excluding 0 which isn't too hard)

you're better off rewriting the whole line to something like LDY #$01 cause then you can just change the numeric value. This will cost you 3 game genie codes though

try replacing AC 42 07 with A0 XX EA. (where XX is 00 thru 03)

EZAPTP
AAAPYP (or PAAPYP, ZAAPYP, LAAPYP)
XTAOAO



EZAPTP commands Star Man music in Overworld and Koopa Stage, while it commands the repeating overworld music elsewhere (except for between levels and Bonus stages)
Command line: $9106:A0 4E - LDY #$4E

The *AAPYP codes you mentioned (I tried all that you listed) all trigger the underwater theme, same as KAEPYO

And XTAOAO commands the repeating Overworld theme everywhere except between levels and in the Bonus Stages.
Command line: $9106:AC 4E EA - LDY $EA4E = #$AA

And a bonus:

STAPTO = Between-level music all the time, except in Bonus Stage. However, when you exit from a pipe from underground or underwater, the Underwater level music is heard until you collect Star Man or beat a level, and then it resets to the between-level music again.
Command line: $9106:ED 4E 07 - SBC $074E = #$01

AGEOLP = Star Man music all the time, again.
Command line: $9109:AD 43 40 - LDA $4043 = #$FF

____________________
We are a nation with no geographic boundaries, bound together through our beliefs. We are like-minded individuals, sharing a common vision, pushing toward a world rid of color lines.

Main - ROM Hacking - Game Genie Code Troubles New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.020 seconds. (340KB of memory used)
MySQL - queries: 57, rows: 81/82, time: 0.016 seconds.