Zophar's Message Domain

Go Back   Zophar's Message Domain > Emulation Talk > Rom Hack

Reply
 
Thread Tools Display Modes
Old 01-24-2005, 05:06 AM   #1
Nebetsu
Senior Member
 
Join Date: Aug 2003
Posts: 229
Default Need some help with SMB hack.

I'm kinda new and I just started using a hex editor to edit mario a while ago and I kinda need some help. I got a few questions, so if anyone could answer any of them, I would be greatful! ^^

Whats the offset that determines how high Mario jumps?

Whats the offset that determinds how fast Mario runs?

How would I make some sort of shop to buy things using coins? (I dont think I'll be able to do this, but I thought I'd might as well ask)

How do I make bonuses for beating the level in under a certain amount of time?

I have the fireballs shooting straight. Is there any way to stop them in midair so it's like a sword effect?

How would I make a vertical scrolling level?

How would I add more powerups?


Any answers to my questions would be appreciated.

<P ID="signature">http://s7.invisionfree.com/Nebland</a></P>
Nebetsu is offline   Reply With Quote
Old 01-24-2005, 05:38 AM   #2
Disch
Senior Member
 
Join Date: Apr 2001
Posts: 4,387
Default Re: Need some help with SMB hack.

> How would I make a vertical scrolling level?

Short Answer: You don't


Long Answer:

SMB has Vertical Mirroring (hardwired) -- meaning the two nametables are placed side by side horizontally. The actual level is drawn on the bottom portion of both nametables, and the status bar is drawn at the top of nametable A. For a visual of this... Get FCEUXD, open the nametable viewer and run through the level. You can see how the nametables change as you scroll through the level.

Since no part of SMB employs vertical scrolling of ANY kind... you'd basically have to rewrite the scrolling routines from scratch. This is a difficult task by itself... but to make things even more complicated, you'd have to constantly move around and redraw the status bar since, if you're scrolling vertically, the level will be drawn over the status bar at times.

You could switch it to Horizontal Mirroring... but this would demand a complete rewrite of pretty much all the drawing routines in the game (the in game drawing seems to load and draw tiles WELL before they're actually put on screen... if you just switch mirroring without preventing that... it will draw over stuff which is still onscreen).

<P ID="signature"></P><P ID="edit"><FONT class="small">Edited by Disch on 01/24/05 01:09 AM.</FONT></P>
Disch is offline   Reply With Quote
Old 01-24-2005, 05:45 AM   #3
AkaneJones
Senior Member
 
AkaneJones's Avatar
 
Join Date: Aug 2001
Posts: 1,668
Default Re: Need some help with SMB hack.

Hum what would happen if you scrolled down insted of up as the new level would never scroll over the status bar, and if the levels stat bar were locked in place... ah maybe I'm just overthinking here.

Still hacking SMB3 to behave like SMB would be easier and implemtation of said thing rather easy.
<P ID="signature"><hr>
<center>

</center></P>
AkaneJones is offline   Reply With Quote
Old 01-24-2005, 05:57 AM   #4
Nebetsu
Senior Member
 
Join Date: Aug 2003
Posts: 229
Default Re: Need some help with SMB hack.

I guess I'll scratch the vertical scrolling levels. I'm not THAT good.

<P ID="signature">http://s7.invisionfree.com/Nebland</a></P>
Nebetsu is offline   Reply With Quote
Old 01-24-2005, 06:01 AM   #5
Disch
Senior Member
 
Join Date: Apr 2001
Posts: 4,387
Default Re: Need some help with SMB hack.

> Hum what would happen if you scrolled down insted of up as
> the new level would never scroll over the status bar, and if
> the levels stat bar were locked in place... ah maybe I'm
> just overthinking here.

With Vertical Mirroring, the nametable below the current one is the current one. There's only 2 nametables on the NES (I'll refer to them as A and B). Vertical Mirroring lays them out like so:

AB
AB

SMB1 draws the status bar at the very top of nametable A. Now if you have the screen scroll down... the bottom of the screen will scroll into the top of nametable A (overwriting the status bar). You could get away with it only if the screen is scrolled so that it's only in nametable B (reserving nametable A for the status bar and nothing else). This would work fairly well for vertical scrolling... but then horizontal scrolling would be a problem.

