zed-0xff/ZombieBuddy
소개
Java agent framework for Project Zomboid that enables runtime bytecode patching using ByteBuddy. Annotation-based API for modding game classes without source code access.
프로그래밍 언어 및 런타임What you can do
- 🎯 Annotation-based patching: Use @Patch annotations to declare method patches
- 🔄 Runtime class transformation: Patch classes that are already loaded using retransformation
- 📦 Automatic patch discovery: Scans for patch classes automatically
- 🔗 Lua integration: Expose Java classes and global functions to Lua
측정된 스타 증가
- in 24h
- +2
- in 7 days
- +7
- in 15 days
- +24
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalZombieBuddy
A powerful framework for Project Zomboid modders that enables Java bytecode manipulation and runtime patching of game classes using ByteBuddy.
What is ZombieBuddy?
ZombieBuddy is a Java agent-based framework that allows modders to:
- Patch game classes at runtime using bytecode manipulation
- Expose Java classes to Lua for enhanced modding capabilities
- Apply patches declaratively using simple annotations
- Load Java code from mods seamlessly
Built on top of ByteBuddy, ZombieBuddy provides a clean, annotation-based API for intercepting and modifying game behavior without requiring access to the game's source code.
Why ZombieBuddy?
Previously, Java mods for Project Zomboid required bundling .class files and manually replacing game files. ZombieBuddy makes this better:
- No manual file replacement: Automatically loads and applies patches at runtime
- Precise patching: Patch specific methods with surgical precision - multiple mods can patch the same class without conflicts, and game updates are less likely to break your mod
Features
- 🎯 Annotation-based patching: Use
@Patchannotations to declare method patches - 🔄 Runtime class transformation: Patch classes that are already loaded using retransformation
- 📦 Automatic patch discovery: Scans for patch classes automatically
- 🔗 Lua integration: Expose Java classes and global functions to Lua
- ⚡ Advice and Method Delegation: Support for both advice-based and delegation-based patching
- 🔍 Verbose logging: Configurable verbosity levels for debugging
Quick Start
For End Users
- Windows: Download and run ZombieBuddyInstaller.exe, then choose the launch modes to patch. The installer also has an uninstall option and shows a confirmation preview before applying changes.
- macOS/Linux: Copy
ZombieBuddy.jarto the game directory and add-javaagent:ZombieBuddy.jar --to launch options
📖 Full Installation Guide - Security warnings, manual installation, policy modes
📖 Uninstall Guide - Remove launch options, installed files, and optional config data
For Modders
- Add
require=\ZombieBuddy,javaJarFile, andjavaPkgNameto yourmod.info - Create patches using
@Patchannotations - Build your JAR and place it in
media/java/
📖 Modding Guide - Complete guide to creating Java mods
Documentation
| Document | Description |
|---|---|
| Installation Guide | End-user installation, security, and policy configuration |
| Uninstall Guide | Removing ZombieBuddy and optional config data |
| Command-Line Parameters | All agent parameters: verbosity, policy, experimental, etc. |
| Modding Guide | Creating patches, Lua exposure, mod signing, examples |
| Mod Signing | What signatures prove, what they do not prove, and how author trust works |
| Lua API Reference | Events, Watches, and Java mod status APIs |
| Dev/Debug Functions | Lua utilities: zbinspect, zbmethods, zbgrep, zbmap, etc. |
Example: Creating a Patch
import me.zed_0xff.zombie_buddy.annotations.Patch;
@Patch(className = "zombie.SomeGameClass", methodName = "someMethod")
public static class MyPatch {
@Patch.OnEnter
public static void enter() {
System.out.println("Method called!");
}
}
Example Mods
- ZBLuaPerfMon - Real-time Lua performance monitoring
- ZBHelloWorld - Simple example demonstrating basic patching
- ZBetterWorkshopUpload - Workshop integration and Lua exposure
- ZBMacOSHideMenuBar - macOS display patching
- ZBBetterFPS - Render engine optimization
- ZItemTiers - Item rarity with optional Java patches
Requirements
- Project Zomboid (Build 42+)
- Java 25 (required by the game)
- Windows native loader: Windows 10/11 x64 for the current game target; runtime-file identity queries must be supported and permitted. See the Windows loader requirement and diagnostics for the API floor, filesystem/access requirements and stderr/debug-output capture.
- Gradle (for building Java mods)
☕ Support the Project
License
Copyright (c) 2025-2026 Andrey "Zed" Zaikin
This project is licensed under a permissive open-source license. See LICENSE.txt for details.
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
Links
- GitHub: https://github.com/zed-0xff/ZombieBuddy
- Steam Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=3619862853
- Related: ZBSpec - Testing framework for PZ mods
Disclaimer
This mod uses bytecode manipulation to modify game behavior. Java mods enabled through ZombieBuddy have unrestricted access to your system and can execute arbitrary code. Use at your own risk. Only install Java mods from trusted sources and review their source code when available.
관련 프로젝트 살펴보기
불러오는 중…
