Tutorial How to make mod menu for il2cpp and native games

Arch01

2/3 Games Approved
Sep 1, 2020
35
6
8
27
Cilegon Banten Indonesia
hello LGL , nice mod menu btw,
i already implement this mod menu, but i really get confusing about input value , how to get the value from the InputValue ? use
use
int InputValue = 0;
or something else
#note:
sorry for my bad english.
 

TheLGL

Awesome Active Platinian
Original poster
Skilled
Feb 19, 2020
156
4,208
193
UK
hello LGL , nice mod menu btw,
i already implement this mod menu, but i really get confusing about input value , how to get the value from the InputValue ? use
use
int InputValue = 0;
or something else
#note:
sorry for my bad english.
Get it from Changes method
Java_uk_lgl_modmenu_Preferences_Changes(JNIEnv *env, jclass clazz, jobject obj, jint feature, jint value, jboolean boolean, jstring str) {
 

ReyNoTeam

Platinian
Feb 22, 2020
44
23
8
PlatinMods
LOGD("Patch Address: %p", (void *) hexPatches.GodMode.get_TargetAddress());
LOGD("Patch Size: %zu", hexPatches.GodMode.get_PatchSize());
LOGD("Current Bytes: %s", hexPatches.GodMode.get_CurrBytes().c_str());

what function is this for sir?
 

Yaskashije

PMT Elite Modder
Staff member
Modding-Team
Sep 9, 2018
4,406
842,619
1,213
Minkowski Space
LOGD("Patch Address: %p", (void *) hexPatches.GodMode.get_TargetAddress());
LOGD("Patch Size: %zu", hexPatches.GodMode.get_PatchSize());
LOGD("Current Bytes: %s", hexPatches.GodMode.get_CurrBytes().c_str());

what function is this for sir?
To see if there was any issue with the patched addresses/change in the lib using logcat.
 
  • Like
Reactions: ReyNoTeam

Segal

Rookie
Sep 17, 2020
1
1
1
31
USA
No time for that, but would be great if someone make it for me
Hi LGL Team, thank you very much for your efforts.
Please can you tell me the code "Main.cpp" for "The slider hook example", and "The slider kittymemory example" like in the image below, or please give me a link for this project, or if you want please update it in the github template.
a94ce00e1d63422909d53eee2444a713.gif

Please, also just if you want, it's better to add an Elegant Number Button, or "NumBox" for completing all stuffs, and update it on github.

Toggle --> KittyMemory
Slider 1 --> MS Hooking
Slider 2 --> KittyMemory
Spinner --> KittyMemory
Button --> KittyMemory
Input --> ?
+ +
NumBox --> KittyMemory
+ +
Update github template.

I've searched you in Telegram with @RadidasG, but no results. Can you give the new username please.
This is my Telegram: @JSegal1
This is my e-mail: [email protected]

Thank you once again.
 
  • Like
Reactions: CYBER TEAM

TheLGL

Awesome Active Platinian
Original poster
Skilled
Feb 19, 2020
156
4,208
193
UK
Hi LGL Team, thank you very much for your efforts.
Please can you tell me the code "Main.cpp" for "The slider hook example", and "The slider kittymemory example" like in the image below, or please give me a link for this project, or if you want please update it in the github template.

Please, also just if you want, it's better to add an Elegant Number Button, or "NumBox" for completing all stuffs, and update it on github.

Toggle --> KittyMemory
Slider 1 --> MS Hooking
Slider 2 --> KittyMemory
Spinner --> KittyMemory
Button --> KittyMemory
Input --> ?
+ +
NumBox --> KittyMemory
+ +
Update github template.

I've searched you in Telegram with @RadidasG, but no results. Can you give the new username please.
This is my Telegram: @JSegal1
This is my e-mail: [email protected]

Thank you once again.
The image you showed me is way too old lul
I changed my name due to free fire kids and newbies who know nothing about modding, but kept begging me teaching to mod.
Please kindly read the README.md first. Do not cheat and look after my contact without reading first, my README.md has a little protection so you can't use find function to find my contact easly :DDD

Input number already added long time ago
I will bring back slider for kittymemory in next commit :))
 

Gourov

Platinian
Dec 11, 2019
38
856
83
26
Bangladesh
Hi LGL Team, thank you very much for your efforts.
Please can you tell me the code "Main.cpp" for "The slider hook example", and "The slider kittymemory example" like in the image below, or please give me a link for this project, or if you want please update it in the github template.
View attachment 253673
Please, also just if you want, it's better to add an Elegant Number Button, or "NumBox" for completing all stuffs, and update it on github.

Toggle --> KittyMemory
Slider 1 --> MS Hooking
Slider 2 --> KittyMemory
Spinner --> KittyMemory
Button --> KittyMemory
Input --> ?
+ +
NumBox --> KittyMemory
+ +
Update github template.

I've searched you in Telegram with @RadidasG, but no results. Can you give the new username please.
This is my Telegram: @JSegal1
This is my e-mail: [email protected]

Thank you once again.
Well those are very easy to use tbh ?. I can try to help if you want ?.
 

Gourov

Platinian
Dec 11, 2019
38
856
83
26
Bangladesh
@TheLGL unfortunately I am getting this error on new version. Please help .

Code:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildDebug'.
> Build command failed.
  Error while executing process G:\InstallationFiles\Sdk\ndk\21.3.6528147\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=G:\ModMenu\Android-Mod-Menu-master-lGL-SB-12-Oct-20\app\src\main\jni\Android.mk NDK_APPLICATION_MK=G:\ModMenu\Android-Mod-Menu-master-lGL-SB-12-Oct-20\app\src\main\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-19 NDK_OUT=G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=G:\ModMenu\Android-Mod-Menu-master-lGL-SB-12-Oct-20\app\build\intermediates\ndkBuild\debug\lib MyLibName}
  [armeabi-v7a] Compile++ arm  : MyLibName <= Main.cpp
  [armeabi-v7a] Compile++ arm  : MyLibName <= Menu.cpp
  [armeabi-v7a] Compile++ arm  : MyLibName <= Utils.cpp
  [armeabi-v7a] Compile arm    : MyLibName <= hde64.c
  [armeabi-v7a] Compile++ arm  : MyLibName <= SubstrateDebug.cpp
  [armeabi-v7a] Compile++ arm  : MyLibName <= SubstrateHook.cpp
  [armeabi-v7a] Compile++ arm  : MyLibName <= SubstratePosixMemory.cpp
  [armeabi-v7a] Compile++ arm  : MyLibName <= SymbolFinder.cpp
  [armeabi-v7a] Compile++ arm  : MyLibName <= KittyMemory.cpp
  [armeabi-v7a] Compile++ arm  : MyLibName <= MemoryPatch.cpp
  [armeabi-v7a] Compile++ arm  : MyLibName <= MemoryBackup.cpp
  [armeabi-v7a] Compile++ arm  : MyLibName <= KittyUtils.cpp
  [armeabi-v7a] Compile++ arm  : MyLibName <= And64InlineHook.cpp
  [armeabi-v7a] SharedLibrary  : libMyLibName.so
 
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Menu.o: multiple definition of 'Java_uk_lgl_modmenu_FloatingModMenuService_Heading'
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Main.o: previous definition here
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Menu.o: multiple definition of 'Java_uk_lgl_modmenu_FloatingModMenuService_Icon'
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Main.o: previous definition here
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Menu.o: multiple definition of 'Java_uk_lgl_modmenu_FloatingModMenuService_IconWebViewData'
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Main.o: previous definition here
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Menu.o: multiple definition of 'Java_uk_lgl_modmenu_FloatingModMenuService_Title'
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Main.o: previous definition here
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Menu.o: multiple definition of 'Java_uk_lgl_modmenu_FloatingModMenuService_getFeatureList'
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Main.o: previous definition here
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Menu.o: multiple definition of 'antiLeech(void*)'
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Main.o: previous definition here
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Menu.o: multiple definition of 'featureListValid'
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Main.o: previous definition here
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Menu.o: multiple definition of 'headingValid'
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Main.o: previous definition here
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Menu.o: multiple definition of 'iconValid'
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Main.o: previous definition here
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Menu.o: multiple definition of 'titleValid'
  G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/MyLibName/src/Main.o: previous definition here
  clang++: error: linker command failed with exit code 1 (use -v to see invocation)
  make: *** [G:/InstallationFiles/Sdk/ndk/21.3.6528147/build//../build/core/build-binary.mk:725: G:/ModMenu/Android-Mod-Menu-master-lGL-SB-12-Oct-20/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libMyLibName.so] Error 1


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 21s
 

LEIIKUN

Retired Staff
Retired but loved <3
Oct 13, 2019
500
11,001
1,193
20
Davao
Capture.PNG


So I managed to load the "Android-Mod-Menu-master" folder but inside it, the JNI folder won't load. This is my first time learning/making a mod menu.