版本信息
你使用的IDE:IntelliJ IDEA
你使用的IDE版本:<2020.1.1>
Forge版本: <14.23.5.2847>
Minecraft版本: <1.12.2>
出错图
错误情况简述
运行Minecraft Client时发生错误,直接运行完成了(闪退)
报错日志
[21:47:42] [main/ERROR] [FML]: An error occurred loading the deobfuscation map data
java.io.FileNotFoundException: D:\Workspace\Forge1.12\.gradle\caches\minecraft\de\oceanlabs\mcp\mcp_snapshot\20171003\1.12.2\srgs\srg-mcp.srg (系统找不到指定的路径。)
at java.io.FileInputStream.open0(Native Method) ~[?:1.8.0_181]
at java.io.FileInputStream.open(FileInputStream.java:195) ~[?:1.8.0_181]
at java.io.FileInputStream.<init>(FileInputStream.java:138) ~[?:1.8.0_181]
at com.google.common.io.Files$FileByteSource.openStream(Files.java:120) ~[guava-21.0.jar:?]
at com.google.common.io.Files$FileByteSource.openStream(Files.java:110) ~[guava-21.0.jar:?]
at com.google.common.io.ByteSource$AsCharSource.openStream(ByteSource.java:456) ~[guava-21.0.jar:?]
at com.google.common.io.CharSource.readLines(CharSource.java:311) ~[guava-21.0.jar:?]
at com.google.common.io.Files.readLines(Files.java:553) ~[guava-21.0.jar:?]
at com.google.common.io.Files.readLines(Files.java:520) ~[guava-21.0.jar:?]
at net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper.setup(FMLDeobfuscatingRemapper.java:139) [forgeSrc-1.12.2-14.23.5.2847.jar:?]
at net.minecraftforge.fml.common.asm.FMLSanityChecker.injectData(FMLSanityChecker.java:187) [FMLSanityChecker.class:?]
at net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper.injectIntoClassLoader(CoreModManager.java:164) [forgeSrc-1.12.2-14.23.5.2847.jar:?]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_181]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStart.main(GradleStart.java:25) [start/:?]
[21:47:42] [main/ERROR] [LaunchWrapper]: Unable to launch
java.lang.RuntimeException: java.lang.NullPointerException
at net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper.injectIntoClassLoader(CoreModManager.java:169) ~[forgeSrc-1.12.2-14.23.5.2847.jar:?]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_181]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStart.main(GradleStart.java:25) [start/:?]
Caused by: java.lang.NullPointerException
at net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper.setup(FMLDeobfuscatingRemapper.java:170) ~[forgeSrc-1.12.2-14.23.5.2847.jar:?]
at net.minecraftforge.fml.common.asm.FMLSanityChecker.injectData(FMLSanityChecker.java:187) ~[forgeSrc-1.12.2-14.23.5.2847.jar:?]
at net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper.injectIntoClassLoader(CoreModManager.java:164) ~[forgeSrc-1.12.2-14.23.5.2847.jar:?]
... 8 more
相关代码
<SoilCraft>
package xyz.xiaoshengbaby.soilcraft;
import net.minecraftforge.fml.common.Mod;
@Mod(name = SoilCraft.NAME,modid = SoilCraft.MODID,version = SoilCraft.VERSION,useMetadata = true)
public class SoilCraft {
public static final String NAME="Soil Craft";
public static final String MODID="sc";
public static final String VERSION="0.1";
}