Skip to content

Modding il2cpp games by classes, methods, field names on Android.

License

Notifications You must be signed in to change notification settings

Janit8r/BNM-Android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ByNameModding

English | Русский

ByNameModding is a library for modding il2cpp games by classes, methods, field names on Android. This edition is focused on working on Android with il2cpp. It includes everything you need for modding unity games.
Requires C++20 minimum.

What you can do with BNM?

New classes

BNM can add your own class to game, it requires C++20 and above.
If you nest your class from MonoBehaviour (or other class with events) methods like Update will work.
And it fully computable with AssetBundles!
For bundles need add your class to dlls that listed in ScriptingAssemblies.json.
Basically BNM add classes to Assembly-CSharp.dll that always in this list.
If you want to use your own dll with bundles, add it to this file, but this will work only if you use BNM internally.

Can I use BNM externally?

Yes, you can, but this is not tested. To do that see BNM::External::LoadBNM

Getting Started

  • First clone the repo and add it to your project.
  • Set C++ version to 20 or higher
  • Add BNM.cpp to Android.mk or CMakeLists.txt.
    Android.mk
    LOCAL_SRC_FILES += ByNameModding/BNM.cpp
    CMakeLists.txt
    add_library("Your lib name" SHARED ByNameModding/BNM.cpp "...other cpp files")
  • Change UNITY_VER, include your string obfuscator and hooking software, uncomment BNM_DOTNET35 if the game uses .NET 3.5 in BNM_settings.hpp
  • Done! See examples or add it to your project to understand how to work with BNM.

Supported Unity versions: 2017.x - 2023.1.x

Dependencies

UTF8-CPP used by il2cpp and by BNM too.
Open-hierarchy custom RTTI used to optimize memory usage

Android hookinng software for example:

Dobby - recomended
Substrate with And64InlineHook - may don't work

About

Modding il2cpp games by classes, methods, field names on Android.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%