Repository navigation
Add Minecraft 26.3 as a Fabric target on the multi-version layout - #79
AlexMelanFromRingo wants to merge 11 commits into
Conversation
600a95f to
c0d3235
Compare
Adapts the save-wide storage and diagnostic-title corrections from NVIDIA upstream PR NVIDIAGameWorks#79 follow-up 600a95f by Alex Melan. Also preserves this fork's existing 26.3 dimension data and blocks fallback overwrites for unreadable or future-schema files. Signed-off-by: danzrikonew2 <danzrikonew2@gmail.com>
c0d3235 to
95d5b71
Compare
|
Thanks for this, and for splitting the mappings change out into #78 so each can be reviewed on its own. To answer your question directly: 26.3 won't replace 1.21.1 on The exact set of versions we'll support is still being decided, and it will be chosen based on community interest. If you'd like to weigh in, the RTX Remix Discord has a thread for it: https://discord.com/channels/1028444667789967381/1565060125301936169 Please keep the branch, and feel free to switch it to a draft for now. |
|
Could you tag an alpha 26.3 release in your fork and create a jar? |
|
Sure, will do! I'm in Ukraine and we have power outages right now, so I'll build and tag the 26.3 alpha as soon as I'm back at my PC. |
|
@zm-develops Here it is: https://github.com/AlexMelanFromRingo/rtx-remix-minecraft/releases/tag/v0.1.1-26.3-alpha.1 It's an unofficial alpha built from this branch (upstream 0.1.1 ported to 26.3), Windows x64 only. The release notes list the requirements and have one warning: the installer moves an existing official 1.21.1 instance to 26.3, so either back up those worlds or drop the JAR into a separate 26.3 Fabric instance. Work on the port continues. Next I'm moving 26.3 onto the new multi-version layout from #105, so it fits the way upstream now builds several versions. |
The 26.3 Minecraft and Fabric modules begin as copies of their 1.21.1 counterparts, so the following commits show only what 26.3 changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
Three-way merges carry the old-layout 26.3 changes into versions/26.3, keeping the upstream fixes the 1.21.1 copy already has. It does not compile yet; later commits adapt the version-neutral boundaries that the layout introduced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
project-state.json gains Minecraft 26.3 with an experimental Fabric loader on Loom 1.19.3, Fabric Loader 0.20.1 and Fabric API 0.165.0, and Java 25. Loom 1.19 needs Gradle 9.8, which ForgeGradle 6 refuses to run, so a version may now pin its own Gradle under versions.<mc>.gradle. gradlew.bat reads -PmcVersion and runs gradle/target-wrapper.ps1, which writes a wrapper directory for the pin beside the default one. settings.gradle fails a build that runs another Gradle than its target pins. Targets without a pin keep the default wrapper. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
The version-owned adapters that the layout introduced now speak 26.3: SDL windows, the texture-backed main render target, SINGLE_QUADS particle groups, environment attributes for sky and clouds, outline render states, and Fabric API's 26.x names for menus, creative tabs, key mappings, model layers and level render events. The section-capture helper takes 26.3's model sets and fluid wrap, so the mixin stays a thin delegate as on 1.21.1. 26.3 captures terrain from vanilla BlockStateModel parts, so the Fabric renderer API hooks, the model selectors and the loader terrain hooks are gone. renderer-core gains AtlasAnimationForwarder.isActive() for the GPU animation hook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
Since 26.x the stitcher reserves a padding border around every sprite and a sprite's x and y name the border's corner. renderer-core's sprite snapshots gain an optional padding, which the block, particle and entity atlas builders fill from the sprite's edge texels after composing each layer, as vanilla's atlas blit does. The 1.21.1 sources pass none, so their atlases are unchanged. renderer-core also learns the 26.x copper torch and lantern light colours, and the entity texture source names the block-entity atlas that warm-up builds: beds on 1.21.1, chests on 26.3, where beds are block models. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
The copied tests read sources and configs under versions/26.3, expect Java 25 mixin configs without a refmap, find the frame hooks in LevelRendererMixin, and use 26.3's sprite-source loader. The custom model layer test goes with the custom model path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
The Microsoft Launcher ships Java 25 as java-runtime-epsilon, which the runtime probes now try first. A Prism instance records the selected target's Java major on creation and whenever its pack is rewritten, so an instance moved between Minecraft versions keeps a matching one. Adoptium builds no Windows ARM64 JDK 25, so an ARM64 host falls back to the Microsoft Build of OpenJDK, verified against its published SHA-256. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
Fabric API adds submitCustom to vanilla's SubmitNodeCollector, so the shared capture collector is abstract and the Fabric module supplies the concrete class, keeping loader APIs out of the Minecraft module. The architecture test now looks for 26.3's texture-backed main render target in the OpenGL host integration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
With two declared Minecraft versions, a source checkout selected none, so the installer functions the tests load had no loader catalog. Like a Gradle build without -PmcVersion, a checkout now selects the catalog's default version; a release bundle still asks when it carries several. The installer fixtures that stage unqualified mods/<loader> JARs stage the one-version catalog such a release would carry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
a1b4b0f to
07c404f
Compare
|
As promised, the port now sits on the multi-version layout from #105: the branch is rebuilt from current One point needs your view before review: Loom 1.19 needs Gradle 9.8, which ForgeGradle 6 refuses. So a version can pin its own Gradle in The old-layout version of this branch is kept as the fork's |
This brings NVIDIAGameWorks#111 to 26.3. While Remix compiles its shaders it writes nothing, so the shared image still holds the previous host frame, which the composite drew upside down under the next one. GlInterop.copyFromTexture now zeroes the alpha of the frame it copies into the shared image, through GlStateManager so vanilla's cached colour mask stays valid. 26.x has no textured full-screen quad that discards zero alpha, so TextureOverlay copies the image into a render target of its own and blends it onto the main target with vanilla's render-target blit. That blit blends colour by source alpha and keeps the destination alpha, so opaque Remix texels replace vanilla's and an unwritten frame leaves vanilla's untouched. A test fails if a later Minecraft version changes that blend or its shader. 26.3 has no rain refraction pass, so NVIDIAGameWorks#111's shader change has no counterpart here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
This adds Minecraft Java Edition 26.3 as a target on the multi-version, multi-loader layout from #105: one catalog entry,
versions/26.3/minecraftandversions/26.3/fabric. Minecraft 1.21.1 stays the primary target and its Fabric, Forge and NeoForge builds are unchanged. 26.3 is declaredactivewith anexperimentalFabric loader, so the maintainers can decide how far to support it.The branch was rebuilt from current
main(d5f4a4b). The 26.3 changes of the earlier old-layout version of this PR were carried into the new modules by three-way merges, so the upstream fixes since 0.1.1 are in 26.3 too. The first commit copies the 1.21.1 modules unchanged, so the following commits show only what 26.3 changes. The old-layout branch is kept as the tagv0.1.1-26.3-alpha.1in the fork, from which a community alpha was published.A per-target Gradle
Fabric Loom 1.19, the Loom that builds the unobfuscated 26.x, needs Gradle 9.8. ForgeGradle 6 refuses any Gradle 9, which is presumably why #105 pins the wrapper to 8.11.1. A Minecraft version can therefore pin its own Gradle:
project-state.jsongains an optionalversions.<version>.gradlewith a version and its distribution SHA-256. 26.3 pins Gradle 9.8.2; 1.21.1 has no pin and keeps the default wrapper.gradlew.batreads-PmcVersion(quoted or not) and asksgradle/target-wrapper.ps1for the wrapper directory. For a pinned target the script writesgradle/wrapper-<gradle version>/(ignored) with a copy of the wrapper JAR and properties naming the pinned distribution; otherwise it returnsgradle/wrapper.settings.gradlefails a build that runs another Gradle than its target pins, with a message naming the pin.CI, the release workflow and the developer tools all call
gradlew.batwith-PmcVersion, so none of them needed a change. This is the one cross-target design choice here and the obvious one to discuss; moving 1.21.1 Forge to a Gradle 9 ForgeGradle and bumping the shared wrapper would be the alternative.The 26.3 Minecraft module
Minecraft 26.x ships unobfuscated, renders through renderpearl and SDL3, and draws the world through an extract and submit pipeline. The module keeps #105's boundaries and implements them for 26.3:
GlSurface; the main render target is a texture, which the interop attaches to its own framebuffer by DSA; the frame hooks live inLevelRendererMixin.SectionBuildCapturetakes 26.3's model sets and fluid wrap, soSectionBuilderMixinstays a thin delegate as on 1.21.1. Blocks are captured fromBlockStateModelparts, whose layer is per quad, and visibility comes fromLevelExtractor. There is no loader terrain hook on 26.3.RemixSubmitCollectorevaluatesSubmitNodeCollectorsubmits into the capture. Fabric API addssubmitCustomto that interface, so the shared collector is abstract and the Fabric module supplies the concrete class.SpriteSource.SINGLE_QUADSparticle group; the outline fromBlockOutlineRenderState.GlInterop.copyFromTexturezeroes the alpha of the frame it copies into the shared image, throughGlStateManagerso vanilla's cached colour mask stays valid. 26.x has no textured full-screen quad that discards zero alpha, soTextureOverlaycopies the Remix image into a render target of its own and blends it onto the main target with vanilla's render-target blit, which blends colour by source alpha and keeps the destination alpha. A frame Remix has not written leaves vanilla's frame as it is.TextureOverlayBlendTestfails if a later Minecraft version changes that blend or its shader.data/rtx-remix-renderer/zones.datwith migration of a 1.21.1 save's file.The Fabric module registers through Fabric API's 26.x names (menus, creative tabs, key mappings, model layers, level render events). Fabric's renderer API hooks (FRAPI and Indigo) are not ported, because 26.3 capture reads vanilla model parts.
renderer-core
Only Minecraft-neutral additions; 1.21.1 sources pass none of the new values, so their behaviour is unchanged:
SpritePadding).AtlasAnimationForwarder.isActive(), and light colours for the 26.x copper torches and lanterns.Installer
java-runtime-epsilon(Java 25) first, and records the target's Java major in a Prism instance whenever its pack is rewritten.-PmcVersion; a release bundle still asks. The installer test fixtures that stage unqualifiedmods/<loader>JARs now stage the one-version catalog such a release carries.How it was verified
gradlew.bat build test "-PmcVersion=26.3" "-Ploader=fabric": 899 tests pass.gradlew.bat build test "-PmcVersion=1.21.1": Fabric 925, Forge 905 and NeoForge 899 tests pass.tools\rtx.bat check --tests: ruff, ty and 1362 Python tests pass.gradlew.bat package "-PmcVersion=26.3" "-Ploader=fabric" -Parch=win64builds and verifies the JAR.@Atcall sites,@Shadow,@Accessorand@Invokerdescriptors and handler signatures (67 mixins, 148 injection targets, no problems).Not ported or not verified
🤖 Generated with Claude Code