Difference between revisions of "Mono:Lua"

From Cheat Engine
Jump to navigation Jump to search
m (Reverted edits by This content is not available (Talk) to last revision by TheyCallMeTim13)
 
(3 intermediate revisions by 2 users not shown)
Line 27: Line 27:
 
* [[Mono:Lua:mono_findClass|mono_findClass]]: Returns the class Id of the given class name and namespace
 
* [[Mono:Lua:mono_findClass|mono_findClass]]: Returns the class Id of the given class name and namespace
 
* [[Mono:Lua:mono_class_getName|mono_class_getName]]: Returns the class name as a string.
 
* [[Mono:Lua:mono_class_getName|mono_class_getName]]: Returns the class name as a string.
* [[Mono:Lua:mono_class_getNamespace]]: Returns the namespace of the given class as a string.
+
* [[Mono:Lua:mono_class_getNamespace|mono_class_getNamespace]]: Returns the namespace of the given class as a string.
 
* [[Mono:Lua:mono_class_getParent|mono_class_getParent]]: Returns the class Id of the parent class for the given class.
 
* [[Mono:Lua:mono_class_getParent|mono_class_getParent]]: Returns the class Id of the parent class for the given class.
 
* [[Mono:Lua:mono_class_getStaticFieldAddress|mono_class_getStaticFieldAddress]]: Returns the base address for a special area that stores static addresses for a given class.
 
* [[Mono:Lua:mono_class_getStaticFieldAddress|mono_class_getStaticFieldAddress]]: Returns the base address for a special area that stores static addresses for a given class.
Line 40: Line 40:
  
 
=== Methods ===
 
=== Methods ===
 +
* [[Mono:Lua:mono_class_findMethod|mono_class_findMethod]]: Returns the method Id of the given method name in the given class.
 
* [[Mono:Lua:mono_findMethod|mono_findMethod]]: Returns the method Id of the given method name in the given class name in the namespace.
 
* [[Mono:Lua:mono_findMethod|mono_findMethod]]: Returns the method Id of the given method name in the given class name in the namespace.
 
* [[Mono:Lua:mono_method_getName|mono_method_getName]]: Returns the name of a method given the method id.
 
* [[Mono:Lua:mono_method_getName|mono_method_getName]]: Returns the name of a method given the method id.

Latest revision as of 19:07, 18 March 2019


This entry needs a lot of work. Please contribute if you can.

Check this page to see if there are some suggestions for adding to Mono:Lua.

Main Methods[edit]

  • LaunchMonoDataCollector: Injects the MonoDataCollector dll and returns 0 for failure, or the monoBase returned from the CMD_INITMONO command on the mono pipe.
  • monoTypeToVarType: Returns the Cheat Engine type (vtString, vtByte, vtWorkd, vtDword, vtSingle, vtDouble, vtPointer) for the given mono type.

Domains[edit]

Assemblies[edit]

  • mono_enumAssemblies: Returns table of assembly Ids for each assembly in the current domain from the MonoDataCollector.

Classes[edit]

JIT[edit]

  • mono_getJitInfo: Returns a table with the properties given the address of code in memory.
  • mono_compile_method: JITs a method if it isn't compiled yet.
  • mono_free_method: Frees the method (memory), only if profiler isn't being used, and only works on dynamic methods.

Methods[edit]

Invoke[edit]

Misc.[edit]


Cheat Engine Hooks[edit]

  • mono_initialize: Sets up hooks, calls old open process hook if there was one, and calls syncrhonize("mono_OpenProcessMT").
  • mono_OpenProcessMT: If timer (t) parameter is not nil; destroys timer then enumerates modules looking for 'mono.dll', and adds the mono menu item to Cheat Engine main form.
  • mono_OpenProcess:


Mono Dissector Methods[edit]


See also[edit]