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 


Pointers with multiple offsets in a script

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

Joined: 22 Jun 2015
Posts: 34

PostPosted: Sun Aug 28, 2016 12:37 am    Post subject: Pointers with multiple offsets in a script Reply with quote

I have a pointer that i'd like to use in a script but it has 2 offsets.
I'm not sure how include more than one offset in a script.

For example, this script has one offset and would work fine with an actual pointer that has one offset.

[enable]
[Address]+Offset:
db 01

[disable]
[Address]+Offset:
db 00

How would I include more than one though? I've tried:
[Address]+Offset+Offset:
[Address + Offset]+Offset:
[[Address]+Offset]+Offset:

None of those worked ^

Any help is appreciated.
Back to top
View user's profile Send private message
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Sun Aug 28, 2016 2:52 am    Post subject: Reply with quote

Well in lua it works like this: '[[Address]+offset]+offset
Example: '[["Cube.exe"+003691C8]+394]+8C'
I'm not sure about AA though.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Aug 28, 2016 7:34 am    Post subject: Reply with quote

Multiple offsets work fine for me. You upgrade to CE 6.5.1?
Code:
[ENABLE]
[[Calculator.exe+36ece0]+18]+28:
db FF FF FF FF
[DISABLE]
Back to top
View user's profile Send private message
PinPoint
Expert Cheater
Reputation: 10

Joined: 07 Apr 2016
Posts: 223
Location: Scotland

PostPosted: Mon Aug 29, 2016 6:55 am    Post subject: Reply with quote

if its in createthread or through an aob/code injection
Code:

mov eax, [Game.exe+1234]              //code cave to put pointer into register
test eax,eax                         //pointer validity check
je skip                              //dont continue if pointer not valid
mov eax, [eax+offset1]
test eax,eax
je skip
mov eax, [eax+offset2]
//etc etc

//now eax address of [[game.exe+1234]+offset1]+offset2

skip:


_________________
Will you be my friend Hitler?
Rep me then
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