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] Get address of method behind two and more classes

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Sat Sep 12, 2015 1:55 am    Post subject: [Mono] Get address of method behind two and more classes Reply with quote

Currently we can go one class deep with CE, correct? Something like:

[Namespace] -> [Class] -> [Method]

I can get the adress by:

[Namespace].[Class]:[Method]

But rarely I've seen in Reflector or ILSpy the method is behind two or more classes, like:

[Namespace] -> [Class] -> [Class2] -> [Class3] -> [Method]

I've tried to get the adress in CE by:

[Namespace].[Class]:[Class2]:[Class3]:Method

but it didn't worked. Also some classes have special characters like:

<Parse>c__AnonStoreyBB

How do handle those?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 467

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

PostPosted: Sat Sep 12, 2015 3:14 am    Post subject: Reply with quote

It's probably a just a method inherited from a superclass

E.g the Class AgeVerification can use the method get_tag from UnityEngine.Component because it inherits from UnityEngine.MonoBehaviour->UnityEngine.Behaviour->UnityEngine.Component

To find it you'll probably need Class3:Method to find it (Else Class:Method depending on how it's written)

Not sure what you mean with special characters. _ isn't really special, but it may indicate generated code by a code generator

_________________
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
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Sat Sep 12, 2015 3:43 am    Post subject: Reply with quote

Chess Consequence Unit PhaseInfo get_DirectPhasePlinks

Chess is the namespace.
Consequence is a class
Unit is a class inside the Consequence class
PhaseInfo is a class inside unit class
get_DirectPhasePlinks is a function.

The following commands I've tried:

PhaseInfo:get_DirectPhasePlinks
Unit:PhaseInfo:get_DirectPhasePlinks
Consequence:Unit:PhaseInfo:get_DirectPhasePlinks
Chess.Consequence:Unit:PhaseInfo:get_DirectPhasePlinks

CE always says its not a valid address. Any idea?

I don't mean the _ symbol I mean the <> symbols. If you have a classname like <CalcPhaseInfo>c__AnonStoreyC7 and you're either trying to get to the address of the class or to make a code injection at the address of the class, CE always gives an error. I guessed it's because of the <> symbols?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 467

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

PostPosted: Sat Sep 12, 2015 4:54 am    Post subject: Reply with quote

Ah yes, inner classes. I never looked into that, so it's not supported right now
_________________
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
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Sat Sep 12, 2015 6:30 am    Post subject: Reply with quote

Okay, thanks Very Happy
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 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