View previous topic :: View next topic |
Author |
Message |
Mark Danielle Advanced Cheater Reputation: 0
Joined: 22 Aug 2012 Posts: 97
|
Posted: Tue Dec 03, 2013 4:41 am Post subject: Replacing two addresses... |
|
|
I know how to "replace two addreses" with the same value, but how do i do it in lua ?
|
|
Back to top |
|
|
Mark Danielle Advanced Cheater Reputation: 0
Joined: 22 Aug 2012 Posts: 97
|
Posted: Tue Dec 03, 2013 1:08 pm Post subject: |
|
|
anyone? i mean like "find out what writes to this address" and theres is two different opcodes witch i have to "replace", but when i make a trainer, this two doesnt seems to be "replaced" so how do i wo it in lua editor ?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25291 Location: The netherlands
|
Posted: Tue Dec 03, 2013 1:22 pm Post subject: |
|
|
easiest lua script of changing 2 addresses:
Code: |
autoAssemble([[
address1:
db 1,2,3,4,5
address2:
db 1,2,3,4,5
]])
|
writeInteger/writeByte might be useful as well, but for code you sometimes first need to make it writable, which the auto assembler does for you automatically
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Mark Danielle Advanced Cheater Reputation: 0
Joined: 22 Aug 2012 Posts: 97
|
Posted: Tue Dec 03, 2013 2:15 pm Post subject: |
|
|
Dark Byte wrote: | easiest lua script of changing 2 addresses:
Code: |
autoAssemble([[
address1:
db 1,2,3,4,5
address2:
db 1,2,3,4,5
]])
|
writeInteger/writeByte might be useful as well, but for code you sometimes first need to make it writable, which the auto assembler does for you automatically |
alright.. yeah i think i will need writeFloat actually.. but thats not a problem.. i will try this out, didnt know exacly what u mean by this 1,2,3,4 but i will play with it and se.. ty dude !
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25291 Location: The netherlands
|
Posted: Tue Dec 03, 2013 2:17 pm Post subject: |
|
|
For floats you can use dd (float)value
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Mark Danielle Advanced Cheater Reputation: 0
Joined: 22 Aug 2012 Posts: 97
|
Posted: Tue Dec 03, 2013 2:48 pm Post subject: |
|
|
Dark Byte wrote: | For floats you can use dd (float)value
|
dont get it..
dd (float)"03D2BED8" ?
dd ("03D2BED8")123456? WTF xd
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25291 Location: The netherlands
|
Posted: Tue Dec 03, 2013 5:48 pm Post subject: |
|
|
03D2BED8:
dd (float)12345.67
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Mark Danielle Advanced Cheater Reputation: 0
Joined: 22 Aug 2012 Posts: 97
|
Posted: Wed Dec 04, 2013 6:02 pm Post subject: |
|
|
Dark Byte wrote: | 03D2BED8:
dd (float)12345.67 |
ohh, haha..
i was so tired..
so, in the picture i have a picture of the two ones i have to NOP, so then it will be something like this ? o_O
03D2BED8.xxm5:
dd (float)12345.67
03D2BED8.xxm0:
dd (float)12345.67
]])
i kow this is kinda stupid, but as u see, they have the same addsresses?
|
|
Back to top |
|
|
Mark Danielle Advanced Cheater Reputation: 0
Joined: 22 Aug 2012 Posts: 97
|
Posted: Thu Dec 05, 2013 7:03 pm Post subject: |
|
|
bmn wrote: | Dark Byte wrote: | 03D2BED8:
dd (float)12345.67 |
ohh, haha..
i was so tired..
so, in the picture i have a picture of the two ones i have to NOP, so then it will be something like this ? o_O
03D2BED8.xxm5:
dd (float)12345.67
03D2BED8.xxm0:
dd (float)12345.67
]])
i kow this is kinda stupid, but as u see, they have the same addsresses?
|
i tried to freeze the xmm5 but it jump back forward like hell.. so it changes.. all i wanna do is make the value change able in lua.. :/
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25291 Location: The netherlands
|
Posted: Fri Dec 06, 2013 6:40 am Post subject: |
|
|
First make a working cheat, and then try to automate it with lua
I recommend using the auto assembler code injection template and replace the write instruction with an instruction that writes the specific value l.
Or just nop those instructions first
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Mark Danielle Advanced Cheater Reputation: 0
Joined: 22 Aug 2012 Posts: 97
|
Posted: Fri Dec 06, 2013 1:56 pm Post subject: |
|
|
Dark Byte wrote: | First make a working cheat, and then try to automate it with lua
I recommend using the auto assembler code injection template and replace the write instruction with an instruction that writes the specific value l.
Or just nop those instructions first |
it is working, just that when i drag my trackbar to change the value, it works, but the value changes back cuz i need to replace the xmm5 and xmm0?
|
|
Back to top |
|
|
Mark Danielle Advanced Cheater Reputation: 0
Joined: 22 Aug 2012 Posts: 97
|
Posted: Sat Dec 07, 2013 10:50 pm Post subject: |
|
|
i think i have to start all over explaining what i want to do.. cuz when i read it now i think u missunderstood me..
I have found a value on an address.. (the value is a float)
Say the value ios 2000
When I change the value to 4000, it changes right back to 2000.
If i freeze the value it jups from 2000->4000->2000->4000 loop.
So, as in the picture i choosen, "Find out what writes to this address"..
Then i found one ["game.exe+ADDRESS].xmm5
when i now tries to change the value, a new one pops up.. ["game.exe+ADDRESS].xmm0
so, in the list its no peroblem, cuz i just choose them both and press the "replace" button..
But, when i make my trainer, this is "forgoten when i close cheat engine and open my exe..
so what i need to do is "replacing" this two by script in the lua scripting ?
hope u get a better view in this now..
thanks !
|
|
Back to top |
|
|
Mark Danielle Advanced Cheater Reputation: 0
Joined: 22 Aug 2012 Posts: 97
|
Posted: Thu Dec 12, 2013 7:28 am Post subject: |
|
|
i have also check the tutorial and learned some good things.. so i think my problem is its a pointer, but i cant find the pointer in anyway that i have learned.. as u see infron of the address its a column named COUNT and it counts from 1 and up.. like an endless loop 1++...
|
|
Back to top |
|
|
|