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 


[Solved] Using pointer with address variable

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Spawnova
Newbie cheater
Reputation: 0

Joined: 12 Feb 2013
Posts: 22

PostPosted: Tue Dec 23, 2014 7:16 pm    Post subject: [Solved] Using pointer with address variable Reply with quote

I'm curious if there is a way to set a variable containing an address that I can use in my pointers so that when the base address changes I don't have to manually change all 50+ entries

so BasePointer = "0x01CB53A8"
and all I would have to do is change the BasePointer variable and all entries would update.

If anyone knows how or if it's not possible, please let me know. =)


Last edited by Spawnova on Tue Dec 23, 2014 11:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Tue Dec 23, 2014 8:54 pm    Post subject: Re: Using pointer with address variable Reply with quote

Spawnova wrote:
I'm curious if there is a way to set a variable containing an address that I can use in my pointers so that when the base address changes I don't have to manually change all 50+ entries

so BasePointer = "0x01CB53A8"
and all I would have to do is change the BasePointer variable and all entries would update.

If anyone knows how or if it's not possible, please let me know. =)


Ofc, I use globalalloc() method but you can do the same witm registersymbol() here is an example:

Code:
[ENABLE]

aobscan(INJECT,8B 50 58 FF 70 5C)
alloc(newmem,$1000)

label(code)
label(return)

globalalloc(pBase,4)   //add this to create a "variable"

newmem:

code:
  mov edx,[eax+58]
  mov [pBase],eax   //store the value of EAX (basepointer) into my "variable"
  push [eax+5C]
  jmp return

INJECT:
  jmp code
  nop
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
  db 8B 50 58 FF 70 5C

unregistersymbol(INJECT)
dealloc(newmem)


Then add a manual address (pointer) like this:



Activate the script and the pointer+offset will be filled.

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
Spawnova
Newbie cheater
Reputation: 0

Joined: 12 Feb 2013
Posts: 22

PostPosted: Tue Dec 23, 2014 11:15 pm    Post subject: Reply with quote

Thanks, I've got everything working now. =)
Back to top
View user's profile Send private message
123iamking
Newbie cheater
Reputation: 0

Joined: 06 Sep 2015
Posts: 12

PostPosted: Sun May 31, 2020 8:39 pm    Post subject: Re: Using pointer with address variable Reply with quote

AikonCWD wrote:
Spawnova wrote:
...

so BasePointer = "0x01CB53A8"
and all I would have to do is change the BasePointer variable and all entries would update.


Ofc, I use globalalloc() method but you can do the same witm
...

Hi, I don't want to use script, but I want other entries to recognize the BasePointer = "0x01CB53A8".
I see that Cheat Engine already support this feature:
Entry Health = 10.
Entry MaxHealth = 100.
Instead of set Entry Health=100, I can set Entry Health=(MaxHealth)
Cheat Engine recognizes "(MaxHealth)" as value of MaxHealth.

So is there anyway I can make other Entries recognize BasePointer?
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