Open EccentricVamp opened 2 years ago
Have you considered downloading the 1.19.2 template directly
Oops. I didn't scroll down enough to see it. I'll try that.
Where there big changes the Architectury Loom Forge template between 1.18.2 and 1.19.2?
The 1.19.2 template fails to build due to several errors.
I fixed the errors in the template
// src/main/java/com/example/examplemod/ExampleMod.java
// Line 6
-import net.minecraftforge.event.world.ExplosionEvent;
+import net.minecraftforge.event.level.ExplosionEvent;
...
// Line 44
- LOGGER.info("Look, I found a {}!", Items.DIAMOND.getRegistryName());
+ LOGGER.info("Look, I found a {}!", ForgeRegistries.ITEMS.getKey(Items.DIAMOND));
...
// Line 55
- LOGGER.info("Kaboom! Something just blew up in {}!", event.getWorld());
+ LOGGER.info("Kaboom! Something just blew up in {}!", event.getLevel());
After fixing the errors in the template, I reran the "build" and "vscode" Gradle tasks and got the same exact error
[13:28:43] [main/INFO] (Launcher) ModLauncher running: args [--launchTarget, forgeclientuserdev, --version, MOD_DEV, --assetIndex, 1.19.2-1.19, --assetsDir, C:\Users\Eccen\.gradle\caches\fabric-loom\assets, --gameDir, ., --fml.forgeVersion, 43.0.8, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853, -mixin.config, examplemod.mixins.json]
[13:28:43] [main/INFO] (Launcher) ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.4.1 by Eclipse Adoptium; OS Windows 11 arch amd64 version 10.0
Exception in thread "main" java.lang.module.ResolutionException: Module fmlloader reads another module named fmlloader
at java.base/java.lang.module.Resolver.resolveFail(Unknown Source)
at java.base/java.lang.module.Resolver.checkExportSuppliers(Unknown Source)
at java.base/java.lang.module.Resolver.finish(Unknown Source)
at java.base/java.lang.module.Configuration.<init>(Unknown Source)
at java.base/java.lang.module.Configuration.resolveAndBind(Unknown Source)
at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.ModuleLayerHandler.buildLayer(ModuleLayerHandler.java:75)
at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.ModuleLayerHandler.buildLayer(ModuleLayerHandler.java:87)
at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.TransformationServicesHandler.discoverServices(TransformationServicesHandler.java:130)
at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.Launcher.run(Launcher.java:86)
at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.Launcher.main(Launcher.java:77)
at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
I've also tried
.gradle
folder in the template.gradle
folder for my accountgradlew --refresh-dependencies
.vscode/launch.json
I don't think this was supposed to be fixed (I didn't see it in the changelog), but I'm still getting the error in Architectury Loom 1.0.302
same problem here, my project is update from 1.18.2 and architectury loom 0.12.0-snapshot.
[moving new error to a separate issue]
Looks like several other people in Discord have the same issue
Cannot launch Forge client or server through run configurations
keep getting Module fmlloader reads another module named fmlloader
Same problem for me. He happens for 0.12.0 and 1.0.
I've found a temporary fix for Module fmlloader reads another module named fmlloader
. That's to exclude Forge in the build.gradle
, such as:
modImplementation("pers.solid.mod:reasonable-sorting-forge:${project.reasonable_sorting_version}-mc${reasonable_sorting_mc_version}") {
exclude group: "net.minecraftforge"
}
I tried the temporary fix. Unfortunately, it did not work for me.
Having this issue as well (Discord link):
Did anyone find a fix?
I'm trying to use Architectury Loom for a 1.19.2 Forge mod.
I downloaded the Forge template from Architectury Templates.
I changed the following values in
gradle.properties
I ran the Gradle "build" and "vscode" tasks.
When I launch the "Minecraft Client" debugger, I get the following error