Croptopia

Croptopia

42M Downloads

[1.21.1] Mod crash a custom modpack

Periam opened this issue ยท 19 comments

commented

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.

latest.log

crash-2025-04-03_12.51.52-client.txt

commented

is there a crash report

commented

I added what I think is the latest one... let me know.

commented

croptopia isn't mentioned as a crash anywhere here?

commented

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

commented

Any update on the issue?

commented

This is a silly question does croptopia has a mod limit?

commented

I can't fix anything when there isn't an error... but i dont have a limit to how many mods you can have

commented

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) [?:?]

commented

thank you i can fix that

commented

Excellent, I will wait for the new version and I hope to fix my problem too...

commented

He forgot to tell you that you need to download EpheroLib, as mentioned in the logs, and everything will work!

commented

The Issue happened with Epherolib installed.

commented

Any update?

commented

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...?

commented

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

commented

Just had this same issue. Installing EpheroLib fixed the crash for me

commented

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.

commented

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 ๐Ÿ˜Š

commented

Hi, you need to go to your minecraft folder, look for you game instance and there is a folder called config and in that folder there is a file called fml.toml.