[garou] Always Just Defend

This forum is for posting M.A.M.E. arcade cheats. Requests will be fulfilled here....but please keep the requests to the requests forum.
Post Reply
Bugfinder
Posts: 168
Joined: Tue Sep 25, 2001 1:00 am
Location: Rio de Janeiro, Brasil

[garou] Always Just Defend

Post 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.
Bugfinder
------------------------------------------
If there's a bug, I'm gonna find it!
kelvSYC
Posts: 1121
Joined: Thu Sep 27, 2001 1:00 am
Location: Calgary, AB, Canada

Post 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?
kelvSYC's Guide to the Cheat Engine - http://members.shaw.ca/kelvsyc/cheatguide.html

The New Move List Cheat Collection - http://mamecheat.co.uk/forums/viewtopic.php?p=6469

Underscore Command - What better game is there?
Bugfinder
Posts: 168
Joined: Tue Sep 25, 2001 1:00 am
Location: Rio de Janeiro, Brasil

Post 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?
Bugfinder
------------------------------------------
If there's a bug, I'm gonna find it!
kelvSYC
Posts: 1121
Joined: Thu Sep 27, 2001 1:00 am
Location: Calgary, AB, Canada

Post 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.
kelvSYC's Guide to the Cheat Engine - http://members.shaw.ca/kelvsyc/cheatguide.html

The New Move List Cheat Collection - http://mamecheat.co.uk/forums/viewtopic.php?p=6469

Underscore Command - What better game is there?
pepe*argento*
Posts: 5
Joined: Thu May 04, 2023 4:46 am

Re: [garou] Always Just Defend

Post 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.
User avatar
Pugsy
Posts: 3675
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 16 times
Contact:

Re: [garou] Always Just Defend

Post 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.
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.264 XML cheat collection (3 APRIL 2024) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/SxsQUJoT#jBdz6GLm_ ... QzFGSMms2c (ZIP Archive 3.8 MB)
pepe*argento*
Posts: 5
Joined: Thu May 04, 2023 4:46 am

Re: [garou] Always Just Defend

Post 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)
pepe*argento*
Posts: 5
Joined: Thu May 04, 2023 4:46 am

Re: [garou] Always Just Defend

Post 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
Post Reply