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 


How can an effective address be made editable?

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

Joined: 04 Oct 2021
Posts: 1

PostPosted: Mon Oct 04, 2021 3:54 am    Post subject: How can an effective address be made editable? Reply with quote

I want to make an effective address editable that is referenced by an offset and NOT by a pointer.
It is easy to override an effective address, in this case get_point_base+19c:

Code:
    <CheatEntry>
      <ID>1</ID>
      <Description>"1999 points"</Description>
      <LastState/>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>
[ENABLE]
aobScan(get_point_base,66 66 A6 3F 00 00 20 40) // unique
registersymbol(get_point_base)

get_point_base+19c:
  db cf 07 00 00

[DISABLE]
unregistersymbol(get_tech_base)
      </AssemblerScript>
    </CheatEntry>


But how can I make this effective address editable?
The following does not work, I think it edits the pointer [get_point_base]+19c] instead of the effective address get_point_base+19c:

Code:
    <CheatEntry>
      <ID>1</ID>
      <Description>"Show points"</Description>
      <LastState/>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>
[ENABLE]
aobScan(get_point_base,66 66 A6 3F 00 00 20 40) // unique
registersymbol(get_point_base)

[DISABLE]
unregistersymbol(get_tech_base)
      </AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>2</ID>
          <Description>"Points"</Description>
          <VariableType>4 Bytes</VariableType>
          <Address>get_point_base</Address>
          <Offsets>
            <Offset>19c</Offset>
          </Offsets>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>


What am I doing wrong?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Mon Oct 04, 2021 12:10 pm    Post subject: Reply with quote

If you tick the pointer checkbox, CE assumes the base address is a pointer.

Use "get_point_base+19c" as the address- no pointer, no offsets.

You can also create a group header w/ address support, set the address to "get_point_base", and add child memory records with addresses "+offset".

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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