9 users online:  Anorakun, bandicoot, Chondontore,  DeppySlide, El Cuh Fermin, JupiHornet, sdace, TheLegendaryOrb, Yoshi Master - Guests: 176 - Bots: 137
Users: 59,945 (2,174 active)
Latest user: Peppapigprogamer

Yoshi Coin Counter

SMW Patches → Yoshi Coin Counter

Submission Details

Name: Yoshi Coin Counter
Author: Darolac
Tool: Asar
Requires Free Space: Yes
Bug Fix: No
Featured: No
Description: This patch allows to use the bonus star counter as a Yoshi Coin counter that will reflect in how many levels you have obtained all Yoshi coins. It also completely disables the bonus stars. Take into account that you should use it alongside the SRAM/BWRAM plus patch in order to make the Yoshi coins not reappear every time you reenter the level: you have to save 0D bytes counting from $1F2F onwards (the Yoshi coin collected table) and the !sram adress defined in the asm file (default $1FFF). The counter can get up to 99 so you can have that many levels with Yoshi coins in your hack.
Tags: bonus stars bwram counter lorom sa-1 yoshi coin
Comments: 4 (jump to comments)
Download 899 bytes | 278 downloads


Comments (4)

NatsuFireball Link

I am playing the hack SA-1: Special Adventure - 1, which uses this patch.

It works well, but sadly the number of levels fully cleared doesn't seem to save in SRAM : when restarting the game it starts back to 0, which is a little pity because the player can't keep track of their 100% completion of the game...

In addition I think this patch, in its current non-SRAM-saving state, only has purpose if you start the game from the beginning (what is the point of counting cleared levels from 0 if you start from a latter point in the game ?)

Is there a way of making it saving the number to SRAM ? This would be so cool =]
Darolac Author Link
I'm sure you can save the number on sram; in fact, I do recomend the usage of the SRAM/BWRAM plus patch along this patch. I could be wrong though as I made this patch a long, long time ago. Please read the description for more info.
BlueToad Link
How can I make it so that I can still use the Bonus Stars and save the Yoshi coins to SRAM so that it can be accessed by other ASM stuff?
 Maarfy Link
In the freecode portion of this patch, BCC .return was changed to BNE .return in order to prevent the !sram counter from incrementing for each Yoshi Coin collected beyond the fifth in a given level. This was deemed too significant an oversight not to change, but too simple a fix to warrant complete rejection.

Note that, while the define !sram may be changed, it MUST be absolute (four digits, $XXXX) or the game will crash.

Overall this is a simple and effective patch, useful to those who want to give Yoshi coins some extra function without straying too far from the classic Yoshi coin feel. If there's ever an update to this patch in the future, there are a couple very minor improvements that could be made:

Tested with Asar 1.71, Lunar Magic 3.10, SA-1 1.32, Snes9x 1.59.2.