Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


question about auto assemble scripts

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
guy960915
Expert Cheater
Reputation: 2

Joined: 17 Sep 2007
Posts: 168

PostPosted: Wed Apr 09, 2008 8:14 am    Post subject: question about auto assemble scripts Reply with quote

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
View user's profile Send private message
Psy
Grandmaster Cheater Supreme
Reputation: 1

Joined: 27 Mar 2008
Posts: 1366

PostPosted: Wed Apr 09, 2008 8:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25859
Location: The netherlands

PostPosted: Wed Apr 09, 2008 8:39 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
guy960915
Expert Cheater
Reputation: 2

Joined: 17 Sep 2007
Posts: 168

PostPosted: Wed Apr 09, 2008 8:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Thu Apr 10, 2008 7:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
guy960915
Expert Cheater
Reputation: 2

Joined: 17 Sep 2007
Posts: 168

PostPosted: Thu Apr 10, 2008 7:48 pm    Post subject: Reply with quote

okay thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites