modmuss50 / OptiFabric

A fabric mod that patches optifine into the game at runtime.
https://www.curseforge.com/minecraft/mc-mods/optifabric
Mozilla Public License 2.0
173 stars 176 forks source link

Fabric doesn't see Optifabric jar (20w27a) #244

Open Stardelis opened 4 years ago

Stardelis commented 4 years ago

I have fabric loader for the snapshot 20w27a, but it game crashes with error that "Optifabric is required" I'm using beta 2. If I delete optifabric from the mod folder - game starts - but there's no optifine image

Rambopro5 commented 4 years ago

Check in your download folder that there isnt another preview json for optifine, thats the one you need to copy to the mod folder

ghost commented 4 years ago

But wait... Does OptiFabric supports 20w27a? I think it doesn't and that may be your problem

Stardelis commented 4 years ago

I have preview optifine pre2. I assume it's latest one

Check in your download folder that there isnt another preview json for optifine, thats the one you need to copy to the mod folder

I have preview_OptiFine_1.16.1_HD_U_G2_pre2 I assume it's the latest one.... It kinda works if I replace it to 1.16, not 20w27a/ Which is 20w28a now

cs127 commented 4 years ago

It doesn't say "Optifabric is required". It actually does see the optifabric jar. If you read carefully, you can see that it says "Optifabric requires minecraft 1.16.1". You CAN remove the minecraft 1.16.1 dependency in the fabric.mod.json inside the optifabric jar, which makes optifabric able to run on 20w27/28, but it will crash, because optifine wasn't designed for 1.16.2.

Stardelis commented 4 years ago

It doesn't say "Optifabric is required". It actually does see the optifabric jar. If you read carefully, you can see that it says "Optifabric requires minecraft 1.16.1". You CAN remove the minecraft 1.16.1 dependency in the fabric.mod.json inside the optifabric jar, which makes optifabric able to run on 20w27/28, but it will crash, because optifine wasn't designed for 1.16.2.

I tried to do what you just said. A deleted all "Dependency", the game launched with an error just like you said. i'm thinking there would be not much difference between 1.16.1 and 20w27a, so. Is it possible to bypass Dependency on optifine. I think I installed it for the snapshot, is dependency in "Optifabric jar" or "Optifine jar"?

cs127 commented 4 years ago

It doesn't say "Optifabric is required". It actually does see the optifabric jar. If you read carefully, you can see that it says "Optifabric requires minecraft 1.16.1". You CAN remove the minecraft 1.16.1 dependency in the fabric.mod.json inside the optifabric jar, which makes optifabric able to run on 20w27/28, but it will crash, because optifine wasn't designed for 1.16.2.

I tried to do what you just said. A deleted all "Dependency", the game launched with an error just like you said. i'm thinking there would be not much difference between 1.16.1 and 20w27a, so. Is it possible to bypass Dependency on optifine. I think I installed it for the snapshot, is dependency in "Optifabric jar" or "Optifine jar"?

As far as I know, optifine won't be able to run on 1.16.2. Removing the dependency might work, but there's a really low chance. This is how you do it: In the fabric.mod.json file inside the optifabric jar, there is a dependency section like this:

  "depends": {
    "fabricloader": "\u003e\u003d0.8.8",
    "minecraft": "1.16.1"
  },

You should remove the "minecraft": "1.16.1" dependency, so that it looks like this:

  "depends": {
    "fabricloader": "\u003e\u003d0.8.8"
  },

That won't cause the dependency error anymore, but again, I'm pretty sure the game will crash, because optifine isn't really a "forwards-comaptible" mod. If it works, it works. If it doesn't, you'll have to wait for the full release of 1.16.2 and optifine for 1.16.2.