Language…
24 users online: akawo, Alex No,  AmperSam,  BeeKaay, CharlieUltra, deadworld2009,  DeppySlide, edgar, Green, Hammerer, Heitor Porfirio, JezJitzu,  MarioFanGamer, Metal-Yoshi94, MistaX88, MorrieTheMagpie, Nayfal,  NopeContest, Pink Gold Peach, Rykon-V73,  Telinc1, timeisart, Tulip Time Scholarship Games, wye - Guests: 289 - Bots: 485
Users: 64,795 (2,370 active)
Latest user: mathew

How to remove life gain.

Hi, I've set the life count of Mario to 99. I've also removed the possibility for him to lose lives so the counter never goes below 99. However, he can still gain lives. I'm getting strange values like b6 or t9. How can I fix this?

If you're fine with removing gaining lives ENTIRELY from your hack you can do this:
Code
org $01AB63
db $07

just place the code into an .asm file and patch it with asar.
If you also want to remove the lives counter on the OW for some reason:
Code
org $05DBF2
db $6B

Remember to make a backup before applying the patches just to be extra safe.
Originally posted by Atari2.0
If you're fine with removing gaining lives ENTIRELY from your hack you can do this:
Code
org $01AB63
db $07


That didn't work for me. Maybe it's different with sa-1?
What didn't work? Did it give you an error? That patch just makes it so you can can't gain 1-ups for score combos like hitting stuff in the air. The counter shouldn't go past 8000 points and never give you an extra life (which I'm assuming it's why you're gaining lives in your hack)
Originally posted by Atari2.0
What didn't work? Did it give you an error? That patch just makes it so you can can't gain 1-ups for score combos like hitting stuff in the air. The counter shouldn't go past 8000 points and never give you an extra life (which I'm assuming it's why you're gaining lives in your hack)


I had no problems assembling the code with asar. However, after I complete a level, I still get values such as B0

(Edit: I also have the retry patch, I don't know if it creates some conflict maybe)
i think that's because you set live counter incorrectly. say, what value did you use? if it's $99, that's in hex, which is more than 99 and can cause glitchy display. remove $ symbol, assuming you're using hex edit. you edited post.
Originally posted by RussianMan
i think that's because you set live counter incorrectly. say, what value did you use? if it's $99, that's in hex, which is more than 99 and can cause glitchy display. remove $ symbol, assuming you're using hex edit. you edited post.


That's my retry table:
Code
!lose_lives = $00               ; $00 = not lose your lives when you die
                                ; $01 = lose your lives (vanilla)

!initial_lives = 99             ; in decimal


Is it wrong?
then you can use the other hex edit that I wrote in the first reply to get rid of the life counter on the OW if you're ok with it
Originally posted by Atari2.0
then you can use the other hex edit that I wrote in the first reply to get rid of the life counter on the OW if you're ok with it


The code that removes the counter on the OW works, but when you get too many lives Mario is dead in the OW

is there's any other patch you're using that may be incompatible with retry or something? or try changing !initial_lives to 5 and see if it everything's ok (after all you set it to not lose lives, so it shouldn't matter if it's 99 or not)
Originally posted by Nint3ndoleggend
Originally posted by Atari2.0
then you can use the other hex edit that I wrote in the first reply to get rid of the life counter on the OW if you're ok with it


The code that removes the counter on the OW works, but when you get too many lives Mario is dead in the OW


Yeah I had the same problem with my hack and I fixed it with the previous hex edit (the one that didn't work for you). I have no idea if it's cause SA-1 or not. My hack used retry and everything, just wasn't SA-1, however nothing suggests that the hex edit is incompatible with SA-1 so I don't know what's going wrong there.
So, I've set the life count to 1. Completing a level gives 1 life so it should be no problem. Thank you both guys, very appreciated #smw{:peace:}
Originally posted by Atari2.0
Originally posted by Nint3ndoleggend
Originally posted by Atari2.0
then you can use the other hex edit that I wrote in the first reply to get rid of the life counter on the OW if you're ok with it
Brazzers Youporn Xhamster

The code that removes the counter on the OW works, but when you get too many lives Mario is dead in the OW


Yeah I had the same problem with my hack and I fixed it with the previous hex edit (the one that didn't work for you). I have no idea if it's cause SA-1 or not. My hack used retry and everything, just wasn't SA-1, however nothing suggests that the hex edit is incompatible with SA-1 so I don't know what's going wrong there.

What didn't work? Did it give you an error? That patch just makes it so you can can't gain 1-ups for score combos like hitting stuff in the air. The counter shouldn't go past 8000 points and never give you an extra life (which I'm assuming it's why you're gaining lives in your hack)