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 


Mirror's Edge Catalyst Inf. Focus Issue...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Thu Jun 16, 2016 2:28 am    Post subject: Mirror's Edge Catalyst Inf. Focus Issue... Reply with quote

Code:
[ENABLE]

aobscanmodule(Focus,MSVCR120.dll,41 89 02 49 8B C3 C3 48 0F B6 02 8B) // should be unique
alloc(newmem,$100,"MSVCR120.dll"+3C516)

label(code)
label(return)

newmem:

code:
  //mov [r10],eax
  mov [r10],(float)99
  mov rax,r11
  jmp return

Focus:
  jmp code
  nop
return:
registersymbol(Focus)

[DISABLE]

Focus:
  db 41 89 02 49 8B C3

unregistersymbol(Focus)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: "MSVCR120.dll"+3C516

"MSVCR120.dll"+3C4F7: 66 41 89 02                    -  mov [r10],ax
"MSVCR120.dll"+3C4FB: 49 8B C3                       -  mov rax,r11
"MSVCR120.dll"+3C4FE: C3                             -  ret
"MSVCR120.dll"+3C4FF: 48 0F B6 02                    -  movzx rax,byte ptr [rdx]
"MSVCR120.dll"+3C503: 48 0F B7 4A 01                 -  movzx rcx,word ptr [rdx+01]
"MSVCR120.dll"+3C508: 41 88 02                       -  mov [r10],al
"MSVCR120.dll"+3C50B: 66 41 89 4A 01                 -  mov [r10+01],cx
"MSVCR120.dll"+3C510: 49 8B C3                       -  mov rax,r11
"MSVCR120.dll"+3C513: C3                             -  ret
"MSVCR120.dll"+3C514: 8B 02                          -  mov eax,[rdx]
// ---------- INJECTING HERE ----------
"MSVCR120.dll"+3C516: 41 89 02                       -  mov [r10],eax
"MSVCR120.dll"+3C519: 49 8B C3                       -  mov rax,r11
// ---------- DONE INJECTING  ----------
"MSVCR120.dll"+3C51C: C3                             -  ret
"MSVCR120.dll"+3C51D: 48 0F B6 02                    -  movzx rax,byte ptr [rdx]
"MSVCR120.dll"+3C521: 8B 4A 01                       -  mov ecx,[rdx+01]
"MSVCR120.dll"+3C524: 41 88 02                       -  mov [r10],al
"MSVCR120.dll"+3C527: 41 89 4A 01                    -  mov [r10+01],ecx
"MSVCR120.dll"+3C52B: 49 8B C3                       -  mov rax,r11
"MSVCR120.dll"+3C52E: C3                             -  ret
"MSVCR120.dll"+3C52F: 48 0F B7 02                    -  movzx rax,word ptr [rdx]
"MSVCR120.dll"+3C533: 8B 4A 02                       -  mov ecx,[rdx+02]
"MSVCR120.dll"+3C536: 66 41 89 02                    -  mov [r10],ax
}


When I activate the script the game crash, basically the max focus is 100 I just went with 99, what could be the issue that is causing the game to crash


Is there any Anti-Cheats in this game ?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Jun 16, 2016 2:29 am    Post subject: Reply with quote

You are editing code that is within a C++ runtime DLL. Meaning any other code that makes a call to the same function is going to be forced to use that same value. This is not the spot where you want to make a cave at.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Thu Jun 16, 2016 2:30 am    Post subject: Reply with quote

Ehm alright kind of new the AA, is there any way to make it work ?
Back to top
View user's profile Send private message
zm0d
Master Cheater
Reputation: 7

Joined: 06 Nov 2013
Posts: 423

PostPosted: Thu Jun 16, 2016 2:41 am    Post subject: Reply with quote

MSVCR120.dll is the module for the microsoft visual c runtime, as atom0s said.
You are creating a code cave in this module, which is totally not what you should do, because the function you are editing there is probably getting called alot of times on other places in your game. You should create this code cave in the game module, where your focus gets set.


  • Find the right value with memory scanner
  • Find out what writes to this value
  • Create code cave at this place
  • Write your own value
Back to top
View user's profile Send private message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Thu Jun 16, 2016 2:46 am    Post subject: Reply with quote

Ohh I was getting the wrong address yes I see that now, ok I'm going to re-scan, my Cheat Engine is so slow on this game so annoying...
Back to top
View user's profile Send private message
zm0d
Master Cheater
Reputation: 7

Joined: 06 Nov 2013
Posts: 423

PostPosted: Thu Jun 16, 2016 3:28 am    Post subject: Reply with quote

Try use a bigger scan-buffer for faster scans. (Check out settings)
Back to top
View user's profile Send private message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Thu Jun 16, 2016 3:40 am    Post subject: Reply with quote

Alright Smile
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 Gamehacking 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