Sync local working tree: injector, engine, mixin and build updates

Add compatibility notes, resource-provider and hook checks, and payload
bundling script. Remove generated engine mixin stubs, engine target lists
and prebuilt binaries now produced by the build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
aidanandClaude Opus 5.5 committed 2026-11-10 17:27:24 -06:00
1 parent 6d94493e58
commit 05d169a2dd
210 files changed
+1862 -849

No files matched your search

+94
View File
@@ -0,0 +1,94 @@
# Minecraft multi-version compatibility
Implemented targets: every release from **1.21.1 through 1.21.11**. The editor
version remains 1.21.11; Stonecutter 0.9.8 produces eleven exact-version variants
from the shared source tree. Dependencies are pinned in each version directory.
## Verified on Windows x64, JDK 21
- All eleven variants compile, remap, and pass access-widener validation.
- Every variant passes bytecode checks of ClassTransform target classes, shadow
fields, method selectors, callback parameters, and invocation targets.
- Every variant launches a development client, initializes all applicable
modules, loads every engine target, and exits normally.
- The release contains one injector and one native library. The native library
embeds one common JAR and eleven version payloads, selecting the exact target
from Fabric metadata before loading it.
- Native loading tests on 1.21.1 and 1.21.11 select and extract the correct
payload plus the common JAR. These tests run with the mod already present,
so bootstrap deliberately skips installing a second set of hooks.
- Recombining each thin payload with common.jar reproduces every original
remapped JAR entry byte for byte. Exact-version guard and bundle reconstruction
checks pass.
- The split payloads total 46,889,252 bytes, versus 174,127,644 bytes for the
eleven standalone JARs. The Windows release ZIP is 45,882,051 bytes.
| Minecraft | Initialized modules | Loaded engine targets | Startup |
| --- | ---: | ---: | --- |
| 1.21.1 | 117 | 40 | Passed |
| 1.21.2 | 117 | 41 | Passed |
| 1.21.3 | 117 | 41 | Passed |
| 1.21.4 | 117 | 41 | Passed |
| 1.21.5 | 117 | 41 | Passed |
| 1.21.6 | 117 | 41 | Passed |
| 1.21.7 | 117 | 41 | Passed |
| 1.21.8 | 117 | 41 | Passed |
| 1.21.9 | 117 | 42 | Passed |
| 1.21.10 | 117 | 42 | Passed |
| 1.21.11 | 121 | 42 | Passed |
Spear modules are omitted before 1.21.11 because those game versions do not
contain spears. Their manifest and UI entries are omitted as well. Engine
anchors, transformer lists, and named/intermediary target lists are generated
from each version’s compiled annotations and Yarn mappings.
## Runtime limits
The user reports Dawn 1.21.11 working. The checks above are development Fabric
clients; full Dawn injection and world gameplay have not been tested separately
on every patch version. Startup checks do not exercise every module.
The existing nonfatal prestige:inter font JSON warning remains. Previous
isolated-loader injection self-tests had hierarchy-related failures; this work
does not claim to resolve those self-test limitations. ARM64, Linux, and macOS
build scripts are updated but were not built or hardware-tested in this Windows
session.
Only the eleven listed versions are selected. Minecraft 1.21, snapshots, and
unrecognized versions are rejected rather than assigned the nearest payload.
## Build and use
```powershell
./gradlew :1.21.1:build # one standalone Fabric mod
./gradlew bundlePayloads # all variants, checks, shared bundle
./build-injector.ps1 # offline Windows injector ZIP
```
Use JDK 21, Python 3, and Rust with MSVC build tools. Override the Python command
with `build-injector.ps1 -Python <python.exe>` or
`./gradlew bundlePayloads -PpythonExecutable=<python.exe>` when needed.
Extract the complete release ZIP. Keep OpenPrestigeInjector.exe and
prestige_native.dll together, start a supported game, then select its JVM in the
injector. The native release needs no loose payload JARs or runtime downloads.
Use either injection or a standalone Fabric mod, and start a fresh game process
when testing a replacement native release.
Per-version standalone mods are in `versions/<minecraft>/build/libs/`. The
`build/bundle/*.jar` files are split injector inputs and must not be installed
as standalone mods. Per-version development worlds live in separate run
directories.
```powershell
./gradlew validateHooks
python check/bundle_payloads_check.py
python scripts/test_release.py
./gradlew -I check/resource-provider.gradle :1.21.11:resourceProviderCheck
cargo test --manifest-path injector/Cargo.toml -p prestige_native --offline
```
The resource-provider regression retains the generated-class fallback used by
the Dawn fix. Single-target developer builds can explicitly set
`PRESTIGE_PAYLOAD`; normal native builds require the complete bundle and never
pick an arbitrary newest JAR.