Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity Dump Offset Updater – By DS Gaming (Mr D)

A cross-platform utility designed to automatically parse dump.cs generated by Il2CppDumper for Unity games and produce a C++ header file (.h) containing offset variables for fields and methods. Supports both Windows and macOS.


🧪 Usage Guide

📁 Setup:

  1. Place your dump.cs file (exported from Il2CppDumper) in the following directory:
dump/dump.cs

  1. Create a config.json (or config.jsonc) file:
{
    "file_path": "dump/dump.cs",
    "output_file": "DarkOffsets.h",
    "offset_type": "VA",
    "obfuscate": true,
    "avoid_dup": true
}
  • file_path: Path to your dump.cs file.
  • output_file: Name of the output .h header file containing the generated offsets.
  • offset_type: The offset representation type to extract:
    • "RVA" – Relative Virtual Address
    • "Offset" – Raw Offset
    • "VA" – Virtual Address (Recommended)
  • obfuscate: If set to true, wraps offset strings in ENCRYPTOFFSET("..."). If false, outputs raw hex values.
  • avoid_dup: If set to true, prefixes variable names as _class_field and _class_method to prevent variable naming conflicts.

  1. Create a function.json (or function.jsonc) file:
{
    "UnityEngine": {
        "Camera": {
            "fields": ["onPreCull"],
            "methods": [
                { "name": "get_main", "args": 0 }
            ]
        }
    }
}
  • Structure: { "Namespace": { "Class": { "fields": [...], "methods": [...] }}}
  • fields: List of field names to extract.
  • methods: Array of method objects specifying name (method name) and args (number of parameters).

▶️ How to Run:

🪟 Windows:

Double-click the executable file:

Tool.exe

🍏 macOS:

Double-click the .command file corresponding to your system architecture:

  • Apple Silicon (M-Series Chips): tool_arm64.command
  • Intel (x86_64 Chips): tool_x86_64.command

(Note: If blocked by macOS Gatekeeper on the first run, open Terminal and grant permissions using: chmod +x tool_*.command && xattr -d com.apple.quarantine tool_*.command)


📤 Output:

The tool will generate a C++ header file (e.g., DarkOffsets.h based on your config):

uint64_t _class_field = ENCRYPTOFFSET("0x123");
uint64_t _class_method = ENCRYPTOFFSET("0x12345678");

Tool Created By DS Gaming - Mr D

About

A cross-platform offset updater for Unity games, supporting Windows (.exe) and macOS (.command)

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors