Code Monkey home page Code Monkey logo

bnm-android's Introduction

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++11 minimum.

What you can do with BNM?

  • Finding everything by names (classes, methods, fields ane etc.)
  • Adding your own classes to game that work even with AssetBundles!
  • Change game classes by addeding fields and methods.
  • Use basic c# structs like string (monoString), array (monoArray), dictionary (monoDictionary) that fully work.

New classes

BNM can add your own class to game, it requires C++17 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 11 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.cpp 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.

Android hookinng software for example:

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.