| View previous topic :: View next topic |
| Author |
Message |
guy960915 Expert Cheater
Reputation: 2
Joined: 17 Sep 2007 Posts: 168
|
Posted: Wed Apr 09, 2008 8:14 am Post subject: question about auto assemble scripts |
|
|
do auto assemble scripts need pointers?
[enable]
54a0f5: ------> here does this work on other pc what if this change
jmp 400300
400300:
mov eax,#1000000
mov [edi+04],eax
mov [esp+74],ffffffff
jmp 54a100
[disable]
54a0f5:
mov [edi+04],eax
mov [esp+74],ffffffff
|
|
| Back to top |
|
 |
Psy Grandmaster Cheater Supreme
Reputation: 1
Joined: 27 Mar 2008 Posts: 1366
|
Posted: Wed Apr 09, 2008 8:29 am Post subject: |
|
|
No...
That address will not change on another PC as it is an opcode, and will only get altered if the game employs codeshifting.
So simply, and more than likely no.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25859 Location: The netherlands
|
Posted: Wed Apr 09, 2008 8:39 am Post subject: |
|
|
well, on vista and the exe has been build with the dynamic base bit in the peheader it can change.
Use modulename.exe+offset if you want to be 100% sure (in this case most likely game.exe+14a0f5)
_________________
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 |
|
 |
guy960915 Expert Cheater
Reputation: 2
Joined: 17 Sep 2007 Posts: 168
|
Posted: Wed Apr 09, 2008 8:37 pm Post subject: |
|
|
ahh i see, i made a auto assemble script here http://forum.cheatengine.org/viewtopic.php?t=221359
it worked on my pc, i donno if it works on others could you test this
its something like this
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
cz.dll+5786D: --------->here it is
jmp newmem
nop
nop
nop
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [esi],ff
originalcode:
mov eax,[esi]
mov ecx,[esi+00000080]
exit:
jmp returnhere
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Thu Apr 10, 2008 7:26 pm Post subject: |
|
|
Yes you got the idea, but the module base address you need to subtract that from the address you have, then do cz.dll+REMAINDER:
Then you are good.
|
|
| Back to top |
|
 |
guy960915 Expert Cheater
Reputation: 2
Joined: 17 Sep 2007 Posts: 168
|
Posted: Thu Apr 10, 2008 7:48 pm Post subject: |
|
|
| okay thanks
|
|
| Back to top |
|
 |
|