MinecraftForge / ForgeGradle

Minecraft mod development framework used by Forge and FML for the gradle build system
GNU Lesser General Public License v2.1
526 stars 446 forks source link

Problems running RunClient #920

Closed HTony03 closed 1 year ago

HTony03 commented 1 year ago

I'm using IDEA and gradle to run my team's forge mod. When I use the RunClient command in IDEA, it gave the following ERROR: 2023-06-06T21:51:03.468+0800 [ERROR] [system.err] Exception in thread "main" java.lang.module.ResolutionException: Modules Registrate and Registrate.MC1._18._2 export package com.tterrag.registrate to module flywheel 2023-06-06T21:51:03.468+0800 [ERROR] [system.err] at java.base/java.lang.module.Resolver.resolveFail(Resolver.java:901) 2023-06-06T21:51:03.468+0800 [ERROR] [system.err] at java.base/java.lang.module.Resolver.failTwoSuppliers(Resolver.java:815) 2023-06-06T21:51:03.468+0800 [ERROR] [system.err] at java.base/java.lang.module.Resolver.checkExportSuppliers(Resolver.java:736) 2023-06-06T21:51:03.468+0800 [ERROR] [system.err] at java.base/java.lang.module.Resolver.finish(Resolver.java:380) 2023-06-06T21:51:03.468+0800 [ERROR] [system.err] at java.base/java.lang.module.Configuration.(Configuration.java:140) 2023-06-06T21:51:03.468+0800 [ERROR] [system.err] at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:494) 2023-06-06T21:51:03.468+0800 [ERROR] [system.err] at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.ModuleLayerHandler.buildLayer(ModuleLayerHandler.java:70) 2023-06-06T21:51:03.468+0800 [ERROR] [system.err] at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.TransformationServicesHandler.buildTransformingClassLoader(TransformationServicesHandler.java:60) 2023-06-06T21:51:03.468+0800 [ERROR] [system.err] at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.run(Launcher.java:104) 2023-06-06T21:51:03.469+0800 [ERROR] [system.err] at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.main(Launcher.java:77) 2023-06-06T21:51:03.469+0800 [ERROR] [system.err] at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) 2023-06-06T21:51:03.469+0800 [ERROR] [system.err] at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) 2023-06-06T21:51:03.469+0800 [ERROR] [system.err] at cpw.mods.bootstraplauncher@1.0.0/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149)

but before that: 2023-06-06T21:51:02.107+0800 [QUIET] [system.out] [21:51:02] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileInfo/LOADING]: Found valid mod file flywheel-forge-1.18.2-0.6.8.a.jar with {flywheel} mods - versions {0.6.8.a} 2023-06-06T21:51:02.107+0800 [QUIET] [system.out] [21:51:02] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/LOADING]: Loading mod file D:\IdeaProjects\KuaYue\run\mods\flywheel-forge-1.18.2-0.6.8.a.jar with languages [LanguageSpec[languageName=javafml, acceptedVersions=[40,)]] 2023-06-06T21:51:02.107+0800 [QUIET] [system.out] [21:51:02] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Considering mod file candidate D:\IdeaProjects\KuaYue\run\mods\create-1.18.2-0.5.1.b.jar 2023-06-06T21:51:02.108+0800 [QUIET] [system.out] [21:51:02] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileInfo/LOADING]: Found valid mod file create-1.18.2-0.5.1.b.jar with {create} mods - versions {0.5.1.b} 2023-06-06T21:51:02.109+0800 [QUIET] [system.out] [21:51:02] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/LOADING]: Loading mod file D:\IdeaProjects\KuaYue\run\mods\create-1.18.2-0.5.1.b.jar with languages [LanguageSpec[languageName=javafml, acceptedVersions=[40,)]] 2023-06-06T21:51:02.109+0800 [QUIET] [system.out] [21:51:02] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Considering mod file candidate D:\IdeaProjects\KuaYue\run\mods\Patchouli-1.18.2-71.1.jar

Another problem is when I'm using the bat to use the command RunClient, it went out another ERROR:

QQ截图20230606215856

Please help me solve these ploblems.

github-actions[bot] commented 1 year ago

:wave: We use the issue tracker exclusively for final bug reports and feature requests. However, this issue appears to be better suited for the Forge Support Forums or Forge Discord. Please create a new topic on the support forum with this issue or ask in the #tech-support channel in the Discord server, and the conversation can continue there.