Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Rom Hacking: hukka | 2 guests
Acmlm's Board - I2 Archive - Rom Hacking - SMB2: Coin ASM Hack | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
DahrkDaiz

Red Super Koopa

Acmlm's Mosts 2005
Best ROM Hacker

Level: 45

Posts: 557/885
EXP: 643520
For next: 16644

Since: 03-15-04
From: K-Town

Since last post: 4 hours
Last activity: 4 hours
Posted on 03-25-05 04:07 AM Link | Quote
Here's a hack I'm sure many will want to use: This hack replaces cherries with coins, just like in most SMB games. 100 coins will give you a 1-Up, the amount of coins you currently have is displayed on the pause screen and the number of coins isn't reset when you beat a level or die. Note: these coins are not related in anyway to your game coins, those are still seperated for the bonus level.

The IPS patch can be found here

Here's some screenshots:










And here's the documentation





(edited by DahrkDaiz on 03-24-05 07:07 PM)
(edited by DahrkDaiz on 03-24-05 07:08 PM)
The Kins

Kodondo
Level: 38

Posts: 360/595
EXP: 354733
For next: 15714

Since: 03-15-04
From: Melbourne, VIC, Australia

Since last post: 2 days
Last activity: 9 hours
Posted on 03-25-05 05:09 AM Link | Quote
Holy mother of god!

<3 Dahrk.
Ice Ranger

Leever
Level: 23

Posts: 105/183
EXP: 60462
For next: 7261

Since: 03-16-04

Since last post: 82 days
Last activity: 3 days
Posted on 03-25-05 05:20 AM Link | Quote
Heh, I was wondering if you were going to make this public. Thanks for letting me take a look at it as it made the foundation for letting me figure out the Automatic starman after 5 cherries.

The one thing I still can't figure out is how you made it change the pallet for the coin without changing the POW, grass, or other items which share the red/black/white pallet switched with the ground/rock pallet (which is probably the easiest part) or change the coin sound to that (I thought the hex value was still the same as for the cherry pick up).

I definitely need to figure out the added information for the pause screen. That's the only other part I haven't figured out.
DahrkDaiz

Red Super Koopa

Acmlm's Mosts 2005
Best ROM Hacker

Level: 45

Posts: 559/885
EXP: 643520
For next: 16644

Since: 03-15-04
From: K-Town

Since last post: 4 hours
Last activity: 4 hours
Posted on 03-25-05 05:27 AM Link | Quote
That's easy, the pallete is equal to the upper two bits of the id number. In other words, tile ids 00-3F use pallete 0, 40-7F use pallete 1, 80-BF use 2 and C0-FF use 3
iamhiro1112

Armos
Level: 35

Posts: 260/487
EXP: 259927
For next: 20009

Since: 03-27-04
From: sd

Since last post: 18 days
Last activity: 7 days
Posted on 03-25-05 06:05 AM Link | Quote
Anyone else having problems with the patch? My game stopped working after putting the patch on it. I was using version 1.1 I believe.
Imzogelmo

Blue Octorok
Level: 11

Posts: 35/41
EXP: 5292
For next: 693

Since: 09-22-04
From: (Longview) Starkville, MS, USA

Since last post: 15 days
Last activity: 1 day
Posted on 03-25-05 07:12 AM Link | Quote
Looks really cool. This game is definitely on my list of games to hack when I get over my FF6 thing. Of course, I have no idea when that'll be...
BMF98567
BLACK HAS BUILT A SILLY DICE-MAZE!
GO!

Current list of BURNING FURY >8( recipients:
- Yiffy Kitten (x2)
- Xkeeper
Level: 53

Posts: 715/1261
EXP: 1094149
For next: 62970

Since: 03-15-04
From: Blobaria
Special Move: Rising Meatloaf Backhand Combo

Since last post: 21 hours
Last activity: 1 hour
Posted on 03-25-05 12:19 PM Link | Quote
That's a friggin' awesome hack, DD. I should try converting my little power meter hack from LotBB2 into a sprite-based coin counter. Problem is, there might not be enough space in VROM for the numbers...
Originally posted by iamhiro1112
Anyone else having problems with the patch? My game stopped working after putting the patch on it. I was using version 1.1 I believe.
PRG1 has some major changes to the program code (exactly what, I'm not sure). Lots of stuff is moved around. Use PRG0 instead, that's the most common ROM anyway.

[EDIT]



Heehee, that wasn't too hard.

Download coincounter.ips

This patch must be applied to a ROM that's already been patched with the coin hack (you can apply it to a clean ROM, but it'll act as a cherry counter instead ). I replaced the old Albatoss and unanimated bomb graphics left over from Doki Doki Panic with the number and coin tiles, so it shouldn't mess anything up.

I also have a bug report, DD: the coins don't work in Sub-Space. They glitch up and can't be collected.


(edited by BMF54123 on 03-25-05 06:35 AM)
Setzer

Popo
Level: 36

Posts: 142/532
EXP: 290182
For next: 17928

Since: 04-22-04
From: Not Florida. because I'm going to sink it.

Since last post: 5 hours
Last activity: 48 min.
Posted on 03-25-05 07:46 PM Link | Quote
o.o ... why don't you add a counter for the slot-coin things too? That'd be pretty nifty. good job on the asm leetness though.
DahrkDaiz

Red Super Koopa

Acmlm's Mosts 2005
Best ROM Hacker

Level: 45

Posts: 561/885
EXP: 643520
For next: 16644

Since: 03-15-04
From: K-Town

Since last post: 4 hours
Last activity: 4 hours
Posted on 03-26-05 12:28 AM Link | Quote
Originally posted by BMF54123

I also have a bug report, DD: the coins don't work in Sub-Space. They glitch up and can't be collected.


woops! I'll work on fixing that later tonight. thanks for the bug report!
iamhiro1112

Armos
Level: 35

Posts: 264/487
EXP: 259927
For next: 20009

Since: 03-27-04
From: sd

Since last post: 18 days
Last activity: 7 days
Posted on 03-26-05 01:35 AM Link | Quote
I patched this to a V1.0 and it works great. It's pretty sweet cause it makes the game seem a bit more like your conventianal Mario Bros games. How about making a version of the hack where the coins you get from plants would be counted toward your coin total, and bypass the bonus game all together. By this time I kinda am tired of the mini-game anyway and would like some straight up action.

BTW, I think the sum of coins you need to get to get during the game is a bit high. THere wasn't exactly alot of cherries to be found in the game so perhaps you should lower the amount we need to find to get a oneup. I think it would be ok to not follow the rules set in other Mario games for how much u need for a oneup because this game didn't follow those rules in the first place (no stompable enemies etc). Lower it to 60 40 or 20 I think.


(edited by iamhiro1112 on 03-25-05 04:53 PM)
BMF98567
BLACK HAS BUILT A SILLY DICE-MAZE!
GO!

Current list of BURNING FURY >8( recipients:
- Yiffy Kitten (x2)
- Xkeeper
Level: 53

Posts: 717/1261
EXP: 1094149
For next: 62970

Since: 03-15-04
From: Blobaria
Special Move: Rising Meatloaf Backhand Combo

Since last post: 21 hours
Last activity: 1 hour
Posted on 03-26-05 12:12 PM Link | Quote
You can just change the byte at $102A in the ROM to whatever value you want to trigger a 1UP. The default is #$64 (100 in hex). So, for example, change it to #$32, and you'll only need to collect 50 coins.

I don't think DD intended for this to be used with the original game, but rather as a base for a hack. It would be neat if someone figured out how to create a resizable "multiple coins" object type, in order to save ROM space (inserting a lot of individual coin objects would quickly eat up what little space there is). You could definitely hack an existing platform object, but SMB2's object set is limited enough as is...
iamhiro1112

Armos
Level: 35

Posts: 270/487
EXP: 259927
For next: 20009

Since: 03-27-04
From: sd

Since last post: 18 days
Last activity: 7 days
Posted on 03-26-05 12:49 PM Link | Quote
Originally posted by BMF54123
You can just change the byte at $102A in the ROM to whatever value you want to trigger a 1UP. The default is #$64 (100 in hex). So, for example, change it to #$32, and you'll only need to collect 50 coins.



Well, I was trying to do that earlier. I haven't quite got the hang of hex editors yet. There's alot of 102a's in the hex editor. "00BF-00C3" BTW, another bug report. The left side of the pyramids in World 2 are replaced with coins. I think I'll be playing this game thru to the end so if anything similar happens I'll post it.
Xkeeper
The required libraries have not been defined.
Level: NAN

Posts: -2271/-863
EXP: NAN
For next: 0

Since: 03-15-04

Since last post: 2 hours
Last activity: -753366 sec.
Posted on 03-26-05 10:59 PM Link | Quote
Originally posted by iamhiro1112
Originally posted by BMF54123
You can just change the byte at $102A in the ROM to whatever value you want to trigger a 1UP. The default is #$64 (100 in hex). So, for example, change it to #$32, and you'll only need to collect 50 coins.



Well, I was trying to do that earlier. I haven't quite got the hang of hex editors yet. There's alot of 102a's in the hex editor. "00BF-00C3" BTW, another bug report. The left side of the pyramids in World 2 are replaced with coins. I think I'll be playing this game thru to the end so if anything similar happens I'll post it.
heh, no... what you need to do is go to offset 102A, not find the value.



It won't look anything like this, but this should give you a general idea of how to find it.


(bonus points to anyone who guesses the game opened)
iamhiro1112

Armos
Level: 35

Posts: 275/487
EXP: 259927
For next: 20009

Since: 03-27-04
From: sd

Since last post: 18 days
Last activity: 7 days
Posted on 03-27-05 12:57 AM Link | Quote
My problem was the hex editor I was using. I don't think it was set up very well for using NES games. So Im using hexecute. I got it fixed now. Thanks for the pic, it helped me see my problem.
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 3939/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 03-28-05 07:57 AM Link | Quote
Originally posted by Xkeeper
(bonus points to anyone who guesses the game opened)

I'd try, but I don't see a pic.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Rom Hacking - SMB2: Coin ASM Hack | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.024 seconds.