He/Him, Minecraft modder w/ Java & Kotlin
thedarkcolour / kotlinforforge Goto Github PK
View Code? Open in Web Editor NEWMakes Kotlin forge-friendly.
License: GNU Lesser General Public License v2.1
Makes Kotlin forge-friendly.
License: GNU Lesser General Public License v2.1
He/Him, Minecraft modder w/ Java & Kotlin
when ever I load up the forge client with the kotlineforforge in the mod folder it starts to crash, as well as when i remove the adorn mod from the folder
I have very little experience with Kotlin for Forge or Forge in general, but I'm currently attempting to make an item with custom behavior by creating an object which inherits from Item(Properties())
or whatever properties I want and then declaring, for instance, onitemRightClick
. The file containing the item:
package rous.roustestmod.item
import net.minecraft.item.Item
object TestItem : Item(Properties()) {
// implementing methods here
}
but when I try to register it (in the same way done in the modding skeleton):
val TESTITEM by REGISTRY.registerObject("test_item") {
TestItem
}
it gives me lateinit property value has not been initialized
. What am I doing wrong - is this even the intended way to register new items?
[Architectury Transformer] Architectury Runtime 5.2.61
[Architectury Transformer] Read classpath in 1.251 s
[Architectury Transformer] Listening at C:\Users\Aaron\Documents\MCDEV\Minitect\common\build\devlibs\minitect-1.0.0-dev.jar
[09:56:15] [main/INFO] (Launcher) ModLauncher running: args [--launchTarget, forgeclientuserdev, --version, MOD_DEV, --assetIndex, 1.18.1-1.18, --assetsDir, C:\Users\Aaron\.gradle\caches\fabric-loom\assets, --gameDir, ., --fml.forgeVersion, 39.0.64, --fml.mcVersion, 1.18.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20211210.034407]
[09:56:15] [main/INFO] (Launcher) ModLauncher 9.1.0+9.1.0+main.6690ee51 starting: java version 17.0.1 by Oracle Corporation
[09:56:15] [main/INFO] (mixin) SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/Aaron/.gradle/caches/transforms-3/9e6935665a35f7a393d0a2da1b84366e/transformed/alfd-transformed/mixin-patched-0.8.5.5.jar%2326!/ Service=ModLauncher Env=CLIENT
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file javafmllanguage-1.18.1-39.0.64.jar of type LANGPROVIDER with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@1994665d
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file mclanguage-1.18.1-39.0.64.jar of type LANGPROVIDER with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@1994665d
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file fmlcore-1.18.1-39.0.64.jar of type LIBRARY with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@1994665d
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file forge-1.18.1-39.0.64-minecraft-merged-named.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@1994665d
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file main of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@1994665d
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@1994665d
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file kotlinforforge-1.16.0.jar of type LANGPROVIDER with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file B021be081e0c3-B021be081e0c3.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file Bd7433bc2be85-Bd7433bc2be85.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file Bd711e31049cc-Bd711e31049cc.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file B2e20f83d9414-B2e20f83d9414.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file Bb823ce43b211-Bb823ce43b211.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file B68d30b3a6764-B68d30b3a6764.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file B835e1676ca65-B835e1676ca65.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file 12473737401665767005.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file kotlinforforge-1.16.0.jar of type LANGPROVIDER with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file B021be081e0c3-B021be081e0c3.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file Bd7433bc2be85-Bd7433bc2be85.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file Bd711e31049cc-Bd711e31049cc.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file B2e20f83d9414-B2e20f83d9414.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file Bb823ce43b211-Bb823ce43b211.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file B68d30b3a6764-B68d30b3a6764.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file B835e1676ca65-B835e1676ca65.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
[09:56:16] [main/INFO] (ModDiscoverer) Found mod file 12473737401665767005.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@77ec911
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "net.minecraftforge.forgespi.language.IModFileInfo.moduleName()" because the return value of "net.minecraftforge.forgespi.locating.IModFile.getModFileInfo()" is null
at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.moddiscovery.ModJarMetadata.name(ModJarMetadata.java:55)
at [email protected]/cpw.mods.jarhandling.impl.Jar.name(Jar.java:203)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.ModuleLayerHandler.buildLayer(ModuleLayerHandler.java:69)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.ModuleLayerHandler.buildLayer(ModuleLayerHandler.java:82)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:93)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:77)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:217)
Not sure if this is our repository's fault or not, but it would seem to be that your upgrade to Kotlin 1.4M recently broke our builds, because there are many missing libraries on JCenter for Kotlin 1.4M
You can also see this in our build output here: https://github.com/eln2/eln2/runs/598390874?check_suite_focus=true
Repository here: https://github.com/eln2/eln2/tree/455567f5ebd0116f5473c1f7d2c0c7c68355f1fa
Example of JCenter missing builds of packages for Kotlin 1.4M: https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/
We fixed it on our end by (temporarily) setting the version of your mod to 1.1.0, which uses the old Kotlin 1.3.x
2020-04-18T20:32:35.8372192Z > Configure project :integration-mc1-14
2020-04-18T20:32:35.8373353Z New Dep: net.minecraftforge:forge:1.14.4-28.2.3_mapped_snapshot_20190719-1.14.3
2020-04-18T20:32:42.8405794Z
2020-04-18T20:32:42.8418422Z FAILURE: Build failed with an exception.
2020-04-18T20:32:42.8418968Z
2020-04-18T20:32:42.8422700Z * What went wrong:
2020-04-18T20:32:42.8423710Z Could not determine the dependencies of task ':integration-mc1-14:compileJava'.
2020-04-18T20:32:42.8424334Z > Could not resolve all task dependencies for configuration ':integration-mc1-14:compileClasspath'.
2020-04-18T20:32:42.8446062Z > Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4-M1.
2020-04-18T20:32:42.8446608Z Searched in the following locations:
2020-04-18T20:32:42.8447212Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8448085Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8448681Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8449284Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8457466Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8458207Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8458820Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8462748Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8463340Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8463866Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8473509Z - https://libraries.minecraft.net/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8474088Z Required by:
2020-04-18T20:32:42.8474642Z project :integration-mc1-14
2020-04-18T20:32:42.8475254Z > Could not find org.jetbrains.kotlin:kotlin-stdlib:1.4-M1.
2020-04-18T20:32:42.8475678Z Searched in the following locations:
2020-04-18T20:32:42.8476306Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8477010Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8477707Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8478386Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8479191Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8480846Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8481447Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8481921Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8482479Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8482941Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8483396Z - https://libraries.minecraft.net/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8483622Z Required by:
2020-04-18T20:32:42.8484001Z project :integration-mc1-14 > thedarkcolour:kotlinforforge:1.2.1
2020-04-18T20:32:42.8484361Z > Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4-M1.
2020-04-18T20:32:42.8484535Z Searched in the following locations:
2020-04-18T20:32:42.8485215Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.pom
2020-04-18T20:32:42.8634719Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.jar
2020-04-18T20:32:42.8635435Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.pom
2020-04-18T20:32:42.8635877Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.jar
2020-04-18T20:32:42.8636328Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.pom
2020-04-18T20:32:42.8636779Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.jar
2020-04-18T20:32:42.8637229Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.pom
2020-04-18T20:32:42.8637653Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.jar
2020-04-18T20:32:42.8638077Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.pom
2020-04-18T20:32:42.8638534Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.jar
2020-04-18T20:32:42.8638965Z - https://libraries.minecraft.net/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.jar
2020-04-18T20:32:42.8639135Z Required by:
2020-04-18T20:32:42.8639449Z project :integration-mc1-14 > thedarkcolour:kotlinforforge:1.2.1
2020-04-18T20:32:42.8639858Z > Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4-M1.
2020-04-18T20:32:42.8640001Z Searched in the following locations:
2020-04-18T20:32:42.8640396Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8640805Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8641338Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8641733Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8642141Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8642561Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8642968Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8643353Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8643736Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8644243Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8644586Z - https://libraries.minecraft.net/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8644716Z Required by:
2020-04-18T20:32:42.8645160Z project :integration-mc1-14 > thedarkcolour:kotlinforforge:1.2.1
2020-04-18T20:32:42.8645418Z > Could not find org.jetbrains.kotlin:kotlin-reflect:1.4-M1.
2020-04-18T20:32:42.8645526Z Searched in the following locations:
2020-04-18T20:32:42.8645826Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.pom
2020-04-18T20:32:42.8646143Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.jar
2020-04-18T20:32:42.8646574Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.pom
2020-04-18T20:32:42.8646905Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.jar
2020-04-18T20:32:42.8647429Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.pom
2020-04-18T20:32:42.8647837Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.jar
2020-04-18T20:32:42.8648236Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.pom
2020-04-18T20:32:42.8648609Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.jar
2020-04-18T20:32:42.8648988Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.pom
2020-04-18T20:32:42.8649379Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.jar
2020-04-18T20:32:42.8649760Z - https://libraries.minecraft.net/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.jar
2020-04-18T20:32:42.8649907Z Required by:
2020-04-18T20:32:42.8650197Z project :integration-mc1-14 > thedarkcolour:kotlinforforge:1.2.1
2020-04-18T20:32:42.8650486Z > Could not find org.jetbrains.kotlin:kotlin-stdlib:1.4-M1.
2020-04-18T20:32:42.8650666Z Searched in the following locations:
2020-04-18T20:32:42.8651021Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8651396Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8651775Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8652163Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8652560Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8652960Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8653362Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8653738Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8654112Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8654503Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8654894Z - https://libraries.minecraft.net/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8655045Z Required by:
2020-04-18T20:32:42.8655389Z project :integration-mc1-14 > thedarkcolour:kotlinforforge:1.2.1 > org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.4
2020-04-18T20:32:42.8655750Z project :integration-mc1-14 > thedarkcolour:kotlinforforge:1.2.1 > org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.3.4
2020-04-18T20:32:42.8655828Z
2020-04-18T20:32:42.8655940Z * Try:
2020-04-18T20:32:42.8656298Z Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
2020-04-18T20:32:42.8656381Z
2020-04-18T20:32:42.8656511Z * Get more help at https://help.gradle.org
2020-04-18T20:32:42.8656601Z
2020-04-18T20:32:42.8656708Z BUILD FAILED in 26s
Hi,
i downloaded the new 1.4.0 version of the library and in the SkeletonRepository i noticed the KDeferredRegister use, but when i try to convert my existing blocks to delegates, it show me the error:
kotlin.UninitializedPropertyAccessException: lateinit property value has not been initialized
From what I understand, the slab that refers to the planks, is initialized before the planks themselves.
The library don't register automatically the planks blocks the first time i request it?
Thanks
val blocks = KDeferredRegister(ForgeRegistries.BLOCKS, MoreStuffMod.MODID)
val japCherryPlanks by blocks.register("jap_cherry_planks") {
Block(AbstractBlock.Properties.create(Material.WOOD, MaterialColor.WOOD).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.WOOD))
}
val japCherrySlab by blocks.register("jap_cherry_slab") { SlabBlock(AbstractBlock.Properties.from(japCherryPlanks)) }
So I tried to make a block state data generator, and i called .get() in the data generator provider and it crashed while running the runData task with this:
Caused by: kotlin.UninitializedPropertyAccessException: lateinit property value has not been initialized
[14:20:47] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]: at thedarkcolour.kotlinforforge.forge.ObjectHolderDelegate.get(Forge.kt:271)
[14:20:47] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]: at com.theoparis.lightson.data.client.ModBlockStateProvider.registerBulb(ModBlockStateProvider.kt:25)
[14:20:47] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]: at com.theoparis.lightson.data.client.ModBlockStateProvider.registerStatesAndModels(ModBlockStateProvider.kt:18)
The exception throws in the constructor of KotlinModContainer.
May be, because these commits in Forge: https://pastebin.ubuntu.com/p/XrQhpvsG8Y/
Support Minecraft 1.19.3 with forge 44.1.+
It appears calling FORGE_BUS.post(...)
always returns false because the event bus is never started. Using MinecraftForge.EVENT_BUS.post(...)
works correctly.
Using version 1.7.0 and Forge 1.15.2-31.2.0
I recently was updating mods in my pack and kept running into a clientside crash on startup pointing fingers at Titanium. However, as I tried reading what I could of the errors to see what was being called, I noticed Kotlin and the mods that used it were being called up, I reverted from Kotlin 1.15.0-obf to 1.14.0-obf and the issue cleared up.
Here is a Pastebin with the logs from the console from startup to crash. https://pastebin.com/nqBQY7mh
Please let me know if this is an issue here or if I should create an issue over on the Titanium mod. My assumption is that it's Kotlin possibly due to the fact that I rolled back Kotlin and it worked but it didn't work if I tried rolling back the Titanium update.
The two Titanium versions I was using by the way are
Old: Titanium 1.16.5| 3.2.8.5-19
Newer: Titanium 1.16.5| 3.2.8.5-20
Would you please update KotlinForForge to support latest versions of Forge 1.19.2?
Forge Version: 43.0.2
Hi! I am very new to minecraft modding and am now trying to figure out a way to load my mod as a single jar.
I've learned that you can use jarjar
or shadow jar for mod dependencies but it doesn't seem to work for a language provider such as yours.
Could be please explain me if there is a way to include your jar in a mod so that a user doesn't have to manually download it and place it in the mods folder?
What is the preferred method of doing so?
MC 1.16.5. Forge 36.1.0(3). 262 mods +- Kotlin. All default settings.
Without Kotlin, I create a world and go to it as many times as I want. With Kotlin, I create a world and can't log in later times.
Bad log with Kotlin (I can't log in to world a second time) - https://gist.github.com/kellixon/eac7f1f30970e1803acda3c0f1834143
Good log without Kotlin - https://gist.github.com/kellixon/ea8dd25060e8a951af13531521e5767b
My localpack (zip, only mods) - https://yadi.sk/d/ShAh2B5-_AfBNQ
Server crashes on startup https://bin.bloom.host/dexeremiwa.rb
Sponge states that needed changes were made for 1.17+. Wondering if those changes can be ported to 1.16 as well.
Link to Sponge issue: SpongePowered/Sponge#3642
object ExampleMod {
init {
thedarkcolour.kotlinforforge.forge.MOD_BUS.addListener<FMLCommonSetupEvent> { e ->
// the KotlinEventBus cannot determine the type of this lambda
}
}
}
Hi, was just curious if you have plans to support Forge 1.17.1.
Not having this mod is a bit of a blocker to mod development in Kotlin, since I'm not sure how to shadow Kotlin into my own jars. Thanks!
I have a couple mods that require kotlin for forge to run but whenever i try to run the game with it installed it crashes every time.
I've tried just simply removing the mods that require kotlin but whenever i do that the game crashes as well for some reason.
heres the crash log:
Time: 4/25/21 4:50 PM
Description: Initializing game
java.lang.ExceptionInInitializerError: null
at net.minecraft.client.gui.fonts.FontResourceManager.(SourceFile:48) ~[?:?] {re:classloading}
at net.minecraft.client.Minecraft.(Minecraft.java:451) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:149) [?:?] {re:classloading,pl:runtimedistcleaner:A}
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.16.5-36.1.4.jar:36.1] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$490/3037451.call(Unknown Source) [forge-1.16.5-36.1.4.jar:36.1] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {re:classloading}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {re:classloading}
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at it.unimi.dsi.fastutil.objects.ObjectOpenCustomHashSet.rehash(ObjectOpenCustomHashSet.java:683) ~[fastutil-8.2.1.jar:?] {re:classloading}
at it.unimi.dsi.fastutil.objects.ObjectOpenCustomHashSet.addOrGet(ObjectOpenCustomHashSet.java:360) ~[fastutil-8.2.1.jar:?] {re:classloading}
at net.minecraft.client.renderer.RenderType$Type.func_228676_c_(RenderType.java:1022) ~[?:?] {re:classloading,xf:OptiFine:default}
at net.minecraft.client.renderer.RenderType$Type.access$000(RenderType.java:987) ~[?:?] {re:classloading,xf:OptiFine:default}
at net.minecraft.client.renderer.RenderType.func_228633_a_(RenderType.java:577) ~[?:?] {re:classloading,xf:OptiFine:default,re:mixin}
at net.minecraft.client.renderer.RenderType.lambda$getText$18(RenderType.java:495) ~[?:?] {re:classloading,xf:OptiFine:default,re:mixin}
at net.minecraft.client.renderer.RenderType$$Lambda$10152/2010484538.get(Unknown Source) ~[?:?] {}
at net.minecraft.client.renderer.RenderType.getRenderType(RenderType.java:721) ~[?:?] {re:classloading,xf:OptiFine:default,re:mixin}
at net.minecraft.client.renderer.RenderType.getRenderType(RenderType.java:684) ~[?:?] {re:classloading,xf:OptiFine:default,re:mixin}
at net.minecraft.client.renderer.RenderType.func_228658_l_(RenderType.java:492) ~[?:?] {re:classloading,xf:OptiFine:default,re:mixin}
at net.minecraft.client.gui.fonts.EmptyGlyph.(SourceFile:10) ~[?:?] {re:computing_frames,re:classloading}
at net.minecraft.client.gui.fonts.Font.(Font.java:21) ~[?:?] {re:classloading,xf:OptiFine:default}
... 14 more
-- Head --
Thread: Render thread
Stacktrace:
at net.minecraft.client.gui.fonts.FontResourceManager.(SourceFile:48) ~[?:?] {re:classloading}
at net.minecraft.client.Minecraft.(Minecraft.java:451) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:runtimedistcleaner:A}
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:149) [?:?] {re:classloading,pl:runtimedistcleaner:A}
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.16.5-36.1.4.jar:36.1] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$490/3037451.call(Unknown Source) [forge-1.16.5-36.1.4.jar:36.1] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {re:classloading}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {re:classloading}
Any help would be greatly appreciated
I would like to bring up, once again, the discussion from #5, especially my ( I believe ) unnoticed reply #5 (comment)
My suggestion is to use a permissive license, such as LGPL 2.1/3 or even MIT/Apache/BSD/... in order to give modders the freedom to choose their own license for their creations if they use your library.
Why do I make this suggestion? Well, personally I like to license my mods under very permissive licenses such as the MIT, in order to allow people to freely use it for their projects, without having to worry about licenses too much. At the same time I'd like to use your work in a future project, to make my own life easier, but without restricting the freedom of those that want to base their works on my (future) work :)
Currently your library is under GPL-3.0, which means that anyone who wants to use it needs to license their own mod under GPL-3.0 as well, they cannot choose their own license. Compared to that forge uses the more liberal LGPL, that allows modders to choose a license for their own work freely.
Based on your reply #5 (comment) I believe you actually want the same thing that forge wants: Giving modders freedom, which in turn allows more people to use your library compliantly.
If that is not the case and you chose GPL-3.0 deliberately to make sure people share their own mods under the GPL-3.0, then please ignore this issue.
Finally, thank you for the great work you did with this library, and if I can help clear up any licensing questions feel free to ask!
Sorry if this is dumb issue but I'm not sure what's causing this. I modified the kotlin modding template repository, ran the runData task in intellij idea's gradle tool window and it gave this and crashed:
[19:40:38] [modloading-worker-4/ERROR] [th.ko.LoggerKt/LOADING]: Failed to create mod instance. ModID: lightson, class example.examplemod.LightsOnMod
kotlin.jvm.KotlinReflectionNotSupportedError: Kotlin reflection implementation is not found at runtime. Make sure you have kotlin-reflect.jar in the classpath
at kotlin.jvm.internal.ClassReference.error(ClassReference.kt:84) ~[kotlin-stdlib-1.4.10.jar:1.4.10-release-411 (1.4.10)] {re:classloading}
at kotlin.jvm.internal.ClassReference.getObjectInstance(ClassReference.kt:30) ~[kotlin-stdlib-1.4.10.jar:1.4.10-release-411 (1.4.10)] {re:classloading}
at thedarkcolour.kotlinforforge.KotlinModContainer.constructMod(KotlinModContainer.kt:152) ~[?:1.6.2] {re:classloading}
Crash log:
---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!
Time: 07/03/22 01:47
Description: Mod loading error has occurred
java.lang.Exception: Mod Loading has failed
at net.minecraftforge.fml.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:85) [?:?] {re:classloading}
at net.minecraftforge.fml.client.ClientModLoader.completeModLoading(ClientModLoader.java:188) [?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.lambda$null$1(Minecraft.java:508) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft$$Lambda$3610/431300939.run(Unknown Source) [?:?] {}
at net.minecraft.util.Util.func_215077_a(Util.java:320) [?:?] {re:classloading}
at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:504) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft$$Lambda$3389/72187428.accept(Unknown Source) [?:?] {}
at net.minecraft.client.gui.ResourceLoadProgressGui.func_230430_a_(ResourceLoadProgressGui.java:113) [?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:481) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:977) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:184) [?:?] {re:classloading,pl:runtimedistcleaner:A}
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.16.5-36.2.29.jar:36.2] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$446/182949133.call(Unknown Source) [forge-1.16.5-36.2.29.jar:36.2] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?] {}
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at net.minecraftforge.fml.CrashReportExtender.lambda$dumpModLoadingCrashReport$7(CrashReportExtender.java:88) ~[?:?] {re:classloading}
-- NO MOD INFO AVAILABLE --
Details:
Mod File: NO FILE INFO
Failure message: Mod File BetterFoliage-2.7.1-Forge-1.16.5.jar needs language provider kotlinforforge:1 or above to load
We have found none
Mod Version: NO MOD INFO AVAILABLE
Mod Issue URL: NOT PROVIDED
Exception message: MISSING EXCEPTION MESSAGE
Stacktrace:
at net.minecraftforge.fml.CrashReportExtender.lambda$dumpModLoadingCrashReport$7(CrashReportExtender.java:88) ~[?:?] {re:classloading}
at net.minecraftforge.fml.CrashReportExtender$$Lambda$3640/154923232.accept(Unknown Source) ~[?:?] {}
at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_51] {}
at net.minecraftforge.fml.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:86) [?:?] {re:classloading}
at net.minecraftforge.fml.client.ClientModLoader.completeModLoading(ClientModLoader.java:188) [?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.lambda$null$1(Minecraft.java:508) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft$$Lambda$3610/431300939.run(Unknown Source) [?:?] {}
at net.minecraft.util.Util.func_215077_a(Util.java:320) [?:?] {re:classloading}
at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:504) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft$$Lambda$3389/72187428.accept(Unknown Source) [?:?] {}
at net.minecraft.client.gui.ResourceLoadProgressGui.func_230430_a_(ResourceLoadProgressGui.java:113) [?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:481) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:977) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:184) [?:?] {re:classloading,pl:runtimedistcleaner:A}
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.16.5-36.2.29.jar:36.2] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$446/182949133.call(Unknown Source) [forge-1.16.5-36.2.29.jar:36.2] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?] {}
-- System Details --
Details:
Minecraft Version: 1.16.5
Minecraft Version ID: 1.16.5
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 6069530024 bytes (5788 MB) / 7348420608 bytes (7008 MB) up to 8589934592 bytes (8192 MB)
CPUs: 4
JVM Flags: 10 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -XX:+IgnoreUnrecognizedVMOptions -Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
ModLauncher: 8.1.3+8.1.3+main-8.1.x.c94d18ec
ModLauncher launch target: fmlclient
ModLauncher naming: srg
ModLauncher services:
/mixin-0.8.4.jar mixin PLUGINSERVICE
/eventbus-4.0.0.jar eventbus PLUGINSERVICE
/forge-1.16.5-36.2.29.jar object_holder_definalize PLUGINSERVICE
/forge-1.16.5-36.2.29.jar runtime_enum_extender PLUGINSERVICE
/accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE
/forge-1.16.5-36.2.29.jar capability_inject_definalize PLUGINSERVICE
/forge-1.16.5-36.2.29.jar runtimedistcleaner PLUGINSERVICE
/mixin-0.8.4.jar mixin TRANSFORMATIONSERVICE
/forge-1.16.5-36.2.29.jar fml TRANSFORMATIONSERVICE
FML: 36.2
Forge: net.minecraftforge:36.2.29
FML Language Providers:
[email protected]
minecraft@1
Mod List:
forge-1.16.5-36.2.29-client.jar |Minecraft |minecraft |1.16.5 |NONE |Manifest: NOSIGNATURE
forge-1.16.5-36.2.29-universal.jar |Forge |forge |36.2.29 |NONE |Manifest: 22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90
https://modrinth.com/mod/kotlin-for-forge/versions only has 1.8.0 and 1.9.0
When I place Kotlin for forge and croptopia in the same modpack game crashes immediately on startup.
Trying to use v1.9.0 as a dependency in Gradle, but it seems you have the wrong version defined for it:
Execution failed for task ':compileKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve thedarkcolour:kotlinforforge:1.9.0.
Required by:
project :
> Could not resolve thedarkcolour:kotlinforforge:1.9.0.
> inconsistent module metadata found. Descriptor: thedarkcolour:kotlinforforge:1.8.0 Errors: bad version: expected='1.9.0' found='1.8.0'
The minecraftLibrary
dependency configuration and kff-3.7.1.gradle both employ lazyToken to append files to runs' classpath. However, lazyToken takes only one supplier. Thus in practice, one will always take over another's result(in my case, my dependencies are overwritten by kotlin runtimes in the classpath file). Is there any way to solve this?
So I looked at past issues and was able to fix all the issues from the client side but on the server side KotlinForForge doesn't seem to work (mod language) for better foliage. Here is the log (all the other issues are fine, it's just the final lines, Better Foliage, that crash the server):
https://mclo.gs/SABovyS
I don't know where I went wrong, but when I try loading a block with BlockState HorizontalDirectionalBlock.FACING, the game crashes and tells me "Cannot invoke "net.minecraft.world.level.block.state.properties.Property.getName()" because "pProperty" is null".
The KFF version is 3.6.0. Using parchment mappings.
Hey,
I am trying to create a custom entity and what I've gathered is that most mods register the renderers from FMLClientSetupEvent
using RenderingRegistry.registerEntityRenderingHandler
. I tried using the FORGE_BUS
and passing it a function that takes FMLClientSetupEvent
as a parameter, but this method never triggeres.
Here is a shortened version onf my main class. Right now I am just trying to get the onClientSetup method to trigger.
object Main {
val logger: Logger = LogManager.getLogger()
init {
FORGE_BUS.addListener(::setupClient)
}
private fun setupClient(event: FMLClientSetupEvent) {
logger.log(Level.INFO, "Client setup called!")
}
}
So my question is that how can I trigger this event, and if I can't do you have any suggestions where I could register my entity renders for the client side?
I don't exactly understand why these messages are here, and why they're not toggleable (without disabling all other debug messages, or doing some fancy log4j2 filtering). Wouldn't it at least be sensible to make them trace rather than debug?
Hello,
I noticed that you are not using the recently updated version of the Shadow plugin that is patched for the log4j CVE. It doesn't seem to impact the security of the mod jar itself, because you don't shadow in log4j into your jars (at least, not that I could see), but for completeness you may want to update to Shadow 7.1.1.
https://github.com/johnrengelman/shadow/releases/tag/7.1.1
I'd submit a PR if it was a simple version bump, but it looks like there are possibly breaking changes between shadow 6 and shadow 7, so I don't have the time right now to actually test that.
Fantastic mod, btw. Thanks for making it :)
No report is given. Logs are the only thing I can give.
Mod info/Versions may be in here. latest.log
https://github.com/Windmill-City/IngameIME-Minecraft/issues/4
java.lang.NoClassDefFoundError: kotlinx/coroutines/GlobalScope
Using kotlinforforge-1.11.0
Compared 1.11.0 to 1.10.0, I found the latest version missing some class in kotlinx package
My game crashes immediately on start-up. I narrowed it down to Kotlin for Forge. Disabling Kotlin for Forge lets the game boot normally, aside from not booting because of the mods that require Kotlin for Forge.
Exception in thread "main"
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
No crash report is generated, and I couldn’t find anything relevant in the log.
latest.log = https://pastebin.com/raw/EX551YSc
Console errors: https://pastebin.com/raw/UpFTZ0tb
The version being used : 3.9.0
I keep getting this error
[14:14:57] [Worker-Main-4/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'armourandtoolsmod:blockstates/ruby_ore.json' missing model for variant: 'armourandtoolsmod:ruby_ore#facing=north'
[14:14:57] [Worker-Main-4/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'armourandtoolsmod:blockstates/ruby_ore.json' missing model for variant: 'armourandtoolsmod:ruby_ore#facing=west'
[14:14:57] [Worker-Main-4/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'armourandtoolsmod:blockstates/ruby_ore.json' missing model for variant: 'armourandtoolsmod:ruby_ore#facing=south'
[14:14:57] [Worker-Main-4/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'armourandtoolsmod:blockstates/ruby_ore.json' missing model for variant: 'armourandtoolsmod:ruby_ore#facing=east'
When I used this type of texture with forge in Java it worked. I have no idea why it is not working.
class ModBlockStateProvider(output: PackOutput, exFileHelper: ExistingFileHelper) :
BlockStateProvider(output, MOD_ID, exFileHelper) {
override fun getName(): String {
return "Armour and Tools Mod Blockstates"
}
override fun registerStatesAndModels() {
normalBlock(BlockInit.RUBY_ORE.get())
}
private fun normalBlock(block: Block) {
val name: ResourceLocation? = ForgeRegistries.BLOCKS.getKey(block)
if (name == null) {
getLogger().error("Could not find block key for " + block.name)
return
}
val builder = models().withExistingParent(name.path, "block/cube_all")
builder.texture("all", modLoc("block/" + name.path))
simpleBlock(block, builder)
simpleBlockItem(block, builder)
}
}
{
"variants": {
"": {
"model": "armourandtoolsmod:block/ruby_ore"
}
}
}
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "armourandtoolsmod:block/ruby_ore"
}
}
{
"parent": "armourandtoolsmod:block/ruby_ore"
}
The website shows "1.7.0" for both the 1.8.0 and 1.9.0 versions:
KotlinForForge/thedarkcolour/kotlinforforge/web.html
Lines 26 to 27 in bc4c6c9
org.jetbrains:annotations
is a dependency of kotlin-stdlib
and was contained in previous versions of KotlinForForge. This is a critical regression for mods that depended on these classes being present at runtime.
There is a little typo in the description of the mod (mod.toml)
Instead of "Makes kotlin forge-friendly" there is "Makes kotiln forge-friendly"
Full log: https://gist.github.com/Juuxel/f2f3eef40925bae5400ee214bf58398e
Relevant part of stacktrace:
Caused by: java.lang.NoSuchFieldError: SCAN
at thedarkcolour.kotlinforforge.KotlinLanguageProvider.getFileVisitor$lambda-2(KotlinLanguageProvider.kt:32) ~[kotlinforforge-3.0.0.jar%23110!/:3.0.0] {}
at net.minecraftforge.fml.loading.moddiscovery.Scanner.lambda$scan$1(Scanner.java:37) ~[fmlloader-1.19-41.0.1.jar%230!/:?] {}
at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?] {}
at net.minecraftforge.fml.loading.moddiscovery.Scanner.scan(Scanner.java:35) ~[fmlloader-1.19-41.0.1.jar%230!/:?] {}
at net.minecraftforge.fml.loading.moddiscovery.ModFile.compileContent(ModFile.java:122) ~[fmlloader-1.19-41.0.1.jar%230!/:?] {}
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] {}
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] {}
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] {}
at java.lang.Thread.run(Thread.java:833) ~[?:?] {}
This is caused by Forge's move to SLF4J in 1.19, which means the LogMarkers
fields changed types (to SLF4J's Marker
) and KFF can't find them. Should be pretty simple to fix with a move from Log4J to SLF4J here as well.
Is there any chance we can see some of the more recent versions on Modrinth? The latest available from there seems to only be v3.1.0
Please update the kff version in apply from: 'https://raw.githubusercontent.com/thedarkcolour/KotlinForForge/site/thedarkcolour/kotlinforforge/gradle/kff-3.6.0.gradle'
in README. Or specify that modder should check the latest verison and update manually.
I'm super new to minecraft modding, so please forgive me if the answer to this is obvious, but is it possible to use this with the old mcmod.info
style?
Did you forget mods.toml when bumping version to 1.7.0 in 668b5c3 ?
val ktObject = Class.forName(annotationData.classType.className, true, classLoader).kotlin.objectInstance
if (ktObject != null && mod.modId == modid && DIST in sides) {
This loads the object instance before checking whether it even makes sense on the current side, causing a crash if the companion object uses side-only classes. For instance,
class TestModel private constructor(sourceModel: IBakedModel) : BakedModelWrapper<IBakedModel>(sourceModel){
@EventBusSubscriber(Dist.CLIENT, modid = "mod", bus = MOD)
companion object{
private lateinit var modelRegistry: MutableMap<ResourceLocation, IBakedModel>
}
}
crashes on a dedicated server with
[modloading-worker-0/FATAL] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/renderer/model/IBakedModel for invalid dist DEDICATED_SERVER
Hello I'm currently in the process of installing the Cobblemon mod, it requires Kotlin, and I've made sure it was this specific file that is causing the issue. I need version 1.19.4 for the mod, but whenever I launch the game with the file installed, the game crashes before launch and I get a crash exit code:1. I'm not familiar at all with programming, and I'm not the brightest with tech in general, so perhaps I'm doing something wrong here. I should say that I'm putting this file in my mods folder. I appreciate any help I can get, thank you!
We can subscribe classes and objects but can not subscribe files. Let's fix it!
Getting a crash in prod as Forge 1.18 doesn't actually bundle annotations, it only makes it available at compile time, not runtime.
If necessary, here's a crash report with said crash, thank you.
MC Forge uses LGPL, can this be switched to match it?
Hello.
Just a quick qeustion.
I was wondering if this mod will work for plugins ran on MohistMC that use Kotlin.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.