简体   繁体   English

在Eclipse中运行时的Minecraft Coders Pack错误

[英]Minecraft Coders Pack Errors when Running in Eclipse

Okay I am trying to make minecraft mods using eclipse. 好吧,我正在尝试使用Eclipse制作Minecraft Mod。 I used this video to set it up. 我用视频进行了设置。 I added both ModLoader and GuiApi to the Jar files before decompiling. 在反编译之前,我将ModLoader和GuiApi都添加到了Jar文件中。 It works until I try to test it in Eclipse then I get these errors: 在我尝试在Eclipse中进行测试之前,它一直有效,然后出现以下错误:

    Failed to load mod from "mod_HeroesGuild.class"
Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:140)
    at net.minecraft.client.Minecraft.run(Minecraft.java:438)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: input == null!
    at javax.imageio.ImageIO.read(Unknown Source)
    at net.minecraft.src.CanvasMojangLogo.<init>(CanvasMojangLogo.java:22)
    at net.minecraft.src.PanelCrashReport.<init>(PanelCrashReport.java:103)
    at net.minecraft.src.MinecraftImpl.displayUnexpectedThrowable(MinecraftImpl.java:26)
    at net.minecraft.src.ModLoader.ThrowException(ModLoader.java:1612)
    at net.minecraft.src.ModLoader.init(ModLoader.java:714)
    at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
    at net.minecraft.src.RenderManager.<init>(RenderManager.java:72)
    at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:168)
    ... 3 more

I am new to programming and I don't have any idea what to do... The run system starts minecraft the mojang logo appears but then I get a white screen! 我是编程新手,我不知道该怎么办...运行系统启动minecraft,出现mojang徽标,但随后出现白屏! Thanks! 谢谢!

I found a forum where someone had the same error: 我发现一个论坛中有人遇到相同的错误:

http://www.minecraftforum.net/topic/236195-crashing-after-mojang-logo-problem-solved/ http://www.minecraftforum.net/topic/236195-crashing-after-mojang-logo-problem-solved/

The answer they give is to reinstall , via instructions at: 他们给出的答案是按照以下说明重新安装

http://www.minecraftwiki.net/wiki/Tutorials/Minecraft_Help_FAQ#Reinstalling_Minecraft http://www.minecraftwiki.net/wiki/Tutorials/Minecraft_Help_FAQ#Reinstalling_Minecraft

...and the poster replies: ...而发帖人回复:

didn't think to delete the whole .minecraft. 并没有考虑删除整个.minecraft。
Problem cured. 问题已解决。

Remember to back it up first. 请记住先备份它。

Underlying cause 根本原因

I'm thinking your SDK is somehow loading from/conflicting with your existing Minecraft install. 我认为您的SDK正在以某种方式从您现有的Minecraft安装中加载或与之冲突。

This is because .minecraft is the folder under the Application Data folder that contains minecraft user/runtime data. 这是因为.minecraft是Application Data文件夹下的文件夹,其中包含minecraft用户/运行时数据。 Basically, your save game data, and the program's cached data. 基本上,您可以保存游戏数据以及程序的缓存数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM