Yanny's Stone Age

Yanny's Stone Age

51.3k Downloads

Crash when running with gradlew runClient

EmaMaker opened this issue ยท 4 comments

commented

Describe the bug
I tried cloning the repo to compile the mod myself, when launching with gradlew runClient results in a crash of the mod because
a method from net.minecraft cannot be found. Here's
[00:37:08] [modloading-worker-1/ERROR] [ne.mi.fm.ja.FMLModContainer/LOADING]: Failed to register automatic subscribers. ModID: stone_age, class com.yanny.age.stone.ExampleMod java.lang.NoSuchMethodError: 'net.minecraft.tags.ITag$INamedTag net.minecraft.tags.ItemTags.func_199901_a(java.lang.String)' at com.yanny.ages.api.utils.Tags$Items.tag(Tags.java:22) ~[ages_api:1.16.5-1.2.0] {re:classloading} at com.yanny.ages.api.utils.Tags$Items.<clinit>(Tags.java:15) ~[ages_api:1.16.5-1.2.0] {re:classloading} at com.yanny.age.stone.handlers.LootHandler.<clinit>(LootHandler.java:89) ~[?:?] {re:classloading} at java.lang.Class.forName0(Native Method) ~[?:?] {} at java.lang.Class.forName(Class.java:468) ~[?:?] {} at net.minecraftforge.fml.AutomaticEventSubscriber.lambda$inject$6(AutomaticEventSubscriber.java:75) ~[forge:?] {re:classloading} at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?] {} at net.minecraftforge.fml.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:62) ~[forge:?] {re:classloading} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:91) ~[forge:?] {re:classloading} at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:120) ~[forge:?] {re:classloading} at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1800) [?:?] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1792) [?:?] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?] {} at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) [?:?] {} at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) [?:?] {} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) [?:?] {} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) [?:?] {} [00:37:09] [Render thread/FATAL] [ne.mi.fm.ModLoader/LOADING]: Failed to complete lifecycle event CONSTRUCT, 1 errors found

To Reproduce
Add apply plugin: 'eclipse' inside build.gradle
Run gradlew genEclipseRun
Import project into eclipse
Download latest ages api (1.2.0) from curseforge, import into as a library in project in eclipse
Right click on runClient.launch>Run as an application

Expected behavior
This should load fine, but it instead crashes. I've tried using latest ages api and stone age mod from curseforge in plain minecraft 1.16.5 forge installation (latest installer from files.minecraftforge.ent) and the mod loaded correctly.
I have also tried running AgesApi alone, 1.16 branch of https://github.com/yanny7/AgesApi, with gradlew runClient and it works fine

  • Mod version 1.3.1
  • Minecraft version 1.16.5

Additional context
Tried and got the same error on both Linux and Windows

image
crash-2021-02-14_00.42.07-fml.txt

commented

you need ages api builded for development - obfuscated

commented

you need ages api builded for development - obfuscated

Isn't that built as obfuscated when i run gradlew build in the AgesApi sources?

commented

I run gradle jar I think

commented

That did the trick, thank you