Tutorial How to inject mod menu into DLL based Unity games (Mono backend ONLY)

Hi @AndnixSH
Is there a way i can add more than 1 multiple button that work for something else? let say def multi or gold multi? I tried to add dmgmulti2 and 3 but it doesn't work.
 
@Zhard you can resize height but it will not resize buttons. Maybe I'll implement something to resize whole menu, later
You can add other multi, just make sure to give it different field and add new field like "public static int dmgMulti, goldMul, AddYourOtherMultiHere;"
Learn C# and you'll figure it out, it's easy and my code is open for everyone. Just learn
 
Hi @AndnixSH I'm getting an error when trying to compile my code after adding a new class to the blank namespace... A quick search of the Unity website mentions this:

"Texture2D.LoadImage has been moved to a Texture2D extension method ImageConversion.LoadImage"

I'm still fairly new to all of this but I have made a Mod Menu in the past using Peek-A-Boo's own pre-made version (Here) and had no issues back then. Any ideas?

I've attached a screenshot of the compile error for you to have a look at. Hope you can help as it has my head hurting lol

Apologies in advance if I've overlooked something simple or something, it's almost 1am where i am so i'm a bit tired lol

Thanks
 

Attachments

  • Flat Mod Menu error CS1061.png
    Flat Mod Menu error CS1061.png
    34.8 KB · Views: 358
@Erudus maybe because the game is using too old version of Unity. You will have to use my classic mod menu.
what's the name of game?
 
Ah I never though of it being a fault with the game, thanks!

It's Dead Trigger 2 (picked this game as I already knew what to modify so thought i'd use it to practice making a mod menu)

I'll try your older version of the menu on it or I might even pick another game to use instead.

Thanks for the help! :)
 
There is a bug. When I move the icon to the corner, the image become big lol and I'm getting error texture is null. How to fix?

1547311704669.png
 
There is a bug. When I move the icon to the corner, the image become big lol and I'm getting error texture is null. How to fix?
Thanks for report lol
I checked it, I got same problem too. VinhThitlon had similar issue that there is second image that went upside down
I will see if i can fix it hahaha
 
@AndnixSH i cant get the clicker button to work do I need to add anything in the brackets in ModMenu GUI?

if (GUI.Button(BtnRect(4, false), "Instant win", BtnStyle))
{
???????
}
And what do I use in the edited method to call on it?
 
@Tigress is MyGUI your OnGUI Method ?

if yes, it should look like this ! did u reload the files ? update ? after u added the menu code ?
72655b0a429d7405fd48faafb1ccf948.png


Code:
public void OnGUI()
{
    UnityModMenuAndroid.OnGUI();
}
 
I don't work with this Menu, but normally you must declare ( using ) the Menu before you can call anything in it.
Which mean you must write " using TgmM; " or anything like that.
 
Back
Top Bottom