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 


RE-Assign Custom Symbol from globalalloc

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

Joined: 01 Oct 2008
Posts: 941

PostPosted: Sat Feb 21, 2015 9:50 am    Post subject: RE-Assign Custom Symbol from globalalloc Reply with quote

The scenario is a lua calling autoAssemble to globalalloc some symbol.

When I run the script, globalalloc some symbol on some process, then not saving the ct, close ce.
Then I run again ce and attach the still running process, those globalalloc symbol is not the same as previous.

Question: Is there way to re-assign the symbol to the 'right address'?

The 'right address' will be saved to Setting with 'process id' as key when 1st globalalloc is run using lua script.

Thank you~
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sat Feb 21, 2015 10:41 am    Post subject: Reply with quote

use lua function allocateSharedMemory instead of globalalloc then.
The address will be different, but will be the same memory

or you could use that shared memory block to hold pointers to the originally allocated blocks and on load register the symbols back to the addresses in that block

_________________
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
panraven
Grandmaster Cheater
Reputation: 54

Joined: 01 Oct 2008
Posts: 941

PostPosted: Sat Feb 21, 2015 11:04 am    Post subject: Reply with quote

Dark Byte wrote:
use lua function allocateSharedMemory instead of globalalloc then.
The address will be different, but will be the same memory

or you could use that shared memory block to hold pointers to the originally allocated blocks and on load register the symbols back to the addresses in that block


Thank you.

I should check doc more carefully Smile
These suit my need:
Code:
unregisterSymbol('symbolname')
registerSymbol('symbolname',0x4410000)
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