poking two value on a same location?

If you are having problems finding or using cheats for an Emulator (particularly MAME/MESS) or have found a trick that you wish to share this is the place to do it. But please read the Cheat FAQ first.
Post Reply
User avatar
Mohsin
Posts: 85
Joined: Sun Mar 15, 2009 1:06 pm
Location: Pakistan

poking two value on a same location?

Post by Mohsin »

i don`t know if its even possible thats why i`m posting it here, please take a look at this image.

Image

Value 1 stores the item like 01,02,03,04........

Value 2 turns to 0001 when u pick an item, thus telling the game that now u have the item, all works fine in the mame debugger, first i type command to set the "value 2" to 0001 then i change the "value 1" to anything to get that item, but it doesnt work when this is put all togather in a cheat file like

Code: Select all

<script state="run">
<action>maincpu.pw@8F1514=0x02</action>
<action>maincpu.pd@8F1514=0001</action>
</script>
the cheat engine will totally ignore the first value and freeze the 2nd value, in the above code it will just freeze value 2, game just thinks it has a item, but what item???? there is no 0000 item, but if i put maincpu.pd@8F1514=0001 first, now game dont even know it has a item, but item value is poked.

i dont know if i`m doing this wrong? or its even possible? if u can please tell me how to poke both the value togather it will be really great.
Image
Thats not a game hack

http://mamec.netii.net/
User avatar
Pugsy
Posts: 3675
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 15 times
Contact:

Re: poking two value on a same location?

Post by Pugsy »

Mohsin wrote:

Code: Select all

<script state="run">
<action>maincpu.pw@8F1514=0x02</action>
<action>maincpu.pd@8F1514=0001</action>
</script>
In the first action you are poking 2 bytes (w (word)) at 8F1514, in the 2nd you are poking 4 bytes (d (double word)) at 8F1514, so the 2nd poke will overwrite the first regardless

so you either rearrange them to:-

Code: Select all

<action>maincpu.pd@8F1514=00000001</action>
<action>maincpu.pw@8F1514=0002</action>
or better change it to one double write:

Code: Select all

<action>maincpu.pd@8F1514=00020001</action>
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)
User avatar
Mohsin
Posts: 85
Joined: Sun Mar 15, 2009 1:06 pm
Location: Pakistan

Re: poking two value on a same location?

Post by Mohsin »

oh, i see now what i was doing wrong :( i was totally over writing the value, dont know when searching in the cheat engine will be implemented, but i could really use some help, if you could please write a little topic about the new xml cheat format, it would really help us a lot.
Image
Thats not a game hack

http://mamec.netii.net/
Post Reply