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 


Auto Assemble $process Variable

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

Joined: 15 Jun 2017
Posts: 22

PostPosted: Mon Jul 09, 2018 2:52 am    Post subject: Auto Assemble $process Variable Reply with quote

Hey there,

i was just wondering if it is possible to use the $process Variable for this 'lea' example.

Code:
[ENABLE]
$process+17E41E:
db 90 90 90 90 90 90 90

[DISABLE]
$process+17E41E:
lea rdx,[game_v1.exe+17D2080]


The Game.exe can have different Names like "game_v1.exe", "game_v2.exe" or completely different.

When i try to use:
Code:
[DISABLE]
$process+17E41E:
lea rdx,[$process+17D2080]


Then i get the following error:
Code:
Not all code is injectable.
(Error in line 7 (lea rdx,[$process+17D2080]): This instruction can't be compiled)
Are you sure you wan't to edit it to this ?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Mon Jul 09, 2018 3:39 am    Post subject: Reply with quote

do you edit the code while currently attached to the process?
_________________
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
scarface010305
Newbie cheater
Reputation: 0

Joined: 15 Jun 2017
Posts: 22

PostPosted: Mon Jul 09, 2018 3:43 am    Post subject: Reply with quote

yes ive attached the process.
And its working when i just use it like this:

Code:
lea rdx,[game_v1.exe+17D2080]

But when i am running a different .exe (name) its not working.
I can Enable it, but not Disable..
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Mon Jul 09, 2018 5:24 am    Post subject: Reply with quote

just use the db xx xx xx xx method instead then
_________________
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
scarface010305
Newbie cheater
Reputation: 0

Joined: 15 Jun 2017
Posts: 22

PostPosted: Mon Jul 09, 2018 5:58 am    Post subject: Reply with quote

oh ok ty thats it.

I just tried it how it looked like (not 2 bytes blocks)
Code:
db 48 8D 15 5B3C6901


thank you Very Happy
its working like this:
Code:
db 48 8D 15 5B 3C 69 01
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 55

Joined: 01 Oct 2008
Posts: 941

PostPosted: Mon Jul 09, 2018 6:15 am    Post subject: Reply with quote

Another work around.

Code:

define(aProcess,$(GetAddressSafe(process)or-1))

[ENABLE]
globalalloc(__,$4000)

__+10:
dq $(GetAddressSafe(process)or-1), aProcess

$(GetAddressSafe(process)or-1)+1a:
mov ax,1234
mov bx,$(GetAddressSafe(process)or-1)-1a

aProcess+24:
mov ax,1234
mov bx,aProcess-24
[DISABLE]


I don't know when CE support expression (upgraded from just a variable name) with $, so may not work on older CE.

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