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 


[SOLVED] writeIntegerLocal doesn't work ?

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

Joined: 15 Jan 2008
Posts: 73

PostPosted: Tue Oct 23, 2018 10:10 am    Post subject: [SOLVED] writeIntegerLocal doesn't work ? Reply with quote

k1=readIntegerLocal("00400000")
print(k1)
writeIntegerLocal("00400000",0)
k2=readIntegerLocal("00400000")
print(k2)


output is:
9460301
9460301

00400000 doesn't change to 0.
is this a bug?

_________________
Love CE


Last edited by kickclock on Thu Oct 25, 2018 9:08 am; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Oct 23, 2018 10:14 am    Post subject: Reply with quote

that memory is readonly. You first need to make it writable (open ce itself andbuse fullaccess or use section replacements)
_________________
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
kickclock
Advanced Cheater
Reputation: 0

Joined: 15 Jan 2008
Posts: 73

PostPosted: Tue Oct 23, 2018 10:34 am    Post subject: Reply with quote

understand ... is there a fullaccessLocal ? and a globalallocLocal should be great.
_________________
Love CE
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Oct 25, 2018 12:14 am    Post subject: Reply with quote

no. but perhaps next version. But you can always open ce itself, it's what getCheatEngineProcessID() is for
_________________
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
kickclock
Advanced Cheater
Reputation: 0

Joined: 15 Jan 2008
Posts: 73

PostPosted: Thu Oct 25, 2018 9:33 am    Post subject: Reply with quote

i ask this because i got a game use "Xor" to all value , hp mp ...
the xor key value is [age.exe+270990]+5eb94

so i write a new scan type named "4byte_xor" ,that i can find value easy. main code like this
Code:

...
ConvertRoutine:
[64-bit]
mov eax,[rcx]
rol eax,0B
mov ecx,[age.exe+270990]
xor eax,[ecx+5eb94]
ror eax,19
ret
[/64-bit]
...


it error , because it‘s running in ce , not in age.exe.

then i think i can copy xor vuale to ce ,and i write a script like this ,
luacall(writeIntegerLocal("00400400",readInteger('[age.exe+270990]+5eb94')))

and change scan script like this
ConvertRoutine:
[64-bit]
mov eax,[rcx]
rol eax,0B
xor eax,[00400400]
ror eax,19
ret
[/64-bit]


the problem is writeIntegerLocal can't write readonly memory...

it's not a big truble, i can first open ce ,and fullaccess(0x00400000,0x1000)
then open age.exe , writeIntegerLocal("00400400",readInteger('[age.exe+270990]+5eb94'))

just let you know this .

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