[1.21.1] Mod crash a custom modpack
Periam opened this issue ยท 19 comments
I was adding a mod to test and the game crashed with an error in croptopia.
This is a modpack to test what crashed, but the only thing that I found is Croptopia error.
Correct, but if I remove it the game works., that is why I presented the latest log file. where there is an entry:
[modloading-worker-0/ERROR][net.neoforged.fml.javafmlmod.FMLModContainer/LOADING]: Failed to create mod instance. ModID: croptopia, class com.epherical.croptopia.CroptopiaMod
I can't fix anything when there isn't an error... but i dont have a limit to how many mods you can have
Ok, can you review this?
Everytime I add a new mod, any mod, the below error happen and the modpack do not start.
I remove Croptopia, and the modpack start.
[15Apr2025 09:25:32.066] [modloading-worker-0/ERROR][net.neoforged.fml.javafmlmod.FMLModContainer/LOADING]: Failed to create mod instance. ModID: croptopia, class com.epherical.croptopia.CroptopiaMod
java.lang.NullPointerException: Cannot invoke "com.epherical.epherolib.CommonPlatform.getRootConfigPath(String)" because "com.epherical.epherolib.CommonPlatform.platform" is null
at TRANSFORMER/[email protected]/com.epherical.epherolib.config.CommonConfig.getConfigPath(CommonConfig.java:150) ~[EpheroLib-1.21.1-NEO-FORGE-1.2.0.jar%231058!/:1.2.0]
at TRANSFORMER/[email protected]/com.epherical.epherolib.config.CommonConfig.loadConfig(CommonConfig.java:57) ~[EpheroLib-1.21.1-NEO-FORGE-1.2.0.jar%231058!/:1.2.0]
at TRANSFORMER/[email protected]/com.epherical.croptopia.CroptopiaMod.(CroptopiaMod.java:132) ~[croptopia_1.21.1_NEO-FORGE-4.1.0.jar%23997!/:?]
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486) ~[?:?]
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:115) ~[loader-4.0.38.jar%23119!/:4.0]
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.lambda$constructMods$3(ModLoader.java:153) ~[loader-4.0.38.jar%23119!/:4.0]
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.lambda$dispatchParallelTask$7(ModLoader.java:231) ~[loader-4.0.38.jar%23119!/:4.0]
at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) [?:?]
at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911) [?:?]
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483) [?:?]
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) [?:?]
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) [?:?]
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) [?:?]
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) [?:?]
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [?:?]
He forgot to tell you that you need to download EpheroLib, as mentioned in the logs, and everything will work!
He forgot to tell you that you need to download EpheroLib, as mentioned in the logs, and everything will work!
that fixed my issue, thanks!
why would it not download epherolib automatically as a required dependency like all other mods though...?
After reviewing Discord, the issue is that the epherolib gets overridden, even when installed.
Zen.iv suggested to a player with a similar issue to add the following in the fml.toml file like this: dependencyOverrides = {croptopia = "+epherolib"}
I think this is a workaround an not a final solution
My issue is not related to any missing dependency, since it is installed, for some unknow reason the game crash if I add any new mod.
Hi, I'm also running into this issue.
Where would I put the work around in? I've tried it in neoforge.mods.toml inside Croptopia, but with no success.
Any help would be greatly appreicated ๐