Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Ninja Gaiden ROM hack - invincibility without blinking?

Reply to topic
Author Message
  • Joined: 23 Mar 2013
  • Posts: 611
  • Location: Copenhagen, Denmark
Reply with quote
Ninja Gaiden ROM hack - invincibility without blinking?
Post Posted: Sat Jul 13, 2013 7:20 pm
Hello - and my warmest summer greetings to you all here at SMS-Power.

I have hacked the NG ROM into a kind of permanent trainer version (infinite lives and invincibility). To create a permanent state of invincibility, I have changed the following code:

from
2E7A: 3A 3C CA; which is load the value of invincibility counter from CA3C - the counter is set when you respawn, and then rapidly decrements while the player sprite blinks to signal invincibility.
to
2E7A: 3E 01 00 ; just read 01h into reg. a, like the counter is always 01h (followed by a NOP)

With my hack, the sprite of course blinks all the time. How can I disable the blinking behavior of the player sprite? I'm unsure how to 'catch' the blinking with the debugger.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14745
  • Location: London
Reply with quote
Post Posted: Sat Jul 13, 2013 7:52 pm
Look for a byte flipping value every frame, probably near the ones you already found.
  View user's profile Send private message Visit poster's website
  • Joined: 14 Apr 2013
  • Posts: 624
Reply with quote
Post Posted: Sat Jul 13, 2013 10:43 pm
Last edited by Calindro on Sun Jul 14, 2013 11:44 am; edited 1 time in total
Hi hang-on,

checking the instructions that follow, you will find JP NZ,2F00h at 2E7Eh.
(So if your invincible time is not zero, jump to 2F00h)
There you will find code that sets CA20h to FFh (visible) or 0h (invisible) depending on the value of the invincibility counter you found at CA3Ch.
So for example you could remove the conditional jump at 2F0Ah so FFh will always be written to CA00h.

Have Fun
Calindro
  View user's profile Send private message Visit poster's website
  • Joined: 23 Mar 2013
  • Posts: 611
  • Location: Copenhagen, Denmark
Reply with quote
Post Posted: Sun Jul 14, 2013 10:05 am
Thank you very much. I will try this out in a moment!
  View user's profile Send private message Visit poster's website
  • Joined: 23 Mar 2013
  • Posts: 611
  • Location: Copenhagen, Denmark
Reply with quote
Post Posted: Mon Jul 15, 2013 7:02 am
Success! It works!!

I also wrote 00 00 00 starting at 5147 to enable unlimited magic (two button press clears screen). This added an unexpected, but rather handy feature: If you die (fall into a pit, etc.), you will respawn at the next (sub-)level. This ensures a continous progress in the game, which is particularly OK for a younger audience :)
  View user's profile Send private message Visit poster's website
  • Joined: 27 Mar 2012
  • Posts: 26
Reply with quote
Post Posted: Sun Sep 22, 2013 2:07 am
Could you please post your infinite lives code?

What all games have you done so far? I'm a fellow Everdrive user.
  View user's profile Send private message
  • Joined: 23 Mar 2013
  • Posts: 611
  • Location: Copenhagen, Denmark
Reply with quote
Post Posted: Sun Sep 22, 2013 7:05 pm
Hi Kyle.

I have kept some further notes from the Ninja Gaiden ROM hack:

Unlimited lives:
15F9: 00 00 00 (it was 32 C7 DF)


Unlimited ninja magic:
DFC8 - possible location for magic
5147: 32 C8 DF   ; LD (DFC8h), A 

- seems to overwrite the magic byte with a new (decremented?) value. Let us turn that off.
I write:
5147: 00 00 00


Hope this checks out, else PM me and I'll look into it :)

So far I have done:
- Alex Kidd (various stuff, including level editing with Calindro's AKEditor)
- Altered Beast (unlimited lives, press pause x 2 to power up > muscles > werebeast > buggy stuff, don't do it the third time :)
- Bomber Raid (invincibility)
- Bubble Bobble (unlimited lives)
- Cloudmaster (invincibility)
- Double Hawk (invincibility)
- Ghouls n' ghosts (unlimited lives, upgraded equipment)
- Golden Axe (unlimited lives, magic hack described in other post, custom title screen)
- Incredible Hulk (invincibiliy and unlimited lives)
- Ninja Gaiden
- Shadow Dancer (no collision, change to boss behavior)
- Shinobi (Unlimited lives, invincibility, chain and gun from level 1)
- Sonic the Hedgehog
- The Ninja
- Wonderboy (unlimited lives)
- X-Men Mojo World (unlimited health and mutant power)
  View user's profile Send private message Visit poster's website
  • Joined: 27 Mar 2012
  • Posts: 26
Reply with quote
Post Posted: Mon Sep 23, 2013 7:17 am
Thanks a ton! That does do the funky level auto-advance thing you mentioned. Would you mind posting the rest of those if you documented them?

After reading your Alex Kidd post I am in a similar position. My four year old boy and I are playing games through. We ended up beating Alex Kidd. I had to look up the sequence for the last room.

I like patching games for infinite lives. I read over your Shinobi tutorial several times and think I have this down. Here's what I came up with for the Sonic games.

Sonic 1: 5464:00
Sonic 2: 0930:00
Sonic Chaos: 15FC:00

I played around with Ninja Gaiden afterwards and found that 1616:00 will allow infinite lives without the jump.

Here's my little guy:



And here's our Master System stick. It has PCBs for Mega Drive/SNES/NES.

  View user's profile Send private message
  • Joined: 05 Jun 2010
  • Posts: 757
  • Location: Pennsylvania, USA
Reply with quote
Post Posted: Mon Sep 23, 2013 3:22 pm
Nice controller, looks awesome!
  View user's profile Send private message Visit poster's website
  • Joined: 23 Mar 2013
  • Posts: 611
  • Location: Copenhagen, Denmark
Reply with quote
Post Posted: Mon Sep 23, 2013 7:31 pm
Cute little fellow :) Sure he will grow up with some healthy attitudes towards quality retro gaming. I'll get back with some further explanation of the approaches I have taken with regards to ROM hacking the SMS.

Thank you for your addition to the Ninja Gaiden hack!
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!