MFF

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

    Afficher une image lors de la connexion.

    Planifier Épinglé Verrouillé Déplacé Résolu 1.8.x
    1.8
    45 Messages 5 Publieurs 7.6k Vues 1 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.
    • GabsG Hors-ligne
      Gabs
      dernière édition par

      Salut, merci de ta réponse SCAREX,

      Quand je lance mon jeu en débug lorsque je me connecte en solo mon jeu plante et m’indique que le soucis vient de la:

      @Override
      public void drawScreen(int mouseX, int mouseY, float partialTicks) {
      
      this.drawDefaultBackground(); // ICI
      
      mc.getTextureManager().bindTexture(ressource);
      
      this.drawTexturedModalRect(this.width / 2 - 128, this.height / 2 - 128, 0, 0, 1920, 1080);
      
      super.drawScreen(mouseX, mouseY, partialTicks);
      }
      
      }
      
      

      quand j’enlève cette ligne le crash n’est plus la mais comme avant le gui se ferme directement après .

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

        Ta fonction onGuiClosed est appelée par quelle fonction du coup ?

        Si je vous ai aidé, n'oubliez pas d’être heureux, j'aiderai encore +

        AymericRed, moddeur expérimenté qui aide sur ce forum et qui peut accepter de faire un mod Forge rémunéré de temps en temps.

        Mes tutos : Table de craft, plugin NEI, plugin JEI, modifier l'overlay
        Je suis un membre apprécié et joueur, j'ai déjà obtenu 6 points de réputation.

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

          Justement j’ai pas de fonction onguiclosed je crois je vérifie ça je te dis.

          Edit:

          Quand je met cette fonction:

          @Override
          public void onGuiClosed() {
             Throwable t = new Throwable();
             t.printStackTrace();
          }
          

          J’ai ça dans les logs:

          [13:34:30] [main/INFO] [GradleStart]: Extra: []
          [13:34:30] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Admin/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
          [13:34:30] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
          [13:34:30] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
          [13:34:30] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
          [13:34:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
          [13:34:30] [main/INFO] [FML]: Forge Mod Loader version 8.0.37.1334 for Minecraft 1.8 loading
          [13:34:30] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.8.0_45, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jdk1.8.0_45\jre
          [13:34:30] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
          [13:34:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
          [13:34:30] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
          [13:34:30] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
          [13:34:30] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
          [13:34:30] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
          [13:34:30] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
          [13:34:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
          [13:34:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
          [13:34:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
          [13:34:30] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
          [13:34:31] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
          [13:34:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
          [13:34:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
          [13:34:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
          [13:34:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
          [13:34:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
          [13:34:31] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
          [13:34:31] [Client thread/INFO]: Setting user: Player392
          [13:34:33] [Client thread/INFO]: LWJGL Version: 2.9.1
          [13:34:33] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
          [13:34:33] [Client thread/INFO] [FML]: MinecraftForge v11.14.1.1334 Initialized
          [13:34:33] [Client thread/INFO] [FML]: Replaced 204 ore recipies
          [13:34:33] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
          [13:34:33] [Client thread/INFO] [FML]: Searching C:\Users\Admin\Desktop\Modding\WasteLand 1.8\eclipse\mods for mods
          [13:34:33] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
          [13:34:33] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, wl] at CLIENT
          [13:34:33] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, wl] at SERVER
          [13:34:34] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:WasteLand
          [13:34:34] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
          [13:34:34] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations
          [13:34:34] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
          [13:34:34] [Client thread/INFO] [FML]: Applying holder lookups
          [13:34:34] [Client thread/INFO] [FML]: Holder lookups applied
          [13:34:34] [Sound Library Loader/INFO]: Starting up SoundSystem…
          [13:34:34] [Thread-6/INFO]: Initializing LWJGL OpenAL
          [13:34:34] [Thread-6/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
          [13:34:34] [Thread-6/INFO]: OpenAL initialized.
          [13:34:34] [Sound Library Loader/INFO]: Sound engine started
          [13:34:35] [Client thread/INFO]: Created: 512x512 textures-atlas
          [13:34:35] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
          [13:34:35] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:WasteLand
          [13:34:35] [Client thread/INFO]: SoundSystem shutting down…
          [13:34:36] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
          [13:34:36] [Sound Library Loader/INFO]: Starting up SoundSystem…
          [13:34:36] [Thread-8/INFO]: Initializing LWJGL OpenAL
          [13:34:36] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
          [13:34:36] [Thread-8/INFO]: OpenAL initialized.
          [13:34:36] [Sound Library Loader/INFO]: Sound engine started
          [13:34:37] [Client thread/INFO]: Created: 512x512 textures-atlas
          [13:34:39] [Server thread/INFO]: Starting integrated minecraft server version 1.8
          [13:34:39] [Server thread/INFO]: Generating keypair
          [13:34:39] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
          [13:34:39] [Server thread/INFO] [FML]: Applying holder lookups
          [13:34:39] [Server thread/INFO] [FML]: Holder lookups applied
          [13:34:39] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1515cf3)
          [13:34:39] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1515cf3)
          [13:34:39] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1515cf3)
          [13:34:39] [Server thread/INFO]: Preparing start region for level 0
          [13:34:40] [Server thread/INFO]: Changing view distance to 16, from 10
          [13:34:40] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 1
          [13:34:40] [Netty Server IO #1/INFO] [FML]: Client protocol version 1
          [13:34:40] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@8.0.37.1334,wl@1.0,Forge@11.14.1.1334,mcp@9.05
          [13:34:40] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
          [13:34:40] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
          [13:34:40] [Server thread/INFO]: Player392[local:E:411625b4] logged in with entity id 337 at (164.8324583551484, 95.0, 5.604756747048976)
          [13:34:40] [Server thread/INFO]: Player392 joined the game
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.Throwable
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.armacraft.GUI.EquipeGuiScreen.onGuiClosed(EquipeGuiScreen.java:52)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraft.client.Minecraft.displayGuiScreen(Minecraft.java:959)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraft.client.network.NetHandlerPlayClient.handlePlayerPosLook(NetHandlerPlayClient.java:721)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraft.network.play.server.S08PacketPlayerPosLook.func_180718_a(S08PacketPlayerPosLook.java:64)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraft.network.play.server.S08PacketPlayerPosLook.processPacket(S08PacketPlayerPosLook.java:78)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:24)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraftforge.fml.common.FMLCommonHandler.callFuture(FMLCommonHandler.java:709)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1070)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraft.client.Minecraft.run(Minecraft.java:376)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraft.client.main.Main.main(Main.java:117)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at java.lang.reflect.Method.invoke(Method.java:497)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
          [13:34:41] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at GradleStart.main(Unknown Source)
          [13:34:41] [Server thread/INFO]: Saving and pausing game…
          [13:34:41] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
          [13:34:41] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
          [13:34:41] [Server thread/INFO]: Saving chunks for level 'New World'/The End
          
          

          Pour info la ligne 52 de la classe EquipeGuiScreen c’est elle:

          @Override
          public void onGuiClosed() {
             Throwable t = new Throwable();//Elle
             t.printStackTrace();
          }
          
          
          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 peux m’envoyer un zip de ton dossier src ? je vais regarder de mon côté.

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

              Tien:

              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

                Bon le problème c’est que le S08PacketPlayerPosLook affiche le gui screen null (donc aucun gui screen) une fois connecté.

                Il faut faire comme ceci :

                public static class Handler implements IMessageHandler <packetgui, imessage="">{
                @Override
                public IMessage onMessage(PacketGUI message, MessageContext ctx)
                {
                IThreadListener thread = FMLCommonHandler.instance().getWorldThread(ctx.netHandler);
                thread.addScheduledTask(new Runnable()
                {
                public void run()
                {
                Minecraft.getMinecraft().displayGuiScreen(new EquipeGuiScreen());
                }
                });
                return null;
                }
                }
                ```</packetgui,>
                1 réponse Dernière réponse Répondre Citer 1
                • GabsG Hors-ligne
                  Gabs
                  dernière édition par

                  Bah j’ai rien compris au code x) mais merci beaucoup ça marche 😄

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

                    Une dernière petite question appart bidouiller les chiffres comment je peux faire pour que ma texture soit bien centrée ?

                    1 réponse Dernière réponse Répondre Citer 0
                    • DiabolicaTrixD Hors-ligne
                      DiabolicaTrix Correcteurs Moddeurs confirmés
                      dernière édition par

                      largeur / 2 - largeur de ton image
                      hauteur / 2 - la hauteur de ton image

                      1 réponse Dernière réponse Répondre Citer 1
                      • GabsG Hors-ligne
                        Gabs
                        dernière édition par

                        Merci 🙂

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

                        MINECRAFT FORGE FRANCE © 2024

                        Powered by NodeBB