ChloeDawn / BackpackBaubles

A mod for Minecraft that allows for Quark Oddities' backpack to be equipped in Baubles' body slot
0 stars 0 forks source link

Crashes game after installation with/without mod actually installed. #5

Open ThatKid1351 opened 4 years ago

ThatKid1351 commented 4 years ago

If that title was confusing, the game crashes randomly with this message: "The game crashed whilst initializing game Error: java.lang.NoClassDefFoundError: dev/sapphic/backpackbaubles/client/BackpackLayer".

After receiving this message, I am unable to launch the game at all, even after removing the mod, the baubles mod, or any other mods compatible with baubles mod. Even if there is a simple fix to this, can you make sure these files get properly removed so the game isn't looking for them after the mod is removed from a twitch instance? This is a very convenient mod, great idea and I did get to try it out in single-player for a few minutes. Great concept, just needs a few tweaks on the technical side.

For clarification, this crash is involving build 0.2.0, not any previous build.

Crash - https://pastebin.com/nivv4uC5

ThatKid1351 commented 4 years ago

From what I can gather about other mods causing the same problem, it seems to be corrupting some part of the modpack. Curse's "repair instance" feature doesn't work either.

ChloeDawn commented 4 years ago

This is caused by a design issue with Forge's embedded mod system, that I attempt to work around in 0.2.0; however, the workaround requires a bit of manual work if you have used the previous versions. You need to go to the 1.12.2 subdirectory of your mods directory and delete any and all Backpack Baubles core jars. Version 0.2.0 should only be creating one in there that has no version (BackpackBaubles-core.jar), if there are any others there, delete them. It is safe to delete all of them including the one I just mentioned though because Forge will re-extract it from the main mod jar when the game starts.

And to be specific, the crash you are experiencing is from the core mod jar(s) still being present but the main mod jar not being present - the core mod expects the main mod classes to exist.

ThatKid1351 commented 4 years ago

I don't know how you're actually submitting your mods, whether it just be on curse or you have to do some fiddling to get it to work with the twitch/curse launcher, but is it possible you could get the delete button to delete both the base mod AND the core mod? If not, is it possible to code the core mod to disable itself after startup if no base mod .jar can be found? Something tells me that's not how core mods work and I don't even remotely know how to code mods. Anyway, for now I am deciding not to include your mod in my custom instance just out of fear of everything fucking up again and being forced to manually download every mod for an entirely new instance. Again, I think this is a really neat mod and I may end up fooling around with it in an isolated instance just to see if I can manually recover it without the risk. Thank you for looking into my problem.

Garfink commented 4 years ago

I followed your instructions, deleted all the jars from the ./config/1.12.2 directory. your mod correctly installs BackpackBaubles-core.jar and I still get exactly the crash as described above by the OP.

CalaMariGold commented 4 years ago

I'm receiving this crash too.

Kompreya commented 4 years ago

While this isn't a fix for the mod's crash itself, if you are trying to remove this mod entirely from your pack, and find your game is still crashing after removing the mod, check the 1.12.2 folder in your mods folder and remove the backpack baubles core mod from there as well.