• S'inscrire
    • Se connecter
    • Recherche
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes

    Résolu Crash des Bouton et du Menu Minecraft

    Anciennes versions
    1.6.4
    3
    5
    2371
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • M
      MrFlocala dernière édition par

      Bonjour,
      aujourd’hui j’ai voulu Dev mon mods,
      sauf que,
      Quand je clic sur l’un de mets bouton,
      Minecraft se ferme (Crash)

      Merci de m’aider au plus vite ! Merci ^^

      Voici mon code dans la class :

      package fr.empirecraft;
      
      import ibxm.Player;
      
      import java.awt.Desktop;
      import java.io.BufferedReader;
      import java.io.File;
      import java.io.IOException;
      import java.io.InputStreamReader;
      import java.net.Proxy;
      import java.net.URI;
      import java.util.ArrayList;
      import java.util.Calendar;
      import java.util.Date;
      import java.util.List;
      import java.util.Random;
      
      import joptsimple.ArgumentAcceptingOptionSpec;
      import joptsimple.NonOptionArgumentSpec;
      import joptsimple.OptionParser;
      import joptsimple.OptionSet;
      import net.minecraft.client.Minecraft;
      import net.minecraft.client.main.*;
      import fr.empirecraft.GuiEmpirecraft;
      import net.minecraft.client.gui.GuiButton;
      import net.minecraft.client.gui.GuiButtonLanguage;
      import net.minecraft.client.gui.GuiConfirmOpenLink;
      import net.minecraft.client.gui.GuiLanguage;
      import net.minecraft.client.gui.GuiMultiplayer;
      import net.minecraft.client.gui.GuiOptions;
      import net.minecraft.client.gui.GuiScreen;
      import net.minecraft.client.gui.GuiScreenOnlineServers;
      import net.minecraft.client.gui.GuiSelectWorld;
      import net.minecraft.client.gui.GuiYesNo;
      import net.minecraft.client.mco.ExceptionMcoService;
      import net.minecraft.client.mco.GuiScreenClientOutdated;
      import net.minecraft.client.mco.McoClient;
      import net.minecraft.client.multiplayer.GuiConnecting;
      import net.minecraft.client.renderer.Tessellator;
      import net.minecraft.client.renderer.texture.DynamicTexture;
      import net.minecraft.client.resources.I18n;
      import net.minecraft.util.EnumChatFormatting;
      import net.minecraft.util.MathHelper;
      import net.minecraft.util.ResourceLocation;
      import net.minecraft.world.demo.DemoWorldServer;
      import net.minecraft.world.storage.ISaveFormat;
      import net.minecraft.world.storage.WorldInfo;
      
      import org.apache.commons.io.Charsets;
      import org.lwjgl.LWJGLException;
      import org.lwjgl.opengl.Display;
      import org.lwjgl.opengl.GL11;
      import org.lwjgl.util.glu.Project;
      
      import com.google.common.base.Strings;
      import com.google.common.collect.Lists;
      
      import cpw.mods.fml.client.GuiModList;
      import cpw.mods.fml.common.FMLCommonHandler;
      import cpw.mods.fml.relauncher.Side;
      import cpw.mods.fml.relauncher.SideOnly;
      
      @SideOnly(Side.CLIENT)
      public class GuiCustomMainMenu extends GuiScreen
      {
         private static final Random rand = new Random();
         private float updateCounter;
         private GuiButton buttonResetDemo;
         private int panoramaTimer;
         private String splashText = "Night Z";
         private DynamicTexture viewportTexture;
         private boolean field_96141_q = true;
         private static boolean field_96140_r;
         private static boolean field_96139_s;
         private final Object field_104025_t = new Object();
         private String noticeMessage;
         private String noticeLink;
         private static final ResourceLocation minecraftTitleTextures = new ResourceLocation("textures/gui/title/minecraft.png");
         private static final ResourceLocation[] titlePanoramaPaths = new ResourceLocation[] {new ResourceLocation("textures/gui/title/background/panorama_0.png"), new ResourceLocation("textures/gui/title/background/panorama_1.png"), new ResourceLocation("textures/gui/title/background/panorama_2.png"), new ResourceLocation("textures/gui/title/background/panorama_3.png"), new ResourceLocation("textures/gui/title/background/panorama_4.png"), new ResourceLocation("textures/gui/title/background/panorama_5.png")};
         public static final String noticeMessageInformation = "Please click " + EnumChatFormatting.UNDERLINE + "here" + EnumChatFormatting.RESET + " for more information.";
      private static final String String = null;
         private int field_92024_r;
         private int field_92023_s;
         private int field_92022_t;
         private int field_92021_u;
         private int field_92020_v;
         private int field_92019_w;
         private ResourceLocation field_110351_G;
         private GuiButton minecraftRealmsButton;
      
         private GuiButton fmlModButton = null;
      private String screenTitle;
         /**
          * Called from the main game loop to update the screen.
          */
         public void updateScreen()
         {
             ++this.panoramaTimer;
         }
      
         /**
          * Returns true if this GUI should pause the game when it is displayed in single-player
          */
         public boolean doesGuiPauseGame()
         {
             return false;
         }
      
         /**
          * Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e).
          */
         protected void keyTyped(char par1, int par2) {}
      
         /**
          * Adds the buttons (and other controls) to the screen in question.
          */
      
         public void initGui()
         {
             this.viewportTexture = new DynamicTexture(256, 256);
             this.field_110351_G = this.mc.getTextureManager().getDynamicTextureLocation("background", this.viewportTexture);
      
             boolean flag = true;
             int i = this.height / 4 + 48;
      
             if (this.mc.isDemo())
             {
                 this.addDemoButtons(i, 24);
             }
             else
             {
                 this.addSingleplayerMultiplayerButtons(i, 24);
             }
             this.buttonList.add(new GuiButton(0, this.width / 2 + 0, i + 14 + 7, 98, 20, I18n.getString("\u00A74Options")));
             this.buttonList.add(new GuiButton(4, this.width / 2 + 0, i + 38 + 7, 98, 20, I18n.getString("\u00A74Quitter")));
             Object object = this.field_104025_t;
      
             synchronized (this.field_104025_t)
             {
                 this.field_92023_s = this.fontRenderer.getStringWidth(this.noticeMessage);
                 this.field_92024_r = this.fontRenderer.getStringWidth(noticeMessageInformation);
                 int j = Math.max(this.field_92023_s, this.field_92024_r);
                 this.field_92022_t = (this.width - j) / 2;
                 this.field_92021_u = ((GuiButton)this.buttonList.get(0)).yPosition - 24;
                 this.field_92020_v = this.field_92022_t + j;
                 this.field_92019_w = this.field_92021_u + 24;
             }
         }
      
         /**
          * Adds Singleplayer and Multiplayer buttons on Main Menu for players who have bought the game.
          */
         private void addSingleplayerMultiplayerButtons(int par1, int par2)
         {
          this.buttonList.add(new GuiButton(5, this.width / 2 - 100, par1 - 13 + 10, 98, 20, I18n.getString("\u00A74Langue")));
      this.buttonList.add(new GuiButton(26, this.width / 2 - 100, par1 + 45, 98, 20, I18n.getString("\u00A74Histoire")));
      this.buttonList.add(new GuiButton(2, this.width / 2 - 100, par1 + 21, 98, 20, I18n.getString("\u00A74Rejoindre Night Z")));
             fmlModButton = new GuiButton(25, this.width / 2 + 0, par1 - 3, 98, 20, "\u00A74Site Web");
             this.buttonList.add(fmlModButton);
         }
      
         /**
          * Adds Demo buttons on Main Menu for players who are playing Demo.
          */
         private void addDemoButtons(int par1, int par2)
         {
             this.buttonList.add(new GuiButton(11, this.width / 2 - 100, par1, I18n.getString("menu.playdemo")));
             this.buttonList.add(this.buttonResetDemo = new GuiButton(12, this.width / 2 - 100, par1 + par2 * 1, I18n.getString("menu.resetdemo")));
             ISaveFormat isaveformat = this.mc.getSaveLoader();
             WorldInfo worldinfo = isaveformat.getWorldInfo("Demo_World");
      
             if (worldinfo == null)
             {
                 this.buttonResetDemo.enabled = false;
             }
         }
      
         /**
          * Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
          */
         protected void actionPerformed(GuiButton par1Button)
         {
      
         }
      
         private void func_140005_i()
         {
             McoClient mcoclient = new McoClient(this.mc.getSession());
      
             try
             {
                 if (mcoclient.func_140054_c().booleanValue())
                 {
                     this.mc.displayGuiScreen(new GuiScreenClientOutdated(this));
                 }
                 else
                 {
                     this.mc.displayGuiScreen(new GuiScreenOnlineServers(this));
                 }
             }
             catch (ExceptionMcoService exceptionmcoservice)
             {
                 this.mc.getLogAgent().logSevere(exceptionmcoservice.toString());
             }
             catch (IOException ioexception)
             {
                 this.mc.getLogAgent().logSevere(ioexception.getLocalizedMessage());
             }
         }
      
         public void confirmClicked(boolean par1, int par2)
         {
             if (par1 && par2 == 12)
             {
                 ISaveFormat isaveformat = this.mc.getSaveLoader();
                 isaveformat.flushCache();
                 isaveformat.deleteWorldDirectory("Demo_World");
                 this.mc.displayGuiScreen(this);
             }
             else if (par2 == 13)
             {
                 if (par1)
                 {
                     try
                     {
                         Class oclass = Class.forName("java.awt.Desktop");
                         Object object = oclass.getMethod("getDesktop", new Class[0]).invoke((Object)null, new Object[0]);
                         oclass.getMethod("browse", new Class[] {URI.class}).invoke(object, new Object[] {new URI(this.noticeLink)});
                     }
                     catch (Throwable throwable)
                     {
                         throwable.printStackTrace();
                     }
                 }
      
                 this.mc.displayGuiScreen(this);
             }
         }
      
         /**
          * Draws the main menu panorama
          */
         private void drawPanorama(int par1, int par2, float par3)
         {
             Tessellator tessellator = Tessellator.instance;
             GL11.glMatrixMode(GL11.GL_PROJECTION);
             GL11.glPushMatrix();
             GL11.glLoadIdentity();
             Project.gluPerspective(120.0F, 1.0F, 0.05F, 10.0F);
             GL11.glMatrixMode(GL11.GL_MODELVIEW);
             GL11.glPushMatrix();
             GL11.glLoadIdentity();
             GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
             GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
             GL11.glEnable(GL11.GL_BLEND);
             GL11.glDisable(GL11.GL_ALPHA_TEST);
             GL11.glDisable(GL11.GL_CULL_FACE);
             GL11.glDepthMask(false);
             GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
             byte b0 = 8;
      
             for (int k = 0; k < b0 * b0; ++k)
             {
                 GL11.glPushMatrix();
                 float f1 = ((float)(k % b0) / (float)b0 - 0.5F) / 64.0F;
                 float f2 = ((float)(k / b0) / (float)b0 - 0.5F) / 64.0F;
                 float f3 = 0.0F;
                 GL11.glTranslatef(f1, f2, f3);
                 GL11.glRotatef(MathHelper.sin(((float)this.panoramaTimer + par3) / 400.0F) * 25.0F + 20.0F, 1.0F, 0.0F, 0.0F);
                 GL11.glRotatef(-((float)this.panoramaTimer + par3) * 0.1F, 0.0F, 1.0F, 0.0F);
      
                 for (int l = 0; l < 6; ++l)
                 {
                     GL11.glPushMatrix();
      
                     if (l == 1)
                     {
                         GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
                     }
      
                     if (l == 2)
                     {
                         GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
                     }
      
                     if (l == 3)
                     {
                         GL11.glRotatef(-90.0F, 0.0F, 1.0F, 0.0F);
                     }
      
                     if (l == 4)
                     {
                         GL11.glRotatef(90.0F, 1.0F, 0.0F, 0.0F);
                     }
      
                     if (l == 5)
                     {
                         GL11.glRotatef(-90.0F, 1.0F, 0.0F, 0.0F);
                     }
      
                     this.mc.getTextureManager().bindTexture(titlePanoramaPaths[l]);
                     tessellator.startDrawingQuads();
                     tessellator.setColorRGBA_I(16777215, 255 / (k + 1));
                     float f4 = 0.0F;
                     tessellator.addVertexWithUV(-1.0D, -1.0D, 1.0D, (double)(0.0F + f4), (double)(0.0F + f4));
                     tessellator.addVertexWithUV(1.0D, -1.0D, 1.0D, (double)(1.0F - f4), (double)(0.0F + f4));
                     tessellator.addVertexWithUV(1.0D, 1.0D, 1.0D, (double)(1.0F - f4), (double)(1.0F - f4));
                     tessellator.addVertexWithUV(-1.0D, 1.0D, 1.0D, (double)(0.0F + f4), (double)(1.0F - f4));
                     tessellator.draw();
                     GL11.glPopMatrix();
                 }
      
                 GL11.glPopMatrix();
                 GL11.glColorMask(true, true, true, false);
             }
      
             tessellator.setTranslation(0.0D, 0.0D, 0.0D);
             GL11.glColorMask(true, true, true, true);
             GL11.glMatrixMode(GL11.GL_PROJECTION);
             GL11.glPopMatrix();
             GL11.glMatrixMode(GL11.GL_MODELVIEW);
             GL11.glPopMatrix();
             GL11.glDepthMask(true);
             GL11.glEnable(GL11.GL_CULL_FACE);
             GL11.glEnable(GL11.GL_ALPHA_TEST);
             GL11.glEnable(GL11.GL_DEPTH_TEST);
         }
      
         /**
          * Rotate and blurs the skybox view in the main menu
          */
         private void rotateAndBlurSkybox(float par1)
         {
             this.mc.getTextureManager().bindTexture(this.field_110351_G);
             GL11.glCopyTexSubImage2D(GL11.GL_TEXTURE_2D, 0, 0, 0, 0, 0, 256, 256);
             GL11.glEnable(GL11.GL_BLEND);
             GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
             GL11.glColorMask(true, true, true, false);
             Tessellator tessellator = Tessellator.instance;
             tessellator.startDrawingQuads();
             byte b0 = 3;
      
             for (int i = 0; i < b0; ++i)
             {
                 tessellator.setColorRGBA_F(1.0F, 1.0F, 1.0F, 1.0F / (float)(i + 1));
                 int j = this.width;
                 int k = this.height;
                 float f1 = (float)(i - b0 / 2) / 256.0F;
                 tessellator.addVertexWithUV((double)j, (double)k, (double)this.zLevel, (double)(0.0F + f1), 0.0D);
                 tessellator.addVertexWithUV((double)j, 0.0D, (double)this.zLevel, (double)(1.0F + f1), 0.0D);
                 tessellator.addVertexWithUV(0.0D, 0.0D, (double)this.zLevel, (double)(1.0F + f1), 1.0D);
                 tessellator.addVertexWithUV(0.0D, (double)k, (double)this.zLevel, (double)(0.0F + f1), 1.0D);
             }
      
             tessellator.draw();
             GL11.glColorMask(true, true, true, true);
         }
      
         /**
          * Renders the skybox in the main menu
          */
         private void renderSkybox(int par1, int par2, float par3)
         {
             GL11.glViewport(0, 0, 256, 256);
             this.drawPanorama(par1, par2, par3);
             GL11.glDisable(GL11.GL_TEXTURE_2D);
             GL11.glEnable(GL11.GL_TEXTURE_2D);
             this.rotateAndBlurSkybox(par3);
             this.rotateAndBlurSkybox(par3);
             this.rotateAndBlurSkybox(par3);
             this.rotateAndBlurSkybox(par3);
             this.rotateAndBlurSkybox(par3);
             this.rotateAndBlurSkybox(par3);
             this.rotateAndBlurSkybox(par3);
             this.rotateAndBlurSkybox(par3);
             GL11.glViewport(0, 0, this.mc.displayWidth, this.mc.displayHeight);
             Tessellator tessellator = Tessellator.instance;
             tessellator.startDrawingQuads();
             float f1 = this.width > this.height ? 120.0F / (float)this.width : 120.0F / (float)this.height;
             float f2 = (float)this.height * f1 / 256.0F;
             float f3 = (float)this.width * f1 / 256.0F;
             GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR);
             GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR);
             tessellator.setColorRGBA_F(1.0F, 1.0F, 1.0F, 1.0F);
             int k = this.width;
             int l = this.height;
             tessellator.addVertexWithUV(0.0D, (double)l, (double)this.zLevel, (double)(0.5F - f2), (double)(0.5F + f3));
             tessellator.addVertexWithUV((double)k, (double)l, (double)this.zLevel, (double)(0.5F - f2), (double)(0.5F - f3));
             tessellator.addVertexWithUV((double)k, 0.0D, (double)this.zLevel, (double)(0.5F + f2), (double)(0.5F - f3));
             tessellator.addVertexWithUV(0.0D, 0.0D, (double)this.zLevel, (double)(0.5F + f2), (double)(0.5F + f3));
             tessellator.draw();
         }
      
         /**
          * Draws the screen and all the components in it.
          */
         public void drawScreen(int par1, int par2, float par3)
         {
             this.renderSkybox(par1, par2, par3);
             Tessellator tessellator = Tessellator.instance;
             short short1 = 274;
             int k = this.width / 2 - short1 / 2;
             byte b0 = 30;
             this.drawGradientRect(0, 0, this.width, this.height, -2130706433, 16777215);
             this.drawGradientRect(0, 0, this.width, this.height, 0, Integer.MIN_VALUE);
             this.mc.getTextureManager().bindTexture(minecraftTitleTextures);
             GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
      
             if ((double)this.updateCounter < 1.0E-4D)
             {
                 this.drawTexturedModalRect(k + 0, b0 + 0, 0, 0, 99, 44);
                 this.drawTexturedModalRect(k + 99, b0 + 0, 129, 0, 27, 44);
                 this.drawTexturedModalRect(k + 99 + 26, b0 + 0, 126, 0, 3, 44);
                 this.drawTexturedModalRect(k + 99 + 26 + 3, b0 + 0, 99, 0, 26, 44);
                 this.drawTexturedModalRect(k + 155, b0 + 0, 0, 45, 155, 44);
             }
             else
             {
                 this.drawTexturedModalRect(k + 0, b0 + 0, 0, 0, 155, 44);
                 this.drawTexturedModalRect(k + 155, b0 + 0, 0, 45, 155, 44);
             }
      
             tessellator.setColorOpaque_I(16777215);
             GL11.glPushMatrix();
             GL11.glTranslatef((float)(this.width / 2 + 90), 70.0F, 0.0F);
             GL11.glRotatef(-20.0F, 0.0F, 0.0F, 1.0F);
             float f1 = 1.8F - MathHelper.abs(MathHelper.sin((float)(Minecraft.getSystemTime() % 1000L) / 1000.0F * (float)Math.PI * 2.0F) * 0.1F);
             f1 = f1 * 100.0F / (float)(this.fontRenderer.getStringWidth(this.splashText) + 32);
             GL11.glScalef(f1, f1, f1);
             GL11.glPopMatrix();
             this.drawCenteredString(this.fontRenderer, this.splashText, 0, -8, 16776960);
             String s = "Minecraft 1.6.4";
      
             if (this.mc.isDemo())
             {
                 s = s + " Demo";
             }
      
             List <string>brandings = Lists.reverse(FMLCommonHandler.instance().getBrandings());
             for (int i = 0; i < brandings.size(); i++)
             {
                 String brd = brandings.get(i);
                 if (!Strings.isNullOrEmpty(brd))
                 {
                     this.drawString(this.fontRenderer, brd, 2, this.height - ( 10 + i * (this.fontRenderer.FONT_HEIGHT + 1)), 16777215);
                 }
             }
             String bjr = "\u00A74Bienvenue sur :";
             String s1 = "\u00A74Copyright 2014 Empirecraft";
             String var101 = "\u00A74launcher par EmpireCraft";
             String var102 = "\u00A74NightZ 1.1.0";
             this.drawString(this.fontRenderer, bjr, this.width / 3, 15, 16777215);
             this.drawString(this.fontRenderer, s1, this.width - this.fontRenderer.getStringWidth(s1) - 2, this.height - 10, 16777215);
             this.drawString(this.fontRenderer, var101, this.width - this.fontRenderer.getStringWidth(var101) - 2, this.height - 20, 16777215);
             this.drawString(this.fontRenderer, var102, this.width - this.fontRenderer.getStringWidth(var102) - 2, this.height - 30, 16777215);        
             if (this.noticeMessage != null && this.noticeMessage.length() > 0)
             {
                 drawRect(this.field_92022_t - 2, this.field_92021_u - 2, this.field_92020_v + 2, this.field_92019_w - 1, 1428160512);
                 this.drawString(this.fontRenderer, this.noticeMessage, this.field_92022_t, this.field_92021_u, 16777215);
                 this.drawString(this.fontRenderer, noticeMessageInformation, (this.width - this.field_92024_r) / 2, ((GuiButton)this.buttonList.get(0)).yPosition - 12, 16777215);
             }
      
             super.drawScreen(par1, par2, par3);
         }
      
      /**
          * Called when the mouse is clicked.
          */
         protected void mouseClicked(int par1, int par2, int par3)
         {
             super.mouseClicked(par1, par2, par3);
             Object object = this.field_104025_t;
      
             synchronized (this.field_104025_t)
             {
                 if (this.noticeMessage.length() > 0 && par1 >= this.field_92022_t && par1 <= this.field_92020_v && par2 >= this.field_92021_u && par2 <= this.field_92019_w)
                 {
                     GuiConfirmOpenLink guiconfirmopenlink = new GuiConfirmOpenLink(this, this.noticeLink, 13, true);
                     guiconfirmopenlink.func_92026_h();
                     this.mc.displayGuiScreen(guiconfirmopenlink);
                 }
             }
         }
      
         static Minecraft func_110348_a(GuiCustomMainMenu menu)
         {
             return menu.mc;
         }
      
         static boolean func_110349_a(boolean par0)
         {
             field_96139_s = par0;
             return par0;
         }
      
         static Minecraft func_130018_c(GuiCustomMainMenu menu)
         {
             return menu.mc;
         }
      
         static Minecraft func_130019_d(GuiCustomMainMenu menu)
         {
             return menu.mc;
         }
      }
      

      Voici le message d’erreur obtenu :

      
      2014-08-30 01:39:39 [GRAVE] [Minecraft-Client] Realms: Server not available!
      2014-08-30 01:40:28 [INFOS] [STDERR] net.minecraft.util.ReportedException: Updating screen events
      2014-08-30 01:40:28 [INFOS] [STDERR] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1573)
      2014-08-30 01:40:28 [INFOS] [STDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)
      2014-08-30 01:40:28 [INFOS] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:838)
      2014-08-30 01:40:28 [INFOS] [STDERR] at net.minecraft.client.main.Main.main(Main.java:101)
      2014-08-30 01:40:28 [INFOS] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2014-08-30 01:40:28 [INFOS] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      2014-08-30 01:40:28 [INFOS] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      2014-08-30 01:40:28 [INFOS] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
      2014-08-30 01:40:28 [INFOS] [STDERR] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
      2014-08-30 01:40:28 [INFOS] [STDERR] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
      2014-08-30 01:40:28 [INFOS] [STDERR] Caused by: java.lang.NullPointerException
      2014-08-30 01:40:28 [INFOS] [STDERR] at fr.empirecraft.GuiCustomMainMenu.mouseClicked(GuiCustomMainMenu.java:476)
      2014-08-30 01:40:28 [INFOS] [STDERR] at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:128)
      2014-08-30 01:40:28 [INFOS] [STDERR] at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:107)
      2014-08-30 01:40:28 [INFOS] [STDERR] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1566)
      2014-08-30 01:40:28 [INFOS] [STDERR] … 9 more
      2014-08-30 01:40:28 [INFOS] [STDOUT] –-- Minecraft Crash Report ----
      2014-08-30 01:40:28 [INFOS] [STDOUT] // I just don't know what went wrong :(
      2014-08-30 01:40:28 [INFOS] [STDOUT]
      2014-08-30 01:40:28 [INFOS] [STDOUT] Time: 30/08/14 01:40
      2014-08-30 01:40:28 [INFOS] [STDOUT] Description: Updating screen events
      2014-08-30 01:40:28 [INFOS] [STDOUT]
      2014-08-30 01:40:28 [INFOS] [STDOUT] java.lang.NullPointerException
      2014-08-30 01:40:28 [INFOS] [STDOUT] at fr.empirecraft.GuiCustomMainMenu.mouseClicked(GuiCustomMainMenu.java:476)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:128)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:107)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1566)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:838)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:101)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
      2014-08-30 01:40:28 [INFOS] [STDOUT]
      2014-08-30 01:40:28 [INFOS] [STDOUT]
      2014-08-30 01:40:28 [INFOS] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
      2014-08-30 01:40:28 [INFOS] [STDOUT] –-------------------------------------------------------------------------------------
      2014-08-30 01:40:28 [INFOS] [STDOUT]
      2014-08-30 01:40:28 [INFOS] [STDOUT] – Head --
      2014-08-30 01:40:28 [INFOS] [STDOUT] Stacktrace:
      2014-08-30 01:40:28 [INFOS] [STDOUT] at fr.empirecraft.GuiCustomMainMenu.mouseClicked(GuiCustomMainMenu.java:476)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:128)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:107)
      2014-08-30 01:40:28 [INFOS] [STDOUT]
      2014-08-30 01:40:28 [INFOS] [STDOUT] – Affected screen --
      2014-08-30 01:40:28 [INFOS] [STDOUT] Details:
      2014-08-30 01:40:28 [INFOS] [STDOUT] Screen name: fr.empirecraft.GuiCustomMainMenu
      2014-08-30 01:40:28 [INFOS] [STDOUT] Stacktrace:
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1566)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:838)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:101)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
      2014-08-30 01:40:28 [INFOS] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
      2014-08-30 01:40:28 [INFOS] [STDOUT]
      2014-08-30 01:40:28 [INFOS] [STDOUT] – System Details --
      2014-08-30 01:40:28 [INFOS] [STDOUT] Details:
      2014-08-30 01:40:28 [INFOS] [STDOUT] Minecraft Version: 1.6.4
      2014-08-30 01:40:28 [INFOS] [STDOUT] Operating System: Windows 7 (x86) version 6.1
      2014-08-30 01:40:28 [INFOS] [STDOUT] Java Version: 1.8.0_05, Oracle Corporation
      2014-08-30 01:40:28 [INFOS] [STDOUT] Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
      2014-08-30 01:40:28 [INFOS] [STDOUT] Memory: 996072208 bytes (949 MB) / 1067057152 bytes (1017 MB) up to 1067057152 bytes (1017 MB)
      2014-08-30 01:40:28 [INFOS] [STDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
      2014-08-30 01:40:28 [INFOS] [STDOUT] AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
      2014-08-30 01:40:28 [INFOS] [STDOUT] Suspicious classes: FML and Forge are installed
      2014-08-30 01:40:28 [INFOS] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
      2014-08-30 01:40:28 [INFOS] [STDOUT] FML: MCP v8.11 FML v6.99.19.964 Minecraft Forge 9.11.1.964 4 mods loaded, 4 mods active
      2014-08-30 01:40:28 [INFOS] [STDOUT] mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
      2014-08-30 01:40:28 [INFOS] [STDOUT] FML{6.99.19.964} [Forge Mod Loader] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
      2014-08-30 01:40:28 [INFOS] [STDOUT] Forge{9.11.1.964} [Minecraft Forge] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
      2014-08-30 01:40:28 [INFOS] [STDOUT] EmpireMenu{1.2.5} [EmpireMenu] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
      2014-08-30 01:40:28 [INFOS] [STDOUT] Launched Version: 1.6
      2014-08-30 01:40:28 [INFOS] [STDOUT] LWJGL: 2.9.0
      2014-08-30 01:40:28 [INFOS] [STDOUT] OpenGL: GeForce 7600 GT/AGP/SSE/3DNOW! GL version 2.1.2, NVIDIA Corporation
      2014-08-30 01:40:28 [INFOS] [STDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'
      2014-08-30 01:40:28 [INFOS] [STDOUT] Type: Client (map_client.txt)
      2014-08-30 01:40:28 [INFOS] [STDOUT] Resource Pack: HunterZ.zip
      2014-08-30 01:40:28 [INFOS] [STDOUT] Current Language: Français (France)
      2014-08-30 01:40:28 [INFOS] [STDOUT] Profiler Position: N/A (disabled)
      2014-08-30 01:40:28 [INFOS] [STDOUT] Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
      2014-08-30 01:40:28 [INFOS] [STDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Flo\Mooding\eclipse\.\crash-reports\crash-2014-08-30_01.40.28-client.txt
      AL lib: (EE) alc_cleanup: 1 device not closed
      Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
      
      

      Screen au moments ou je clic sur le bouton :

      Moments du Crash :
      </string>

      1 réponse Dernière réponse Répondre Citer 0
      • robin4002
        robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par

        Salut,
        Pour commencer tu es dans la mauvaise section, je déplaces dans la bonne section.
        Deuxièmement, tu as un NPE sur la ligne 476 de ton menu :

        if (this.noticeMessage.length() > 0 && par1 >= this.field_92022_t && par1 <= this.field_92020_v && par2 >= this.field_92021_u && par2 <= this.field_92019_w)
        

        Et c’est noticeMessage qui est null.

        1 réponse Dernière réponse Répondre Citer 0
        • M
          MrFlocala dernière édition par

          Donc il faut retirer cette ligne si j’ai bien compris ?

          1 réponse Dernière réponse Répondre Citer 0
          • isador
            isador Moddeurs confirmés Modérateurs dernière édition par

            non tu dois faire en sorte qu’il ne soit pas null

            1 réponse Dernière réponse Répondre Citer 0
            • robin4002
              robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par

              private String noticeMessage; -> private String noticeMessage = “”;
              Et voila, il n’est plus null.

              1 réponse Dernière réponse Répondre Citer 0
              • 1 / 1
              • Premier message
                Dernier message
              Design by Woryk
              Contact / Mentions Légales

              MINECRAFT FORGE FRANCE © 2018

              Powered by NodeBB