Commit Graph
38 Commits
Author SHA1 Message Date
xiaozhou233 5f3721c294 Feat: Add ClickGUI module bound to RSHIFT
- Add modules/impl/render/ClickGUI with default keybind RSHIFT

- Let the module open/close the input screen via requestOpen/requestClose

- Sync module state when the screen is closed by vanilla handling

- Remove the hard-coded GUI toggle from ClientInput/InputController
2026-11-08 00:50:05 +08:00
xiaozhou233 d241addec7 Fix: Scale injector GUI for HiDPI displays 2026-11-07 20:02:19 +08:00
xiaozhou233 54b476451c Feat: Add dark injector GUI
- Replace the console selection with a FlatDarkLaf Swing window

- List detected Minecraft windows, support a hidden custom PID input and refresh

- Run injection on a background thread and report the result in the status label

- Bundle FlatLaf into injector.jar so the packaged GUI runs standalone
2026-11-07 19:11:06 +08:00
xiaozhou233 f6d8c7da2f Feat: Add module value system
- Add Value, BooleanValue, KeybindValue and ModeValue

- Store values per module with defaults, reset, visibility and JSON encoding

- Wire module keybinds to EventKey so bound keys toggle modules
2026-11-07 18:58:04 +08:00
xiaozhou233 7e27752ffc Feat: HUD Module 2026-11-07 18:45:52 +08:00
xiaozhou233 c8e23c5d1c Build: Keep Java 8 output while compiling 26.2 sources
- Compile main sources with --release 8

- Move record-dependent v26_2 input classes to a separate source set

- Use a JDK 25 toolchain for that source set, still emitting class version 52

- Fix the Injector PrintStream charset constructor for Java 8
2026-11-07 17:01:36 +08:00
xiaozhou233 a84b04877d Refactor: Route key input through EventBus
- Post EventKey from 1.8.9 KeyBinding/GuiScreen hooks

- Hook 26.2 KeyboardHandler#keyPress so keys fire while walking

- Normalize 26.2 GLFW key codes to 1.8.9 LWJGL 2 codes

- Drive the GUI toggle from InputController instead of tick polling
2026-11-07 16:48:26 +08:00
xiaozhou233 70d8a854ea Feat: Auto download client jar and dependence 2026-11-07 15:46:11 +08:00
xiaozhou233 fdeec2a2f5 Fix: Injector warning and Chinese garbled text 2026-11-07 15:15:32 +08:00
xiaozhou233 fea7089ff8 Feat: Upgrade to Java25 gradle-9.8.2, Delete Stubs 2026-11-07 15:11:18 +08:00
xiaozhou233 0599e48ebe Docs: world-gating-and-input.md 2026-11-07 14:52:28 +08:00
xiaozhou233 0232fb0446 Docs: Add support version 2026-11-07 14:03:36 +08:00
xiaozhou233 5c726f54e4 Docs: Add launcher class-loader troubleshooting and hook file index 2026-11-07 13:55:05 +08:00
xiaozhou233 4b55871a8b Fix: Resolve hooks on launchers with remapped class loaders
Inject through the top-level orangexbridge package instead of imported cn.* names, build a fresh Javassist pool with agent-provided runtime class bytes, and fall back to safe class paths. Fixes Lunar GenesisClassLoader hook failures where resource class files still use obfuscated names.
2026-11-07 13:51:57 +08:00
xiaozhou233 cfb0ba4a48 Feat: Add world-only rendering and empty input GUI
Gate EventRender2D on shouldRenderLevel; add cross-version empty input screens toggled with M (1.8.9 generated GuiScreen subclass, 26.2 Screen), ClientInput state and debug overlay; add 26.2 compile stubs; move LWJGL2 jar to libraries.
2026-11-07 13:34:52 +08:00
xiaozhou233 715cb0755f Feat: Add 2D GUI shape rendering
- Extend Render2D with rect, gradient, outline, rounded rect, line and scissor primitives\n- Add shared 1.8.9 fixed-function render state for shapes and glyphs\n- Render 1.8.9 rounded rects with triangle fans and framebuffer scissor\n- Submit 26.2 shapes through GuiGraphicsExtractor fill/fillGradient/scissor\n- Assemble 26.2 rounded corners from cached quarter-circle textures\n- Add GUI rendering documentation and extend the debug overlay
2026-11-05 21:28:21 +08:00
xiaozhou233 b9ac9d5a92 Refactor: Clean up font rendering diagnostics
- Remove one-time hook/texture/glyph debug logs\n- Reuse one legacy glyph drawer instead of allocating it per frame\n- Make the font debug overlay opt-in via -Dorangex.debugFont=true\n- Update font port documentation
2026-11-05 20:56:49 +08:00
xiaozhou233 b909a01fe0 Fix: Enable font debug overlay by default
Forgot -Dorangex.debugFont on Forge/Vanilla launchers left the Render2D event without subscribers. Keep the overlay on by default during the porting phase; disable with -Dorangex.debugFont=false.
2026-11-05 20:45:19 +08:00
xiaozhou233 867949967e Fix: Locate Forge GuiIngameForge HUD method by descriptor
Forge 1.8.9 remaps the HUD override to a name that differs between the universal jar (a), SRG runtime (func_175180_a) and MCP (renderGameOverlay). Find the single instance (F)V method instead of hardcoding renderGameOverlay.
2026-11-05 20:42:44 +08:00
xiaozhou233 c8fa1a4c64 Fix: Shade javassist into OrangeX namespace for Forge
Forge 1.8.9's LaunchClassLoader delegates the javassist package to its parent, so the injected jar's unrelocated javassist classes were never found. Relocate javassist.* to cn.xiaozhou233.orangex.shaded.javassist.* so the hook system is self-contained.
2026-11-05 20:34:53 +08:00
xiaozhou233 c3dab97779 Feat: Add cross-version TTF font rendering
- Port stb_truetype rasterizer and bake TTF glyph atlases\n- Add FontRenderer/Render2D API with section colors, shadows and CJK fallback\n- Add 1.8.9 GL11 backend and 26.2 GuiRenderState backend\n- Hook GuiIngame/GuiIngameForge and Gui#extractRenderState for per-frame 2D\n- Bundle Proxima, Noto and Poppins fonts\n- Add render/font documentation
2026-11-05 20:31:32 +08:00
xiaozhou233 6c19985e52 Feat: Add tick hooks and Fabric 26.2 support
- Add ClassHook/HookManager pipeline that patches classes through
  JuiceAgent retransform