At any rate... this takes HEAVY program editing. Way more work than it's worth... especially considering the size restraints in this game.

<P ID="signature"></P>
Disch is offline   Reply With Quote
Old 01-24-2005, 06:14 AM   #6
Nebetsu
Senior Member
 
Join Date: Aug 2003
Posts: 229
Default Re: Need some help with SMB hack.

Yeah. That's WAY out of my league... Anyone know anything about any of the other questions?

<P ID="signature">http://s7.invisionfree.com/Nebland</a></P>
Nebetsu is offline   Reply With Quote
Old 01-24-2005, 06:24 AM   #7
Disch
Senior Member
 
Join Date: Apr 2001
Posts: 4,387
Default Re: Need some help with SMB hack.

> Anyone know anything about any of the other questions?

Sorry can't be of any real help ;_;

Don't know any specific offsets or anything to give you. The other things you brought up are asm programming dealies -- which, if you have to ask how to do it, you probably wouldn't be able to. Only answer to those I can give you would be "read nestech.txt and study up on your 6502"

<P ID="signature"></P>
Disch is offline   Reply With Quote
Old 01-24-2005, 06:31 AM   #8
Nebetsu
Senior Member
 
Join Date: Aug 2003
Posts: 229
Default Re: Need some help with SMB hack.

> Only answer to those I can give you
> would be "read nestech.txt and study up on your 6502"

Thanks. I'll do that.


<P ID="signature">http://s7.invisionfree.com/Nebland</a></P>
Nebetsu is offline   Reply With Quote
Old 01-24-2005, 06:54 AM   #9
Sifian
Junior Member
 
Join Date: Mar 2004
Posts: 28
Default Re: Need some help with SMB hack.

Okay... keep in mind that my Romhacking knowlege is crude at best.
> Whats the offset that determines how high Mario jumps?
>
> Whats the offset that determinds how fast Mario runs?

I beleive there are game-genie codes that affect this. Sno-bro wrote a very clear guide on howto convert GG hard code GG codes in a hex editor (plus you could easily modify the hex value to suit your needs)
http://www.zophar.net/tech/files/GameGenieDoc.txt
This document probably has every SMB1 gg code imaginable.
http://db.gamefaqs.com/console/nes/f...game_genie.txt






> How would I make some sort of shop to buy things using
> coins? (I dont think I'll be able to do this, but I thought
> I'd might as well ask)
Just isn't feasible. You'd need to code mapper use into the ROM.


> How do I make bonuses for beating the level in under a
> certain amount of time?
You'd probably do best by hacking the fireworks code.


> I have the fireballs shooting straight. Is there any way to
> stop them in midair so it's like a sword effect?
Probably a fairly non-painful way to do this, but i don't know what it is.


> How would I make a vertical scrolling level?
You don't.

> How would I add more powerups?
Easiest thing would be to modify existing powerups.


Honestly, even if you were an expert hacker, for most of that stuff, I'm sure you'd have a much better time startning with SMB3, as it already implements a lot fo this stuff, plus, DarkDaihz has shown us how extensively one can alter the SMB3 core in Mario Adventure. In the end, I think the lack of Mapper use is what would ultimately kill a really ambituous project for SMB1.

<P ID="signature"></P>
Sifian is offline   Reply With Quote
Old 01-24-2005, 09:01 AM   #10
AkaneJones
Senior Member
 
AkaneJones's Avatar
 
Join Date: Aug 2001
Posts: 1,668
Default Re: Need some help with SMB hack.

> > How would I make some sort of shop to buy things using
> > coins? (I dont think I'll be able to do this, but I thought
> > I'd might as well ask)
> Just isn't feasible. You'd need to code mapper use into the ROM.

Couldn't you just create a Question Mark Block that when punched takes a certain number of coins and give you a power up. Then place them with several others in a Pipe vault with Bg graphics to show you whats in them... atleased that'd be the way I'd try to go about it, though I'm not sure how it'd subtrack coins but since it can add coins you should be able to create a Anti-Coin Brick to subtrack.


<P ID="signature"><hr>
<center>

</center></P>
AkaneJones is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:10 PM.

Contact Us - Zophar's Domain - Archive - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.