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 


Adding an entry to the cheat list (absolute/relative address

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Snooman
Cheater
Reputation: 1

Joined: 20 Jan 2012
Posts: 42

PostPosted: Tue Jun 14, 2016 9:58 am    Post subject: Adding an entry to the cheat list (absolute/relative address Reply with quote

A little thing I find annoying is that when I located an address and add this to the cheats list, it gets converted to an .exe-relative address:

As I also use some modded .exe files with different names, I would prefer to have absolute addresses.

Or shortly
instead of: process.exe+c12345
I'd prefer: 1012345

Unfortunately I have not found an option to turn this off.
I'm too lazy to open the .CT with a text editor and search/replace this time and again...

_________________
This text has been encrypted with XOR twice for security reasons.
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Tue Jun 14, 2016 10:02 am    Post subject: Reply with quote

If you have modded EXE files where the address offset (+c12345) is not the same as in the original file then the absolute address won't point to the wanted location either ...
Back to top
View user's profile Send private message
Snooman
Cheater
Reputation: 1

Joined: 20 Jan 2012
Posts: 42

PostPosted: Tue Jun 14, 2016 11:46 am    Post subject: Reply with quote

It does. Main module is always loaded at default 400000.
So the address is always the same.

But however,
I'd just like to suppress the module relative addressing.

_________________
This text has been encrypted with XOR twice for security reasons.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Tue Jun 14, 2016 1:55 pm    Post subject: Reply with quote

It used to be the case that it would always load at 400000, but that's not a guarantee nowadays.

Regardless, run this Lua code to convert all address strings in the address list to their equivalent linear address:
Code:
local al = getAddressList()
errorOnLookupFailure(false)

for i=0, al.Count-1 do
  local a,o = al[i].getAddress()
  a = getAddress(a)
  if a ~= 0 then
    al[i].setAddress(string.format("%X", a), o)
  end
end

errorOnLookupFailure(true)

_________________
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 -> 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