MFF

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

    [Résolu]Petit problème

    Planifier Épinglé Verrouillé Déplacé Résolu 1.8.x
    1.8.8
    66 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.
    • conquerorguepardC Hors-ligne
      conquerorguepard
      dernière édition par

      C’est à dire?
      Je croyais que c’était le screen que tu voulais. Qu’est-ce que la hiérarchie des packages de ressources si ce n’est pas ça :/?
      Tu veux parler des fichiers?

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

        Oui il voulait aussi avoir un aperçu des textures afin de voir si elles sont au bonne endroit. Déroule donc l’onglet src/main/resources et refais un screen.

        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

          @‘conquerorguepard’:

          zip de mon src: je fais comment? J’ai essayé en rar ça ne veut pas et je ne sais pas comment te le mettre en zip 😕

          Je ne comprendrai jamais comment la merde qu’est winrar à réussi à s’imposer.
          7zip est tellement mieux. Open source, pas de message de merde à chaque ouverture comme quoi il faut acheter une licence et plus de format supporté.
          Tu peux aussi faire des zip avec winrar, il faut juste changer le format lors de la création de l’archive. Tu peux même faire un zip avec l’explorateur de fichier de Windows.

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

            Le zip est là, et pour “Déroule donc l’onglet src/main/resources et refais un screen.” ça va être compliqué sur eclipse, j’ai rien derrière

            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

              On parlait de ça :

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

                Ah d’accord 🙂

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

                  Le dossier items qui se trouve dans le dossier models ne devrait pas avoir de s. Ça devrait être juste items.
                  Pour l’autre c’est bon (oui c’est compliqué x))

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

                    C’est bon?
                    ça veut dire que normalement ça doit marcher mtn?

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

                      ça marche! Excellent! Manque plus qu’à le renommer, car là ça marque item.meatEpanterias.name
                      Je fais comment svp :)?
                      En tout cas merci à tous de m’avoir aider et d’avoir été patient ^^"!

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

                        1- 24h entre chaque message sinon édite l’ancien message
                        2- Il me semble que c’est marqué dans le tutoriel : il faut modifier les fichiers de langue

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

                          En bref je voulais tous vous remercier pour votre patience et votre aide.
                          Et du coup j’ai apporté deux screenshots de mon tout premier item (qui est primitif, sa texture sera changée et tout, ça deviendra de la bouffe etc. Mais c’est déjà ça!)

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

                            Sujet résolu ?

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

                              Pas complètement ^^.
                              Maintenant, je sais faire un item, mais j’ai vu que dans l’un des tutos de checconio, on pouvait le faire sur une seule page pour que ce soit moins le bordel ^^.
                              Du coup je pense tenter, mais j’ai quelques erreurs, si certains savent pourquoi?:
                              (et on y arrive je pense qu’il serait judicieux de mettre mon truc en exemple en 1.8 pour faciliter le copiage de la programmation :))

                              package com.modzoic.init;
                              
                              import com.modzoic.Reference;
                              
                              import net.minecraft.item.Item;
                              import net.minecraft.client.Minecraft;
                              import net.minecraft.client.renderer.entity.RenderItem;
                              import net.minecraft.client.resources.model.ModelResourceLocation;
                              import net.minecraft.creativetab.CreativeTabs;
                              import net.minecraft.item.Item;
                              import net.minecraftforge.fml.common.registry.GameRegistry;
                              
                              public class meatdino
                              {
                                  public static Item meatdino;
                              
                                  public static void init()
                                  {
                                      meatdino = new Meatdino().setCreativeTab(CreativeTabs.tabFood);
                                  }
                              
                                  public static void register()
                                  {
                                      GameRegistry.registerItem(meatdino, meatdino.getUnlocalizedName().substring(5));
                                  }
                              
                                  public static void registerRenders()
                                  {
                                      registerRender(meatdino);
                                  }
                              
                                  public static void registerRender(Item item)
                                  {
                                      RenderItem registerMesher = Minecraft.getMinecraft().getRenderItem();
                                      registerMesher.getItemModelMesher().register(item, 0, new ModelResourceLocation("modzoic" + ":meatdino", "inventory"));
                                  }
                              }  
                              
                              

                              Erreurs:
                              1:The declared package “com.modzoic.init” does not match the expected package “fr.minecraftforgefrance.modzoic.common”
                              2:The import com.modzoic cannot be resolved
                              3:Meatdino cannot be resolved to a type

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

                                1 Aprend le java, 2 apprend le java, 3 apprend à relire ton code avant de poser des questions.
                                Alors les réponses :
                                1 Tu as mal déclaré ton package, tu as juste à faire “change package déclaration to”. 2 ctrl + shift + o pour organiser les imports. 3 Tu as mis un nom sans majuscule à ta classe.

                                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
                                • conquerorguepardC Hors-ligne
                                  conquerorguepard
                                  dernière édition par robin4002

                                  0_1537563239169_ICI1.PNG
                                  Le java c’est long à apprendre. Et je sais qu’il y a une vidéo pour ça sauf qu’elle dure une heure et que tout n’est pas toujours dedans, juste le plus important ^^'. Mais ce week end j’aurai plus le temps, je pourrai largement plus m’y consacrer.

                                  Me reste une erreur:

                                  The method setCreativeTab(CreativeTabs) is undefined for the type meatdino

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

                                    Normal, ce n’est pas un item. Apprends le java, ou au moins la POO et suit tous les tutoriels sur le forum ou sur la chaîne youtube (personnellement je te conseille de regarder le tuto en vidéo et ensuite de lire la version texte pour mieux comprendre) et ensuite reviens sur le sujet car on risque pas d’avancer si tu ne sais pas ce que tu fais

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

                                      –-- Minecraft Crash Report ----
                                      // Surprise! Haha. Well, this is awkward.
                                      
                                      Time: 30/03/16 22:42
                                      Description: Initializing game
                                      
                                      java.lang.NullPointerException: Can't add null-object to the registry, name modzoic:meatEpanterias.
                                          at net.minecraftforge.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:421)
                                          at net.minecraftforge.fml.common.registry.GameData.registerItem(GameData.java:133)
                                          at net.minecraftforge.fml.common.registry.GameData.registerItem(GameData.java:128)
                                          at net.minecraftforge.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:150)
                                          at net.minecraftforge.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:138)
                                          at organisation.dinomeat.register(dinomeat.java:20)
                                          at fr.minecraftforgefrance.modzoic.common.Modzoic.preInit(Modzoic.java:34)
                                          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:559)
                                          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:211)
                                          at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)
                                          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:118)
                                          at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:548)
                                          at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:240)
                                          at net.minecraft.client.Minecraft.startGame(Minecraft.java:451)
                                          at net.minecraft.client.Minecraft.run(Minecraft.java:360)
                                          at net.minecraft.client.main.Main.main(Main.java:116)
                                          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(GradleStartCommon.java:97)
                                          at GradleStart.main(GradleStart.java:26)
                                      
                                      A detailed walkthrough of the error, its code path and all known details is as follows:
                                      ---------------------------------------------------------------------------------------
                                      
                                      -- Head --
                                      Stacktrace:
                                          at net.minecraftforge.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:421)
                                          at net.minecraftforge.fml.common.registry.GameData.registerItem(GameData.java:133)
                                          at net.minecraftforge.fml.common.registry.GameData.registerItem(GameData.java:128)
                                          at net.minecraftforge.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:150)
                                          at net.minecraftforge.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:138)
                                          at organisation.dinomeat.register(dinomeat.java:20)
                                          at fr.minecraftforgefrance.modzoic.common.Modzoic.preInit(Modzoic.java:34)
                                          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:559)
                                          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:211)
                                          at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)
                                          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:118)
                                          at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:548)
                                          at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:240)
                                          at net.minecraft.client.Minecraft.startGame(Minecraft.java:451)
                                      
                                      -- Initialization --
                                      Details:
                                      Stacktrace:
                                          at net.minecraft.client.Minecraft.run(Minecraft.java:360)
                                          at net.minecraft.client.main.Main.main(Main.java:116)
                                          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(GradleStartCommon.java:97)
                                          at GradleStart.main(GradleStart.java:26)
                                      
                                      -- System Details --
                                      Details:
                                          Minecraft Version: 1.8.8
                                          Operating System: Windows 8.1 (amd64) version 6.3
                                          Java Version: 1.8.0_77, Oracle Corporation
                                          Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
                                          Memory: 895696856 bytes (854 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
                                          JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                                          IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                                          FML: MCP 9.18 Powered by Forge 11.15.0.1650 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.18} [Minecraft Coder Pack] (minecraft.jar)
                                          UCH    FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.8-11.15.0.1650-1.8.8.jar)
                                          UCH    Forge{11.15.0.1650} [Minecraft Forge] (forgeSrc-1.8.8-11.15.0.1650-1.8.8.jar)
                                          UCE    modzoic{1.0.0} [Modzoic] (bin)
                                          Loaded coremods (and transformers):
                                          GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 10.18.10.3308' Renderer: 'Intel(R) HD Graphics'
                                          Launched Version: 1.8.8
                                          LWJGL: 2.9.4
                                          OpenGL: Intel(R) HD Graphics GL version 4.0.0 - Build 10.18.10.3308, Intel
                                          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: Français (France)
                                          Profiler Position: N/A (disabled)
                                          CPU: 2x Intel(R) Pentium(R) CPU 2020M @ 2.40GHz
                                      

                                      Quelqu’un comprend pourquoi j’ai crash svp?

                                      Retest avec modifications ça donne ça:

                                          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:118)
                                          at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:548)
                                          at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:240)
                                          at net.minecraft.client.Minecraft.startGame(Minecraft.java:451)
                                          at net.minecraft.client.Minecraft.run(Minecraft.java:360)
                                          at net.minecraft.client.main.Main.main(Main.java:116)
                                          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(GradleStartCommon.java:97)
                                          at GradleStart.main(GradleStart.java:26)
                                      
                                      A detailed walkthrough of the error, its code path and all known details is as follows:
                                      –-------------------------------------------------------------------------------------
                                      
                                      -- Head --
                                      Stacktrace:
                                          at net.minecraftforge.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:421)
                                          at net.minecraftforge.fml.common.registry.GameData.registerItem(GameData.java:133)
                                          at net.minecraftforge.fml.common.registry.GameData.registerItem(GameData.java:128)
                                          at net.minecraftforge.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:150)
                                          at net.minecraftforge.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:138)
                                          at organisation.dinomeat.register(dinomeat.java:20)
                                          at fr.minecraftforgefrance.modzoic.common.Modzoic.preInit(Modzoic.java:34)
                                          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:559)
                                          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:211)
                                          at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)
                                          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:118)
                                          at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:548)
                                          at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:240)
                                          at net.minecraft.client.Minecraft.startGame(Minecraft.java:451)
                                      
                                      -- Initialization --
                                      Details:
                                      Stacktrace:
                                          at net.minecraft.client.Minecraft.run(Minecraft.java:360)
                                          at net.minecraft.client.main.Main.main(Main.java:116)
                                          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(GradleStartCommon.java:97)
                                          at GradleStart.main(GradleStart.java:26)
                                      
                                      -- System Details --
                                      Details:
                                          Minecraft Version: 1.8.8
                                          Operating System: Windows 8.1 (amd64) version 6.3
                                          Java Version: 1.8.0_77, Oracle Corporation
                                          Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
                                          Memory: 894488856 bytes (853 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
                                          JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                                          IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                                          FML: MCP 9.18 Powered by Forge 11.15.0.1650 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.18} [Minecraft Coder Pack] (minecraft.jar)
                                          UCH    FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.8-11.15.0.1650-1.8.8.jar)
                                          UCH    Forge{11.15.0.1650} [Minecraft Forge] (forgeSrc-1.8.8-11.15.0.1650-1.8.8.jar)
                                          UCE    modzoic{1.0.0} [Modzoic] (bin)
                                          Loaded coremods (and transformers):
                                          GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 10.18.10.3308' Renderer: 'Intel(R) HD Graphics'
                                          Launched Version: 1.8.8
                                          LWJGL: 2.9.4
                                          OpenGL: Intel(R) HD Graphics GL version 4.0.0 - Build 10.18.10.3308, Intel
                                          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: Français (France)
                                          Profiler Position: N/A (disabled)
                                          CPU: 2x Intel(R) Pentium(R) CPU 2020M @ 2.40GHz
                                      

                                      Je cherche l’erreur mais clairement je comprends pas pourquoi ça ne veut pas :/.

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

                                        at organisation.dinomeat.register(dinomeat.java:20)
                                        Tu peux envoyer la classe dinomeat ?
                                        Tu enregistres l’item alors qu’il est null, c’est pour ça que ça crash.

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

                                          Voilà:

                                          package organisation;
                                          
                                          import net.minecraft.client.Minecraft;
                                          import net.minecraft.client.resources.model.ModelResourceLocation;
                                          import net.minecraft.creativetab.CreativeTabs;
                                          import net.minecraft.item.Item;
                                          import net.minecraftforge.fml.common.registry.GameRegistry;
                                          
                                          public class dinomeat
                                          {
                                              public static Item dinomeat;
                                          
                                              public static void init()
                                              {
                                                  dinomeat = new Item().setCreativeTab(CreativeTabs.tabFood);
                                              }
                                          
                                              public static void register()
                                              {
                                                  GameRegistry.registerItem(dinomeat, "dinomeat");
                                              }
                                          
                                              public static void registerRenders()
                                              {
                                                  registerRender(dinomeat);
                                              }
                                          
                                              public static void registerRender(Item item)
                                              {
                                                 Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation("modzoic" + ":dinomeat" + item.getUnlocalizedName().substring(5), "inventory"));
                                              }
                                          }
                                          
                                          
                                          1 réponse Dernière réponse Répondre Citer 0
                                          • robin4002R Hors-ligne
                                            robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                                            dernière édition par

                                            Bon en fait il me faut la classe principale x)

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

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB