How to MOD il2cpp Based Games (Unity Games)

Unity is a widely popular game development engine that employs the technology of interpreting an intermediate language to C++, called IL2CPP.

Using these, it creates a scripting back end that compiles C # into C++. This enables Unity games to be played on desktops, consoles, and mobile devices by translating the C # code into optimized C ++. IL2CPP also improves performance and allows Unity games to run equally well on different platforms.

In this tutorial, I will walk you through on how to MOD games that are built with unity il2cpp. Since most of the unity games are now based on il2cpp, I will teach you from the start on how to MOD these type of games.

Things you will require to have:

1) il2cppDumperGet it from here

2) DNSpy Get it from here

3) Hex Editor (You can use this free one) or use 010 Editor – Find a crack one, or try original one since it offers free trial. I personally use 010 editor as its easy.

4) APK Tool KitGet it from here

5) Java SE JDK – Get it from here  – Please download correct files according to your Windows Machine. Specially JAVA JDK.

6) WinRar – Get it from here

7) Very Important!! You need to check out our beginner’s guide to modding in order to understand the basics. Check it out here – Beginner’s Guide to Modding Android Games

Let’s Begin

So for this tutorial we will modding a game called Love Sick by SWAG MASHA, we will modify the Diamonds in the game so we can use them even if we do not have enough, so basically unlimited gems.

Download the APK File from here – https://apk.support/apk-downloader , enter package name “com.swagmasha.genres” and other settings similar to the screenshot below, you need to download the armeabi_v7a version.

Since this game is not available on APKCOMBO, otherwise APKCOMBO is a good site to get APK files.

Click on MERGE APK to make it a single APK File.

1) Once the APK File is downloaded, move it to where you have your il2cppDumper. You will have to DUMP the game, if you do not know about DUMPING then please check out this tutorial: How to DUMP il2cpp games.

2) Once you have completed the DUMP you will have a folder called DummyDLL, Open it and load all the files in DNSPY as shown in the PIC below.

3) So now we need to find our method that will give us unlimited diamonds. While modding you many times you may find many results upon searching for anything, the main thing is not look whether the method is inside a useful class or not.

For example: You may sometime find a method called get_coins inside UI class, now if you mod that sometimes it might just be visual or not work since it’s UI meaning user interface and that class is useless for modding coins. However, if you find the get_coins inside a class called userdata, or wallet, or currency, then it’s worth trying to MOD it.

4) We got a lot of results when we searched for Diamonds. Make sure “Search For” you see in screenshot is set to METHOD, since we want to find methods.

5) So now we have to go through the results and see what we can find. Since I already know what I want to MODIFY I will directly MOD it, however if you are modding for the first time, you will have to MOD every method that you think might be useful and test your game to see if it works or not.

6) For this game to get unlimited diamonds, we need to MOD that method called “CanConsumeDiamonds” basically the game checks here whether the user can consume his/her diamonds. This is a Boolean so you can return true or false to it, if we return TRUE i am assuming the game will always think that it consumed the diamonds while in reality it didn’t.

7) So now that we have already got our method that we need to modify. Load the libil2cpp.so file into the HEX Editor

8) Now copy the method’s offset from DNSpy which is “0x728B14”

9) Go back to the HEX Editor and PRESS “CTRL + G” make sure you press CTRL + G and not CTRL + F. Enter the offset and hit enter and it will take you to the address.

At the bottom you can see i entered the offset, and above (the highlighted area) is the address of that offset.

10) We need to change it to TRUE so the HEX Code we will use is 01 00 A0 E3 1E FF 2F E1. To replace the current HEX Code with our own, make sure you have highlighted it and then press CTRL + SHIFT + V to paste it.

11) Now press CTRL + S to save it.

12) Copy the libil2cpp.so file inside the lib folder of the game and overwrite it or replace.

13) Then sign the APK File using APK Tool KIT and run the game, and you will notice that in the game you will be able to purchase premium choices, and outfits even if you do not have enough diamonds.

That is all you need to do in order to modify your game. You can now try different games, find different methods, and experiment yourself. At start, it may seem complicated, but once you start modding yourself, it will become easier. If you are confused or stuck at any step, please comment below and i will try to help you.

Leave a Comment