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 


Using custom symbol as pointer offset

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

Joined: 09 Feb 2017
Posts: 0

PostPosted: Tue Nov 08, 2016 3:49 pm    Post subject: Using custom symbol as pointer offset Reply with quote

Hello. I'm looking for help with a lua script that can automatically update the pointer offset:

I have a pointer: Address + 80 + 1F80, however the last offset is not very reliable and might move a little (usually +10). Is it possible to register a custom symbol to use it instead of 1F80?

Screenshot: http://i.imgur.com/0tGr7VG.png

We probably can use following pattern (check screenshot) 48 8b 83 * * * * 48 8b 10 48 85 d2 * * 8b (that work in all game versions so far) in order to get offset from mov rax,[rbx+00001F80] and then register a custom symbol instead of 00001F80 that I can use for pointers?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

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

PostPosted: Tue Nov 08, 2016 4:18 pm    Post subject: Reply with quote

you can also just register the symbol and give as offset the name of the symbol (assuming you're using ce 6.6)
_________________
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


Last edited by Dark Byte on Tue Nov 08, 2016 4:18 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 961

PostPosted: Tue Nov 08, 2016 4:18 pm    Post subject: Reply with quote

Have try in ce 6.6+, in pointer setting, offset can accept lua expression?
ie.
base : address
offset 1: 80
offset 2: readInteger('aob_488b83+03') -- oops,correction

EDIT:
sorry, I may misunderstood, the above is for memory record, pointer address setting for address [[address]+80]+1f80, (I thought address+80+1f80 is a short form)

_________________
- Retarded.


Last edited by panraven on Tue Nov 08, 2016 4:41 pm; edited 2 times in total
Back to top
View user's profile Send private message
DeletedUser412833
How do I cheat?
Reputation: 1

Joined: 09 Feb 2017
Posts: 0

PostPosted: Tue Nov 08, 2016 4:36 pm    Post subject: Reply with quote

Dark Byte

Yes, I'm using Cheat engine 6.6. I've tried to register a symbol here, but I'm not exactly understand the usage of this method (because it gives me incorrect offset. Could you please show me an example based on the address from my screenshot?

panraven

Sorry can't get it to work due lua error:

Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Tue Nov 08, 2016 5:33 pm    Post subject: Reply with quote

Code:
[ENABLE]
{$lua}
if syntaxcheck then return end
autoAssemble([[
aobscanmodule(myoffset,DarkSoulsIII.exe,48 8B 83 * * * * 48 8B 10 48 85 D2 * * 8B)
registersymbol(myoffset)
]])
local value = readInteger("myoffset+3")
unregisterSymbol("myoffset")
registerSymbol("myoffset", value, true)
[DISABLE]
{$asm}
unregistersymbol(myoffset)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

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

PostPosted: Tue Nov 08, 2016 5:36 pm    Post subject: Reply with quote

In this example I have created the userdefined symbol called bla, and given it the value 1f80


bla.png
 Description:
 Filesize:  91.75 KB
 Viewed:  7804 Time(s)

bla.png



_________________
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
DeletedUser412833
How do I cheat?
Reputation: 1

Joined: 09 Feb 2017
Posts: 0

PostPosted: Tue Nov 08, 2016 8:20 pm    Post subject: Reply with quote

Zanzer

Thank you Zanzer this is exactly what I needed.

Dark Byte

Is it possible to add / remove certain symbol right to this Symbol Config from your screenshot using asm / lua script?

For example I want to add "Testsymbol" with address 00000948.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

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

PostPosted: Tue Nov 08, 2016 8:57 pm    Post subject: Reply with quote

lua command registerSymbol('Testsymbol',0x948)
_________________
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
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