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,375
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
  • Psionic Roshambo @ Psionic Roshambo:
    BigOnYa I had a modified version with texture mods and all kinds of goodies lol https://m.youtube.com/watch?v=Vo5g4kxs4UU&t=64s
  • Psionic Roshambo @ Psionic Roshambo:
    Me playing it like 4 years ago on a 2080 Ti lol
  • Psionic Roshambo @ Psionic Roshambo:
    Lol that reminds me I am like 60% sure my step daughter is dead...
  • Psionic Roshambo @ Psionic Roshambo:
    Meth addicts don't move out of a house they are trying to sell and the boyfriend says she moved and does not know where lol
  • K3Nv2 @ K3Nv2:
    I was about to be like can't wait for gta6 so @Psionic Roshambo can tell me places to go then you drop that
    +3
  • BigOnYa @ BigOnYa:
    But gta6 will be in Psi hometown, and all cars will have a women on the roof, booty shaking.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    That was a thing here in Florida for a minute
  • Psionic Roshambo @ Psionic Roshambo:
    Like cars with the booty shaking lol I seen it once in person was like smiling lol
    +1
  • K3Nv2 @ K3Nv2:
    Nah I'm talking about visiting areas he hides his bodies at
  • Psionic Roshambo @ Psionic Roshambo:
    Vice City kind of feels like Miami lol
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, it's a parody iirc
  • BigOnYa @ BigOnYa:
    Yea think that's where it was supposed to be, Miami
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Having been to Miami hmmm probably a hundred times lol
  • Psionic Roshambo @ Psionic Roshambo:
    Back in my days as a delivery driver for a cartel well driver slash guy they would send if a payment was forgotten lol
  • Psionic Roshambo @ Psionic Roshambo:
    you know to help them find their checkbook lol
  • BigOnYa @ BigOnYa:
    Gta4 was NewYork or Chicago, gta5 is California
  • K3Nv2 @ K3Nv2:
    Damn camera phones catching crimes
  • Psionic Roshambo @ Psionic Roshambo:
    Always some women screaming... You break a few thousand dollars worth of crap in someone's living room and they scream lol
  • Psionic Roshambo @ Psionic Roshambo:
    lol Ken yeah the things I did as a kid I am soooo glad those didn't exist
  • K3Nv2 @ K3Nv2:
    If someone breaks my $20 TV stand their nose is getting broke
  • Psionic Roshambo @ Psionic Roshambo:
    Psi would be doing like 300-3,000 years in prison lol
  • K3Nv2 @ K3Nv2:
    Have some in closet allegations?
  • Psionic Roshambo @ Psionic Roshambo:
    Someone tried to pull a gun on me once, they reached into the couch thinking I wouldn't notice, quick kick to the arm snapping it between the wrist and elbow broke like a swing lol I reached into the couch to see what was in there, cool a free .380 lol had to hit him with it a few times to remind him not to do it again lol
  • Psionic Roshambo @ Psionic Roshambo:
    He had the 20K he owed the very next day it was a miracle lol
    Psionic Roshambo @ Psionic Roshambo: He had the 20K he owed the very next day it was a miracle lol