- Fire EventTickPre/EventTickPost around Minecraft.runTick
  (1.8.9: runTick()V, 26.2: runTick(Z)V)
- Prepare the javassist ClassPool with OrangeX.jar and imported
  packages, avoiding the vanilla 1.8.8 default-package "cn" class
  collision on qualified names
- Access the JuiceAgent API through the system ClassLoader so
  Fabric's Knot does not load a second copy without native methods
- Document the hook architecture, event bus and troubleshooting
  under docs/
2026-11-05 14:27:31 +08:00
xiaozhou233 40ca99f853 Feat: Support Fabric 26.2 injection
- Expose OrangeX.jar through KnotClassDelegate.addCodeSource for Fabric
- Resolve 26.2 mappings by runtime class visibility instead of loader type
- Keep identity mappings for the current Mojang-named Fabric 26.2 runtime
2026-11-04 23:06:22 +08:00
xiaozhou233 1699df9c5d Feat: Add Minecraft 26.2 wrapper support
- Implement the 26.2 Minecraft wrapper using the private instance field
- Register the 26.2 provider and use identity mappings for Mojang names
- Fix MappingManager fallthrough for the 26.2 case
- Accept Render thread and resolve the game class loader by class visibility
2026-11-04 22:57:15 +08:00
xiaozhou233 0f2d9614e5 Fix: Convert mapping class names to binary names
Mapping files store internal names such as net/minecraft/client/Minecraft, but Class.forName requires binary names. Vanilla worked because its target class name has no slashes; Forge failed with ClassNotFoundException.
2026-11-04 22:37:57 +08:00
xiaozhou233 13c9bb622c Refactor: Add version provider registry to wrapper
- Add WrapperContext, WrapperProvider and WrapperRegistry for version dispatch
- Move the 1.8.9 implementation to internal.v1_8_9 with constructor injection
- Support identity mappings for MCP development environments
- Document the wrapper structure and how to add a Minecraft version
2026-11-04 22:21:55 +08:00
xiaozhou233 8b9dbce0f7 Refactor: Make runtime detection extensible and Java 8 compatible
Split the runtime package into small, single-purpose pieces so new loaders and Minecraft versions can be added by registration instead of editing control flow.

