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

### Author Topic: Trying to Hack Mega Man 2 to Refill Weapons After Death  (Read 4913 times)

#### Jedi QuestMaster

• Hero Member
• Posts: 968
##### Trying to Hack Mega Man 2 to Refill Weapons After Death
« on: January 31, 2012, 11:39:30 pm »
Y'know when you're fighting a robot master, or something, & you almost beat them, but then suddenly you run out of weapon energy & you die? And even worse... you still have 2 lives left! So there's, like, no way you're going to win, because you suck at Mega Man 2 & need a certain weapon.

To the point...

I'm trying to hack the pointers so weapon energy is filled up as well as health between deaths.

I found what I'm looking for:

80C6: 8D C0 06 <- I change C0 06 to 00 9C to refill Heat Man's weapon, 00 9D for Air Man, etc.

But with this method, I can only modify one weapon - I need to refill everything! Anyone do anything like this before? Have any of the Mega Man hacks done this?
« Last Edit: February 01, 2012, 01:06:17 am by Jedi QuestMaster »
And I'll leave it at that!

#### KingMike

• Forum Moderator
• Hero Member
• Posts: 6892
• *sigh* A changed avatar. Big deal.
##### Re: Trying to Hack Mega Man 2 to Refill Weapons After Death
« Reply #1 on: February 01, 2012, 09:45:15 am »
You sure that ASM is right?
It looks like the original is a STA \$06C0 statement. (store A to address \$06C0)
But your changes would be STA \$9C00 and STA \$9D00, which are ROM area and I would guess would bankswap.
Well, I'd guess you would need to create a subroutine in empty space and jump there.

I'd guess the data for each weapon is likely to be next to each other so it could be as simple as

Code: [Select]
`ldx #\$TotalNumberOfWeaponslda #\$WhateverTheValueForAFullWeaponTankIsRefillWeapons:sta \$WhereverTheFirstWeaponEnergyIsInRAMdexbne RefillWeaponsrts`
Also, please don't use REALLY BIG text. It's a real eyesore.
"My watch says 30 chickens" Google, 2018

#### Jigglysaint

• Sr. Member
• Posts: 316
• Corruptomancer
##### Re: Trying to Hack Mega Man 2 to Refill Weapons After Death
« Reply #2 on: February 01, 2012, 12:04:35 pm »
Actually, couldn't it be as simple as locating the routine that initializes all your life and weapons for the start of each stage, and have that either execute when you lose a life, or copy it to free space and point there instead of the regular routine?  Oh and yes, it would be simple.

• Hero Member
• Posts: 2637
##### Re: Trying to Hack Mega Man 2 to Refill Weapons After Death
« Reply #3 on: February 02, 2012, 05:31:22 pm »
Real men use the Mega Buster. Especially in MM2 which is by far the easiest of the series.... Also it's the one where weapons took the less mana (you can shoot 8 metal blades for a dash, and you have 28 dashes, this is close to infinite ammo).

But such a hack would be more needed for MM1 which is harder (and where some bosses are almost impossible to beat without their weakness... cough cough Elec Man).

#### KingMike

• Forum Moderator
• Hero Member
• Posts: 6892
• *sigh* A changed avatar. Big deal.
##### Re: Trying to Hack Mega Man 2 to Refill Weapons After Death
« Reply #4 on: February 02, 2012, 07:21:09 pm »
I think it's less that Elec Man is a challenge and more that his weapon is way over-powered. It has a huge range and can kill Mega Man in like 3 hits.
"My watch says 30 chickens" Google, 2018

#### Nosuch

• Jr. Member
• Posts: 68
##### Re: Trying to Hack Mega Man 2 to Refill Weapons After Death
« Reply #5 on: February 02, 2012, 10:04:17 pm »
Agreed.  With the right timing, Elec Man can be defeated without him even firing his weapon once.  It takes a decent number of hits if you're chipping away with just the Mega Buster, but it's still entirely possible.
Well, he's just this guy, you know?

#### Jedi QuestMaster

• Hero Member
• Posts: 968
##### Re: Trying to Hack Mega Man 2 to Refill Weapons After Death
« Reply #6 on: February 05, 2012, 09:04:16 pm »
Okay, I can't figure this out for the life of me.

I could really use something like this for a head-to-head competition I want to do.

Any of you willing to do this for \$10?
And I'll leave it at that!

#### kuja killer

• Full Member
• Posts: 166
##### Re: Trying to Hack Mega Man 2 to Refill Weapons After Death
« Reply #7 on: February 06, 2012, 12:53:34 am »
I will!

Really easy and took a few minutes

http://www.mediafire.com/?p0mc39vg3wxl1c0 - video proof to prove the refill weapons thing

and paste this in these 2 locations:

3C1C3 - 20 F0 F2

3F300 - 20 00 C0 A2 0A A9 1C 95 9C CA 10 FB 60

#### Thanatos-Zero

• Full Member
• Posts: 222
• NES Graphic Designer
##### Re: Trying to Hack Mega Man 2 to Refill Weapons After Death
« Reply #8 on: February 06, 2012, 01:06:52 am »
That is the genius I know and love. Fantastic job kuja killer.

#### Jedi QuestMaster

• Hero Member
• Posts: 968
##### Re: Trying to Hack Mega Man 2 to Refill Weapons After Death
« Reply #9 on: February 06, 2012, 01:25:57 am »
thanks, kuja killer!

Not kidding about the 10 dollars, either. How do you want that? PayPal?  's?

You can PM me your address if you don't want to post it pubically.
And I'll leave it at that!

#### kuja killer

• Full Member
• Posts: 166
##### Re: Trying to Hack Mega Man 2 to Refill Weapons After Death
« Reply #10 on: February 06, 2012, 02:34:49 am »
Umm, when i pm you, it says you blocked my message...even though your not even online at this momment...i never had pm'ed you before in the past..

#### Jedi QuestMaster

• Hero Member
• Posts: 968
##### Re: Trying to Hack Mega Man 2 to Refill Weapons After Death
« Reply #11 on: February 06, 2012, 03:04:19 am »
Weird.

Maybe this is why I haven't been getting e-mails whenever I tried to get involved in some people's projects...

This changes everything!

Let's see... Administrators only? Is that supposed to be the default?

Edit: Try it now
And I'll leave it at that!