Skip to content

Releases

1.4.0 — OptiFine 26.3 HD_U_K3_pre2 支持

Choose a tag to compare

@Kynarain Kynarain released this 01 Dec 12:53

1.4.0: OptiFine 26.3 HD_U_K3_pre2

pre2 carries exactly the same patch set as pre1 (2771 xdelta entries, none added or removed) and the payload still
matches the vanilla 26.3 jar byte for byte: spot-checked classes such as VideoSettingsScreen and GameRenderer produce
the md5 declared in the .md5 sidecar.

Verified end to end on Forge 26.3-66.1.9 with Java 25:

  • OptiForge reports "OptiFine_26.3_HD_U_K3_pre2"
  • 579 classes patched, 0 failures, 765 own classes staged
  • joined a dedicated server through quickPlayMultiplayer and played for about 3.3 minutes
  • 437 log lines, 230 [OptiFine] lines, no crash reports

One thing worth knowing: replacing the OptiFine jar in optiforge/ needs a second launch. Forge finishes mod discovery
before the pack is rebuilt, so the first launch after the swap still loads the previously staged classes jar.

This release also contains the 1.3.2 work that was never published: the 26.x CurseForge files no longer carry the two
SRG mapping tables (26.x is unobfuscated and never reads them), which brings them from 727 KB down to 150 KB with an
empty index.txt. That was aimed at CurseForge''s "obfuscated code or corrupt files" rejection.

Matrix and description now name pre2. All 32 files were rebuilt, are readable and have distinct SHA-256 values.

1.3.1 — 26.x 的 CF 文件瘦身(去掉未使用的映射表)

Choose a tag to compare

@Kynarain Kynarain released this 30 Nov 16:49

1.3.1: drop the unused mapping table from the 26.x CurseForge files

CurseForge still answered "The file failed processing, this could be caused due to obfuscated code or corrupt files" for
the 1.3.0 upload, even with META-INF/mods.toml present, and moved it to manual review again.

The archives are structurally fine (42 classes, no nested jars, strict per-entry size/CRC/magic checks pass). The one
thing that dominates them is optiforge/mappings/1.21-srg-to-official.tsv: 1.89 MB of SRG tokens such as f_12345_ and
m_231_, i.e. exactly the kind of content a scanner can summarise as "obfuscated identifiers".

Minecraft 26.x is unobfuscated, and for those versions the loader reports "mapping table: not applicable" and never opens
the table, so shipping it there was pure risk. The bundle now strips it for 26.x files and also removes the corresponding
"1.21" line from optiforge/mappings/index.txt (index.txt lists table ids, not file names).

Effect: the 26.1.2 / 26.2 / 26.3 files go from 727 KB to 156 KB; the other 29 files are unchanged.
Verified: 26.3 boots with the slimmed file - 221 [OptiFine] lines, 579 classes patched, 0 failures, no crash reports,
and the pack log confirms the mapping table is not applicable rather than missing.

All 32 files stay readable with distinct SHA-256 values.

1.3.0 — 产物带 Forge mod 元数据(解决 CF failed processing)

Choose a tag to compare

@Kynarain Kynarain released this 30 Nov 15:59

1.3.0: Forge mod metadata in every artifact (fixes CurseForge "failed processing")

CurseForge rejected OptiForge-Reforged-1.2.0-mc26.3.jar with "The file failed processing, this could be caused due to
obfuscated code or corrupt files" and moved it to manual review.

The archive itself is fine: a strict check of every entry (declared size vs actual, CRC, class-file magic) passes, and
Java reads all entries. What it lacked was any mod metadata - only META-INF/MANIFEST.MF, the ModLauncher service file and
the optiforge/ folder. A client-mod processor has nothing to identify there, and a jar whose largest payload is a 1.9 MB
mapping table reads as an opaque archive.

Each artifact now carries proper metadata:

  • OptiForge-.jar and -oldml.jar (1.13+): META-INF/mods.toml with modId "optiforge", display name, logo file and
    forge/minecraft dependencies.
  • -legacy.jar and -legacy17.jar (<=1.12.2): mcmod.info, which both Forge 1.8-1.12 and CurseForge understand.

