Light Overlay (Rift/Forge/Fabric)

Light Overlay (Rift/Forge/Fabric)

37M Downloads

[1.15.2] Crash Failed to create mod instance

shortybsd opened this issue ยท 18 comments

commented

Minecraft crashed upon load.
Failed to create mod instance. ModID: lightoverlay-forge, class me.shedaniel.lightoverlay.LightOverlay
Using correct version of dependency (ClothConfig) for Forge.

Forge Version: 31.1.0
LightOverlay Version: 4.1
ClothConfig Version: 2-2.0 for Forge

Crash Details

commented

Umm did you try the latest version of all dependencies?

commented

Yes for only the one dependency for Forge. If you notice on my original post the dependency version is on that post version 2-2.0. I tried LightOverlay 4.2 for 1.15.2 and it is totally broke as well. Same exact error. What forge version have you tested and developed this mod in?

commented

image
Failed to reproduce, your crash seems to be related to a method not found, which will probably affect not only light overlay, is light overlay the only mod broken?

commented

Try loading it on Forge version 31.1.0 (recommended version). You will see that is the issue as your mod only supports the latest version of Forge. Yes, Light overlay is the only other mod broken. I use recommended version of Forge for my mod development environment as well for any Modpacks I make.

commented

Please, never ever use the recommended version, it is not recommended at all.

commented

The recommended version only mean "oh yeah we haven't released a recommended for a while, let's do it.", also Light Overlay worked on 1.15.1-30.0.51, which is a much older version, something is wrong with your end.

commented

And in your crash report, the line java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.func_71410_x()Lnet/minecraft/client/Minecraft; means that the Minecraft.getInstance() method is not present on your end, there are two possibilities, one, you are on a development environment, with MCP mappings; two, your mapped Minecraft jar is having some issues.

commented

As seen on your logs, you are putting an obf mod jar into the development environment, I haven't had time to look deep into your crash log before.

You are applying mods wrong probably.

commented

Try using forge gradle to remap the jar before launching Minecraft with it.

Light overlay is the only other mod broken

Are you sure? Do you even have other mods except for your own mod in the development environment?

commented

image

Picture of running Light Overlay with a much older Forge version.

commented

Yeah, I have about 5 other mods loaded in dev environment. I design my modpack in another environment but was using a few other mods to test compatibility, was using yours to show my lights :)

commented

If you don't believe try putting JEI in the mods folder and watch it crash.

https://www.curseforge.com/minecraft/mc-mods/jei/download/2866141

commented

JEI is one of my 5 others lol, works fine as my crafting table has JEI support and just tested with it. I will update mappings as will make a new test environment for specifically testing with latest version of forge. Pretty sure that will fix it.

commented

Did you depend on JEI with gradle?

commented

Absolutely

commented

Well that's the difference, I didn't set up a maven for Light Overlay because not a lot of people will depend on it, but you still need to add light overlay with gradle.

commented

If you try adding JEI with mods folder, it would crash.

commented

I am closing this issue.