MFF

    Minecraft Forge France
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes
    • Forge Events
      • Automatique
      • Foncé
      • Clair
    • S'inscrire
    • Se connecter

    Modifier le menu principal

    Planifier Épinglé Verrouillé Déplacé Les interfaces (GUI) et les container
    1.11.x
    125 Messages 24 Publieurs 116.2k Vues 19 Watching
    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.
    • robin4002R Hors-ligne
      robin4002 Moddeurs confirmés Rédacteurs Administrateurs
      dernière édition par

      Si tu ne passes pas par le fichier de lang remplaces I18n.format("Entre dans la fondation") par juste "Entre dans la fondation".

      Dans la classe de ton button, il se passe quoi si tu ajoutes @Override au dessus de drawButton ?

      1 réponse Dernière réponse Répondre Citer 0
      • M Hors-ligne
        Master_Pala
        dernière édition par Master_Pala

        Il y a un erreur et cela ne marche pas

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

          Donc c’est que tu n’as pas le bon nom de fonction.
          Regardes dans la classe GuiButton, tu devrais trouver le bon nom.

          1 réponse Dernière réponse Répondre Citer 0
          • M Hors-ligne
            Master_Pala
            dernière édition par

            je n’ai pas compris

            1 réponse Dernière réponse Répondre Citer 0
            • M Hors-ligne
              Master_Pala
              dernière édition par

              Merci j’ai changer quelque truc dans le code et cela a marcher

              package fr.masterpala.scp15.client;
              
              import fr.masterpala.scp15.Main;
              import net.minecraft.client.Minecraft;
              import net.minecraft.client.gui.Gui;
              import net.minecraft.client.gui.GuiButton;
              import net.minecraft.client.renderer.GlStateManager;
              import net.minecraft.util.ResourceLocation;
              
              public class GuiButtonDiscord extends GuiButton
              {
                  private static final ResourceLocation DISCORD_ICON = new ResourceLocation(Main.MODID, "textures/gui/discord.png");
                  private static final ResourceLocation DISCORD_HOVER_ICON = new ResourceLocation(Main.MODID, "textures/gui/discord_hover.png");
              
                  public  GuiButtonDiscord(int buttonID, int xPos, int yPos)
                  {
                      super(buttonID, xPos, yPos, 20, 20, "");
                  }
              
                  /**
                   * Draws this button to the screen.
                   */
                  public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks)
                  {
                      if (this.visible)
                      {
                          mc.getTextureManager().bindTexture(DISCORD_ICON);
                          GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
                          boolean flag = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height;
                          boolean mouseHover = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height;
                          if(mouseHover) // si la souris est sur le bouton
                          {
                              mc.getTextureManager().bindTexture(DISCORD_HOVER_ICON);
                          }
                          else
                          {
                              mc.getTextureManager().bindTexture(DISCORD_ICON);
                          }
              
                          Gui.drawScaledCustomSizeModalRect(this.x, this.y, 0, 0, 128, 128, 20, 20, 128, 128);
                      }
                  }
              }
              1 réponse Dernière réponse Répondre Citer 0
              • M Hors-ligne
                Master_Pala
                dernière édition par

                ah bas non enfaite j’ai un crash quand je lance le jeu avec d’autre mods

                ---- Minecraft Crash Report ----
                
                WARNING: coremods are present:
                  CTMCorePlugin (CTM-MC1.12-0.2.3.9 (2).jar)
                  FMLModule (mdxlib-3.0.0.14.jar)
                  OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.1.jar)
                Contact their authors BEFORE contacting forge
                
                // Oh - I know what I did wrong!
                
                Time: 7/10/19 11:19 AM
                Description: Initializing game
                
                java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.getMinecraft()Lnet/minecraft/client/Minecraft;
                	at fr.masterpala.scp15.client.GuiCustomMainMenu.<init>(GuiCustomMainMenu.java:138)
                	at fr.masterpala.scp15.client.clientproxy.onOpenGui(clientproxy.java:36)
                	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_408_clientproxy_onOpenGui_GuiOpenEvent.invoke(.dynamic)
                	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
                	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
                	at net.minecraft.client.Minecraft.func_147108_a(Minecraft.java:983)
                	at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:544)
                	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:377)
                	at net.minecraft.client.main.Main.main(SourceFile:123)
                	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                	at java.lang.reflect.Method.invoke(Unknown Source)
                	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
                	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
                	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                	at java.lang.reflect.Method.invoke(Unknown Source)
                	at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
                	at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
                	at org.multimc.EntryPoint.listen(EntryPoint.java:143)
                	at org.multimc.EntryPoint.main(EntryPoint.java:34)
                
                
                A detailed walkthrough of the error, its code path and all known details is as follows:
                ---------------------------------------------------------------------------------------
                
                -- Head --
                Thread: Client thread
                Stacktrace:
                	at fr.masterpala.scp15.client.GuiCustomMainMenu.<init>(GuiCustomMainMenu.java:138)
                	at fr.masterpala.scp15.client.clientproxy.onOpenGui(clientproxy.java:36)
                	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_408_clientproxy_onOpenGui_GuiOpenEvent.invoke(.dynamic)
                	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
                	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
                	at net.minecraft.client.Minecraft.func_147108_a(Minecraft.java:983)
                	at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:544)
                
                -- Initialization --
                Details:
                Stacktrace:
                	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:377)
                	at net.minecraft.client.main.Main.main(SourceFile:123)
                	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                	at java.lang.reflect.Method.invoke(Unknown Source)
                	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
                	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
                	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                	at java.lang.reflect.Method.invoke(Unknown Source)
                	at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
                	at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
                	at org.multimc.EntryPoint.listen(EntryPoint.java:143)
                	at org.multimc.EntryPoint.main(EntryPoint.java:34)
                
                -- System Details --
                Details:
                	Minecraft Version: 1.12.2
                	Operating System: Windows 10 (amd64) version 10.0
                	Java Version: 1.8.0_211, Oracle Corporation
                	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
                	Memory: 822112920 bytes (784 MB) / 2424832000 bytes (2312 MB) up to 3817865216 bytes (3641 MB)
                	JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms512m -Xmx4096m
                	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                	FML: MCP 9.42 Powered by Forge 14.23.5.2768 Optifine OptiFine_1.12.2_HD_U_D1 26 mods loaded, 26 mods active
                	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
                
                	| State  | ID                | Version           | Source                                     | Signature                                |
                	|:------ |:----------------- |:----------------- |:------------------------------------------ |:---------------------------------------- |
                	| UCHIJA | minecraft         | 1.12.2            | minecraft.jar                              | None                                     |
                	| UCHIJA | mcp               | 9.42              | minecraft.jar                              | None                                     |
                	| UCHIJA | FML               | 8.0.99.99         | forge-1.12.2-14.23.5.2768-universal.jar    | e3c3d50c7c986df74c645c0ac54639741c90a557 |
                	| UCHIJA | forge             | 14.23.5.2768      | forge-1.12.2-14.23.5.2768-universal.jar    | e3c3d50c7c986df74c645c0ac54639741c90a557 |
                	| UCHIJA | openmodscore      | 0.12.1            | minecraft.jar                              | None                                     |
                	| UCHIJA | securitycraft     | v1.8.12           | [1.12.2]+SecurityCraft+v1.8.12.jar         | None                                     |
                	| UCHIJA | mdxlib            | 3.0.0.14          | mdxlib-3.0.0.14.jar                        | None                                     |
                	| UCHIJA | avp               | 6.0.0.33          | aliensvspredator-6.0.0.33.jar              | None                                     |
                	| UCHIJA | architecturecraft | @VERSION@         | ArchitectureCraft-ElytraDev-Mod-1.12.2.jar | None                                     |
                	| UCHIJA | bibliocraft       | 2.4.5             | BiblioCraft[v2.4.5][MC1.12.2].jar          | None                                     |
                	| UCHIJA | blockcraftery     | 1.12.2-1.1.0      | blockcraftery-1.12.2-1.1.0.jar             | None                                     |
                	| UCHIJA | cfm               | 6.3.0             | cfm-6.3.0-mc1.12.2.jar                     | None                                     |
                	| UCHIJA | ctm               | MC1.12-0.2.3.9    | CTM-MC1.12-0.2.3.9 (2).jar                 | None                                     |
                	| UCHIJA | chisel            | MC1.12.2-0.2.1.35 | Chisel-MC1.12.2-0.2.1.35 (1).jar           | None                                     |
                	| UCHIJA | chiselsandbits    | 14.30             | chiselsandbits-14.30.jar                   | None                                     |
                	| UCHIJA | customnpcs        | 1.12              | CustomNPCs_1.12.2(30Jan19).jar             | None                                     |
                	| UCHIJA | ptrmodellib       | 1.0.3             | PTRLib-1.0.3.jar                           | None                                     |
                	| UCHIJA | props             | 2.6.2             | Decocraft-2.6.2_1.12.2.jar                 | None                                     |
                	| UCHIJA | ichunutil         | 7.1.4             | iChunUtil-1.12.2-7.1.4 (1).jar             | None                                     |
                	| UCHIJA | mcmultipart       | 2.5.3             | MCMultiPart-2.5.3.jar                      | None                                     |
                	| UCHIJA | openmods          | 0.12.1            | OpenModsLib-1.12.2-0.12.1.jar              | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |
                	| UCHIJA | openblocks        | 1.8               | OpenBlocks-1.12.2-1.8.jar                  | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |
                	| UCHIJA | scp               | 2.1.1             | SCP+Lockdown-1.12.2-2.1.1-beta.jar         | None                                     |
                	| UCHIJA | scp15             | 0.1               | scp15.jar                                  | None                                     |
                	| UCHIJA | scple             | 1.0               | scple-1.0.jar                              | None                                     |
                	| UCHIJA | mysticallib       | 1.12.2-1.0.0      | mysticallib-1.12.2-1.0.0.jar               | None                                     |
                
                	Loaded coremods (and transformers): 
                CTMCorePlugin (CTM-MC1.12-0.2.3.9 (2).jar)
                  team.chisel.ctm.client.asm.CTMTransformer
                FMLModule (mdxlib-3.0.0.14.jar)
                  com.asx.mdx.AccessTransformer
                OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.1.jar)
                  openmods.core.OpenModsClassTransformer
                	GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 391.25' Renderer: 'Quadro K3000M/PCIe/SSE2'
                	OpenModsLib class transformers: [llama_null_fix:FINISHED],[horse_base_null_fix:FINISHED],[pre_world_render_hook:FINISHED],[player_render_hook:FINISHED],[horse_null_fix:FINISHED]
                	Launched Version: MultiMC5
                	LWJGL: 2.9.4
                	OpenGL: Quadro K3000M/PCIe/SSE2 GL version 4.6.0 NVIDIA 391.25, NVIDIA Corporation
                	GL Caps: Using GL 1.3 multitexturing.
                Using GL 1.3 texture combiners.
                Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
                Shaders are available because OpenGL 2.1 is supported.
                VBOs are available because OpenGL 1.5 is supported.
                
                	Using VBOs: Yes
                	Is Modded: Definitely; Client brand changed to 'fml,forge'
                	Type: Client (map_client.txt)
                	Resource Packs: 
                	Current Language: English (US)
                	Profiler Position: N/A (disabled)
                	CPU: 4x Intel(R) Core(TM) i5-3360M CPU @ 2.80GHz
                	OptiFine Version: OptiFine_1.12.2_HD_U_D1
                	OptiFine Build: 20180323-135452
                	Render Distance Chunks: 8
                	Mipmaps: 4
                	Anisotropic Filtering: 1
                	Antialiasing: 0
                	Multitexture: false
                	Shaders: null
                	OpenGlVersion: 4.6.0 NVIDIA 391.25
                	OpenGlRenderer: Quadro K3000M/PCIe/SSE2
                	OpenGlVendor: NVIDIA Corporation
                	CpuCount: 4
                1 réponse Dernière réponse Répondre Citer 0
                • robin4002R Hors-ligne
                  robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                  dernière édition par

                  Tu n’as pas compilé correctement ton mod.
                  Il faut utiliser la commande gradlew build pas l’exporter avec l’IDE.

                  1 réponse Dernière réponse Répondre Citer 0
                  • M Hors-ligne
                    Master_Pala
                    dernière édition par

                    ok je vais faire ça

                    1 réponse Dernière réponse Répondre Citer 0
                    • M Hors-ligne
                      Master_Pala
                      dernière édition par

                      quand je fais ce que tu as dis ça compte pas le mod mais quand je fais gradlew assemble ça marche

                      1 réponse Dernière réponse Répondre Citer 0
                      • L Hors-ligne
                        lesFLY
                        dernière édition par

                        Ce message a été supprimé !
                        1 réponse Dernière réponse Répondre Citer 0
                        • B Hors-ligne
                          BlocTox76
                          dernière édition par

                          Ce message a été supprimé !
                          1 réponse Dernière réponse Répondre Citer 0
                          • L Hors-ligne
                            lesFLY
                            dernière édition par

                            Bonjour je fais ce tuto en 1.12.2

                            J’ai 3 erreurs je vous donne mon code, j’ai répertoriés les erreurs tout en haut du code

                            Lien du code: https://code.alwyn974.re/vatunaqofi.cpp

                            PS: j’ai aussi une erreur dans la console qui dit:
                            AL lib: (EE) alc_cleanup: 1 device not closed
                            Java HotSpot™ 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

                            Merci d’avance

                            lesFLY

                            1 réponse Dernière réponse Répondre Citer 0
                            • AstFasterA Hors-ligne
                              AstFaster
                              dernière édition par

                              @robin4002 Ce tutoriel marche t-il aussi en 1.7.10 ?

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

                                Le principe général oui, le code non, il y a beaucoup de différences.

                                1 réponse Dernière réponse Répondre Citer 0
                                • AstFasterA Hors-ligne
                                  AstFaster
                                  dernière édition par

                                  Ah et tu n’as pas un tuto pour sa @robin4002

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

                                    https://www.minecraftforgefrance.fr/topic/2194/modifier-le-menu-principal

                                    1 réponse Dernière réponse Répondre Citer 0
                                    • AstFasterA Hors-ligne
                                      AstFaster
                                      dernière édition par

                                      mrc

                                      1 réponse Dernière réponse Répondre Citer 0
                                      • M Hors-ligne
                                        MidacoYT
                                        dernière édition par

                                        Ce message a été supprimé !
                                        1 réponse Dernière réponse Répondre Citer 0
                                        • R Hors-ligne
                                          Rlarbals822V2
                                          dernière édition par

                                          Tu ne pourait pas faire une vidéo dessus?

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

                                            Ce n’est pas au programme pour le moment.

                                            R 1 réponse Dernière réponse Répondre Citer 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 2 / 7
                                            • Premier message
                                              Dernier message
                                            Design by Woryk
                                            ContactMentions Légales

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB