Page 1 of 1

MonoHelper

Posted: Sun Feb 25, 2024 8:39 pm
by jgoemat
Update 2024-02-25 - Cheat Engine 7.5.2, better instructions, simple quick start

* Source: [Link]
* Raft Tutorial: [Link]

To just use it, download the 'Dev.CT' file and activate the 'MonoHelper' table entry while attached to a game that uses mono, or copy the table entry and paste it into your own table. When activated, there will be a new 'Mono->Search' menu item letting you search an image (default to 'Assembly-CSharp' if present) for any classes, fields, and methods containing your search text. Double-clicking opens a 'Class' window showing fields and methods and letting you easily hook those methods.

Image

Known bugs:

* Sometimes it doesn't show all the classes/methods/fields for a name, i.e. typing 'Play' will show 'PlayerStats' class but when you keep typing and add the 'e' it no longer shows up... Hard to track down
* If a class won't open when double-clicking on search results, close the current class window and retry

Updates:

* Option to create hook for overridden methods, which inserts a short lua script in the AA.
* Option to create a table entry named after the method and open the script, saves me a step speeding up investigation

Re: MonoHelper

Posted: Tue Feb 27, 2024 7:41 am
by Chenzen
Thanks you i love this tool :-)

Re: MonoHelper

Posted: Mon Jan 20, 2025 4:06 pm
by DarkIceCore

Error in native thread called Unnamed::...CE7.5\autorun\monohelper.lua:578: attempt to call a nil value (global 'mono_field_getClass')


in your .lua on 578 line there is a comment about CE version fix:

obj.typeClassId = mono_field_getClass(obj.id) -- Fix change in CE 7.5.2

but i can't use patreon version "7.5.2" coz i can't pay for it, our country is under sanctions,
plus we are switched off from international Swiss Card System.
so i'm using official 7.5 version.
any downgrade solutions for your extension to work properly?
Thx.

Re: MonoHelper

Posted: Thu Jan 23, 2025 4:20 am
by jgoemat
Try changing to this:

Code: Select all

obj.typeClassId = mono_type_getClass(obj.id)
If you can access the git repo there is a commit `5ecb57e Update for Cheat Engine 7.5.2` if you look at the history. Other changes might have been made since then also so rolling back to the commit before that one should work, unless there were changes for 7.5.1 already :)

Re: MonoHelper

Posted: Thu Jan 23, 2025 5:28 pm
by DarkIceCore
jgoemat wrote:
Thu Jan 23, 2025 4:20 am
Spoiler
Try changing to this:

Code: Select all

obj.typeClassId = mono_type_getClass(obj.id)
If you can access the git repo there is a commit `5ecb57e Update for Cheat Engine 7.5.2` if you look at the history. Other changes might have been made since then also so rolling back to the commit before that one should work, unless there were changes for 7.5.1 already :)
Big thx to you, it's worked now.
i have no problem with access to git repo history, and found 5ecb57e changes, but i'm not so familiar with github yet, to find precisely small changes with history. thx for great a tip.

[Link]