Page 1 of 1

[garou] Always Just Defend

Posted: Sun Sep 29, 2002 5:47 am
by Bugfinder
As per KelvSYC request, Always Just Defend cheats.

Code: Select all

:garou:00000018:10047F:00000008:00000008:Always Just Defend P1
:garou:00000018:10057F:00000008:00000008:Always Just Defend P2
The game observes these addresses's bit 3, if they are set then it was just defended. This cheat has a drawback though: even when you attack, you see the blue flash shown as if the opponent had just defended. To solve this, I used the debugger and found the code where this is handled:

Code: Select all

04EE6A: 082C 0003 007F       btst    #$3, ($7f,A4)
04EE70: 6766                 beq     4eed8
04EE72: 122A 0004            move.b  ($4,A2), D1
At $4EE6A, the program makes a bit 3 test. If it's equal to 0 (not set), jumps to $4EED8, otherwise (just defended), proceeds to $4EE72. Knowing that, I simply remove the jump to $4EED8.

Code: Select all

04EE6A: 082C 0003 007F       btst    #$3, ($7f,A4)
04EE70: 4E71                 nop
04EE72: 122A 0004            move.b  ($4,A2), D1
Then I came up with this ROM cheat:

Code: Select all

:garou:20900000:04EE70:00004E71:0000FFFF:Always Just Defend (ROM cheat)
Sorry for the NOPping, General Pugsy :-) I had only 2 bytes to work and "bra" needs 4.

Posted: Sun Mar 02, 2003 7:48 pm
by kelvSYC
Even with the ROM cheat on, looks like the blue flash is still occuring when you attack, which the ROM cheat is supposed to suppress. Can you check this out?

Posted: Thu Mar 06, 2003 4:13 am
by Bugfinder
kelvSYC wrote:Even with the ROM cheat on, looks like the blue flash is still occuring when you attack, which the ROM cheat is supposed to suppress. Can you check this out?
Sorry for the late reply, I haven't been visiting here lately. Well I checked and the cheat works correctly, as expected. Can you provide to my e-mail address pictures showing scenes where you think things are wrong?

Posted: Thu Mar 13, 2003 2:53 am
by kelvSYC
Actually, upon rechecking, it does give you the desired result, but there are some side effects:

- If you have the ROM cheat on but the RAM cheat for the player is off, when they block normally it counts as a Just Defend (they even get their life back), except that they don't go into their Just Defend animation (they can even get guard crushed this way, like a regular block).
- If you have both ROM cheat and RAM cheat for the player on, when they block they go into their JD animation, but there is no blue flash. Furthermore, if that player is hit, the blue flash appears.

Re: [garou] Always Just Defend

Posted: Thu May 04, 2023 4:55 am
by pepe*argento*
Hello, im working on a "bot" for training purposes, i need a "NEVER Just Defence" cheat, to avoid the Cpu allways using the JD, this way i can set a 50/50 chance to use the JD or not, thanks in advance.

Re: [garou] Always Just Defend

Posted: Sat May 06, 2023 3:14 pm
by Pugsy
Well argueably if the above "Always Just Defend" cheat works, then you just have to poke 0 to the 08 bit to do the opposite.
so instead of
maincpu.pb@10057F=08|(maincpu.pb@10057F BAND ~08) for P2 Always Just defend you'd have
maincpu.pb@10057F=00|(maincpu.pb@10057F BAND ~08) for P2 Never Just Defend

No idea if it works, not interested in this game.

Re: [garou] Always Just Defend

Posted: Sat May 06, 2023 6:44 pm
by pepe*argento*
Hi!, thanks for the reply, yeah it kinda works, but just to remove the blue (explosion(?)) effect and the restore life value, the animation, color change, sound effect and pause effect on P1 persist, i cant find the address that allows the JD in the first place, you have a trainning mode that allows you turn on turn off the JD value , but only works with the dummy and not with a CPU or human player, thats odd. Sorry for my broken english.
https://ibb.co/ByP1qS6

EDIT: this address 0x10ABA1 is the one in the trainning menu that turn off/on the jd (just for the dummy)

Re: [garou] Always Just Defend

Posted: Sun May 07, 2023 4:01 am
by pepe*argento*
Ok i found it!!!!!! :D :D :D :D , i found it like 4 or 5 times before, but i set the value to 10ADF3=00, and the right value to turn it off is 18 :-? !!!
<cheat desc="ADDRESS ON/OFF JD : 10ADF3 (2F)">
<script state="run">
<action>maincpu.ppb@10ADF3=18</action>
</script>
</cheat>

EDIT: omg im so happy right now :P