Loading is unchanged: the jars still declare ITransformationService, so Forge keeps treating them as transformation
services rather than mods, and they do not collide with the generated OptiForge--classes.jar. Verified: 26.3 boots
with 221 [OptiFine] lines and no crash reports; 1.20.1 in a real .minecraft layout boots with 118 [OptiFine] lines, 412
classes patched, no duplicate mod.

All 32 per-version files carry the metadata (checked one by one); strict zip validation reports 59 entries and 0 problems.

1.2.0 — 按 SemVer 重新归类 + 命名语义说明

Choose a tag to compare

@Kynarain Kynarain released this 30 Nov 14:24

1.2.0: version number reclassified per SemVer, naming semantics documented

1.1.1 is reissued as 1.2.0, because it carries a new capability (the opt-in GUI click probe with the
optiforge/debug-gui.txt trigger) rather than only fixes. The 1.1.1 tag stays for history but is superseded.

Also documented, because the question "why is the version not SemVer" deserved a straight answer:

  • The code version is a single MAJOR.MINOR.PATCH. New capabilities (a new Minecraft line, a new compatibility layer)
    are minor, behaviour fixes are patch, and artifact naming / loader-protocol changes are major.
  • -oldml / -legacy / -legacy17 are variant markers (which Forge loading mechanism the jar targets), not SemVer
    pre-releases. Strictly they should be build metadata (+oldml), but the artifact names are frozen since 1.0.0 and
    renaming them is a breaking change, so they keep their names and the semantics are now written down in README.
  • The CurseForge files OptiForge-Reforged-+mc.jar use +mc as build metadata, which is standard and
    does not affect precedence; all 32 files share one code version and differ only in the embedded target marker.
  • 1.0.4-1.0.7 overlap with 1.1.0 in content; deleting them is destructive, so they stay published and this note records
    that 1.1.0 and later are the single content baseline.

No functional change relative to 1.1.1. 32 per-version files rebuilt, all readable, all SHA-256 distinct.

1.1.1 — 修复残留 staged jar 导致的 OptiFine 界面点击失效

Choose a tag to compare

@Kynarain Kynarain released this 30 Nov 13:46

1.1.1: remove stale generated OptiForge-*-classes.jar files

Symptom: in OptiFine''s Video Settings on 26.3 every button (Quick Info / Details / Quality / Animations / Performance
/ Vanilla / Other / Done) did nothing.

What the click path looked like after inspection: IGuiScreenOF.mouseClicked is an interface default method, no class in
the hierarchy overrides it (Screen, Forge''s Screen and OptionsSubScreen do not), the method body is byte-identical in
OptiFine 26.2 and 26.3, and the buttons are registered through addRenderableWidget so they are in children(). In short,
the dispatch itself was fine.

Root cause: after upgrading, the instance''s mods/ folder still contained the staged jar from the previous OptiForge
version (OptiForge-1.0.6-classes.jar) next to the current one. OptiFine''s own GUI/renderer classes were loaded from the
stale jar while the patched game classes came from the current pack, so the two halves disagreed: the screen rendered but
clicks went nowhere. Cleaning mods/ and rebuilding the pack fixed it.

Fix: when staging the generated classes jar, OptiForge now deletes every other mods/OptiForge-*-classes.jar and records
what it removed in optiforge/diagnose.txt.

Kept from the investigation: an opt-in GUI click probe. With optiforge/debug-gui.txt present (or
-Doptiforge.debugGui=true) the probe is compiled into IGuiScreenOF.mouseClicked and appends one line per click to
optiforge/gui-debug.txt - PCL does not capture mod stdout into latest.log, so a file is the reliable channel.

32 per-version files, all readable and SHA-256 distinct.

1.1.0 — OptiFine 26.3 支持(含 1.0.4–1.0.7 的全部内容)

Choose a tag to compare

@Kynarain Kynarain released this 30 Nov 12:28

1.1.0: OptiFine 26.3 support (renumbered from the 1.0.4-1.0.7 patch series)

Versioning correction: the base-jar selection, the OptiFine 26.3 support and the own-class compat pass are new
capabilities, so they belong in a minor release rather than a series of patches. 1.1.0 contains everything that
1.0.4 through 1.0.7 shipped; the older tags stay published so nothing breaks, they just no longer receive content.

