CleanroomMC / Fugue

Dead mods still alive ... in some way.
GNU General Public License v3.0
43 stars 9 forks source link

`Sledge Hammer` mod: `NoClassDefFoundError: io/github/lxgaming/sledgehammer/mixin/forge/fml/common/FMLModContainerAccessor` #16

Closed Krutoy242 closed 5 months ago

Krutoy242 commented 7 months ago

crash-2024-02-11_12.02.38-client.txt

Krutoy242 commented 7 months ago

I made a test - i set Sledge Hammer config for everything =false except this config:

    # BiblioCraft
    bibliocraft {
        # If 'true', fixes AbstractMethodError caused by missing getStackInSlot method
        abstract-stack-in-slot=true
    }

This resulted in crash:

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from BiblioCraft (bibliocraft)
Caused by: java.lang.NoClassDefFoundError: jds/bibliocraft/tileentities/TileEntityFramedChest
    at jds.bibliocraft.BiblioCraft.preInitClient(BiblioCraft.java:192)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
Caused by: java.lang.ClassNotFoundException: jds.bibliocraft.tileentities.TileEntityFramedChest
Caused by: java.lang.NoClassDefFoundError: jds/bibliocraft/tileentities/BiblioTileEntity
Caused by: java.lang.ClassNotFoundException: jds.bibliocraft.tileentities.BiblioTileEntity
ZZZank commented 7 months ago

This resulted in crash:

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from BiblioCraft (bibliocraft)
Caused by: java.lang.NoClassDefFoundError: jds/bibliocraft/tileentities/TileEntityFramedChest
    at jds.bibliocraft.BiblioCraft.preInitClient(BiblioCraft.java:192)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
Caused by: java.lang.ClassNotFoundException: jds.bibliocraft.tileentities.TileEntityFramedChest
Caused by: java.lang.NoClassDefFoundError: jds/bibliocraft/tileentities/BiblioTileEntity
Caused by: java.lang.ClassNotFoundException: jds.bibliocraft.tileentities.BiblioTileEntity

I think the part displayed here might not be complete enough - jds/bibliocraft/tileentities/TileEntityFramedChest is abosolutely defined, as there's source code for it.

According to my experience, when such error happened, you can scroll back a bit in latest.log , and it's very likely to locate a line saying some-mod failing to modify some-class (I dont remember what exactly its format is).

And here, that some-class should be exactly jds/bibliocraft/tileentities/TileEntityFramedChest ,or jds.bibliocraft.tileentities.TileEntityFramedChest, while some-mod should be Sledge Hammer

kappa-maintainer commented 6 months ago

Should have fixed in exp fugue

kappa-maintainer commented 5 months ago

I don't want to deal with this hackery mod for now... A workaround for exp branch is to change mixin jsons in sledgehammer jar's target from @env(DEFAULT) to @env(MOD)

kappa-maintainer commented 5 months ago

Sledgehammer now officially support cleanroom