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 


Dynamic value

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
muptezzo
How do I cheat?
Reputation: 0

Joined: 15 Sep 2022
Posts: 3

PostPosted: Thu Sep 15, 2022 7:44 am    Post subject: Dynamic value Reply with quote

Hi guys at the game a value changes itself. And i clicked "What writes to this address" and i captured

i clicked to Show disassembler, at the AOB Injection writes, So how can i do this static?




Code:
{

  This script does blah blah blah
}

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

 
 
aobscanmodule(INJECT,MaxiGuard.dll,A3 F4 95 34 60) // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:

code:
  mov [MaxiGuard.dll+3395F4],eax
  jmp return

INJECT:
  jmp newmem
return:
registersymbol(INJECT)

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
INJECT:
  db A3 F4 95 34 60

unregistersymbol(INJECT)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: MaxiGuard.dll+E88BF

MaxiGuard.dll+E8887: 6B C8 00                       - imul ecx,eax,00
MaxiGuard.dll+E888A: 8A 95 DA E0 FF FF              - mov dl,[ebp-00001F26]
MaxiGuard.dll+E8890: 88 91 B8 94 34 60              - mov [ecx+MaxiGuard.dll+3394B8],dl
MaxiGuard.dll+E8896: B8 01 00 00 00                 - mov eax,00000001
MaxiGuard.dll+E889B: C1 E0 00                       - shl eax,00
MaxiGuard.dll+E889E: 8A 8D DB E0 FF FF              - mov cl,[ebp-00001F25]
MaxiGuard.dll+E88A4: 88 88 B8 94 34 60              - mov [eax+MaxiGuard.dll+3394B8],cl
MaxiGuard.dll+E88AA: 66 8B 15 B8 94 34 60           - mov dx,[MaxiGuard.dll+3394B8]
MaxiGuard.dll+E88B1: 66 89 95 FC DE FF FF           - mov [ebp-00002104],dx
MaxiGuard.dll+E88B8: 0F B7 85 FC DE FF FF           - movzx eax,word ptr [ebp-00002104]
// ---------- INJECTING HERE ----------
MaxiGuard.dll+E88BF: A3 F4 95 34 60                 - mov [MaxiGuard.dll+3395F4],eax
// ---------- DONE INJECTING  ----------
MaxiGuard.dll+E88C4: 8B 8D 1C E1 FF FF              - mov ecx,[ebp-00001EE4]
MaxiGuard.dll+E88CA: 89 8D C0 DD FF FF              - mov [ebp-00002240],ecx
MaxiGuard.dll+E88D0: 8B 95 C0 DD FF FF              - mov edx,[ebp-00002240]
MaxiGuard.dll+E88D6: 52                             - push edx
MaxiGuard.dll+E88D7: E8 ED 84 16 00                 - call MaxiGuard.dll+250DC9
MaxiGuard.dll+E88DC: 83 C4 04                       - add esp,04
MaxiGuard.dll+E88DF: 83 BD C0 DD FF FF 00           - cmp dword ptr [ebp-00002240],00
MaxiGuard.dll+E88E6: 75 0C                          - jne MaxiGuard.dll+E88F4
MaxiGuard.dll+E88E8: C7 85 D4 DB FF FF 00 00 00 00  - mov [ebp-0000242C],00000000
MaxiGuard.dll+E88F2: EB 16                          - jmp MaxiGuard.dll+E890A
}
[/code]


Screenshot_12.png
 Description:
 Filesize:  113.09 KB
 Viewed:  317 Time(s)

Screenshot_12.png


Back to top
View user's profile Send private message
sbryzl
Master Cheater
Reputation: 6

Joined: 25 Jul 2016
Posts: 252

PostPosted: Thu Sep 15, 2022 2:09 pm    Post subject: Reply with quote

Are you asking how to change the value without it being overwritten?

You can nop the instruction so it doesn't do anything then create an address list entry with "MaxiGuard.dll+3395F4".
Back to top
View user's profile Send private message
muptezzo
How do I cheat?
Reputation: 0

Joined: 15 Sep 2022
Posts: 3

PostPosted: Thu Sep 15, 2022 7:46 pm    Post subject: Reply with quote

value in a game corresponds to an opcode. I am using this opcode in my bot in the game. But this opcode, the value in the address, is constantly changing by itself. I want to keep this value constant. I added it to the address list and made an active red cross from there, but it doesn't work. So I followed the steps I indicated in the image. In the videos I watched on the Internet, they do it very simple in the trainings, but I could not do it. I aim to keep the value constant and that the address that writes to this address does not change anything.

Or, as you said, I intend to intervene and change the value to a fixed value that I will determine without changing the value.
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 312
Location: Somewhere....

PostPosted: Fri Sep 16, 2022 9:23 pm    Post subject: Reply with quote

you can use the following script, this will disable (NOP out) the writing address from the picture you posted.
Code:

[ENABLE]
MaxiGuard.dll+E88BF:
db 90 90 90 90 90


[DISABLE]
MaxiGuard.dll+E88BF:
db A3 F4 95 34 60

if the value is still being changed after you activate the script, that means there are more instructions that do modify your value, so you would need again to use "Find out what writes to this address" to get these instructions as well.
Back to top
View user's profile Send private message
muptezzo
How do I cheat?
Reputation: 0

Joined: 15 Sep 2022
Posts: 3

PostPosted: Sat Sep 17, 2022 4:15 am    Post subject: Reply with quote

i keep value same but game doesnt accept that, my code is below. i want keep the value same, not disable.


12.png
 Description:
 Filesize:  395.73 KB
 Viewed:  208 Time(s)

12.png



34.png
 Description:
 Filesize:  527.03 KB
 Viewed:  208 Time(s)

34.png



5.png
 Description:
 Filesize:  115.65 KB
 Viewed:  208 Time(s)

5.png


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