MFF

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

    Système de rang

    Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x
    1.7.10
    81 Messages 7 Publieurs 10.5k 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

      S’il vous plait ??

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

        Où as-tu mis ton null check de RankSave.instance ?

        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

          Bah c’est pas ça -> RankSave.instance == null ?

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

            Oui, mais tu l’as mis dans quelle fonction ?

            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

              Dans onMessage tien je te passe la fonction :

              
              @Override
                 public IMessage onMessage(PacketGuerrier message, MessageContext ctx) {
                      if(ServerProxy.RANK.get(ctx.getServerHandler().playerEntity.getUniqueID()) == null && RankSave.instance == null) {
                             RankSave.load(ctx.getServerHandler().playerEntity.worldObj);
                      ServerProxy.RANK.put(ctx.getServerHandler().playerEntity.getUniqueID(), EnumRank.valueOf(message.name));
                             RankSave.instance.markDirty();
                      }
              return null;
                     }
                 }
              
              1 réponse Dernière réponse Répondre Citer 0
              • BrokenSwingB Hors-ligne
                BrokenSwing Moddeurs confirmés Rédacteurs
                dernière édition par

                Le problème est là

                
                if(ServerProxy.RANK.get(ctx.getServerHandler().playerEntity.getUniqueID()) == null && RankSave.instance == null)
                
                

                Devient :

                
                if(ServerProxy.RANK.get(ctx.getServerHandler().playerEntity.getUniqueID()) == null)
                
                
                1 réponse Dernière réponse Répondre Citer 0
                • GabsG Hors-ligne
                  Gabs
                  dernière édition par

                  Oui mais du coup le RankSave.instance je met ou ?

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

                    Bah, tu save, ça suffit, c’est dans le constructeur de RankSave il faut qu’il y est ça

                    
                    public RankSave(String key) {
                    //Code ….
                    RankSave.instance = this;
                    }
                    
                    
                    1 réponse Dernière réponse Répondre Citer 0
                    • GabsG Hors-ligne
                      Gabs
                      dernière édition par

                      Ahhhhhhhhhhhhhh j’avais pas compris ^^

                      j’ai fais ça:

                      Packet:

                      
                      @Override
                         public IMessage onMessage(PacketGuerrier message, MessageContext ctx) {
                              if(ServerProxy.RANK.get(ctx.getServerHandler().playerEntity.getUniqueID()) == null) {
                              ServerProxy.RANK.put(ctx.getServerHandler().playerEntity.getUniqueID(), EnumRank.valueOf(message.name));
                                     RankSave.instance.markDirty();
                              }
                      return null;
                             }
                         }
                      
                      

                      RankSave:

                      
                      public RankSave(String key) {
                      super(key);
                      if(RankSave.instance == null){
                      RankSave.load(Minecraft.getMinecraft().thePlayer.worldObj);
                      }
                      instance = this;
                      
                      }
                      

                      J’ai un crash:

                      
                      [22:53:20] [main/INFO] [GradleStart]: username: floriangabet
                      [22:53:20] [main/INFO] [GradleStart]: Extra: []
                      [22:53:20] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Admin/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --username, floriangabet, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
                      [22:53:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                      [22:53:20] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                      [22:53:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
                      [22:53:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                      [22:53:20] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1291 for Minecraft 1.7.10 loading
                      [22:53:20] [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
                      [22:53:20] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                      [22:53:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
                      [22:53:20] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
                      [22:53:20] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                      [22:53:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                      [22:53:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                      [22:53:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                      [22:53:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                      [22:53:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                      [22:53:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                      [22:53:20] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                      [22:53:21] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                      [22:53:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                      [22:53:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                      [22:53:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                      [22:53:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
                      [22:53:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
                      [22:53:21] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
                      [22:53:21] [main/INFO]: Setting user: floriangabet
                      [22:53:22] [Client thread/INFO]: LWJGL Version: 2.9.1
                      [22:53:22] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
                      [22:53:22] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1291 Initialized
                      [22:53:22] [Client thread/INFO] [FML]: Replaced 183 ore recipies
                      [22:53:22] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
                      [22:53:22] [Client thread/INFO] [FML]: Searching C:\Users\Admin\Documents\Modding\LegacyMod\eclipse\mods for mods
                      [22:53:22] [Client thread/INFO] [lc]: Mod lc is missing the required element 'name'. Substituting lc
                      [22:53:24] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                      [22:53:24] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, lc] at CLIENT
                      [22:53:24] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, lc] at SERVER
                      [22:53:24] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:lc, [1.10] Firewolf v1.36.zip
                      [22:53:24] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
                      [22:53:24] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
                      [22:53:24] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
                      [22:53:24] [Client thread/INFO] [FML]: Applying holder lookups
                      [22:53:24] [Client thread/INFO] [FML]: Holder lookups applied
                      [22:53:24] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                      [22:53:24] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                      [22:53:24] [Thread-5/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                      [22:53:24] [Thread-5/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                      [22:53:24] [Thread-5/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                      [22:53:25] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                      [22:53:25] [Sound Library Loader/INFO]: Sound engine started
                      [22:53:27] [Client thread/INFO]: Created: 2048x2048 textures/blocks-atlas
                      [22:53:27] [Client thread/INFO]: Created: 256x256 textures/items-atlas
                      [22:53:27] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
                      [22:53:27] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:lc, [1.10] Firewolf v1.36.zip
                      [22:53:29] [Client thread/INFO]: Created: 2048x2048 textures/blocks-atlas
                      [22:53:29] [Client thread/INFO]: Created: 256x256 textures/items-atlas
                      [22:53:29] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                      [22:53:29] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                      [22:53:30] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                      [22:53:30] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                      [22:53:30] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                      [22:53:30] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                      [22:53:30] [Thread-7/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                      [22:53:30] [Thread-7/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                      [22:53:30] [Thread-7/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                      [22:53:30] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                      [22:53:30] [Sound Library Loader/INFO]: Sound engine started
                      [22:53:32] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
                      [22:53:32] [Server thread/INFO]: Generating keypair
                      [22:53:33] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
                      [22:53:33] [Server thread/INFO] [FML]: Applying holder lookups
                      [22:53:33] [Server thread/INFO] [FML]: Holder lookups applied
                      [22:53:33] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@76dcd5)
                      [22:53:33] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@76dcd5)
                      [22:53:33] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@76dcd5)
                      [22:53:33] [Server thread/INFO]: Preparing start region for level 0
                      [22:53:33] [Server thread/INFO]: Changing view distance to 8, from 10
                      [22:53:34] [Netty Client IO #0/INFO] [FML]: Server protocol version 1
                      [22:53:34] [Netty IO #1/INFO] [FML]: Client protocol version 1
                      [22:53:34] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@7.10.85.1291,lc@1.0,Forge@10.13.2.1291,mcp@9.05
                      [22:53:34] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
                      [22:53:34] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
                      [22:53:34] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
                      [22:53:34] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
                      [22:53:34] [Server thread/INFO]: floriangabet[local:E:48b9f1b7] logged in with entity id 353 at (40.647229051082405, 84.64611023521208, 36.618371109698195)
                      [22:53:34] [Server thread/INFO]: floriangabet joined the game
                      [22:53:35] [Server thread/INFO]: Saving and pausing game…
                      [22:53:35] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                      [22:53:35] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                      [22:53:35] [Server thread/INFO]: Saving chunks for level 'New World'/The End
                      [22:53:36] [Client thread/INFO]: [CHAT] §7Vous avez choisi la classe §4Guerrier!
                      [22:53:36] [Server thread/ERROR] [FML]: SimpleChannelHandlerWrapper exception
                      java.lang.NullPointerException
                      at net.legacymod.packets.PacketGuerrier$Handler.onMessage(PacketGuerrier.java:47) ~[PacketGuerrier$Handler.class:?]
                      at net.legacymod.packets.PacketGuerrier$Handler.onMessage(PacketGuerrier.java:1) ~[PacketGuerrier$Handler.class:?]
                      at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:37) ~[SimpleChannelHandlerWrapper.class:?]
                      at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:17) ~[SimpleChannelHandlerWrapper.class:?]
                      at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[SimpleChannelInboundHandler.class:?]
                      at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
                      at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
                      at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]
                      at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]
                      at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
                      at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
                      at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]
                      at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]
                      at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?]
                      at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?]
                      at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?]
                      at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?]
                      at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?]
                      at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?]
                      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
                      at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
                      [22:53:36] [Server thread/ERROR] [FML]: SimpleChannelHandlerWrapper exception
                      java.lang.NullPointerException
                      at net.legacymod.packets.PacketGuerrier$Handler.onMessage(PacketGuerrier.java:47) ~[PacketGuerrier$Handler.class:?]
                      at net.legacymod.packets.PacketGuerrier$Handler.onMessage(PacketGuerrier.java:1) ~[PacketGuerrier$Handler.class:?]
                      at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:37) ~[SimpleChannelHandlerWrapper.class:?]
                      at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:17) ~[SimpleChannelHandlerWrapper.class:?]
                      at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[SimpleChannelInboundHandler.class:?]
                      at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
                      at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
                      at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]
                      at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]
                      at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
                      at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
                      at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]
                      at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]
                      at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?]
                      at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?]
                      at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?]
                      at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?]
                      at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?]
                      at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?]
                      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
                      at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
                      [22:53:36] [Server thread/ERROR] [FML]: There was a critical exception handling a packet on channel lc:
                      java.lang.NullPointerException
                      at net.legacymod.packets.PacketGuerrier$Handler.onMessage(PacketGuerrier.java:47) ~[PacketGuerrier$Handler.class:?]
                      at net.legacymod.packets.PacketGuerrier$Handler.onMessage(PacketGuerrier.java:1) ~[PacketGuerrier$Handler.class:?]
                      at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:37) ~[SimpleChannelHandlerWrapper.class:?]
                      at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:17) ~[SimpleChannelHandlerWrapper.class:?]
                      at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[SimpleChannelInboundHandler.class:?]
                      at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]
                      at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]
                      at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[MessageToMessageDecoder.class:?]
                      at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?]
                      at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]
                      at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]
                      at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) ~[DefaultChannelPipeline.class:?]
                      at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:?]
                      at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?]
                      at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?]
                      at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?]
                      at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?]
                      at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?]
                      at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?]
                      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
                      at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
                      [22:53:36] [Server thread/INFO]: Stopping server
                      [22:53:36] [Server thread/INFO]: Saving players
                      [22:53:36] [Server thread/INFO]: Saving worlds
                      [22:53:36] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                      [22:53:36] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                      [22:53:36] [Server thread/INFO]: Saving chunks for level 'New World'/The End
                      [22:53:36] [Server thread/INFO] [FML]: Unloading dimension 0
                      [22:53:36] [Server thread/INFO] [FML]: Unloading dimension -1
                      [22:53:36] [Server thread/INFO] [FML]: Unloading dimension 1
                      [22:53:36] [Server thread/INFO] [FML]: Applying holder lookups
                      [22:53:36] [Server thread/INFO] [FML]: Holder lookups applied
                      
                      
                      1 réponse Dernière réponse Répondre Citer 0
                      • BrokenSwingB Hors-ligne
                        BrokenSwing Moddeurs confirmés Rédacteurs
                        dernière édition par

                        il faut que tu mette le RankSave.load dans l’event FMLServerStartingEvent avec comme argument event.worldObj

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

                          event.worldObj existe pas dans FMLServerStartingEvent

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

                            Alors event.world ou event.getWorld() certainement.

                            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
                            • BrokenSwingB Hors-ligne
                              BrokenSwing Moddeurs confirmés Rédacteurs
                              dernière édition par

                              Oui faut chercher, je vais pas systématiquement voir les paramètres des évents, surtout que t’es en 1.7 donc faut que j’aille ouvrir mon setup 1.7

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

                                J’ai chercher , j’ai trouvé:

                                event.getServer().getEntityWorld()  -> résultat mon jeu plante quand je le lance

                                et

                                event.getServer().worldServerForDimension(0) -> crash également.

                                Crash-Report qui doit sans doute être le même pour les deux :

                                
                                [09:18:15] [main/INFO] [GradleStart]: username: floriangabet
                                [09:18:15] [main/INFO] [GradleStart]: Extra: []
                                [09:18:15] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Admin/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --username, floriangabet, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
                                [09:18:15] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                [09:18:15] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                [09:18:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
                                [09:18:15] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                                [09:18:15] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1291 for Minecraft 1.7.10 loading
                                [09:18:15] [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
                                [09:18:15] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                                [09:18:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
                                [09:18:16] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
                                [09:18:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                                [09:18:16] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                [09:18:16] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                [09:18:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                                [09:18:16] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                [09:18:16] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                [09:18:16] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                [09:18:16] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                                [09:18:16] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                                [09:18:16] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                [09:18:16] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                [09:18:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                                [09:18:16] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
                                [09:18:16] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
                                [09:18:16] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
                                [09:18:16] [main/INFO]: Setting user: floriangabet
                                [09:18:17] [Client thread/INFO]: LWJGL Version: 2.9.1
                                [09:18:17] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
                                [09:18:17] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1291 Initialized
                                [09:18:17] [Client thread/INFO] [FML]: Replaced 183 ore recipies
                                [09:18:17] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
                                [09:18:17] [Client thread/INFO] [FML]: Searching C:\Users\Admin\Documents\Modding\LegacyMod\eclipse\mods for mods
                                [09:18:17] [Client thread/INFO] [lc]: Mod lc is missing the required element 'name'. Substituting lc
                                [09:18:19] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                                [09:18:19] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, lc] at CLIENT
                                [09:18:19] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, lc] at SERVER
                                [09:18:19] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:lc, [1.10] Firewolf v1.36.zip
                                [09:18:19] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
                                [09:18:19] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
                                [09:18:19] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
                                [09:18:19] [Client thread/INFO] [FML]: Applying holder lookups
                                [09:18:19] [Client thread/INFO] [FML]: Holder lookups applied
                                [09:18:19] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                [09:18:19] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                                [09:18:19] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                                [09:18:19] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                [09:18:19] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                                [09:18:20] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                [09:18:20] [Sound Library Loader/INFO]: Sound engine started
                                [09:18:22] [Client thread/INFO]: Created: 2048x2048 textures/blocks-atlas
                                [09:18:22] [Client thread/INFO]: Created: 256x256 textures/items-atlas
                                [09:18:22] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
                                [09:18:22] [Client thread/ERROR] [FML]: 
                                mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
                                FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized
                                Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized
                                lc{1.0} [lc] (bin) Unloaded->Constructed->Pre-initialized->Errored
                                [09:18:22] [Client thread/ERROR] [FML]: The following problems were captured during this phase
                                [09:18:22] [Client thread/ERROR] [FML]: Caught exception from lc
                                java.lang.IllegalArgumentException: Method public void net.legacymod.events.Events.onServerStarting(cpw.mods.fml.common.event.FMLServerStartingEvent) has @SubscribeEvent annotation, but takes a argument that is not an Event class cpw.mods.fml.common.event.FMLServerStartingEvent
                                at cpw.mods.fml.common.eventhandler.EventBus.register(EventBus.java:82) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?]
                                at net.legacymod.LegacyMod.init(LegacyMod.java:84) ~[bin/:?]
                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
                                at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
                                at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?]
                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
                                at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
                                at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
                                at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
                                at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
                                at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
                                at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
                                at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?]
                                at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?]
                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
                                at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
                                at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
                                at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
                                at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
                                at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
                                at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
                                at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]
                                at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) [Loader.class:?]
                                at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288) [FMLClientHandler.class:?]
                                at net.minecraft.client.Minecraft.startGame(Minecraft.java:586) [Minecraft.class:?]
                                at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
                                at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
                                at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
                                at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
                                at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
                                at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
                                at GradleStart.main(Unknown Source) [start/:?]
                                [09:18:22] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
                                // Don't do that.
                                
                                Time: 07/07/16 09:18
                                Description: Initializing game
                                
                                java.lang.IllegalArgumentException: Method public void net.legacymod.events.Events.onServerStarting(cpw.mods.fml.common.event.FMLServerStartingEvent) has @SubscribeEvent annotation, but takes a argument that is not an Event class cpw.mods.fml.common.event.FMLServerStartingEvent
                                at cpw.mods.fml.common.eventhandler.EventBus.register(EventBus.java:82)
                                at net.legacymod.LegacyMod.init(LegacyMod.java:84)
                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                at java.lang.reflect.Method.invoke(Method.java:497)
                                at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                at java.lang.reflect.Method.invoke(Method.java:497)
                                at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
                                at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
                                at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
                                at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
                                at com.google.common.eventbus.EventBus.post(EventBus.java:275)
                                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(NativeMethodAccessorImpl.java:62)
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                at java.lang.reflect.Method.invoke(Method.java:497)
                                at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
                                at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
                                at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
                                at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
                                at com.google.common.eventbus.EventBus.post(EventBus.java:275)
                                at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
                                at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
                                at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)
                                at net.minecraft.client.Minecraft.startGame(Minecraft.java:586)
                                at net.minecraft.client.Minecraft.run(Minecraft.java:931)
                                at net.minecraft.client.main.Main.main(Main.java:164)
                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                at java.lang.reflect.Method.invoke(Method.java:497)
                                at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
                                at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
                                at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
                                at GradleStart.main(Unknown Source)
                                
                                A detailed walkthrough of the error, its code path and all known details is as follows:
                                ---------------------------------------------------------------------------------------
                                
                                -- Head --
                                Stacktrace:
                                at cpw.mods.fml.common.eventhandler.EventBus.register(EventBus.java:82)
                                at net.legacymod.LegacyMod.init(LegacyMod.java:84)
                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                at java.lang.reflect.Method.invoke(Method.java:497)
                                at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                at java.lang.reflect.Method.invoke(Method.java:497)
                                at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
                                at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
                                at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
                                at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
                                at com.google.common.eventbus.EventBus.post(EventBus.java:275)
                                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(NativeMethodAccessorImpl.java:62)
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                at java.lang.reflect.Method.invoke(Method.java:497)
                                at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
                                at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
                                at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
                                at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
                                at com.google.common.eventbus.EventBus.post(EventBus.java:275)
                                at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
                                at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
                                at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)
                                at net.minecraft.client.Minecraft.startGame(Minecraft.java:586)
                                
                                -- Initialization --
                                Details:
                                Stacktrace:
                                at net.minecraft.client.Minecraft.run(Minecraft.java:931)
                                at net.minecraft.client.main.Main.main(Main.java:164)
                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                at java.lang.reflect.Method.invoke(Method.java:497)
                                at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
                                at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
                                at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
                                at GradleStart.main(Unknown Source)
                                
                                -- System Details --
                                Details:
                                Minecraft Version: 1.7.10
                                Operating System: Windows 7 (x86) version 6.1
                                Java Version: 1.8.0_45, Oracle Corporation
                                Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
                                Memory: 707768880 bytes (674 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
                                JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                                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.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 4 mods loaded, 4 mods active
                                mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
                                FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized
                                Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized
                                lc{1.0} [lc] (bin) Unloaded->Constructed->Pre-initialized->Errored
                                Launched Version: 1.7.10
                                LWJGL: 2.9.1
                                OpenGL: GeForce GTX 960/PCIe/SSE2 GL version 4.5.0 NVIDIA 368.39, NVIDIA Corporation
                                GL Caps: Using GL 1.3 multitexturing.
                                Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
                                Anisotropic filtering is supported and maximum anisotropy is 16.
                                Shaders are available because OpenGL 2.1 is supported.
                                
                                Is Modded: Definitely; Client brand changed to 'fml,forge'
                                Type: Client (map_client.txt)
                                Resource Packs: [[1.10] Firewolf v1.36.zip]
                                Current Language: English (US)
                                Profiler Position: N/A (disabled)
                                Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                                Anisotropic Filtering: Off (1)
                                [09:18:22] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Admin\Documents\Modding\LegacyMod\eclipse\.\crash-reports\crash-2016-07-07_09.18.22-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
                                
                                
                                1 réponse Dernière réponse Répondre Citer 0
                                • DeletedD Hors-ligne
                                  Deleted
                                  dernière édition par

                                  T’as un mauvais argument dans une méthode d’event.

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

                                    Oui je sais.

                                    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

                                      onServerStarting(FMLServerStartingEvent event) doit être mit dans la classe principale avec @EventHandler au dessus et non @SubscribeEvent

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

                                        On est bon nickel merci :)!

                                        edit:

                                        Une dernière petit question si je veux “dégrade” le joueur par la suite je procède comment ? 
                                        J’ai fais ça:
                                        LegacyMod.network.sendToServer(new PacketGuerrier(null));
                                        Crash se qui me semble logique.

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

                                          Si par dégrade tu entends que le Gui s’ouvrira à nouveau car il n’aura plus de grade ? Dans ce cas il faut que tu enlève le joueur de la HashMap (côté serveur bien sûr) si t’es sur le client alors envoie un paquet au serveur

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

                                            Nickel merci bien 🙂 ! je vous met +2 🙂

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

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB