Sonic and Sega Retro Message Board: Wall Jump in Sonic 1 - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Loading News Feed...
 

Wall Jump in Sonic 1 Hasty Proof of Concept

#1 User is offline Mercury 

  Posted 03 February 2011 - 02:00 AM

  • His Name Is Sonic
  • Posts: 1605
  • Joined: 13-November 08
  • Gender:Not Telling
  • Location:Location Location
  • Project:AeStHete (Sonic Time Twisted engine)
  • Wiki edits:130
Because of E-122-Psi's continuing series of Chaotix characters in Sonic 1, I was contemplating how you'd recreate their abilities. I had some ideas for how to make a Mighty-like Wall Jump, and this is the result:



Download

(It's a mod if the SVN disassembly; the built ROM and .lst file are included.)

I'd love to write up a full tutorial and also a conversion for the Hivebrain disassembly, but I'm way too busy (I've been pulling 12 hour days in front of the computer lately and I can't take too much more without going mad). Hopefully it will be easy enough to make sense of for anybody who wants a Wall Jump. Just search the .asm files for the tag "Mercury Wall Jump" and you'll find all the changes I made.

I made the sprite for it from bits and pieces of other Sonic sprites. I really didn't like the Crackers sprite and I think mine is better. Also it uses the same mappings as the Braking sprite so it made it faster to implement.

Notes:

While I didn't notice that it broke anything engine-wise, it will allow the player to reach areas that they shouldn't. If one were to put this in a proper hack, they'd have to fix the SLZ metatile solidity and a few other things.

It works on solid objects (including the GHZ solid wall) as well as level tiles.

I know there's some resistance to the idea of "giving away code" in the community, but I'm an open source kind of guy. Credit would be appreciated, but as always isn't absolutely necessary.

Specifically, I hope this helps E-122-Psi make a Mighty hack! =)



#2 User is offline Hitaxas 

Posted 03 February 2011 - 03:18 AM

  • SEGA: Sorry Classic Sonic, we are sending you back to 1994
  • Posts: 1352
  • Joined: 30-September 07
  • Gender:Male
  • Location:Litchfield, CT
  • Project:Sonic: Super Deformed (head director) - Slowly working on it.
  • Wiki edits:196
Looking at the game real fast and noticing it crashes in Regen, however jumping recovers from that said crash which is strange.

I also had a look at the coding, it's quite different from the method I used to add wall jumping to my own hack, however without the time limit your's has, it still has the same issue. I tested and removed the flag that puts a limit on the time he can stay on the wall, after falling past the wall he continues to stay in the wallgrabbing animation. But I guess that doesn't really matter to you since your intent was the time limit.

Anyway, nice work.

#3 User is offline Mercury 

Posted 03 February 2011 - 03:38 AM

  • His Name Is Sonic
  • Posts: 1605
  • Joined: 13-November 08
  • Gender:Not Telling
  • Location:Location Location
  • Project:AeStHete (Sonic Time Twisted engine)
  • Wiki edits:130
Odd that it crashes in Regen. I tested it in Gens Movie and Regen v0.97 and it worked fine.

I did forget to reenable rompad.exe when I built it, though, so that might be causing an issue.

#4 User is offline MarkeyJester 

Posted 03 February 2011 - 05:46 AM

  • A word in your shell-like, pal
  • Posts: 1306
  • Joined: 22-July 08
  • Gender:Male
  • Location:Japan
  • Wiki edits:16
It crashed on real hardware if you released the D-Pad direction button of the wall you're holding on to, for example, the right wall if I'm clinged onto it and I release the right button before it's finished, it crashes.

#5 User is offline E-122-Psi 

Posted 03 February 2011 - 08:46 AM

  • Posts: 1164
  • Joined: 29-December 09
  • Gender:Male
  • Wiki edits:41
You REALLY want me to make a Mighty In Sonic 1 hack, don't you? :D

Well if I can work out the ASM retools here it should hopefully not take too long (I'd still need time to make the sprites however unless anyone knows some authentic looking extra sprites for Mighty anywhere) though it will likely still have the hardware incompatablities listed for this ROM here. I was also wondering if Sally should have a wall jump in her hack, since she is an agility based character do you think it suits her gameplay? (if anyone can make a Projectiles in Sonic 1 hack that would be useful too...just sayin' lol).

Thanx Mercury. :D
This post has been edited by E-122-Psi: 03 February 2011 - 08:50 AM

#6 User is offline FeliciaVal 

Posted 03 February 2011 - 08:52 AM

  • Posts: 689
  • Joined: 04-March 10
  • Gender:Female
  • Location:Spain
QUOTE (E-122-Psi @ Feb 3 2011, 09:46 AM)
You REALLY want me to make a Mighty In Sonic 1 hack, don't you? :D

Well if I can work out the ASM retools here it should hopefully not take too long (I'd still need time to make the sprites however unless anyone knows some authentic looking extra sprites for Mighty anywhere) though it will likely still have the hardware incompatablities listed for this ROM here. I was also wondering if Sally should have a wall jump in her hack, since she is an agility based character do you think it suits her gameplay? (if anyone can make a Projectiles in Sonic 1 hack that would be useful too...just sayin' lol).

Thanx Mercury. :D

mmm I just can think on the Mighty sprites from Chaotix...
and yes please :D Make Sally walljump. I think I'm gonna make Stella walljump as well since is something I wanted since the beggining

and yeah, thx Mercury for the guide smile.png
This post has been edited by FeliciaVal: 03 February 2011 - 08:52 AM

#7 User is offline E-122-Psi 

Posted 03 February 2011 - 09:01 AM

  • Posts: 1164
  • Joined: 29-December 09
  • Gender:Male
  • Wiki edits:41
QUOTE (FeliciaVal @ Feb 3 2011, 09:52 AM)
QUOTE (E-122-Psi @ Feb 3 2011, 09:46 AM)
You REALLY want me to make a Mighty In Sonic 1 hack, don't you? :D

Well if I can work out the ASM retools here it should hopefully not take too long (I'd still need time to make the sprites however unless anyone knows some authentic looking extra sprites for Mighty anywhere) though it will likely still have the hardware incompatablities listed for this ROM here. I was also wondering if Sally should have a wall jump in her hack, since she is an agility based character do you think it suits her gameplay? (if anyone can make a Projectiles in Sonic 1 hack that would be useful too...just sayin' lol).

Thanx Mercury. :D

mmm I just can think on the Mighty sprites from Chaotix...
and yes please :D Make Sally walljump. I think I'm gonna make Stella walljump as well since is something I wanted since the beggining

and yeah, thx Mercury for the guide smile.png


I have seen a recurring sheet for Mighty used in hacks which is basically an expanded version of his Chaotix sheet with more Sonic 1 animations, I'm not sure if it has been publically released though.

Might be a good idea, since our characters have limited attacks they may as well have good manuevering and agility moves. Sally at this point isn't much more than a weaker version of Amy.

#8 User is offline flamewing 

Posted 03 February 2011 - 09:19 AM

  • Posts: 563
  • Joined: 11-October 10
  • Gender:Male
  • Project:Sonic Classic Heroes; Sonic 2 Special Stage Editor; Sonic 3&K Heroes (on hold)
  • Wiki edits:12
QUOTE (Mercury @ Feb 3 2011, 06:38 AM)
Odd that it crashes in Regen. I tested it in Gens Movie and Regen v0.97 and it worked fine.

I did forget to reenable rompad.exe when I built it, though, so that might be causing an issue.

The crash happens because you are writing a word to an odd address; and it is the wrong address too, in fact. In sonic.asm, find Sonic_Control routine, local label @chkLR:

Syntax Highlighted Code: ASM
	@chkLR:
move.b (v_jpadhold2).w,d0 ; get jpad
and.b $2D(a0),d0 ; compare jpad to stored L,R button states
bne.s @skip ; if still held, branch
move.w #0,$2D(a0) ; clear wall jump flag and button states
move.b #id_Roll,obAnim(a0) ; use "jumping" animation
 
@skip:

and replace it with this:

Syntax Highlighted Code: ASM
	@chkLR:
move.b (v_jpadhold2).w,d0 ; get jpad
and.b $2D(a0),d0 ; compare jpad to stored L,R button states
bne.s @skip ; if still held, branch
move.w #0,$2C(a0) ; clear wall jump flag and button states
move.b #id_Roll,obAnim(a0) ; use "jumping" animation
 
@skip:

It will no longer crash (edit: and it will clear the flag as intended).
This post has been edited by flamewing: 03 February 2011 - 09:21 AM

#9 User is offline MathUser 

Posted 03 February 2011 - 10:02 AM

  • 3rd top wiki contributor
  • Posts: 1691
  • Joined: 09-November 05
  • Gender:Male
  • Wiki edits:14,865
I can't wait for those character hacks to get their wall climbs in. Gonna be awesome.

Good that someone made this POC hack.

#10 User is offline PsychoSk8r 

Posted 03 February 2011 - 11:05 AM

  • HighKnights
  • Posts: 2524
  • Joined: 11-July 07
  • Gender:Male
  • Location:Walsall, UK
  • Project:30 Day Project: Revisited.A New Release!
  • Wiki edits:19
Well, I must say this is the first bit of open-source code I've actually been interested in getting my hands on. Maybe I'll use this for Mighty in 30 Day Project... =P

#11 User is offline Aquaslash 

Posted 03 February 2011 - 11:12 AM

  • Time to walk the dinosaur!
  • Posts: 2760
  • Joined: 17-November 04
  • Gender:Male
  • Location:Hampton, VA
  • Project:The S Factor: Sonia and Silver
  • Wiki edits:1,144
QUOTE (E-122-Psi @ Feb 3 2011, 08:46 AM)
You REALLY want me to make a Mighty In Sonic 1 hack, don't you? :D

Well if I can work out the ASM retools here it should hopefully not take too long (I'd still need time to make the sprites however unless anyone knows some authentic looking extra sprites for Mighty anywhere) though it will likely still have the hardware incompatablities listed for this ROM here. I was also wondering if Sally should have a wall jump in her hack, since she is an agility based character do you think it suits her gameplay? (if anyone can make a Projectiles in Sonic 1 hack that would be useful too...just sayin' lol).

Thanx Mercury. :D

As a matter of fact, I know someone who has a Mighty sheet for Sonic 1 that puts the Chaotix ones to shame. I'll have a chat with him an see if he minds it being used for this purpose.

#12 User is offline MathUser 

Posted 03 February 2011 - 11:37 AM

  • 3rd top wiki contributor
  • Posts: 1691
  • Joined: 09-November 05
  • Gender:Male
  • Wiki edits:14,865
Save enhanced mighty for the 30 day project. The Chaotix sprites should be used for the Mighty in Sonic 1 hack. I prefer straight Chaotix sprite ports to original sprites in those kinda hacks. The new style may even clash with classic sonic sprites.

#13 User is offline Aquaslash 

Posted 03 February 2011 - 11:41 AM

  • Time to walk the dinosaur!
  • Posts: 2760
  • Joined: 17-November 04
  • Gender:Male
  • Location:Hampton, VA
  • Project:The S Factor: Sonia and Silver
  • Wiki edits:1,144
If that was directed at me, then I'll have you know that the sprites I'm referring to fit more with Sonic 1 than the Chaotix ones do.

#14 User is offline steveswede 

Posted 03 February 2011 - 11:49 AM

  • Posts: 2389
  • Joined: 13-April 09
  • Gender:Male
  • Location:Birthplace of Lara Croft
  • Project:Bowel reconstruction
  • Wiki edits:6
QUOTE (Aquaslash @ Feb 3 2011, 04:41 PM)
If that was directed at me, then I'll have you know that the sprites I'm referring to fit more with Sonic 1 than the Chaotix ones do.


Well they will be interesting to see if that's the case. the Mighty sprites for Chaotix are not a bad fit for the original art style but they do stand out too much for my liking so I'm quite excited to see how well these custom sprites work.

#15 User is offline Sonica 

Posted 03 February 2011 - 12:53 PM

  • A walking personification of the negative.
  • Posts: 1113
  • Joined: 15-June 08
  • Gender:Male
  • Location:England.
  • Project:Meh. This and that.
  • Wiki edits:111
QUOTE (steveswede @ Feb 3 2011, 04:49 PM)
QUOTE (Aquaslash @ Feb 3 2011, 04:41 PM)
If that was directed at me, then I'll have you know that the sprites I'm referring to fit more with Sonic 1 than the Chaotix ones do.


Well they will be interesting to see if that's the case. the Mighty sprites for Chaotix are not a bad fit for the original art style but they do stand out too much for my liking so I'm quite excited to see how well these custom sprites work.


This should use the sprite in your avatar. v.png

This is pretty damn nice, except it interferes when you jump over a rock, or a large step, sorta makes you drift off of it. That's the only thing I don't like about it, other than that, it's very good.

  • 4 Pages +
  • 1
  • 2
  • 3
  • Last ►
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users