Language…
6 users online: Bullymario, Children's Digest 1950-2009, CJtheSpeedrunFairy, IronFoxGaming, SirMystic, Zavok - Guests: 49 - Bots: 150
Users: 56,235 (2,276 active)
Latest user: Memeboi049

Individual Dragon Coin Save

SMW Patches → Individual Dragon Coin Save

Submission Details

Name: Individual Dragon Coin Save
Authors: JackTheSpades, lx5, worldpeace
Added:
Version History: View
Tool: Asar
Requires Free Space: Yes
Bug Fix: No
Featured: Yes
Description: This patch allows each individual (vanilla) dragon coin to be saved once it's collected. Unlike the other method, you don't need to replace all dragon coins with 5 different custom objects for every level. Refer to the comments in dcsave.asm and sram_instruction.txt for details.

Now compatible with LM 3.00 (as well as 2.5x) and the retry patch as requested.

Fixed a bug that the patch refers to $13BF before it is updated properly. Thanks goes to flabort for reporting this.


JackEdit: Added option for only saving when the midway point is collected (needs 8 bytes of freeram more) and to disable the transparent blocks if you'd rather have them not appear at all like the vanilla game.

lx5:
- Fixed wrong communication with the Retry Patch on a SA-1 ROM (requires my Retry Patch update)
- Fixed a bug where the patch would fail to detect the level being played
GitHub
Tags: collectable dragon coin lorom midway point sa-1 save
Comments: 27 (jump to comments)
Download 5.25 KiB | 679 downloads

Comments (27)

RedROM Link
Is there a way to add new collectibles? Like I was going to add a 32x32 gem. My hack is focused on collectibles. Any way to prevent the player needing to recollect everything on reset?

Edit: Tried the SA-1 Patch, but I am working on a new hack; basically no levels done yet. When I use a clean ROM, it works fine, but if I use the Lunar Magic hijack, before or after the patch, the game freezes on title.
Romano338 Link
I don't understand why it crashes the game when I collect a DC. I installed BWRam Plus since I use SA-1.

EDIT: ok, something HAS to be missing or messed up in the file. Even on a clean ROM without editing anything (but adding SA-1 and the lines in BWram table), it doesn't work. Like, when I pick up a DC, I get like 5 1-ups and the DC doesn't disappear.
So the patch just doesn't work
yogui Link
Note that there is a small problem with this: when you get a Game Over, it will remove the "all dragon coin collected" flag for all levels. That is the original behavior of Super Mario World. But if you use this patch with sram_plus, you may not want this to happens.
I found a quick way to remove it. Insert this hex edit with asar:
org $00977A
db $EE
Game over doesn't clear dragon coins collected now (but it clear moons collected twice now, yes I just switched the address called as it was easier). If someone can do a better hexedit, feels free. Ideally, this could be added in the patch if there's ever a new version.
 Kevin Link
Tested with: Lunar Magic 3.11, asar 1.71, SA-1 1.32, retry v2.06b, bsnes v115. No issues found, now the patch does work with the retry patch, also when using SA-1. Thanks for the update!
Vhack Link
This sounds like it would be useful in a collab hack.
lx5 Author Link
I had these changes sitting on my pc for a while.

- Fixed wrong communication with the Retry Patch on a SA-1 ROM (requires my Retry Patch update)
- Fixed a bug where the patch would fail to detect the level being played
westslasher2 From older version: Individual Dragon Coin Save Link
I seem to be getting the same issues reported by Romano, Good news is I found what seems to be the problem. The patch seems to work fine if the level with the yoshi coins is within certain sub-maps but not others, the problems mentioned also appear in the main map as well.

Tested both using SRAM Plus and the mini SRAM saving feature in the retry patch.
Romano338 From older version: Individual Dragon Coin Save Link
I got what I think is an issue with it: I finished a level with 3 DCs, so I started it again. The DCs I took previously re-appeared.
But when I died, I got back my 3 DCs and they disappeared from the level.
Also if I get a coin, reach midway, and then start select out of the level (if I have retry and start select is the only way out because automatic prompt), I come back and start at midway, but without the coin.
Flabort From older version: Individual Dragon Coin Save Link
If you enter another level and then return, it forgets any dragon coins that were collected. It remembers if you clear the level and immediately reenter.

Is that intended behavior?

Edit: That's the behavior when !Midpoint is set to 1. When !Midpoint is set to 0, it remembers which dragon coins were collected, but the first time re-entering a level where some were collected after visiting another level it forgets how many were collected and they don't show up in the status bar.
LMPuny From older version: Individual Dragon Coin Save Link
same

(removed tag)
 Ayami From older version: Individual Dragon Coin Save Link
