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
443
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,405
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
443
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
  • No one is chatting at the moment.
  • Sicklyboy @ Sicklyboy:
    Thanks ken
  • BigOnYa @ BigOnYa:
    Great game. But I'd buy it straight up before paying for prime. Unless you order something everyday from amazon, not worth it imo
  • Sicklyboy @ Sicklyboy:
    I'm one of those people that Amazon loses money on the Prime subscription with
  • Sicklyboy @ Sicklyboy:
    I abuse the fuck out of it
  • K3Nv2 @ K3Nv2:
    Prime says I've already saved $400 this year lol
  • Sicklyboy @ Sicklyboy:
    Where do you see how much you've saved?
  • K3Nv2 @ K3Nv2:
    Under orders
  • BigOnYa @ BigOnYa:
    See maybe good for you guys, but I don't hardly ever order from amazon, maybe only couple times a month
  • K3Nv2 @ K3Nv2:
    Primes great because I stopped getting into arguments with the door greeter at Walmart
  • Sicklyboy @ Sicklyboy:
    hahahahaha
  • K3Nv2 @ K3Nv2:
    They see me so much in there they don't even ask for me receipt anymore tbh
  • Sicklyboy @ Sicklyboy:
    Pain in the ass, don't see it anywhere on the desktop site, had to pull it up on my phone
  • K3Nv2 @ K3Nv2:
    Think they gave up on the website and mainly focus on the app
  • Sicklyboy @ Sicklyboy:
    Desktop site > mobile site > mobile app
  • Sicklyboy @ Sicklyboy:
    Mobile app is such absolute dogshit, I haven't used it in SO long
  • K3Nv2 @ K3Nv2:
    Yeah mobile versions better people don't think about how apps are just shrunken down websites
  • K3Nv2 @ K3Nv2:
    Could be the phone connection etc I've mostly been fine with the app
  • K3Nv2 @ K3Nv2:
    Regardless fuck bezos
    +1
  • Sicklyboy @ Sicklyboy:
    Agreed. Crazy how both seeking a job at Amazon, and subsequently quitting Amazon, are both some of the best decisions I've ever made
  • K3Nv2 @ K3Nv2:
    Did someone loose a leg? You're fired
  • K3Nv2 @ K3Nv2:
    Ffs 55gb patch for hogwarts legacy
  • SylverReZ @ SylverReZ:
    @K3Nv2, Teslas are prob running Windows XP to this day.
    SylverReZ @ SylverReZ: @K3Nv2, Teslas are prob running Windows XP to this day.