MFF

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

    Crash lors du lancement du client ou du serveur

    Planifier Épinglé Verrouillé Déplacé Résolu 1.8.x
    1.8
    6 Messages 4 Publieurs 1.2k 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.
    • J Hors-ligne
      Jupiter41
      dernière édition par

      Bonjour,

      Après avoir suivi les tutos pour créer la base de mon mod et la création d’un item j’ai voulu lancer mon mod mais apès l’apparition de l’icone de Minecraft et le début du chargement celui-ci crash comment faire ? J’ai tester le serveur l’application minecraft server s’ouvre mais avec une erreur à l’intérieur

      Version de Forge : forge-1.8-11.14.4.1577

      Crash report client

      –-- Minecraft Crash Report ----
      // You're mean.
      
      Time: 16/07/16 10:50
      Description: Initializing game
      
      java.lang.ClassCastException: org.apache.logging.log4j.core.Logger cannot be cast to com.sun.istack.internal.logging.Logger
      at fr.jupiter.mod.ModTest.preInit(ModTest.java:29)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:553)
      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.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 net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
      at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
      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.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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
      at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:550)
      at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:249)
      at net.minecraft.client.Minecraft.startGame(Minecraft.java:446)
      at net.minecraft.client.Minecraft.run(Minecraft.java:356)
      at net.minecraft.client.main.Main.main(Main.java:117)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
      at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at 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 fr.jupiter.mod.ModTest.preInit(ModTest.java:29)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:553)
      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.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 net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
      at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
      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.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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
      at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:550)
      at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:249)
      at net.minecraft.client.Minecraft.startGame(Minecraft.java:446)
      
      -- Initialization --
      Details:
      Stacktrace:
      at net.minecraft.client.Minecraft.run(Minecraft.java:356)
      at net.minecraft.client.main.Main.main(Main.java:117)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
      at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
      at GradleStart.main(Unknown Source)
      
      -- System Details --
      Details:
      Minecraft Version: 1.8
      Operating System: Windows 7 (amd64) version 6.1
      Java Version: 1.8.0_91, Oracle Corporation
      Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
      Memory: 751253016 bytes (716 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
      JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
      IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
      FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.4.1577 4 mods loaded, 4 mods active
      States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
      UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
      UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.4.1577.jar)
      UCH Forge{11.14.4.1577} [Minecraft Forge] (forgeSrc-1.8-11.14.4.1577.jar)
      UCE modtest{1.0} [ModTest] (bin)
      Loaded coremods (and transformers):
      GL info: ' Vendor: 'ATI Technologies Inc.' Version: '3.2.9704 Compatibility Profile Context' Renderer: 'ATI Radeon HD 5450'
      Launched Version: 1.8
      LWJGL: 2.9.1
      OpenGL: ATI Radeon HD 5450 GL version 3.2.9704 Compatibility Profile Context, ATI Technologies Inc.
      GL Caps: Using GL 1.3 multitexturing.
      Using GL 1.3 texture combiners.
      Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
      Shaders are available because OpenGL 2.1 is supported.
      VBOs are available because OpenGL 1.5 is supported.
      
      Using VBOs: No
      Is Modded: Definitely; Client brand changed to 'fml,forge'
      Type: Client (map_client.txt)
      Resource Packs: []
      Current Language: English (US)
      Profiler Position: N/A (disabled)
      

      Crash report serveur:

      –-- Minecraft Crash Report ----
      // You should try our sister game, Minceraft!
      
      Time: 16/07/16 10:55
      Description: Exception in server tick loop
      
      java.lang.ClassCastException: org.apache.logging.log4j.core.Logger cannot be cast to com.sun.istack.internal.logging.Logger
      at fr.jupiter.mod.ModTest.preInit(ModTest.java:29)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:553)
      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.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 net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
      at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
      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.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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
      at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:550)
      at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:88)
      at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:355)
      at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:120)
      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:500)
      at java.lang.Thread.run(Unknown Source)
      
      A detailed walkthrough of the error, its code path and all known details is as follows:
      ---------------------------------------------------------------------------------------
      
      -- System Details --
      Details:
      Minecraft Version: 1.8
      Operating System: Windows 7 (amd64) version 6.1
      Java Version: 1.8.0_91, Oracle Corporation
      Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
      Memory: 924688512 bytes (881 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
      JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
      IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
      FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.4.1577 4 mods loaded, 4 mods active
      States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
      UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
      UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.4.1577.jar)
      UCH Forge{11.14.4.1577} [Minecraft Forge] (forgeSrc-1.8-11.14.4.1577.jar)
      UCE modtest{1.0} [ModTest] (bin)
      Loaded coremods (and transformers):
      Profiler Position: N/A (disabled)
      Is Modded: Definitely; Server brand changed to 'fml,forge'
      Type: Dedicated Server (map_server.txt)
      

      Si vous avez besoin d’un screen de l’une de mes classes demandés moi  😉
      Merci d’avance !

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

        Tu récupère le logger de log4j que tu essai de cast en logger de sun, change ton import com.sun.istack.internal.logging.Logger en org.apache.logging.log4j.core.Logger

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

          Ok je vais essayer sa quand je pourrais :)___C’est bon sa marche merci beaucoup !  Mais j’ai un autre problème 😞  La texture de mon item ne se charge pas :

          ClientProxy :

          package fr.jupiter.mod;
          
          import java.io.File;
          
          import fr.jupiter.mod.items.ItemBarricade;
          import fr.jupiter.mod.items.ModtestItems;
          
          public class ClientProxy extends CommonProxy {
          
          @Override
          public void preInit(File configFile) {
          
          super.preInit(configFile);
          
          ModtestItems.registerItemsModels();
          
          }
          
          @Override
          public void init() {
          
          super.init();
          }
          
          }
          
          

          ModtestItems :

          package fr.jupiter.mod.items;
          
          import fr.jupiter.mod.ModTest;
          import net.minecraft.client.resources.model.ModelResourceLocation;
          import net.minecraft.creativetab.CreativeTabs;
          import net.minecraft.item.Item;
          import net.minecraftforge.client.model.ModelLoader;
          import net.minecraftforge.fml.common.registry.GameRegistry;
          import net.minecraftforge.fml.relauncher.Side;
          import net.minecraftforge.fml.relauncher.SideOnly;
          
          public class ModtestItems {
          
             public static final Item NOM = new ItemBarricade().setUnlocalizedName("barricade").setCreativeTab(CreativeTabs.tabDecorations);
          
             public static void registerItems()
             {
          
              GameRegistry.registerItem(NOM, "barricade");
          
             }
          
             @SideOnly(Side.CLIENT)
             public static void registerItemsModels(){
          
                 ModelLoader.setCustomModelResourceLocation(NOM, 0, new ModelResourceLocation(ModTest.MODID + ":barricade", "inventory"));
          
             }
          }
          
          

          ItemBarricade :

          package fr.jupiter.mod.items;
          
          import net.minecraft.entity.player.EntityPlayer;
          import net.minecraft.item.Item;
          import net.minecraft.item.ItemStack;
          import net.minecraft.util.ChatComponentText;
          import net.minecraft.world.World;
          
          public class ItemBarricade extends Item{
          
          @Override
             public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
             {
                 if(!world.isRemote)
                 {
                     player.addChatMessage(new ChatComponentText("Bonjour " + player.getName()));
                 }
                 return stack;
          
             }
          }
          
          

          Fichier barricade_item.json :

          {
             "parent": "builtin/generated",
             "textures": {
                 "layer0": "modtest:items/barricade"
             },
             "display": {
                 "thirdperson": {
                     "rotation": [ -90, 0, 0 ],
                     "translation": [ 0, 1, -3 ],
                     "scale": [ 0.55, 0.55, 0.55 ]
                 },
                 "firstperson": {
                     "rotation": [ 0, -135, 25 ],
                     "translation": [ 0, 4, 2 ],
                     "scale": [ 1.7, 1.7, 1.7 ]
          
                 }
             }
          }
          
          

          L’erreur : [Client thread/ERROR] [FML]: Model definition for location modtest:barricade#inventory not found
          Merci d’avance !

          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

            barricade_item.json -> barricade.json

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

              Merci beaucoup, vraiment ::)

              J’avais oublié à quel point une petite erreur pouvait faire planter un gros programme. Faut que je fasse plus gaffe 🙂

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

                Si c’est résolu, n’oublie pas de mettre la balise “Résolu” en éditant ton premier message.

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

                MINECRAFT FORGE FRANCE © 2024

                Powered by NodeBB