MFF

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

    GUI qui ne s'ouvre pas en multijoueur

    Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x
    1.7.2
    25 Messages 5 Publieurs 4.4k 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.
    • SCAREXS Hors-ligne
      SCAREX
      dernière édition par

      ça c’est pas normal, tu devrais avoir un crash car tu appelles des fonctions du client côté serveur

      Site web contenant mes scripts : http://SCAREXgaming.github.io

      Pas de demandes de support par MP ni par skype SVP.
      Je n'accepte sur skype que l…

      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

        Non, il passe par le proxy. Côté serveur il ne se passe rien et c’est normal.
        Par contre côté client le gui devrait s’ouvrir.
        Ajoutes un print dans ta fonction openMyGui du client proxy.

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

          @‘robin4002’:

          Non, il passe par le proxy. Côté serveur il ne se passe rien et c’est normal.
          Par contre côté client le gui devrait s’ouvrir.
          Ajoutes un print dans ta fonction openMyGui du client proxy.

          En effet la fonction n’est pas appelée

          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

            Envoies la ligne en rapport avec les proxy dans ta classe principale.

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

              @‘robin4002’:

              Envoies la ligne en rapport avec les proxy dans ta classe principale.

              Voilà :

              @SidedProxy(clientSide = "laserflip33.ordreduphenix.proxy.ClientProxy", serverSide = "laserflip33.ordreduphenix.proxy.CommonProxy")
              
              public static CommonProxy proxy;
              
              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

                étrange que ça ne fonctionne pas.
                Sinon mets :
                if(FMLCommonHandler.instance().getSide().isClient())
                {
                Minecraft.getMinecraft().displayGuiScreen(new GuiLivre1());
                }

                directement dans onItemRightClick

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

                  Si je fais ça, ça crash :

                  –-- Minecraft Crash Report ----
                  // I feel sad now :(
                  
                  Time: 25/04/16 12:09
                  Description: Exception in server tick loop
                  
                  cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiScreen
                  at cpw.mods.fml.common.LoadController.transition(LoadController.java:162)
                  at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:514)
                  at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:88)
                  at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:319)
                  at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:167)
                  at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:599)
                  at java.lang.Thread.run(Unknown Source)
                  Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiScreen
                  at laserflip33.ordreduphenix.common.ModPhenix.preInit(ModPhenix.java:851)
                  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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
                  at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                  at java.lang.reflect.Method.invoke(Unknown Source)
                  at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
                  at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
                  at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
                  at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                  at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                  at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
                  at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
                  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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
                  at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
                  at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
                  at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                  at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                  at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
                  at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:512)
                  ... 5 more
                  Caused by: java.lang.ClassNotFoundException: net.minecraft.client.gui.GuiScreen
                  at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188)
                  at java.lang.ClassLoader.loadClass(Unknown Source)
                  at java.lang.ClassLoader.loadClass(Unknown Source)
                  ... 32 more
                  Caused by: java.lang.RuntimeException: Attempted to load class bcd for invalid side SERVER
                  at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:51)
                  at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:276)
                  at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:174)
                  ... 34 more
                  
                  A detailed walkthrough of the error, its code path and all known details is as follows:
                  ---------------------------------------------------------------------------------------
                  
                  -- System Details --
                  Details:
                  Minecraft Version: 1.7.2
                  Operating System: Windows 7 (amd64) version 6.1
                  Java Version: 1.7.0_79, Oracle Corporation
                  Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
                  Memory: 173032048 bytes (165 MB) / 501088256 bytes (477 MB) up to 1037959168 bytes (989 MB)
                  JVM Flags: 6 total; -Xms512M -Xmx1024M -XX:PermSize=256m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+UseStringCache
                  AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                  IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                  FML: MCP v9.03 FML v7.2.217.1147 Minecraft Forge 10.12.2.1147 13 mods loaded, 13 mods active
                  mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
                  FML{7.2.217.1147} [Forge Mod Loader] (minecraft_server.jar) Unloaded->Constructed->Pre-initialized
                  Forge{10.12.2.1147} [Minecraft Forge] (minecraft_server.jar) Unloaded->Constructed->Pre-initialized
                  CustomSpawner{3.2.0.dev.R3} [DrZhark's CustomSpawner] (CustomMobSpawner 3.2.0-DEV-R3.zip) Unloaded->Constructed->Pre-initialized
                  customnpcs{1.7.2-2} [CustomNpcs] (CustomNPCs_1.7.2.jar) Unloaded->Constructed->Pre-initialized
                  MoCreatures{6.2.0.dev.R3} [DrZhark's Mo'Creatures Mod] (DrZharks MoCreatures Mod v6.2.0-DEV-R3.zip) Unloaded->Constructed->Pre-initialized
                  ftfloocraft{1.7.10-0.3.1} [Floocraft] (Floocraft-1.7.10-0.3.1.jar) Unloaded->Constructed->Pre-initialized
                  MineChess{1.3.7} [MineChess] (MineChess-Mod-1.7.2.zip) Unloaded->Constructed->Pre-initialized
                  halloween{1.0.0} [Halloween] (ModHalloween.jar) Unloaded->Constructed->Pre-initialized
                  ordreduphenix{1.0.0} [Ordre du Phenix] (ordreduphenix-1.0.jar) Unloaded->Constructed->Errored
                  pottermod{0.2} [PotterMod] (Pottermod-0.2.jar) Unloaded->Constructed->Pre-initialized
                  quidcraft{0.1} [Quidcraft] (Quidcraft-0.1(1.7.2).jar) Unloaded->Constructed->Pre-initialized
                  witchery{0.20.4} [Witchery] (witchery-1.7.2-0.20.4.jar) Unloaded->Constructed->Pre-initialized
                  Profiler Position: N/A (disabled)
                  Is Modded: Definitely; Server brand changed to 'cauldron,craftbukkit,mcpc,fml,forge'
                  Type: Dedicated Server (map_server.txt)
                  
                  1 réponse Dernière réponse Répondre Citer 0
                  • AymericRedA Hors-ligne
                    AymericRed
                    dernière édition par

                    Tu as mis ça dans ta classe principale ?
                    Il faut mettre ça où tu ouvres ton gui (dans on block activated), et si ça marche toujours pas, remplace getSide() par getEffectiveSide()

                    Envoyé de mon RAINBOW LITE 4G en utilisant Tapatalk

                    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
                    • L Hors-ligne
                      Laserflip33
                      dernière édition par

                      @‘AymericRed’:

                      Tu as mis ça dans ta classe principale ?
                      Il faut mettre ça où tu ouvres ton gui (dans on block activated), et si ça marche toujours pas, remplace getSide() par getEffectiveSide()

                      Envoyé de mon RAINBOW LITE 4G en utilisant Tapatalk

                      Non j’ai pas mis ça dans la classe principale j’ai mis ça dans la fonction onItemRightClick. J’ai remplacé getSide() par getEffectiveSide(), ça ne change rien.

                      –-- Minecraft Crash Report ----
                      // Ouch. That hurt :(
                      
                      Time: 25/04/16 12:38
                      Description: Exception in server tick loop
                      
                      cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiScreen
                      at cpw.mods.fml.common.LoadController.transition(LoadController.java:162)
                      at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:514)
                      at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:88)
                      at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:319)
                      at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:167)
                      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:599)
                      at java.lang.Thread.run(Unknown Source)
                      Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiScreen
                      at laserflip33.ordreduphenix.common.ModPhenix.preInit(ModPhenix.java:851)
                      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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
                      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                      at java.lang.reflect.Method.invoke(Unknown Source)
                      at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
                      at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
                      at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
                      at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                      at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                      at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
                      at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
                      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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
                      at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
                      at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
                      at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                      at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                      at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
                      at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:512)
                      ... 5 more
                      Caused by: java.lang.ClassNotFoundException: net.minecraft.client.gui.GuiScreen
                      at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188)
                      at java.lang.ClassLoader.loadClass(Unknown Source)
                      at java.lang.ClassLoader.loadClass(Unknown Source)
                      ... 32 more
                      Caused by: java.lang.RuntimeException: Attempted to load class bcd for invalid side SERVER
                      at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:51)
                      at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:276)
                      at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:174)
                      ... 34 more
                      
                      A detailed walkthrough of the error, its code path and all known details is as follows:
                      ---------------------------------------------------------------------------------------
                      
                      -- System Details --
                      Details:
                      Minecraft Version: 1.7.2
                      Operating System: Windows 7 (amd64) version 6.1
                      Java Version: 1.7.0_79, Oracle Corporation
                      Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
                      Memory: 175926568 bytes (167 MB) / 501088256 bytes (477 MB) up to 1037959168 bytes (989 MB)
                      JVM Flags: 6 total; -Xms512M -Xmx1024M -XX:PermSize=256m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+UseStringCache
                      AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                      IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                      FML: MCP v9.03 FML v7.2.217.1147 Minecraft Forge 10.12.2.1147 13 mods loaded, 13 mods active
                      mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
                      FML{7.2.217.1147} [Forge Mod Loader] (minecraft_server.jar) Unloaded->Constructed->Pre-initialized
                      Forge{10.12.2.1147} [Minecraft Forge] (minecraft_server.jar) Unloaded->Constructed->Pre-initialized
                      CustomSpawner{3.2.0.dev.R3} [DrZhark's CustomSpawner] (CustomMobSpawner 3.2.0-DEV-R3.zip) Unloaded->Constructed->Pre-initialized
                      customnpcs{1.7.2-2} [CustomNpcs] (CustomNPCs_1.7.2.jar) Unloaded->Constructed->Pre-initialized
                      MoCreatures{6.2.0.dev.R3} [DrZhark's Mo'Creatures Mod] (DrZharks MoCreatures Mod v6.2.0-DEV-R3.zip) Unloaded->Constructed->Pre-initialized
                      ftfloocraft{1.7.10-0.3.1} [Floocraft] (Floocraft-1.7.10-0.3.1.jar) Unloaded->Constructed->Pre-initialized
                      MineChess{1.3.7} [MineChess] (MineChess-Mod-1.7.2.zip) Unloaded->Constructed->Pre-initialized
                      halloween{1.0.0} [Halloween] (ModHalloween.jar) Unloaded->Constructed->Pre-initialized
                      ordreduphenix{1.0.0} [Ordre du Phenix] (ordreduphenix-1.0.jar) Unloaded->Constructed->Errored
                      pottermod{0.2} [PotterMod] (Pottermod-0.2.jar) Unloaded->Constructed->Pre-initialized
                      quidcraft{0.1} [Quidcraft] (Quidcraft-0.1(1.7.2).jar) Unloaded->Constructed->Pre-initialized
                      witchery{0.20.4} [Witchery] (witchery-1.7.2-0.20.4.jar) Unloaded->Constructed->Pre-initialized
                      Profiler Position: N/A (disabled)
                      Is Modded: Definitely; Server brand changed to 'cauldron,craftbukkit,mcpc,fml,forge'
                      Type: Dedicated Server (map_server.txt)
                      
                      1 réponse Dernière réponse Répondre Citer 0
                      • DeletedD Hors-ligne
                        Deleted
                        dernière édition par

                        Et si tu mets un SideOnly(Side.CLIENT) au dessus de ta classe du gui ?

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

                          Pareil ça crash

                          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

                            Fais comme ça :

                            @Override
                            public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
                            {
                            if(FMLCommonHandler.instance().getSide().isClient())
                            {
                            this.openGui();
                            }
                            return super.onItemRightClick(stack, world, player);
                            }
                            
                            @SideOnly(Side.CLIENT)
                            public void openGui()
                            {
                            Minecraft.getMinecraft().displayGuiScreen(new GuiLivre1());
                            }
                            
                            1 réponse Dernière réponse Répondre Citer 0
                            • L Hors-ligne
                              Laserflip33
                              dernière édition par

                              Là ça ne crash plus mais le GUI ne s’ouvre pas non plus

                              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

                                Ajoutes un System.out.println(“quelque chose”); pour voir si la fonction est appelé.

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

                                  En effet la fonction n’a pas l’air d’être appelée

                                  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

                                    onItemRightClick est au moins appelé ?

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

                                      Non plus … 😕

                                      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 as au moins le bon item ?

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

                                          Problème résolu, j’avais oublié un @Override

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

                                          MINECRAFT FORGE FRANCE © 2024

                                          Powered by NodeBB