optifabric could not find the optifine jar in the mods folder что делать
There was an error loading Optifabric #316
Comments
Neko32411 commented Jul 15, 2021
I’ve tried everything but it keeps giving me this message even tho i have the folder in my mod folder
The text was updated successfully, but these errors were encountered:
Brawaru commented Jul 15, 2021
i have the folder in my mod folder
What folder in mod folder?
Aside from OptiFabric mod you need to download OptiFine JAR for your Minecraft version from the official OptiFine site and drop it in mods folder too.
codeman1o1 commented Jul 16, 2021
I have the same problem. This is the stack-trace:
java.io.UncheckedIOException: Error transforming C:\Users\karst\AppData\Roaming.minecraft.optifine\OptiFine_1.17.1_HD_U_G9_pre29\Optifine-mod.jar
at me.modmuss50.optifabric.util.ZipUtils.transform(ZipUtils.java:108)
at me.modmuss50.optifabric.mod.OptifineSetup.getRuntime(OptifineSetup.java:128)
at me.modmuss50.optifabric.mod.OptifabricSetup.run(OptifabricSetup.java:41)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at com.chocohead.mm.Plugin.getMixins(Plugin.java:340)
at org.spongepowered.asm.mixin.transformer.PluginHandle.getMixins(PluginHandle.java:128)
at org.spongepowered.asm.mixin.transformer.MixinConfig.postInitialise(MixinConfig.java:667)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.prepareConfigs(MixinProcessor.java:542)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.select(MixinProcessor.java:439)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.checkSelect(MixinProcessor.java:415)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:285)
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:208)
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:178)
at org.spongepowered.asm.mixin.transformer.FabricMixinTransformerProxy.transformClassBytes(FabricMixinTransformerProxy.java:23)
at net.fabricmc.loader.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:162)
at net.fabricmc.loader.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:154)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:466)
at net.fabricmc.loader.util.DefaultLanguageAdapter.create(DefaultLanguageAdapter.java:50)
at net.fabricmc.loader.EntrypointStorage$NewEntry.lambda$getOrCreate$0(EntrypointStorage.java:106)
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1224)
at net.fabricmc.loader.EntrypointStorage$NewEntry.getOrCreate(EntrypointStorage.java:104)
at net.fabricmc.loader.EntrypointStorage.lambda$getEntrypointContainers$1(EntrypointStorage.java:191)
at net.fabricmc.loader.entrypoint.EntrypointContainerImpl.getEntrypoint(EntrypointContainerImpl.java:37)
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke0(EntrypointUtils.java:47)
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke(EntrypointUtils.java:33)
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:143)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28)
Caused by: java.util.zip.ZipException: zip END header not found
at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1587)
at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1441)
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1450)
at java.base/java.util.zip.ZipFile$Source.(ZipFile.java:1263)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1225)
at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:706)
at java.base/java.util.zip.ZipFile.(ZipFile.java:240)
at java.base/java.util.zip.ZipFile.(ZipFile.java:171)
at me.modmuss50.optifabric.util.ZipUtils.transform(ZipUtils.java:135)
at me.modmuss50.optifabric.util.ZipUtils.transform(ZipUtils.java:105)
. 28 more
L33Tech commented Jul 16, 2021
codeman1o1 commented Jul 16, 2021
Thanks! That worked!
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Optifabric could not find the Optifine jar in the mods folder. #99
Comments
NoobieNewb commented Nov 23, 2019 •
I am running MultiMC with Fabric 0.6.4 on Minecraft 1.14.2.
Because of the Minecraft version, I could only run a preview version of Optifine, but I can confirm that it is working properly. I used the launchwrapper tweaker way according to MultiMC’s guide. However, doing this breaks Fabric and I am unable to launch any mods. According to MultiMC’s page, I need to use OptiFabric.
I assume it is simply the way the OptiFabric detects Optifine’s name that needs to be tweaked.
The Optifine’s installer jar is:
Extracting this yields
Renaming the preview file to OptiFine_1.14.2_HD_U_F1_pre10.jar does not help.
Edit: I have some progress. After looking at the source code, I found the snippet of the code that outputs the error message, inside the OptifineVersion.java, in public static File findOptifineJar(),
which lead me to private static JarType getJarType(). Specifically,
JarEntry jarEntry = jarFile.getJarEntry(«net/optifine/Config.class»); // New 1.14.3 location
Editing the optifine jar by copying the Config.class from the root folder to the net/optifine and rezipping it as jar managed to get me to pass the error.
This however, leads me to another error, OptiFabric asks to update the Fabric API.
Using OptiFabric (0.5.2 and 0.6.4) with Fabric API 0.4.1 gets me an error message of
OptiFabric: Render Regions is not supported
and opening a world crashes the game
Using an older OptiFabric(0.2 and 0.3) with the appropriate Fabric API(0.3.0 build 185) leads to invisible blocks with only water, lava, and mobs visible
This is where I got stuck.
The text was updated successfully, but these errors were encountered:
Optifabric could not find the optifine jar in the mods folder что делать
The future of OptiFabric and Recommended alternatives
In 1.15 and 1.16 optifine has been casuing a lot of incompatibilities with a growing number of mods, this is due to the way optifine changes the vanilla code in increasingly invasive and incompatible ways. Fixing these crashes isn’t easy or fun and takes a lot of time and energy that I don’t have.
I have no plans to continue updating OptiFabric going forward, thus with the help of LambdAurora I have compiled a list of mods that replace and supersede Optifine:
Sodium is a free and open source fabric mod made by JellySquid that drastically increases the performance of Minecraft. Sodium utilises modern rendering techniques along with a range of other optimisations. More more information can be found on the download page linked.
Other recommended mods
Canvas focuses the use of shaders to improve the visual appearance of the game along with providing performance improvements. (Incompatible with Sodium)
These 3 mods are each a great replacement to optifine’s much loved zoom feature. They provide more options than optifine’s zoom functionality. (You only need to install one)
Colormatic provides support for resource packs that use Optifine’s custom color features.
LambDynamicLights add dynamic lights to Minecraft similar to Optifine’s.
motioNO is a client only mod that prevents Minecraft from changing the FOV when sprinting.
Lithium provides a great improvement to server performance while Phosphor targets lighting performance. Both mods can be installed on the client or the server and are also made by Jelly Squid.
If you need help installing any of these mods feel free to ask in the fabric discord server in the player-support channel. If you know of any mods that should be showcased here please get in contact with me.
Note: This project is not related or supported by either Fabric or Optifine.
Note: This project does not contain Optifine, you must download it separately!
After installing fabric for 1.15.2, you will need to place the OptiFabric mod jar as well as the optifine installer in the mods folder.
Fabric Loader should be the latest version from the Fabric Website
If you need more help you can read a more detailed guide here
If you happen to find an issue and you believe it is to do with OptiFabric and not Optifine or a mod please open an issue here
Add the following to your build.gradle
Put the standard Optifine jar in /run/mods
Feel free to open a PR with more screenshots.
This would not have been possible without Chocohead’s Fabric-ASM.
[Crash] Adding Optifine causes Minecraft to crash on load #5665
Comments
Merung-Kelsith commented May 23, 2021
Description of Issue
Running All the Mods 6 modpack in Minecraft 1.16.5, when I add Optifine_1.16.5_HD_U_G8.jar to the mods directory on my client the game crashes on load. It crashes before it gets to the Minecraft title screen with «The mod file
Optifine_1.16.5_HD_U_G8.jar has mods that were not found.» When I remove Optifine, Minecraft runs with no issues.
A friend that is on my server, with the exact same mods, can run Optifine with no issues. He is on Windows, I am running Linux (KUbuntu 20.10)
Steps to Reproduce
Add Optifine to mods directory
OptiFine Version
Installation Method
Dropped the Optifine jar into my mods folder
Fabric/Forge Version
1.16.5-forge-36.1.24 (I have tried 36.1.0, 36.1.12, 36.1.16, 36.1.18 and 36.1.24)
Other Installed Mods
Log Files/Crash Reports
F3 Debug Screenshot
Cannot get in game for debug screenshot
Prior Testing
If you’ve installed using Forge/Fabric:
Additional Information
In the log files, there are 2 things that I am seeing missing:
[23May2021 13:36:25.439] [Render thread/WARN] [net.minecraft.client.renderer.texture.TextureManager/]: Failed to load texture: allthetweaks:textures/gui/title/background.0.png
java.io.FileNotFoundException: allthetweaks:textures/gui/title/background.0.png
[23May2021 13:36:25.479] [Render thread/WARN] [net.minecraft.client.renderer.texture.TextureManager/]: Failed to load texture: allthetweaks:textures/gui/title/mojangstudios_drunk.png
java.io.FileNotFoundException: allthetweaks:textures/gui/title/mojangstudios_drunk.png
The text was updated successfully, but these errors were encountered:
Cant find Optifine H1 pre2 jar #374
Comments
dbrighthd commented Sep 21, 2021
I assume this is because the file locations were changed in order to work with forge
The text was updated successfully, but these errors were encountered:
EmilieFox commented Sep 21, 2021 •
Instructions posted by sp614x. This is for jarmods but it may help here:
This is only applicable for versions beyond H1_pre2
EDIT: Doesn’t seem to help with Optifabric but helps with jarmods.
sp614x commented Sep 21, 2021
R00tB33rMan commented Sep 22, 2021 •
I assume this is because the file locations were changed in order to work with forge
I’ve implemented my fix and it works flawlessly with the latest public OptiFabric build.
Here are the steps:
From there, everything should work in accordance with your expectations.
Obviously, rename from «.zip» to «.jar».
LittKingLoser commented Oct 4, 2021
I assume this is because the file locations were changed in order to work with forge
I’ve implemented my fix and it works flawlessly with the latest public OptiFabric build.
Here are the steps:
From there, everything should work in accordance with your expectations.
Obviously, rename from «.zip» to «.jar».
this doesn’t work for me, it has the same problem or it’ll say it’s an unexpected error and won’t load
ZekerZhayard commented Oct 4, 2021
@LittKingLoser it seems your optifine and optifabric jar are not in mods folder? I can’t see them in your screenshot
LittKingLoser commented Oct 4, 2021
@LittKingLoser it seems your optifine and optifabric jar are not in mods folder? I can’t see them in your screenshot
they’re in the mod folder
LittKingLoser commented Oct 4, 2021
@LittKingLoser it seems your optifine and optifabric jar are not in mods folder? I can’t see them in your screenshot
they’re in the mod folder
i just realized i forgot to add them back
Neubulae commented Oct 4, 2021
@LittKingLoser it seems your optifine and optifabric jar are not in mods folder? I can’t see them in your screenshot
they’re in the mod folder
i just realized i forgot to add them back
LittKingLoser commented Oct 4, 2021
@LittKingLoser it seems your optifine and optifabric jar are not in mods folder? I can’t see them in your screenshot
they’re in the mod folder
i just realized i forgot to add them back
R00tB33rMan commented Oct 4, 2021
@LittKingLoser it seems your optifine and optifabric jar are not in mods folder? I can’t see them in your screenshot
they’re in the mod folder
i just realized i forgot to add them back
Glad you got that sorted! Just pushed the latest pre-release in here.
LittKingLoser commented Oct 6, 2021
@LittKingLoser it seems your optifine and optifabric jar are not in mods folder? I can’t see them in your screenshot
they’re in the mod folder
i just realized i forgot to add them back
Glad you got that sorted! Just pushed the latest pre-release in here.
i never fixed it life hurts
DuskMC commented Oct 18, 2021
I assume this is because the file locations were changed in order to work with forge
I’ve implemented my fix and it works flawlessly with the latest public OptiFabric build.
Here are the steps:
From there, everything should work in accordance with your expectations.
Obviously, rename from «.zip» to «.jar».
Thank u so much, now i can finally use optifine on fabric! but it is only on optifine H1 pre 5, but for me this is good enough
Zerphim commented Oct 24, 2021 •
I had the same issue where it could not find the Optifine jar file and for me the resolution was to use OptiFine_1.17.1_HD_U_G9 as any of the H1 previews would make my game crash instantly.
Also it appears that Optifabric 1.11.20 is not compatible with Lithium mod.
As an idea, it may be worth just adding the skeleton for the fabric mods [fabric API, Cloth Config API, modmenu, Architectury API] alongside Optifine and Optifabric and afterwards slowly adding the other fabric mods in order to see if maybe one of the mods may not be compatible if the game crashes instantly when opening it.