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 


cheatcomponent setEditvalue problem.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Fri Apr 13, 2012 5:02 am    Post subject: Reply with quote

look at LUA code:
strings_add(getAutoAttachList(), "TheIsland2.exe")

If you save your trainer under "TheIsland2.exe" name. What do you think is going to happen?

_________________
Back to top
View user's profile Send private message MSN Messenger
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Fri Apr 13, 2012 5:06 am    Post subject: Reply with quote

Oh, good. It will attach to itself since the trainer process was the last one getAutoAttachList() hooks the latest process.

Thank you very much.
And now please accept my request.

_________________
Back to top
View user's profile Send private message Send e-mail
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Fri Apr 13, 2012 5:15 am    Post subject: Reply with quote

Another thing, whats the point of "pop edx" at the beginning and "push edx" at the end?
_________________
Back to top
View user's profile Send private message MSN Messenger
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Fri Apr 13, 2012 5:19 am    Post subject: Reply with quote

The code above it pushed some important address on the stack so I wanted to use it. So retrieved the stack used it here

Code:
mov ebx,edx 


and pushed it back again onto the stack.
Thanks to you for teaching me how to use stack.

_________________
Back to top
View user's profile Send private message Send e-mail
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Fri Apr 13, 2012 5:22 am    Post subject: Reply with quote

OK, I missed that "mov ebx,edx".

Edit:
But you overwrite edx original value.

_________________
Back to top
View user's profile Send private message MSN Messenger
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Fri Apr 13, 2012 10:06 am    Post subject: Reply with quote

Because the instruction just above it pushed EDX into the stack. So I was safe using it this way.
_________________
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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