• S'inscrire
    • Se connecter
    • Recherche
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes

    Résolu Problème EntityMob

    1.7.x
    1.7.10
    3
    7
    1564
    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.
    • Gabs
      Gabs dernière édition par

      Bonjour,
      alors voilà j’ai créer une nouvelle entity mais j’ai un problème pour créer un second oeuf pour faire spawn mon entity voila mon crashreport:

      [17:19:21] [main/INFO] [GradleStart]: Extra: []
      [17:19:21] [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, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
      [17:19:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
      [17:19:21] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
      [17:19:21] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
      [17:19:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
      [17:19:21] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1291 for Minecraft 1.7.10 loading
      [17:19:21] [main/INFO] [FML]: Java is Java HotSpot™ 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
      [17:19:21] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
      [17:19:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
      [17:19:21] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
      [17:19:21] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
      [17:19:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
      [17:19:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
      [17:19:21] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
      [17:19:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
      [17:19:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
      [17:19:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
      [17:19:21] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
      [17:19:22] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
      [17:19:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
      [17:19:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
      [17:19:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
      [17:19:22] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
      [17:19:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
      [17:19:22] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
      [17:19:22] [main/INFO]: Setting user: Player477
      [17:19:23] [Client thread/INFO]: LWJGL Version: 2.9.1
      [17:19:23] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
      [17:19:23] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1291 Initialized
      [17:19:23] [Client thread/INFO] [FML]: Replaced 183 ore recipies
      [17:19:23] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
      [17:19:23] [Client thread/INFO] [FML]: Searching C:\Users\Admin\Desktop\Modding\AltisMineMod\eclipse\mods for mods
      [17:19:24] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
      [17:19:25] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, amm] at CLIENT
      [17:19:25] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, amm] at SERVER
      [17:19:25] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:§6AltisMineMod
      [17:19:25] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
      [17:19:25] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
      [17:19:25] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

      Problème:

      
      private static int startEntityId = 7827;
      
      EntityRegistry.registerGlobalEntityID(EntityTurtleMob.class, "Tutle", EntityRegistry.findGlobalUniqueEntityId());
          EntityRegistry.findGlobalUniqueEntityId();
          registerEntityEgg(EntityTurtleMob.class, 0x40501c, 0x5a4623);
      
          EntityRegistry.registerGlobalEntityID(EntityDuckMob.class, "Duck", EntityRegistry.instance().findGlobalUniqueEntityId());
          EntityRegistry.findGlobalUniqueEntityId();
          registerEntityEgg(EntityDuckMob.class, 0x40501c, 0x5a4623);
      
          }
      
      private void registerEntityEgg(Class entity, int primaryColor, int secondaryColor) {
      int id = getUniqueEntityId();
      EntityList.IDtoClassMapping.put(7827, EntityTurtleMob.class);
      EntityList.IDtoClassMapping.put(7828, EntityDuckMob.class);
      EntityList.entityEggs.put(7827, new EntityEggInfo(7827, primaryColor, secondaryColor));
      EntityList.entityEggs.put(7828, new EntityEggInfo(7828, primaryColor, secondaryColor));
      }
      
      private int getUniqueEntityId() {
      
      do {
         startEntityId++;
      }
      while(EntityList.getStringFromID(7827) != null);
      
      return startEntityId++;
      }
      

      [size=small/code]

      1 réponse Dernière réponse Répondre Citer 0
      • Eryah
        Eryah dernière édition par

        Salut
        Utilise les balises java s’il te plait, même en tentant d’analyser ça le mieux que je peut, c’est illisible
        Et inutile de donner toute la mainclass, donne nous juste les méthodes qui gèrent les entités

        Membre fantôme
        Je développe maintenant un jeu sur UnrealEngine4


        Contact :…

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

          D’acc mais pour utilisé les balises java je fais comment ?

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

            C’est bon, désolé

            1 réponse Dernière réponse Répondre Citer 0
            • Flow
              Flow dernière édition par

              @‘floriangabet’:

              Bonjour,
              alors voilà j’ai créer une nouvelle entity mais j’ai un problème pour créer un second oeuf pour faire spawn mon entity voila mon crashreport:

              [17:19:21] [main/INFO] [GradleStart]: Extra: []
              [17:19:21] [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, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
              [17:19:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
              [17:19:21] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
              [17:19:21] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
              [17:19:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
              [17:19:21] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1291 for Minecraft 1.7.10 loading
              [17:19:21] [main/INFO] [FML]: Java is Java HotSpot™ 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
              [17:19:21] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
              [17:19:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
              [17:19:21] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
              [17:19:21] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
              [17:19:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
              [17:19:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
              [17:19:21] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
              [17:19:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
              [17:19:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
              [17:19:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
              [17:19:21] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
              [17:19:22] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
              [17:19:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
              [17:19:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
              [17:19:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
              [17:19:22] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
              [17:19:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
              [17:19:22] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
              [17:19:22] [main/INFO]: Setting user: Player477
              [17:19:23] [Client thread/INFO]: LWJGL Version: 2.9.1
              [17:19:23] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
              [17:19:23] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1291 Initialized
              [17:19:23] [Client thread/INFO] [FML]: Replaced 183 ore recipies
              [17:19:23] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
              [17:19:23] [Client thread/INFO] [FML]: Searching C:\Users\Admin\Desktop\Modding\AltisMineMod\eclipse\mods for mods
              [17:19:24] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
              [17:19:25] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, amm] at CLIENT
              [17:19:25] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, amm] at SERVER
              [17:19:25] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:§6AltisMineMod
              [17:19:25] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
              [17:19:25] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
              [17:19:25] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

              Problème:

              EntityRegistry.registerGlobalEntityID(EntityTurtleMob.class, "Tutle", EntityRegistry.findGlobalUniqueEntityId());
                  EntityRegistry.findGlobalUniqueEntityId();
                  registerEntityEgg(EntityTurtleMob.class, 0x40501c, 0x5a4623);
                 
                 
                  EntityRegistry.registerGlobalEntityID(EntityDuckMob.class, "Duck", EntityRegistry.instance().findGlobalUniqueEntityId());
                  EntityRegistry.findGlobalUniqueEntityId();
                  registerEntityEgg(EntityDuckMob.class, 0x40501c, 0x5a4623);
                 
                  }
              
              private void registerEntityEgg(Class entity, int primaryColor, int secondaryColor) {
              int id = getUniqueEntityId();
              EntityList.IDtoClassMapping.put(7827, EntityTurtleMob.class);
              EntityList.IDtoClassMapping.put(7828, EntityDuckMob.class);
              EntityList.entityEggs.put(7827, new EntityEggInfo(7827, primaryColor, secondaryColor));
              EntityList.entityEggs.put(7828, new EntityEggInfo(7828, primaryColor, secondaryColor));
              }
              
              private int getUniqueEntityId() {
              
              do {
                 startEntityId++;
              }
              while(EntityList.getStringFromID(7827) != null);
              
              return startEntityId++;
              }
              

              [size=small/code]

              Euuh est-ce que ta suivi le tuto , pour enregistrer des entitées ( mobs )

              
              EntityRegistry.registerGlobalEntityID(CLASSEDETONENTITER.class, "EntityTONMOB", EntityRegistry.findGlobalUniqueEntityId(), new Color(74, 96, 13).getRGB(), new Color(122, 85, 44).getRGB());
              EntityRegistry.registerModEntity(CLASSEDETONENTITER.class, "EntityTONMOB", IDDUMOB(ex:420), TACLASSE.instance, 40, 1, true);
              
              

              Et n’oublie pas d’enregistrer tes mobs dans ton ClientProxy

              
                      RenderingRegistry.registerEntityRenderingHandler(EntityTONMOB.class, new RenderTONMOB(new ModelTONMOB(), 3.5F));
              
              

              Oui ce gif est drôle.

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

                Merci à toi jeune c’est bon 🙂

                1 réponse Dernière réponse Répondre Citer 0
                • Flow
                  Flow dernière édition par

                  @‘floriangabet’:

                  Merci à toi jeune c’est bon 🙂

                  De rien , n’oublie pas de passer en [Résolu]

                  Oui ce gif est drôle.

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

                  MINECRAFT FORGE FRANCE © 2018

                  Powered by NodeBB