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

### Author Topic: Wall climb in ninja gaiden 1 (nes)  (Read 3248 times)

#### DANGER X

• Full Member
• Posts: 166
• Nes hacker & player
##### Wall climb in ninja gaiden 1 (nes)
« on: February 15, 2017, 04:44:40 pm »

As you see this can be done in ninja gaiden 2 and ninja gaiden 3 but not in ninja gaiden 1, so I was thinking maybe there is a way to take the values from one of these games and put it in ninja gaiden 1, but I realize that is not that easy, and I got no clue how do do it.
Does anybody have any idea what I must do? (Other thing, you can climb in ninja gaiden 1 too but only on ladder, maybe take the values from there...maybe)

#### nesrocks

• Hero Member
• Posts: 573
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #1 on: February 15, 2017, 05:56:19 pm »
It may be possible to identify what differentiates regular walls from ladder walls, detect where in the code the game checks for the difference and make it so it works on any wall (by changing the required value). This would be the ideal way.
The hard way would be to change every wall to have the same property as ladders (maybe impossible).

#### Asaki

• RHDN Patreon Supporter!
• Full Member
• Posts: 167
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #2 on: February 16, 2017, 09:35:11 am »
The harder way would be to turn the entire game into a Ninja Gaiden 2/3 hack =)

#### DANGER X

• Full Member
• Posts: 166
• Nes hacker & player
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #3 on: February 16, 2017, 10:57:33 am »
You mean the 'hardest' way. Just wanted this for our hack http://www.romhacking.net/forum/index.php/topic,23318.msg329781.html#new

#### Disch

• Hero Member
• Posts: 2716
• NES Junkie
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #4 on: February 16, 2017, 11:32:13 am »
+1 To nesrocks' solution.

The game already has the wall-climbing in the engine.  Just make it so all walls are "ladder" walls.

#### DANGER X

• Full Member
• Posts: 166
• Nes hacker & player
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #5 on: February 16, 2017, 12:08:34 pm »
That was one of my ideas (read the end)
The question is how to do it?

#### mz

• Sr. Member
• Posts: 434
• Whore
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #6 on: February 16, 2017, 01:13:26 pm »
That was one of my ideas (read the end)
The question is how to do it?
This is a quick idea of what I'd try:
1. Start a RAM Search and search for different player states (stand still -> search for equal to previous value -> run left -> search for not equal to previous value -> jump -> etc.)
2. Once you have the RAM address of the current player state and the hex number of the wall grabbing state, use the debugger and set a write breakpoint in that address with the condition being writing that hex number of the wall grabbing state.
3. Once you got the place of the code where this happens, just change the hex number in the ASM code to the hex number of the ladder state.

A better way would be to find where it reads the player state and then branches to the wall grabbing code, and change that to branch to the ladder code instead.
There has to be a better life.

#### KingMike

• Forum Moderator
• Hero Member
• Posts: 6883
• *sigh* A changed avatar. Big deal.
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #7 on: February 16, 2017, 02:00:41 pm »
As I recall, ladders were only used for screen transitions in NG1?
If so, there's one bug right there possibly that would have to be fixed for making any wall a "ladder".
"My watch says 30 chickens" Google, 2018

#### DANGER X

• Full Member
• Posts: 166
• Nes hacker & player
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #8 on: February 16, 2017, 02:01:53 pm »
Actually not only for that, some can be found in the middle of the stage.

#### darkmoon2321

• Jr. Member
• Posts: 59
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #9 on: February 16, 2017, 04:19:43 pm »
It looks like you can do this for the most part, but it's a little buggy:

In terms of cheat codes (unencrypted)
EBF1?29:09
EC22?29:09

In a hex editor:
Change x1EC01 to 09
Change x1EC32 to 09

Ladders normally only occur on the right-hand side of walls, so the game expects them to be like that.  This makes it difficult to latch onto left-side walls, since you have to let go of the jump button before you hit (if jump and left are pressed together, you attempt to dismount the wall since this is how you get off of right-facing ladders).  It might be possible to get around this.

