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 


DotNet info - Need Help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
r_0_b_3_3
How do I cheat?
Reputation: 0

Joined: 07 Sep 2024
Posts: 0
Location: Hungary

PostPosted: Sun Sep 08, 2024 1:21 am    Post subject: DotNet info - Need Help Reply with quote

There is a unity game with mono feature.
In the game earlier versions there was a code which unlocked all image messages in the game.
These lines of code are missing in later versions.
In Assembly-CSharp their place is still there (DNSpy) but the method is empty.
Code:
public void UnlockAllPhotosMessage()
   {
   }


this was the original (now missing) code:
Code:
public void UnlockAllPhotosMessage()
   {
      List<GDEMessageData> list = GameDataLists.Content.messageData.FindAll((GDEMessageData a) => !this.HasUnlockedMessage(a) && a.AttachmentType.Key != "TEXT");
      if (list != null)
      {
         foreach (GDEMessageData messageData in list)
         {
            this.UnlockMessage(messageData);
         }
      }
   }

The idea was to re-inject the missing code fragment using .Net info.
In the .Net info, I looked in the Assembly-CSharp for the Phone class, in it the UnlockAllPhotosMessage method.
I'm right clicked and generated a template.
After that i filled the csharp section and reached to this point (in linked file)

Assigned to the table and when i tried to activate in the local menu i see this error:

Code:
dotnetpatch.lua:186 not all addresses found


What did i wrong?



inject.lua
 Description:
i don't know why can't post the code because URL(? not conains any)

Download
 Filename:  inject.lua
 Filesize:  2.51 KB
 Downloaded:  133 Time(s)

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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