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 


Change a mono game property

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

Joined: 03 Mar 2020
Posts: 7

PostPosted: Fri Sep 04, 2020 7:47 pm    Post subject: Change a mono game property Reply with quote

So i have the boolean property "Visible", it has a set and a get function.

How can i make the set function value always true ?

Code:

PlayerControl.set_Visible - 55                    - push ebp
PlayerControl.set_Visible+1- 8B EC                 - mov ebp,esp
GameAssembly.dll+1FC1C3   - 80 3D B359B868 00     - cmp byte ptr [GameAssembly.dll+D959B3],00
GameAssembly.dll+1FC1CA   - 75 15                 - jne GameAssembly.dll+1FC1E1
GameAssembly.dll+1FC1CC   - FF 35 481D8B68        - push [GameAssembly.dll+AC1D48]
GameAssembly.dll+1FC1D2   - E8 D93BF5FF           - call GameAssembly.dll+14FDB0
GameAssembly.dll+1FC1D7   - 83 C4 04              - add esp,04
GameAssembly.dll+1FC1DA   - C6 05 B359B868 01     - mov byte ptr [GameAssembly.dll+D959B3],01
GameAssembly.dll+1FC1E1   - 53                    - push ebx
GameAssembly.dll+1FC1E2   - 56                    - push esi
GameAssembly.dll+1FC1E3   - 8B 75 08              - mov esi,[ebp+08]
GameAssembly.dll+1FC1E6   - 57                    - push edi
GameAssembly.dll+1FC1E7   - 8B 46 6C              - mov eax,[esi+6C]
GameAssembly.dll+1FC1EA   - 85 C0                 - test eax,eax
GameAssembly.dll+1FC1EC   - 0F84 6C010000         - je GameAssembly.dll+1FC35E
GameAssembly.dll+1FC1F2   - 8B 7D 0C              - mov edi,[ebp+0C]
GameAssembly.dll+1FC1F5   - 6A 00                 - push 00
GameAssembly.dll+1FC1F7   - 57                    - push edi
GameAssembly.dll+1FC1F8   - 50                    - push eax
GameAssembly.dll+1FC1F9   - E8 C2773800           - call UnityEngine.Renderer.set_enabled
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: Sat Sep 05, 2020 12:17 am    Post subject: Reply with quote

At the function entrance do a code injection that writes a 1 to [esp+8]

of if you hook after the mov ebp,esp write a 1 to [ebp+c]

_________________
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
NatanM
How do I cheat?
Reputation: 0

Joined: 03 Mar 2020
Posts: 7

PostPosted: Sat Sep 05, 2020 11:38 am    Post subject: Reply with quote

Thanks it worked
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 programming 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