Edit: Try copying the following bytestring to x1EC01:
A5 84 29 40 F0 14 A5 28 AA C9 81 F0 36 4C 12 EC

And as mentioned above change x1EC32 to 09.  Those changes get rid of most of the buggy behavior.
« Last Edit: February 17, 2017, 10:42:41 am by darkmoon2321 »

#### DANGER X

• Full Member
• Posts: 166
• Nes hacker & player
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #10 on: February 18, 2017, 05:14:29 am »
Thanks, I will try when I get home!

February 18, 2017, 10:44:20 am - (Auto Merged - Double Posts are not allowed before 7 days.)
Great man, It works thanks a lot, You are in the hack credits, is the least I can do to show my gratitude.
« Last Edit: February 18, 2017, 10:44:20 am by DANGER X »

#### darkmoon2321

• Jr. Member
• Posts: 59
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #11 on: February 18, 2017, 04:17:46 pm »
Something I noticed when playing around with this: In some situations you can use the wall climbing to go below the screen, and if you keep going you wrap around to the top of the screen.  You can probably change the maps around so that this doesn't happen.  I don't have a fix for this at the moment.  I could possibly make it so that you die if you go below the screen, or I might just be able to stop movement.

#### DANGER X

• Full Member
• Posts: 166
• Nes hacker & player
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #12 on: February 18, 2017, 04:26:29 pm »
Yeah I saw that and I though the same thing, to change the map.

#### darkmoon2321

• Jr. Member
• Posts: 59
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #13 on: February 18, 2017, 07:09:19 pm »
To stop the vertical wrap-around without having to redo the maps:

Paste this to x1EC30:
C6 8A A5 8A C9 10 B0 04 E6 8A F0 F4 A9 0C 4C 2D F6

Change x1EC2A from x12 to x0D

It looks like vertical screen transitions still work just fine since Ryu is still on-screen when they happen.  The code above stops him just a little bit off screen.

#### DANGER X

• Full Member
• Posts: 166
• Nes hacker & player
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #14 on: February 19, 2017, 02:49:09 am »
Well, I think this fixes most of the bug, we are finished with this one.

#### NiO

• Jr. Member
• Posts: 75
• Let's bring order to chaos
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #15 on: February 20, 2017, 05:46:21 am »
I tested the rom, it work well in most of the stages, seems like stage 1 is the only one with problems now, so I think we are going to redo this stage to avoid having a "glitchy" game.

When you climb on s wall, sometimes when you get to the top, Deadpool will be traspassing the wall instead on going to the top of it, it doesn't happen in another stages, so I believe this are values for those walls

#### DANGER X

• Full Member
• Posts: 166
• Nes hacker & player
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #16 on: February 20, 2017, 11:06:19 am »
I'm working on it....

#### darkmoon2321

• Jr. Member
• Posts: 59
##### Re: Wall climb in ninja gaiden 1 (nes)
« Reply #17 on: February 20, 2017, 11:07:05 am »
Yeah, I'm occasionally encountering glitches with this too.  Sometimes when you climb to the top of a wall and jump off, if you press the d-pad at just the wrong moment you can fall through the floor (it can be difficult to replicate).  I can change the maximum height that you can climb so that you don't go too far above the walls, although I'm not sure if that is what really causes the glitch.

Also, sometimes when you get to the top of a wall, you are high enough above it that if you press up and right at the same time, you start walking on top of the platform without having to jump at all.  I kind of like this, actually.  It didn't really make sense before that a ninja would be able to climb ladders but not actually get to the top of the platform without jumping off.  The downside of this is that the levels weren't really designed for this, so sometimes you get to the "top" of the platform, but it's actually just a little bit too low, such that if you walk forwards you fall through the floor.

Edit: With the changes discussed in previous posts already in place, changing x1EC35 to x4D makes it so that Deadpool can't climb as high above the screen.
« Last Edit: February 20, 2017, 11:21:32 am by darkmoon2321 »