r_0_b_3_3 How do I cheat? Reputation: 0
Joined: 07 Sep 2024 Posts: 0 Location: Hungary
|
Posted: Sun Sep 08, 2024 1:21 am Post subject: DotNet info - Need Help |
|
|
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?
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) |
|
|