- Add LoaderProbe registry for mod loader detection

- Add VersionSignatureRegistry/VersionSignature and move structural version signatures out of VersionDetector

- Add VersionIdSource list for Forge/NeoForge metadata readers

- Extract ModernVersionDetector and CandidateClassLoaders

- Replace MinecraftVersion's mutable static id with RuntimeInfo.versionId

- Target Java 8 with source/target 1.8 and --release 8 on JDK 9+

- Add docs/adding-minecraft-versions.md
2026-11-04 01:04:50 +08:00
xiaozhou233 789303c665 Refactor: Move Minecraft runtime detection into OrangeX
Move the full runtime package from Loader to OrangeX (cn.xiaozhou233.orangex.runtime), including loader/version detection, probes and utils.

- OrangeX.start() now detects and stores RuntimeInfo, and prints runtime debug info

- Loader keeps only a self-contained GameClassLoaderResolver for bootstrapping the Minecraft ClassLoader; entry flow is otherwise unchanged

- Move gson dependency to OrangeX with shadow relocation; drop it from Loader
2026-11-04 00:45:58 +08:00
xiaozhou233 34fc410a0c Feat: Add default JuiceAgent config
Configure the built-in jar loader to load Loader.jar and call Loader.entry.
2026-10-27 20:12:42 +08:00
xiaozhou233 faa84b14d0 Feat: Add Injector and injection packaging
- Add Injector module, built to out/injector.jar
- Add packageAll chain producing out/injection.zip from out/tmp
- Copy resources and natives into out/tmp with a flat layout
2026-10-27 20:12:37 +08:00
xiaozhou233 60baa8d1ef Refactor: Detect Minecraft runtime in Loader
- Add runtime detection package for class loader, loader type and version
- Probe vanilla, Forge, NeoForge, Fabric and MCP installations
- Read 26.x versions from version.json and support Forge version lookups
- Unify structural probing in MinecraftProbe and use the game class loader for reflection
- Shade gson into the loader jar under a relocated package
- Restore OrangeX injection using the detected class loader
2026-10-27 20:12:31 +08:00
xiaozhou233 fc7a26f051 Feat: Add Minecraft 1.8.8 client module
- Register Minecraft1.8.8 in settings.gradle and .idea/gradle.xml
- Link Minecraft1.8.8 against the 1.8.8 jar, runtime libraries and Loader
- Ignore decompiled src/ and runtime/ directories
- Add start/stop hooks to OrangeX entry point
- Add shared run configurations for packageAll and Start Client
- Drop unused JUnit test blocks from Loader and OrangeX
2026-10-24 16:44:01 +08:00
xiaozhou233 7c644e4d63 Build: Package shaded jars into out/tmp
- Add root packageAll task aggregating Loader and OrangeX shadow jars
- Add cleanOut task so stale artifacts are removed before packaging
- Output fixed-name Loader.jar and OrangeX.jar into out/tmp
- Switch OrangeX Lombok to compileOnly so it is not shaded
2026-10-24 14:01:21 +08:00
xiaozhou233 a7537e9d98 Feat: Add OrangeX core module
- Register OrangeX subproject in settings.gradle
- Add OrangeX build.gradle with Lombok support
- Add OrangeX singleton entry class
2026-10-24 13:54:36 +08:00
xiaozhou233 d39eb63be4 Feat: Add Loader module
Add Loader bootstrap that locates the Minecraft client thread, reuses its ClassLoader, injects OrangeX.jar via JuiceAgent and invokes OrangeX.start().

Also add JuiceAgent-API jar, register the Loader module in settings.gradle and update IDEA project config.
2026-10-23 19:39:26 +08:00
xiaozhou233 f6fa7c2a23 Feat: Add JuiceAgent Natives 2026-10-22 20:43:03 +08:00
xiaozhou233 64de525eef Add Gradle project skeleton and .gitignore
- build.gradle / settings.gradle with base plugin
- Gradle wrapper (8.x) for reproducible builds
- .gitignore for Gradle, IDE and OS artifacts
- IntelliJ IDEA project metadata
2026-10-22 20:36:01 +08:00
xiaozhou233 976b930ed5 Clean commit and add ReadMe 2026-10-22 19:58:14 +08:00