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 


Updating addresses in cheat table from script

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

Joined: 21 Nov 2009
Posts: 35

PostPosted: Thu Jan 14, 2016 10:57 am    Post subject: Updating addresses in cheat table from script Reply with quote

So currently I'm not using any LUA or such things, but I'm open to use it if that would solve the problem that I'm having.

I have a piece of x86 code that I inject in the game. I edit some values and read some values into my own allocated codespace under a symbol name. I then register that symbol so that it can be used in the cheat table. For example, the script:

Quote:

alloc(somemem,128)
symbol(Pointer)
registersymbol(Pointer)

Pointer:
dd 10210600

*some code that conditionally changes the value stored in Pointer*


And then in my table I just use the symbol like so to read it's value:
[Pointer]+Offset

Where the offset is manual (since cheatengine doesn't seem to support a symbol as an offset for pointers).

Now when the game is played and the script is ran so that it changes the value of pointer (aka the pointer is relocated), it takes a whole few seconds (about 7 or 8 seconds) to update the cheat table addresses to these new addresses. I can't seem to find the setting under settings that affects this refresh speed. I can see the Pointer in my cheat table update right away (that is the 500ms setting under settings I believe), but the entries that have the [Pointer] used in their address take up to 10 seconds to update to the new value.

So the question is: is it possible to trigger the address refresh from that auto assemble script (maybe with the help of some LUA or something)?
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 Lua Scripting 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