tags: needs remoderation

-Green Jerry, 2018
worldpeace Author From older version: Individual Dragon Coin Save Link
January 6 edit: forgot to mention the original dragon coin collected table($1F2F) in the sram instruction. It's fixed now.
Luaxon From older version: Individual Dragon Coin Save Link
Does LX5's NSMBWii Star Coin patch already come with this?
 Erik From older version: Individual Dragon Coin Save Link
Nothing to add really to what has been said about this patch. UberASM compatibility is, of course, appreciated.
TheJullasicFox From older version: Individual Dragon Coin Save Link
Yoshi Coin? Yoshi Coin?
YOSHI COIN?!?!??!?!??!??!!
kAjdhsgausnbahdgfdywisughagcfHMNBNVBGbvnbvghhJjhnJhfGNvgHjb
RZ1 From older version: Individual Dragon Coin Save Link
How exactly do I get the graphics to work for the transparent blocks?
I changed the setting to 1, but i get a solid garbled mess whenever I collect a dragon coin now.
worldpeace Author From older version: Individual Dragon Coin Save Link
The following code in this version overwrites the routine which levelasm makes use of, and may ruin the rom. Not sure why Jack(or someone else?) added this code.

org $05D8BC
CLC : ADC $0E : TAY


Here's a temporary solution: reinserting uberasm would recover the overwritten routine.
 MarioFanGamer From older version: Individual Dragon Coin Save Link
@DaSponebobMan: There you go. No really, that patch is already compatible with the dragon coin flag. After all, all what this patch does is to make the game remember the whether you have collected these individual and not if you collected them all but otherwise left the dragon coins as they are including the collected DC flag, hence this note:
Quote
This code uses SMW's original RAM adresses for Yoshi Coin collection.
Don't use it in conjunction with a patch that rewrites this system [which the individual DC save don't].
(ex: the Individual Coin Save patch)

And "ex" likely stands for "exception" and not for "example".

Only patches like the star coins are incompatible with the DC flag because they changes the DC system which make the original flag unused.

Edit: And even then, it's easier to make the DC checker compatible which edits the DC flags rather than vice versa. After all, all the checker does is to check the collected DC flags whereas the patches changes the dragon coins system where the code to make them using the DC flag can be used for the DC checker anyway.
Anas From older version: Individual Dragon Coin Save Link
When I patched this on an unclean ROM, it corrupted it. I believe the freespace is untouched by my ROM. Can you also make it compatible with Mathos's uberASM Dragon Coin checker? 'Cuz the readme says not to use it with patches like this.
Von Fahrenheit From older version: Individual Dragon Coin Save Link
Moderator's note: this patch presents a very easy way of bypassing a common frustration with SMW hacks; namely, the fact that you lose all your yoshi coins when dying past the midway point. Just patch this as-is and you're good to go.

I did have some problems patching this on an unclean ROM, so be careful. The patch itself tells you to backup your ROM, which should be more than enough of a hint.
 MarioFanGamer From older version: Individual Dragon Coin Save Link
@Mariofan64: Just it because it has glitched on you, it doesn't necessary mean that it glitchy in general.
As written, I have used it once and it worked fine so it really is a problem on you, not this patch, not to mention that it wouldn't have been accepted anyway if it didn't work.

This patch also use SMW's way to remember if all DC in a level are collected so I don't say it is the same.
Mariofan64 From older version: Individual Dragon Coin Save Link
http://www.smwcentral.net/?p=section&a=details&id=4343 Use this patch instead of the one here. It's the same thing except it has no glitches, and it makes the DragonCoin counter better, and it is useful for allowing other patches to base off of.
 MarioFanGamer From older version: Individual Dragon Coin Save Link
@Mariofan64: No, that means that you inserted it wrongly. The glitchy blocks only should appear if the wrong Map16 tiles are loaded. You can change the used tile number on the patch. In addition, you need to create the tiles by yourself.
Alternatively, there is a RAM, conflict.

I have used it once and it worked just fine.
Mariofan64 From older version: Individual Dragon Coin Save Link
This is glitched.
If this is used, any collected dragon coins become a stack of two blocks which contain random objects such as Keys or Yoshi Eggs.
 Vitor Vilela From older version: Individual Dragon Coin Save Link
Genial patch. Something better than this impossible. Featured and approved.
 Vitor Vilela From older version: Individual Dragon Coin Save Link
I will be converting this patch to a hybrid SA-1 ROM, which should fix that I just mentioned.
 Vitor Vilela From older version: Individual Dragon Coin Save Link
Reading tables, like AND.l $0DA8A6,x should be in FastROM area too for a small speed up.