What is in 1.1.0

  • OptiFine 26.3 (preview_OptiFine_26.3_HD_U_K3_pre1) verified: Forge 26.3-66.1.9, Java 25, 579 classes patched,
    222 [OptiFine] lines, in-world on a dedicated server, 0 crash reports. Files: +mc26.3.
  • OptiFine 26.2 K2_pre5 and 26.1.2 K1_pre2 verified in a world as well.
  • Base jar chosen per era: 26.x patches the unobfuscated vanilla jar, 1.17-1.21 patch the launcher profile jar
    (versions//.jar), which is what keeps that line's access transformers and fixes the 1.21.x
    IllegalAccessError on RenderPipelines.GUI_TEXTURED_SNIPPET.
  • Access-transformer grants also match the readable name Forge writes in the comment, so fields missing from the
    bundled mapping table still get widened.
  • Own classes staged into the generated mod jar now go through the compat pass. That is what fixes OptiFine 26.3
    calling Path.toFile() on a jar-backed resource pack (UnsupportedOperationException in ResUtils).
  • Custom profile names resolve: when --version is not shaped "-forge-", the versions are read from the
    version json (inheritsFrom plus the forge library coordinate).
  • 26.x on a JVM other than 25 now logs an accurate warning (Java 27 does run 26.3; the one fatal hs_err seen came
    from -XX:+UseZGC -XX:+UseCompactObjectHeaders).

32 per-version files, all readable and all SHA-256 distinct.

1.0.7 — 修正 26.x 的 Java 版本提示

Choose a tag to compare

@Kynarain Kynarain released this 30 Nov 12:16

1.0.7: correct the 26.x Java warning

The previous warning said a 26.x line needs Java 25. That was too strong: a newer JVM does run older bytecode, and
measured here Java 27 starts 26.3 and joins a world.

Java 27, no extra flags -> world joined, 229 [OptiFine] lines, 0 crash reports, no hs_err
Java 27 + -XX:+UseZGC -XX:+UseCompactObjectHeaders -> world joined, 253 [OptiFine] lines, 0 crash reports, no hs_err

The one fatal crash reported (hs_err_pid8020.log) was a JVM internals failure -
EXCEPTION_ACCESS_VIOLATION at StubRoutines::jbyte_disjoint_arraycopy_stub on a Worker thread - with
-Xmx6144m -XX:+UseZGC -XX:+UseCompactObjectHeaders in the command line. Both of those are experimental JVM
features, so it is a JVM bug in an experimental configuration, not an incompatibility with Minecraft 26.3, and it is
probabilistic (not reproduced in ~4.5 minutes here).

The warning now reads: Minecraft 26.x targets Java 25, newer JVMs do run it, and if an hs_err crash appears, drop the
experimental flags or use a Java 25 runtime.

Nothing else changed; 32 per-version files rebuilt as 1.0.7.

1.0.6 — 26.x 的 Java 25 版本提示

Choose a tag to compare

@Kynarain Kynarain released this 29 Nov 23:08

1.0.6: warn when a 26.x line does not run on Java 25

A user launch of 26.3-Forge-pretest via PCL failed with a JVM fatal error, not a Java exception:

EXCEPTION_ACCESS_VIOLATION at StubRoutines::jbyte_disjoint_arraycopy_stub
JRE version: Java 27.0+35, UseZGC=true, UseCompactObjectHeaders=true

The game started and entered a singleplayer world on Java 27, then the JVM died natively after about four minutes.
Minecraft 26.x targets Java 25; the same client runs cleanly on Java 25 (verified in-world for several minutes).

JarGuide now reports this plainly: on a 26.x line with a JVM other than 25 it logs

[OptiForge] WARNING: Minecraft 26.3 runs on Java 25 but this JVM is Java 27 - 26.x on newer JVMs has crashed
natively (Java 27 with -XX:+UseZGC -XX:+UseCompactObjectHeaders), so point the launcher at a Java 25 runtime

Also re-checked: the bug is configuration only; nothing in OptiForge or OptiFine is involved.

1.0.5 — OptiFine 26.3 (K3_pre1) 支持

Choose a tag to compare

@Kynarain Kynarain released this 29 Nov 22:52

1.0.5: OptiFine 26.3 (K3_pre1) support, and custom profile names

OptiFine has published a 26.3 build (still "Forge N/A"): preview_OptiFine_26.3_HD_U_K3_pre1.jar, with Forge
26.3-66.1.9. Verified in a world: client joined a Forge 26.3 dedicated server, 222 [OptiFine] log lines, 0 crash
reports, 579 classes patched.

Fix that made 26.3 work: OptiFine 26.3 resolves every resource-pack root to a File, and a mod pack is jar-backed, so
Path.toFile() threw UnsupportedOperationException inside net.optifine.util.ResUtils during the first resource reload.
CompatFixes now rewrites that call to a helper that returns null for non-default filesystems (the method already
treats a null File as "nothing in this pack"), and - new - the compat pass also runs over OptiFine's own classes when
they are staged into the generated mod jar. Own classes had never been touched before, which is why the first attempt
looked ineffective.

Also fixed: a launcher profile whose id is not shaped like "-forge-" (for example 26.3-Forge-pretest) used
to degrade to "Minecraft " and fail to find the base jar. RuntimeInfo now falls back to the version json
(inheritsFrom plus the net.minecraftforge:forge:- coordinate), searching --gameDir, its parents,
versions// and %APPDATA%.minecraft.

Install helper: tools/install-official-263.ps1 builds versions/26.3-Forge-pretest in the official launcher folder
(profile json, mods/, optiforge/, every library the profile lists, launcher_profiles.json entry with the bundled
JDK 25). Verified by launching that layout: Minecraft 26.3, Forge 66.1.9, base jar 26.3.jar, 0 crashes.

Files: 32 per-Minecraft-version jars (added +mc26.3, Forge 66.1.9, OptiFine K3_pre1, Java 25); all readable and all
SHA-256 distinct. The four plain artifacts are unchanged in name.

1.0.4 — 基准 jar 按世代选择(支持 26.2 K2_pre5)

Choose a tag to compare

@Kynarain Kynarain released this 25 Oct 08:58

1.0.4: era-aware base jar, so OptiFine 26.2 K2_pre5 works automatically

Three fixes, each measured:

  1. The launcher profile jar (versions/<--version>/.jar) is now a base candidate. It is the correct base for
    1.17-1.21 (an old diagnose recorded "base 1.21.8-forge-58.1.26.jar"); the old discovery only looked at
    forge-*-client.jar and versions//.jar and missed it.
  2. Candidates are ordered by era: 26.x patches the unobfuscated vanilla jar (Forge-binpatched classes make the
    payload produce structurally broken output - javap reports "Bad tag (99)"), every other line prefers the profile
    jar, then the Forge client jar, then vanilla. The payload-MD5 gate that rejected profile/Forge jars is gone.
  3. Mapping and access transformers:
    • index.txt lists two entries, so the "only bundled table" fallback never fired and 1.21.8 reported "mapping
      table: none available"; selection now falls back on a version prefix (1.21.8 -> 1.21) and 26.x never remaps.
    • the bundled table has no f_379621_, but Forge writes the readable name in a comment
      ("... RenderPipelines f_379621_ # GUI_TEXTURED_SNIPPET"); grants now match that name too. Without it
      ForgeRenderTypes$Internal died with IllegalAccessError.

Verified in game (each reached the title screen with an empty crash-reports):

  • 26.2 + OptiFine HD_U_K2_pre5: base 26.2.jar, 571 classes patched, 0 failures, 198-206 [OptiFine] lines.
  • 26.1.2 + HD_U_K1_pre2: base 26.1.2.jar, 566 classes, 0 failures, 189 lines.
  • 1.21.8 + J6_pre13: base 1.21.8-forge-58.1.26.jar, 515 classes, 0 failures, 238 lines, ATs replayed to 35 classes.
  • 1.20.1 + I6: base 1.20.1-forge-47.4.20.jar, 412 classes, 0 failures, 118 lines, ATs replayed to 40 classes.

-Doptiforge.vanilla still forces a specific base, but 26.x no longer needs it. Artifacts unchanged otherwise.