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 goodies

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
jgoemat
Expert Cheater
Reputation: 21

Joined: 25 Sep 2011
Posts: 238

PostPosted: Wed Jan 29, 2020 7:56 pm    Post subject: Mono goodies Reply with quote

It's a work-in-progress, but I have a table and supporting scripts to make it easier to find classes, fields, and methods for mono games.

https://github.com/JasonGoemaat/CheatEngineMonoHelper

It's not packaged up nice, the forms are in the cheat table and the table script runs other lua files in the directory. Having them separated like that made it a lot easier to work on for me...

There's a new 'Search' option in the Mono menu. The first time you use it a window will open for you to select the image (normally 'Assembly-CSharp'). It'll take a few seconds to pre-process and organize all the classes. Then the search form will open up and the Classes, Fields, and Methods lists are populated with results as you type. Double-clicking on any of them will open the corresponding class in a new Class window. That shows field offsets and types (including from base classes if you check that option in a menu) and methods with signatures. Double-clicking on a method will create a script to hook that method with comments showing the parameters and expected return type. For this method it is easy to just 'mov rax,1' and 'ret' so the navigation system thinks all systems are connected and it will let you fly to any of them:

Code:
define(hook,"CryingSuns.Navigation:NavigationSystem:IsConnectedTo")
define(bytes,55 48 8B EC 56)

[enable]

assert(hook, bytes)
alloc(newmem,$1000, hook)
{
  RCX: NavigationSystem (this)
  RDX: CryingSuns.Navigation.NavigationSystem _system

  Returns (RAX) System.Boolean
}

newmem:
  // original code
  push rbp
  mov rbp,rsp
  push rsi
  jmp hook+5

hook:
  jmp newmem

[disable]

hook:
  db bytes

dealloc(newmem)



MonoSearch.png
 Description:
 Filesize:  73.31 KB
 Viewed:  2147 Time(s)

MonoSearch.png


Back to top
View user's profile Send private message
gid2525
Advanced Cheater
Reputation: 2

Joined: 21 Oct 2013
Posts: 76

PostPosted: Fri Feb 07, 2020 4:55 pm    Post subject: Re: Mono goodies Reply with quote

jgoemat wrote:
It's a work-in-progress, but I have a table and supporting scripts to make it easier to find classes, fields, and methods for mono games.

https://github.com/JasonGoemaat/CheatEngineMonoHelper


Looks cool. So.. on the Lua scripts over there at that site, which ones do I need to put into my autorun folder for max functionality?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions 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