Codebreaker limited to button and freezing values only? I got an issue with IF STATEMENTS.

gukingofheart

Well-Known Member
OP
Member
Joined
Feb 2, 2022
Messages
235
Trophies
0
Age
124
XP
440
Country
United States
After messing with Codebreaker IF STATEMENTS, I realized something. It's using 16BIT for the If statements... and this is causing me major issues (might just go back to debugging, as I did manage to create some codes).


03004300 = Mario's Power-Up State Address
03004301 = Item Reserve Address

If Mario has no power up, Give him a cape. "THIS WORKS", if there is "No Item Reserve".
73004300 0000
33004300 0002

If there's an item in reserve, 73004300 does not Equal 0, but instead it equals 000x (x, being whatever is in the reserve. PS. might be 0x00 instead.. I forget the order).

If I could do an IF STATEMENT for only 8 bytes, this would not be an issue.

I run into the same problem, for the Level Timer, Coins (I think it's because Dragon Coins share the next byte over).

At this point, I feel like codebreaker is only meant for freezing values (Also sliding) & Joker Codes.
So, I might just go back to just freezing values, and go back to debugging.. as I had better luck with some debugging codes, once I learned the proper DIVIDE by 2 formula.

PS. Sorry, for the multiple daily topics. I'm also working on a SIMPLE tutorial.
Edit: Managed to make an infinite life & don't lose fire mario Action replax Max.. so I'm starting to get somewhere with the debugging part.
 
Last edited by gukingofheart,

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,377
Country
United Kingdom
Curious to see it crushed into 8 bit values for things like this.

CBA does seem to be a more limited format than some, and getting it to copy values to somewhere else/have its own stack is also annoying it seems as that is one way around it. Both are however options in action replay (I still don't know why CBA is your choice here -- most emulators, flash carts and hardpatching tools will take gameshark by default or have better things internally stiill), as are conditionals that would do what you want even if dropping it down to 8 bit was not an option (which it is).
If I had to do it in CBA format I might consider treating the whole thing as a 16 bit number and doing a less than.
 

gukingofheart

Well-Known Member
OP
Member
Joined
Feb 2, 2022
Messages
235
Trophies
0
Age
124
XP
440
Country
United States
It was just my default choice, because I think I was told to not bother with debugging at first, since I couldn't do it.
But I switched back to debugging, and gotten better at it.

Oh well, at least I learned the best ways to do CB, and it's limitations.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +2
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
    +1
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
    +1
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
    +1
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
  • cearp @ cearp:
    It's nice to not have to have a lot of physical things though, saves space
    +1
  • AncientBoi @ AncientBoi:
    Nor clothes 🤮 . Saves on time, soap, water and money having to wash them. :D
  • SylverReZ @ SylverReZ:
    @rqkaiju2, Physical media is a great source for archiving your data, none of that cloud storage shiz.
    +1
  • AncientBoi @ AncientBoi:
    [squeezes @SylverReZ onto a physical media, then archives you in my old stuff box] :tpi::rofl2::tpi:
    +1
  • BakerMan @ BakerMan:
    guys, should i change my pfp to one of these or keep it the same?
    iu

    iu

    (i guess i could change it to one of my other pfps too, but i just want to see what you guys think first)
  • SylverReZ @ SylverReZ:
    @BakerMan, Up to you.
  • BakerMan @ BakerMan:
    smug sonic time lmao
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Chronic The HempHog
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=EtapU5nI6G4 +1