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 


Changing Values With Script

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

Joined: 18 Jan 2020
Posts: 11
Location: Turkey

PostPosted: Wed Feb 17, 2021 4:14 am    Post subject: Changing Values With Script Reply with quote

Hi! I found a string value and i have to change this value from text| to text|`2 with script, so how can i change this value with script ?
Back to top
View user's profile Send private message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Wed Feb 17, 2021 11:01 am    Post subject: Reply with quote

for proper string handling in asm
Code:

push esi
push eax

lea esi,[string]
lodsb
mov [addressWhereYouWannaWrite],eax

pop eax
pop esi

string:
 db '45'          //;A String number ASCII-8 (use dw for Unicode and lodsw in main code)


and u can always use this as well:
mov [addressWhereYouWannaWrite],'45'
Back to top
View user's profile Send private message
Furkan125
Newbie cheater
Reputation: 0

Joined: 18 Jan 2020
Posts: 11
Location: Turkey

PostPosted: Thu Feb 18, 2021 12:08 pm    Post subject: Reply with quote

i try this script:

[ENABLE]
"Growtopia.exe"+56B596:
mov ["Growtopia.exe"+56B596],'text|`2'
[DISABLE]

but my value is changed to �����textConsoleInputBGDelete
Back to top
View user's profile Send private message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Thu Feb 18, 2021 9:44 pm    Post subject: Reply with quote

is string ASCII or unicode?
Back to top
View user's profile Send private message
Furkan125
Newbie cheater
Reputation: 0

Joined: 18 Jan 2020
Posts: 11
Location: Turkey

PostPosted: Sat Feb 20, 2021 3:42 am    Post subject: Reply with quote

MMM-304 wrote:
is string ASCII or unicode?


its ASCII
Back to top
View user's profile Send private message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Sat Feb 20, 2021 7:18 am    Post subject: Reply with quote

did u try the first code?
Back to top
View user's profile Send private message
Furkan125
Newbie cheater
Reputation: 0

Joined: 18 Jan 2020
Posts: 11
Location: Turkey

PostPosted: Sat Feb 20, 2021 12:03 pm    Post subject: Reply with quote

MMM-304 wrote:
did u try the first code?


yes i try but it give error
Back to top
View user's profile Send private message
sbryzl
Master Cheater
Reputation: 6

Joined: 25 Jul 2016
Posts: 252

PostPosted: Sat Feb 20, 2021 2:31 pm    Post subject: Reply with quote

You would need to put your script here. There's no way to know otherwise.
Back to top
View user's profile Send private message
Furkan125
Newbie cheater
Reputation: 0

Joined: 18 Jan 2020
Posts: 11
Location: Turkey

PostPosted: Mon Feb 22, 2021 5:54 am    Post subject: Reply with quote

This is the first script I tried:

Code:

[ENABLE]
Growtopia.exe+58BE96:
mov ["Growtopia.exe"+58BE96],'text|`2'
[DISABLE]



This is the 2nd script I tried:

Code:

[ENABLE]
push esi
push eax

lea esi,[string]
lodsb
mov [Growtopia.exe+58BE96],eax

pop eax
pop esi

string:
 db 'text|`2'
[DISABLE]
[/code]
Back to top
View user's profile Send private message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Mon Feb 22, 2021 7:43 am    Post subject: Reply with quote

My first script was supposed for writing only one byte of string.
Also, all that code is suppose to be for x32bit process

for writing more than one byte/char of string use
Code:

push esi
push edi
push ecx


mov ecx,7  //;number of chars of string
lea esi,[string]
lea edi, [Growtopia.exe+58BE96]
rep movsb

pop ecx
pop edi
pop esi

string:
 db 'text|`2'


this code is also for x32 process
Back to top
View user's profile Send private message
Furkan125
Newbie cheater
Reputation: 0

Joined: 18 Jan 2020
Posts: 11
Location: Turkey

PostPosted: Wed Mar 03, 2021 1:10 pm    Post subject: Reply with quote

Sorry for my late response, I was busy, I tried the script you gave, it changes the value but it doesn't change the value I want, so it doesn't change the value to text | `2. Thats change to ?eJ2
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