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 


Register symbol with address

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
fader
How do I cheat?
Reputation: 0

Joined: 11 Nov 2016
Posts: 7

PostPosted: Sat Sep 02, 2017 7:22 am    Post subject: Register symbol with address Reply with quote

Hi,

what i need is to have registered symbol with address so i can use it as base pointer so i figured out this:
[ENABLE]
registersymbol(merc1)
alloc(newmem,2048)
alloc(merc1,Cool

newmem:
mov [merc1],0A14339D


[DISABLE]
unregistersymbol(merc1)
dealloc(newmem)
dealloc(merc1)

i did somthing wrong becouse when i use merc1 as pointer the address is 00 instead 0A14339D can someone help me?
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Sat Sep 02, 2017 8:11 am    Post subject: Reply with quote

this make no sense, if 0A14339D is static address just add to the list.
if not, then its useless.
find the instructions that is related to your address, then load it into the new address.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
fader
How do I cheat?
Reputation: 0

Joined: 11 Nov 2016
Posts: 7

PostPosted: Sat Sep 02, 2017 8:24 am    Post subject: Reply with quote

well it is static but only for merc1 and i have like 30 addresses withs stats of merc1 that are calculted from 0A14339D

there can be like 60 mercs all of them with their stats and i dont wanna change table each time i select different mercs

so i was thinking that i can register symbol with and address then make a table with this symbol and when i change mercs all i need to do will be change the addres only in one place and not the whole table
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sat Sep 02, 2017 10:57 am    Post subject: Reply with quote

Code:
[ENABLE]
globalalloc(merc1,4)
merc1:
  dd 0A14339D
[DISABLE]


You could modify it to use alloc and registerSymbol if you needed to dealloc and unregister it for some reason, alternatively

Code:
[ENABLE]
label(merc1)
0A14339D:
merc1:
registerSymbol(merc1)
[DISABLE]
unregisterSymbol(merc1)


The first gives you an symbol/address that stores the address of merc1 while the second just makes a symbol at the address of merc1

Though you can also manually add symbols by opening the user defined symbols from the memory viewer's "view" menu.

Then you could have everything nested underneath one record with the address of merc1 and the nested items would use an address of +offset instead of merc1+offset, or you could actually have a memory address that you change to merc1 etc.
Back to top
View user's profile Send private message
fader
How do I cheat?
Reputation: 0

Joined: 11 Nov 2016
Posts: 7

PostPosted: Sat Sep 02, 2017 11:48 am    Post subject: Reply with quote

FreeER THANK YOU VERY MUCH MATE Very Happy

That was exactly what i need
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