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 


MONO: Instances and invoking

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 341

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

PostPosted: Thu Jul 27, 2017 7:33 am    Post subject: MONO: Instances and invoking Reply with quote

In this tutorial i'll show how to use the mono feature called "find instances of class"
As example game I'll use Kindergarten, as it's really small, and pretty easy, but the playerclass gets destroyed every day. (Not that you actually need to cheat in this game)

First of, I found out the address of money, then used dissect data on it and let mono dissect it for me.
That gave as result that money is inside a class called "PlayerController"

With that information you can go to mono dissect, find the class "PlayerController" , rightclick it, and then choose "Find instances of class"
After the scan is done a dialog will popup with a list of objects that look like they are a PlayerController object (do check the memory yourself if it is actually correct)

Note down the address (or doubleclick it , click on the hexview and press ctrl+g followed by ctrl+c) and go to dissect data with a PlayerController structure configured (if you don't have one, just let it dissect it for you)

Scroll down till you find money, and set the value to whatever you like


----
Invoke Method
----
Alternatively, you can use the invoke Method function with the address you just found

The PlayerController class has a "GetMoney" method which take a single(float) as parameter

So, in the mono dissector highlight GetMoney and choose "Execute/Invoke method"
Give as instance address the address you just found, or pull down the dropdown so it'll search again
Fill in the amount of money you wish in "S: single" and click ok
You'll hear the money sound, and if you look at the screen in the game you'll see the amount of money has been added

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
STN
I post too much
Reputation: 33

Joined: 09 Nov 2005
Posts: 2524

PostPosted: Thu Jul 27, 2017 10:37 am    Post subject: Reply with quote

Quote:
Note down the address (or doubleclick it , click on the hexview and press ctrl+g followed by ctrl+c) and go to dissect data


Would be nice if there was a menu option for data dissecting since sometimes there can be many instances of the class and it gets tiring to check all of them out.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
http://fearlessrevolution.com
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 341

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

PostPosted: Thu Jul 27, 2017 12:05 pm    Post subject: Reply with quote

it's already in the todolist. (you can also add it yourself if you know ce's lua )
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials 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