Jump to content

Recommended Posts

Posted

I am still very new at making AR codes and now I have been trying to convert my 34 different music codes in to one big code that you can use the calculator poketch to change them, like the USA Wild Pokemon, Level and Nature Modifier code by SCV.

Now the problem I am having is that it seems that the location in RAM for the Calculator's display changes each time it boots the game. when i first began work, i mapped its location and made a test code, it consisted of 3 different music codes to pick and I was able to switch between them all. Then I finished it up for 14 other codes, all 16 battle themes and mute for trainer battles. I tested that and it was working still. I closed the emulator, I then made the last 17 for wild battles. I reopen the emulator and it was not working, even for the trainer codes. I then removed the wild battle codes and its still not working. I remove the rest of the codes and only had the original 3, still not working. I test with only one code and that if the calculator reads 1 and start is pressed then play this song at the start of a trainer battle, STILL NOT WORKING! Now I am all upset because I don't know what gives, it was working before. I then decide to go back one last step and remap the calculators display location. Its in a DIFFERENT location! I close and reopen the emulator again and remapped, and its in a 3rd location. Rinse and repeat and its in a 4th, 5th, and 6th location! They are very close to each other, in my 5 remappings, they all resided in 0238FExx, xx being that in each mapping the last 2 values where different.

Here is a sample of my code, remember that in my original mapping, 238FE0C was the location of the calculators display location.

94000130 FFF70000
5238FE0C 00000002
0210B76C 00103DE0
1210B770 00002050
D2000000 00000000

How does his code now where to read for the poketch calculator's display location when it changes ever time the game loads?

Posted

94000130 FDFF0000

94000130 FDFF0000

B2101D40 00000000

D9000000 00111D10

C0000000 0000000C

DC000000 00000004

D6000000 000233E8

D1000000 00000000

C0000000 0000000A

D6000000 000233E8

D2000000 00000000

94000130 FEFF0000

B2101D40 00000000

D9000000 00111D10

C0000000 0000000C

D6000000 000233E8

DC000000 00000004

D2000000 00000000

94000130 FFFB0000

B2101D40 00000000

DA000000 00111D10

D4000000 00002400

D3000000 00000000

D7000000 0207404C

D2000000 00000000

Relevant areas are bolded.

5 is one of those "If" statements, so to do what you want to do, you'll need this:

B2101D40 00000000

DC000000 00111D10

50000000 YYYYYYYY

If those 0 and 1 statements never change location, you'll need to wipe the offset register with D3000000 00000000 before writing those. So, in the end, your code is:

94000130 FFF70000

B2101D40 00000000

DC000000 00111D10

50000000 00000002

D3000000 00000000

0210B76C 00103DE0

1210B770 00002050

D2000000 00000000

I look forward to this. :kikkoman:

Posted
  Jiggy-Ninja said:
94000130 FDFF0000

94000130 FDFF0000

B2101D40 00000000

D9000000 00111D10

C0000000 0000000C

DC000000 00000004

D6000000 000233E8

D1000000 00000000

C0000000 0000000A

D6000000 000233E8

D2000000 00000000

94000130 FEFF0000

B2101D40 00000000

D9000000 00111D10

C0000000 0000000C

D6000000 000233E8

DC000000 00000004

D2000000 00000000

94000130 FFFB0000

B2101D40 00000000

DA000000 00111D10

D4000000 00002400

D3000000 00000000

D7000000 0207404C

D2000000 00000000

Relevant areas are bolded.

5 is one of those "If" statements, so to do what you want to do, you'll need this:

B2101D40 00000000

DC000000 00111D10

50000000 YYYYYYYY

If those 0 and 1 statements never change location, you'll need to wipe the offset register with D3000000 00000000 before writing those. So, in the end, your code is:

94000130 FFF70000

B2101D40 00000000

DC000000 00111D10

50000000 00000002

D3000000 00000000

0210B76C 00103DE0

1210B770 00002050

D2000000 00000000

I look forward to this. :kikkoman:

Thanks! SCV help me out a little bit on the IRC, but what you showed me here help me make the code alot smaller! Its completed and a BEAST I made it user friendly so instead of entering the decimal value for the music's hex value, you just enter in 0-17 and press start.

Posted

I submitted the code to be added to the list of codes in the USA Platinum OFFICIAL AR Codes thread, but so far its not been added yet.

I will post it here for the mean time.

Made by KazoWAR

Battle Music Modifier

  Reveal hidden contents
  • 1 month later...
Posted

is this for the us and japanese verson????

i really want it!! for the japanese one!

---------- Post added at 02:37 PM ---------- Previous post was at 02:35 PM ----------

if you need someone to test it for the japanese verson i will gladly do it but only if you respond to this.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...