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

Créer un nouveau disque

Les items
1.6.x
5
22
11.2k
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.
  • kevin_68
    kevin_68 Moddeurs confirmés dernière édition par robin4002 21 juin 2018, 16:13 11 oct. 2013, 16:55

    Sommaire

    1. Introduction
    2. Prérequis
    3. Classe de l’item
    4. Classe principale
    5. Classe EventSound
    6. Bonus
    7. Github

    Indroduction

    Voici comment ajouter un cd à votre mod!

    Prérequis

    *Une classe principale
    *Un item
    *Un EventSound

    Classe de l’item

    Pour commencer crée une classe, vous aurez ceci:

    package tutoriel.common;
    public class ItemCdTutorial
    {
    }

    Puis, il vous faut l’extend ItemRecord

    public class ItemCdTutorial extends ItemRecord
    

    Là le ItemCdTutorial devient, passé la souris dessus et cliquer sur “add Constructor”, ça va vous jouté ceci:

    protected ItemCdTutorial(int id, String name)
    {
    super(id, name);
    }

    Voilà c’est tout!

    Classe principale

    Dans cette classe il vous faut ajouté les mêmes méthodes qu’un item:

    public static Item ItemCdTutorial;
    

    Et

    ItemCdTutorial = new ItemCdTutorial(ItemCdTutorialID, "").setUnlocalizedName("cdTutorial").setCreativeTab(ModTutoriel.TutorialCreativeTabs);
    

    Ensuite, il suffit de mettre le nom dans le String vide:

    "modid:cd"
    

    #Classe EventSound(Classe EventSound)
    Il faut juste ajouté ceci:

    event.manager.addStreaming("modid:cd.ogg");
    

    PS: le fichier doit se trouver dans assets/modid/records/

    Bonus

    Petit bonus pour changer le nom du cd (remplacer le C418 -)

    Dans la classe de l’item ajouté:

    @SideOnly(Side.CLIENT)
    public String getRecordTitle()
    {
    return "ModTutorial - " + this.recordName;
    }

    GitHub

    Voir le commit sur github


    Mettez à jours vers la dernière version stable (1.8.9 voir même…

    1 réponse Dernière réponse Répondre Citer 0
    • Deleted
      Deleted dernière édition par 18 mai 2014, 19:15

      Salut j’ai suivi le tutoriel et pourtant mon item n’a aucune texture, n’a pas le bon nom et ne joue pas le son
      voici mes class
      La class principale

      package mods.maxiworldcraft.mineKingdomHeartsmod.common;
      import java.awt.Color;
      import mods.maxiworldcraft.mineKingdomHeartsmod.proxy.modMineKingdomHeartsCommonProxy;
      import net.minecraft.block.Block;
      import net.minecraft.block.material.Material;
      import net.minecraft.creativetab.CreativeTabs;
      import net.minecraft.item.Item;
      import net.minecraft.item.Item.ToolMaterial;
      import net.minecraft.item.ItemSword;
      import net.minecraftforge.client.event.sound.SoundLoadEvent;
      import net.minecraftforge.common.MinecraftForge;
      import net.minecraftforge.common.util.EnumHelper;
      import cpw.mods.fml.common.Mod;
      import cpw.mods.fml.common.Mod.EventHandler;
      import cpw.mods.fml.common.Mod.Instance;
      import cpw.mods.fml.common.SidedProxy;
      import cpw.mods.fml.common.event.FMLInitializationEvent;
      import cpw.mods.fml.common.event.FMLPostInitializationEvent;
      import cpw.mods.fml.common.event.FMLPreInitializationEvent;
      import cpw.mods.fml.common.registry.EntityRegistry;
      import cpw.mods.fml.common.registry.GameRegistry;
      @Mod(modid = modMineKingdomHearts.MODID, name = "Mod MineKingdom Hearts", version = "1.0")
      public class modMineKingdomHearts
      {
      public static final String MODID = "modminekingdomhearts";
      @Instance("MODID")
      public static modMineKingdomHearts instance;
      public static CreativeTabs mineKingdomHeartsCreativeTabs = new mineKingdomHeartsCreativeTabs("MineKingdom Hearts");
      @SidedProxy(clientSide = "mods.maxiworldcraft.mineKingdomHeartsmod.client.modMineKingdomHeartsClientProxy", serverSide = "mods.maxiworldcraft.mineKingdomHeartsmod.proxy.modMineKingdomHeartsCommonProxy")
      public static modMineKingdomHeartsCommonProxy proxy;
      @EventHandler
      public void preInit(FMLPreInitializationEvent event)
      {
      cdTensionRising = newCdTensionRising("cdTensionRising").setMaxStackSize(1).setUnlocalizedName("cdTensionRising").setTextureName(modMineKingdomHearts.MODID + ":cdTensionRising");
      GameRegistry.registerItem(cdTensionRising, "cdTensionRising");
      }
      @EventHandler
      public void init(FMLInitializationEvent event)
      {
      proxy.registerRenderer();
      proxy.registerTileEntityRender();
      }
      @EventHandler
      public void postInit(FMLPostInitializationEvent event)
      {
      }
      }

      la class du disque

      package mods.maxiworldcraft.mineKingdomHeartsmod.common;
      import net.minecraft.client.renderer.texture.IIconRegister;
      import net.minecraft.item.ItemRecord;
      import cpw.mods.fml.relauncher.Side;
      import cpw.mods.fml.relauncher.SideOnly;
      public class CdTensionRising extends ItemRecord
      {
      protected CdTensionRising(String string)
      {
      super(string);
      this.setCreativeTab(modMineKingdomHearts.mineKingdomHeartsCreativeTabs);
      setUnlocalizedName(string);
      }
      @SideOnly(Side.CLIENT)
      public String getRecordTitle()
      {
      return "modMineKingdomHearts - " + this.recordName;
      }
      @SideOnly(Side.CLIENT)
      public void func_94581_a(IIconRegister par1IconRegister)
      {
      this.itemIcon = par1IconRegister.registerIcon("modminekingdomhearts:cdTensionRising");
      }
      }

      mon sounds.json

      {
      "haynerLive" : {
      "category" : "neutral",
      "sounds" : [
      "haynerLive"
      ]
      },
      "haynerHurt" : {
      "category" : "neutral",
      "sounds" : [
      "haynerHurt"
      ]
      },
      "haynerDeath" : {
      "category" : "neutral",
      "sounds" : [
      "haynerDeath"
      ]
      },
      "penceLive" : {
      "category" : "neutral",
      "sounds" : [
      "penceLive"
      ]
      },
      "penceHurt" : {
      "category" : "neutral",
      "sounds" : [
      "penceHurt"
      ]
      },
      "penceDeath" : {
      "category" : "neutral",
      "sounds" : [
      "penceDeath"
      ]
      },
      "oletteLive" : {
      "category" : "neutral",
      "sounds" : [
      "oletteLive"
      ]
      },
      "oletteHurt" : {
      "category" : "neutral",
      "sounds" : [
      "oletteHurt"
      ]
      },
      "oletteDeath" : {
      "category" : "neutral",
      "sounds" : [
      "oletteDeath"
      ]
      },
      "seiferLive" : {
      "category" : "neutral",
      "sounds" : [
      "seiferLive"
      ]
      },
      "seiferHurt" : {
      "category" : "neutral",
      "sounds" : [
      "seiferHurt"
      ]
      },
      "seiferDeath" : {
      "category" : "neutral",
      "sounds" : [
      "seiferDeath"
      ]
      },
      "reiLive" : {
      "category" : "neutral",
      "sounds" : [
      "reiLive"
      ]
      },
      "reiHurt" : {
      "category" : "neutral",
      "sounds" : [
      "reiHurt"
      ]
      },
      "reiDeath" : {
      "category" : "neutral",
      "sounds" : [
      "reiDeath"
      ]
      },
      "fuuLive" : {
      "category" : "neutral",
      "sounds" : [
      "fuuLive"
      ]
      },
      "fuuHurt" : {
      "category" : "neutral",
      "sounds" : [
      "fuuHurt"
      ]
      },
      "fuuDeath" : {
      "category" : "neutral",
      "sounds" : [
      "fuuDeath"
      ]
      },
      "viviLive" : {
      "category" : "neutral",
      "sounds" : [
      "viviLive"
      ]
      },
      "viviHurt" : {
      "category" : "neutral",
      "sounds" : [
      "viviHurt"
      ]
      },
      "viviDeath" : {
      "category" : "neutral",
      "sounds" : [
      "viviDeath"
      ]
      },
      "setzerLive" : {
      "category" : "neutral",
      "sounds" : [
      "setzerLive"
      ]
      },
      "setzerHurt" : {
      "category" : "neutral",
      "sounds" : [
      "setzerHurt"
      ]
      },
      "setzerDeath" : {
      "category" : "neutral",
      "sounds" : [
      "setzerDeath"
      ]
      },
      "similiLive" : {
      "category" : "neutral",
      "sounds" : [
      "similiLive"
      ]
      },
      "similiHurt" : {
      "category" : "neutral",
      "sounds" : [
      "similiHurt"
      ]
      },
      "similiDeath" : {
      "category" : "neutral",
      "sounds" : [
      "similiDeath"
      ]
      },
      "similiMusic" : {
      "category" : "music",
      "sounds" : [
      "similiMusic"
      ]
      }
      }

      mon fichier .lang

      item.record.cdTensionRising.desc= CD Tension Rising

      Et j’ai bien mis la texture dans modid/textures/items
      et le son en .ogg dans modid/records
      Alors des avis et plz help

      1 réponse Dernière réponse Répondre Citer 0
      • robin4002
        robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 18 mai 2014, 19:31

        http://youtu.be/uIXybCZ_dYc?t=48m14s
        Pour la texture, c’est juste .setTextureName l’autre fonction que tu as dans la classe de l’item de sert à rien.

        1 réponse Dernière réponse Répondre Citer 0
        • Deleted
          Deleted dernière édition par 18 mai 2014, 19:44

          @‘robin4002’:

          http://youtu.be/uIXybCZ_dYc?t=48m14s
          Pour la texture, c’est juste .setTextureName l’autre fonction que tu as dans la classe de l’item de sert à rien.

          bah pourtant ça devrait marcher nan?

          J’ai enlevé la ligne inutile de la class et ai laissé la bonne bien déclarée normalement de la main class et pourtant it’isn’t working

          1 réponse Dernière réponse Répondre Citer 0
          • robin4002
            robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 18 mai 2014, 20:23

            Ton fichier png se trouve où ? Pour le son et la description c’est bon ?

            1 réponse Dernière réponse Répondre Citer 0
            • Deleted
              Deleted dernière édition par 19 mai 2014, 05:51

              Voici un image qui te sera beaucoup plus parlante Robin

              Pour la description c’est bon
              Pour le son rien du tout tout est bien en .ogg
              Pour le nom fr du disque IG c’est bon

              1 réponse Dernière réponse Répondre Citer 0
              • jglrxavpok
                jglrxavpok Modérateurs dernière édition par 19 mai 2014, 08:45

                As-tu vérifié que tes fichiers ne soient pas corrompus ou autre ?

                PS: N’utilise pas Windows XP, le support a été lâché et le système est donc super vulnérable maintenant, passe soit sous Seven (ou 8…) soit sous Linux

                Modérateur sur MFF. 
                Mon Github: http://github.com/jglrxavpok
                Mon compte Steam si vous voulez jouer à CS:GO ou TF2 avec moi: https://steamcommunity.com/id/jglrxavpok/

                1 réponse Dernière réponse Répondre Citer 0
                • robin4002
                  robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 19 mai 2014, 11:34

                  Je peux avoir ton fichier sounds.json ?

                  ÉDIT :
                  J’ai rien dit il est au dessus.

                  "similiMusic" : {
                  "category" : "music",
                  "sounds" : [
                  "similiMusic"
                  ]
                  }

                  C’est pas bon. ça devrait être comme ça :

                  "similiMusic" : {
                  "category" : "record",
                  "sounds" : [
                  {
                  "records/similiMusic",
                  "stream": true
                  }
                  ]
                  }

                  PS : Je soutiens ce que xavpok t’as dit, utiliser un os non supporté c’est dangereux.

                  1 réponse Dernière réponse Répondre Citer 0
                  • Deleted
                    Deleted dernière édition par 19 mai 2014, 17:16

                    @‘jglrxavpok’:

                    As-tu vérifié que tes fichiers ne soient pas corrompus ou autre ?

                    PS: N’utilise pas Windows XP, le support a été lâché et le système est donc super vulnérable maintenant, passe soit sous Seven (ou 8…) soit sous Linux

                    Je sais bien alors je verrai comment faire merci du conseil jglrxavpok, le seul problème c’est que c’est sous seulement xp que mon pc ne rame pas ok avant j’avais Vista je sais que ça bouffe bien mais pour 3go de ram j’ai bien peur que windows 7 soit pareil, non?

                    PS = robin cela ne marche toujours pas et la texture pareil? c’est trop bizarre car c’est le seul son de mon mod qui ne marche pas
                    Il ne veut pas jouer le son selon les logs car la ligne “stream : true” perturbe

                    [19:18:32] [main/INFO]: Setting user: Julot10085
                    [19:18:34] [Client thread/INFO]: LWJGL Version: 2.9.0
                    [19:18:41] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod MineKingdom Hearts
                    [19:18:42] [Sound Library Loader/INFO]: Sound engine started
                    [19:18:43] [Client thread/WARN]: Invalid sounds.json
                    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated array at line 168 column 22
                    at com.google.gson.internal.Streams.parse(Streams.java:56) ~[Streams.class:?]
                    at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
                    at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[TypeAdapterRuntimeTypeWrapper.class:?]
                    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) ~[MapTypeAdapterFactory$Adapter.class:?]
                    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) ~[MapTypeAdapterFactory$Adapter.class:?]
                    at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
                    at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?]
                    at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:83) [SoundHandler.class:?]
                    at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [SimpleReloadableResourceManager.class:?]
                    at net.minecraft.client.Minecraft.startGame(Minecraft.java:525) [Minecraft.class:?]
                    at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?]
                    at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
                    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_55]
                    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
                    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
                    Caused by: com.google.gson.stream.MalformedJsonException: Unterminated array at line 168 column 22
                    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
                    at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:465) ~[JsonReader.class:?]
                    at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
                    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:658) ~[TypeAdapters$25.class:?]
                    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
                    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
                    at com.google.gson.internal.Streams.parse(Streams.java:44) ~[Streams.class:?]
                    … 17 more
                    [19:18:44] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                    [19:18:44] [Client thread/ERROR]: Unable to parse metadata from modminekingdomhearts:textures/items/cdTensionRising.png
                    java.lang.RuntimeException: broken aspect ratio and not an animation
                    at net.minecraft.client.renderer.texture.TextureAtlasSprite.loadSprite(TextureAtlasSprite.java:245) ~[TextureAtlasSprite.class:?]
                    at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:170) [TextureMap.class:?]
                    at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
                    at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
                    at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
                    at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
                    at net.minecraft.client.Minecraft.startGame(Minecraft.java:580) [Minecraft.class:?]
                    at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?]
                    at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
                    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_55]
                    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
                    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
                    [19:18:44] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                    [19:18:47] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod MineKingdom Hearts
                    [19:18:47] [Client thread/ERROR]: Unable to parse metadata from modminekingdomhearts:textures/items/cdTensionRising.png
                    java.lang.RuntimeException: broken aspect ratio and not an animation
                    at net.minecraft.client.renderer.texture.TextureAtlasSprite.loadSprite(TextureAtlasSprite.java:245) ~[TextureAtlasSprite.class:?]
                    at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:170) [TextureMap.class:?]
                    at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
                    at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
                    at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
                    at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
                    at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
                    at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:624) [Minecraft.class:?]
                    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [FMLClientHandler.class:?]
                    at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) [Minecraft.class:?]
                    at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?]
                    at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
                    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_55]
                    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
                    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
                    [19:18:47] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                    [19:18:47] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                    [19:18:48] [Client thread/WARN]: Invalid sounds.json
                    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated array at line 168 column 22
                    at com.google.gson.internal.Streams.parse(Streams.java:56) ~[Streams.class:?]
                    at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
                    at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[TypeAdapterRuntimeTypeWrapper.class:?]
                    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) ~[MapTypeAdapterFactory$Adapter.class:?]
                    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) ~[MapTypeAdapterFactory$Adapter.class:?]
                    at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
                    at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?]
                    at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:83) [SoundHandler.class:?]
                    at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
                    at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
                    at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:624) [Minecraft.class:?]
                    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [FMLClientHandler.class:?]
                    at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) [Minecraft.class:?]
                    at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?]
                    at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
                    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_55]
                    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
                    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
                    Caused by: com.google.gson.stream.MalformedJsonException: Unterminated array at line 168 column 22
                    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
                    at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:465) ~[JsonReader.class:?]
                    at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
                    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:658) ~[TypeAdapters$25.class:?]
                    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
                    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
                    at com.google.gson.internal.Streams.parse(Streams.java:44) ~[Streams.class:?]
                    … 20 more
                    [19:18:48] [Sound Library Loader/INFO]: Sound engine started
                    [19:18:50] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms
                    [19:19:32] [Server thread/INFO]: Starting integrated minecraft server version 1.7.2
                    [19:19:32] [Server thread/INFO]: Generating keypair
                    [19:19:33] [Server thread/INFO]: Preparing start region for level 0
                    [19:19:34] [Server thread/INFO]: Preparing spawn area: 16%
                    [19:19:35] [Server thread/INFO]: Preparing spawn area: 84%
                    [19:19:37] [Server thread/INFO]: Julot10085[local:E:7d718671] logged in with entity id 40 at (-328.1378115048499, 64.0, -583.9404388584848)
                    [19:19:37] [Server thread/INFO]: Julot10085 joined the game
                    [19:19:38] [Server thread/INFO]: Saving and pausing game…
                    [19:19:38] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                    [19:19:38] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                    [19:19:38] [Server thread/INFO]: Saving chunks for level 'New World'/The End
                    [19:20:01] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:records.cdTensionRising
                    [19:20:05] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:records.cdTensionRising
                    [19:20:08] [Client thread/INFO]: Stopping!
                    [19:20:08] [Server thread/INFO]: Stopping server
                    [19:20:08] [Server thread/INFO]: Saving players
                    [19:20:08] [Server thread/INFO]: Saving worlds
                    [19:20:08] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                    [19:20:08] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                    [19:20:08] [Server thread/INFO]: Saving chunks for level 'New World'/The End

                    EDIT = Pour la texture le problème est réglé eclipse n’acceptait ou plutôt le minecraft d’éclipse des texture égale soit à 1616 soit à 128128 j’avais essayé 64*64 si quelqu’un pourrait me dire le pourquoi du comment? Et sinon la musique ne se joue toujours pas

                    1 réponse Dernière réponse Répondre Citer 0
                    • robin4002
                      robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 19 mai 2014, 17:35

                      Ha en effet, fail de ma part.

                      "similiMusic" : {
                      "category" : "record",
                      "sounds" : [
                      {
                      "records/similiMusic",
                      "stream": true
                      }
                      ]
                      }

                      Comme ceci ça devrait être bon.

                      Concernant le hors sujet que nous avons commencé, l’ordinateur que j’utilise actuellement était sous Vista, il est actuellement sous Windows 8. (il avait 3 go de ram utilisable, en vrai il en a 4, en fait il avait vista en 32 bits, et le 32 bits ne pouvait pas utiliser plus de 3 go, donc maintenant avec un os x64 j’ai les 4 go utilisable).
                      Windows vista/7/8 a besoin de 1 go de ram en 32 bits, 2 go en 64 bits, la ram n’est pas vraiment un problème, c’est surtout la carte graphique / le processeur qui peut causer problème. Si ta carte graphique n’est pas puissante, utilise un thème basique à la place du thème aero. Vérifie aussi que les drivers sont compatibles, ça serait con de mettre un os sur lequel il n’y a pas de drivers graphique compatible avec ta carte graphique (pas de minecraft fonctionnel dans ce cas) ou avec ta carte son. Enfin bon, si c’était un vista d’origine tu ne devrais pas avoir trop de problème, sauf si tu as une carte graphique AMD/ATI.

                      1 réponse Dernière réponse Répondre Citer 0
                      • Deleted
                        Deleted dernière édition par 19 mai 2014, 17:47

                        @‘robin4002’:

                        Ha en effet, fail de ma part.

                        "similiMusic" : {
                        "category" : "record",
                        "sounds" : [
                        {
                        "records/similiMusic",
                        "stream": true
                        }
                        ]
                        }

                        Comme ceci ça devrait être bon.

                        Concernant le hors sujet que nous avons commencé, l’ordinateur que j’utilise actuellement était sous Vista, il est actuellement sous Windows 8. (il avait 3 go de ram utilisable, en vrai il en a 4, en fait il avait vista en 32 bits, et le 32 bits ne pouvait pas utiliser plus de 3 go, donc maintenant avec un os x64 j’ai les 4 go utilisable).
                        Windows vista/7/8 a besoin de 1 go de ram en 32 bits, 2 go en 64 bits, la ram n’est pas vraiment un problème, c’est surtout la carte graphique / le processeur qui peut causer problème. Si ta carte graphique n’est pas puissante, utilise un thème basique à la place du thème aero. Vérifie aussi que les drivers sont compatibles, ça serait con de mettre un os sur lequel il n’y a pas de drivers graphique compatible avec ta carte graphique (pas de minecraft fonctionnel dans ce cas) ou avec ta carte son. Enfin bon, si c’était un vista d’origine tu ne devrais pas avoir trop de problème, sauf si tu as une carte graphique AMD/ATI.

                        Ok alors pour prolonger le hors-sujet ^^ ma carte graphique est heureusement une Nvidia et sinon c’était pareil vista 32 bits et mnt c’est 4 go installés dont 3 utilisables bon bah je verrai pour installer windows 7 ce week end si il est encore dispo sinon le 8
                        Et d’après toi quel serait le meilleur le 8 est moins apprécié il parait nan? Je suis un peu habitué au windows 7 l’ayant déjà utilisé sur un pc de remplacement
                        EDIT = cela ne marche toujours pas voilà mon sounds.json actuel :

                        {
                        "haynerLive" : {
                        "category" : "neutral",
                        "sounds" : [
                        "haynerLive"
                        ]
                        },
                        "haynerHurt" : {
                        "category" : "neutral",
                        "sounds" : [
                        "haynerHurt"
                        ]
                        },
                        "haynerDeath" : {
                        "category" : "neutral",
                        "sounds" : [
                        "haynerDeath"
                        ]
                        },
                        "penceLive" : {
                        "category" : "neutral",
                        "sounds" : [
                        "penceLive"
                        ]
                        },
                        "penceHurt" : {
                        "category" : "neutral",
                        "sounds" : [
                        "penceHurt"
                        ]
                        },
                        "penceDeath" : {
                        "category" : "neutral",
                        "sounds" : [
                        "penceDeath"
                        ]
                        },
                        "oletteLive" : {
                        "category" : "neutral",
                        "sounds" : [
                        "oletteLive"
                        ]
                        },
                        "oletteHurt" : {
                        "category" : "neutral",
                        "sounds" : [
                        "oletteHurt"
                        ]
                        },
                        "oletteDeath" : {
                        "category" : "neutral",
                        "sounds" : [
                        "oletteDeath"
                        ]
                        },
                        "seiferLive" : {
                        "category" : "neutral",
                        "sounds" : [
                        "seiferLive"
                        ]
                        },
                        "seiferHurt" : {
                        "category" : "neutral",
                        "sounds" : [
                        "seiferHurt"
                        ]
                        },
                        "seiferDeath" : {
                        "category" : "neutral",
                        "sounds" : [
                        "seiferDeath"
                        ]
                        },
                        "reiLive" : {
                        "category" : "neutral",
                        "sounds" : [
                        "reiLive"
                        ]
                        },
                        "reiHurt" : {
                        "category" : "neutral",
                        "sounds" : [
                        "reiHurt"
                        ]
                        },
                        "reiDeath" : {
                        "category" : "neutral",
                        "sounds" : [
                        "reiDeath"
                        ]
                        },
                        "fuuLive" : {
                        "category" : "neutral",
                        "sounds" : [
                        "fuuLive"
                        ]
                        },
                        "fuuHurt" : {
                        "category" : "neutral",
                        "sounds" : [
                        "fuuHurt"
                        ]
                        },
                        "fuuDeath" : {
                        "category" : "neutral",
                        "sounds" : [
                        "fuuDeath"
                        ]
                        },
                        "viviLive" : {
                        "category" : "neutral",
                        "sounds" : [
                        "viviLive"
                        ]
                        },
                        "viviHurt" : {
                        "category" : "neutral",
                        "sounds" : [
                        "viviHurt"
                        ]
                        },
                        "viviDeath" : {
                        "category" : "neutral",
                        "sounds" : [
                        "viviDeath"
                        ]
                        },
                        "setzerLive" : {
                        "category" : "neutral",
                        "sounds" : [
                        "setzerLive"
                        ]
                        },
                        "setzerHurt" : {
                        "category" : "neutral",
                        "sounds" : [
                        "setzerHurt"
                        ]
                        },
                        "setzerDeath" : {
                        "category" : "neutral",
                        "sounds" : [
                        "setzerDeath"
                        ]
                        },
                        "similiLive" : {
                        "category" : "neutral",
                        "sounds" : [
                        "similiLive"
                        ]
                        },
                        "similiHurt" : {
                        "category" : "neutral",
                        "sounds" : [
                        "similiHurt"
                        ]
                        },
                        "similiDeath" : {
                        "category" : "neutral",
                        "sounds" : [
                        "similiDeath"
                        ]
                        },
                        "similiMusic" : {
                        "category" : "record",
                        "sounds" : [
                        {
                        "records/similiMusic",
                        "stream": true
                        }
                        ]
                        }
                        }

                        voici le log de l’erreur

                        [19:53:13] [main/INFO]: Setting user: Julot10085
                        [19:53:15] [Client thread/INFO]: LWJGL Version: 2.9.0
                        [19:53:22] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod MineKingdom Hearts
                        [19:53:24] [Sound Library Loader/INFO]: Sound engine started
                        [19:53:25] [Client thread/WARN]: Invalid sounds.json
                        com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected ':' at line 168 column 41
                        at com.google.gson.internal.Streams.parse(Streams.java:56) ~[Streams.class:?]
                        at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
                        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[TypeAdapterRuntimeTypeWrapper.class:?]
                        at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) ~[MapTypeAdapterFactory$Adapter.class:?]
                        at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) ~[MapTypeAdapterFactory$Adapter.class:?]
                        at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
                        at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?]
                        at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:83) [SoundHandler.class:?]
                        at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [SimpleReloadableResourceManager.class:?]
                        at net.minecraft.client.Minecraft.startGame(Minecraft.java:525) [Minecraft.class:?]
                        at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?]
                        at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]
                        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
                        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_55]
                        at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
                        at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
                        Caused by: com.google.gson.stream.MalformedJsonException: Expected ':' at line 168 column 41
                        at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
                        at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:519) ~[JsonReader.class:?]
                        at com.google.gson.stream.JsonReader.peek(JsonReader.java:414) ~[JsonReader.class:?]
                        at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:644) ~[TypeAdapters$25.class:?]
                        at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
                        at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659) ~[TypeAdapters$25.class:?]
                        at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
                        at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
                        at com.google.gson.internal.Streams.parse(Streams.java:44) ~[Streams.class:?]
                        … 17 more
                        [19:53:26] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                        [19:53:26] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                        [19:53:29] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod MineKingdom Hearts
                        [19:53:29] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                        [19:53:29] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                        [19:53:30] [Sound Library Loader/INFO]: Sound engine started
                        [19:53:30] [Client thread/WARN]: Invalid sounds.json
                        com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected ':' at line 168 column 41
                        at com.google.gson.internal.Streams.parse(Streams.java:56) ~[Streams.class:?]
                        at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
                        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[TypeAdapterRuntimeTypeWrapper.class:?]
                        at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) ~[MapTypeAdapterFactory$Adapter.class:?]
                        at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) ~[MapTypeAdapterFactory$Adapter.class:?]
                        at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
                        at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?]
                        at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:83) [SoundHandler.class:?]
                        at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
                        at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
                        at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:624) [Minecraft.class:?]
                        at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [FMLClientHandler.class:?]
                        at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) [Minecraft.class:?]
                        at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?]
                        at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]
                        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
                        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_55]
                        at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
                        at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
                        Caused by: com.google.gson.stream.MalformedJsonException: Expected ':' at line 168 column 41
                        at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
                        at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:519) ~[JsonReader.class:?]
                        at com.google.gson.stream.JsonReader.peek(JsonReader.java:414) ~[JsonReader.class:?]
                        at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:644) ~[TypeAdapters$25.class:?]
                        at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
                        at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659) ~[TypeAdapters$25.class:?]
                        at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
                        at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
                        at com.google.gson.internal.Streams.parse(Streams.java:44) ~[Streams.class:?]
                        … 20 more
                        [19:53:32] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms
                        [19:54:40] [Server thread/INFO]: Starting integrated minecraft server version 1.7.2
                        [19:54:40] [Server thread/INFO]: Generating keypair
                        [19:54:41] [Server thread/INFO]: Preparing start region for level 0
                        [19:54:42] [Server thread/INFO]: Preparing spawn area: 39%
                        [19:54:44] [Server thread/INFO]: Julot10085[local:E:42162044] logged in with entity id 41 at (-348.0287204354712, 64.0, -590.0532041504401)
                        [19:54:44] [Server thread/INFO]: Julot10085 joined the game
                        [19:54:48] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:records.cdTensionRising
                        [19:54:50] [Server thread/INFO]: Saving and pausing game…
                        [19:54:50] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                        [19:54:50] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                        [19:54:50] [Server thread/INFO]: Saving chunks for level 'New World'/The End
                        [19:55:00] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:records.cdTensionRising
                        [19:55:05] [Client thread/INFO]: Stopping!
                        [19:55:05] [Server thread/INFO]: Stopping server
                        [19:55:05] [Server thread/INFO]: Saving players
                        [19:55:05] [Server thread/INFO]: Saving worlds
                        [19:55:05] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                        [19:55:05] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                        [19:55:05] [Server thread/INFO]: Saving chunks for level 'New World'/The End
                        1 réponse Dernière réponse Répondre Citer 0
                        • robin4002
                          robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 19 mai 2014, 17:59

                          Regarde ton type de processeur, si tu as 4 go installés tu as sûrement un processeur 64 bits, dans ce cas installe un os 64 bits pour utiliser toutes la ram. Carte graphique Nvidia ? C’est juste parfait, les cartes graphiques nvidia datant d’après 2006 ont des drivers Windows 7/8/8.1, si c’était un vista d’origine je pense que c’est bon .
                          Pour la question W7/W8, ça dépend que de toi, Windows 8 il faut juste un temps d’adaptation, sinon il est pas si mal, et au pire il y a Ium kits + Classic Start Menu pour avoir le menu démarré.

                          http://www.iumkit.net/portail/ium-kit/telechargement-ium/iumkit/
                          http://www.iumkit.net/portail/mikitstore/ -> Autre -> Classic Start Menu
                          C’est ce que j’utilise, et j’en suis super satisfait, en plus Iumkit vire beaucoup de processus /services inutiles de Windows, ce qui te donne un Windows optimisé qui tourne beaucoup mieux.

                          Je pense que ça serait mieux de continuer ce hors-sujet en mp ^^

                          1 réponse Dernière réponse Répondre Citer 1
                          • Deleted
                            Deleted dernière édition par 19 mai 2014, 18:03

                            Mais il y a quelque chose que je comprends pas car comment mon nouveau disque peut-il appeler cette musique alors que je ne l’ai déclaré nulle part j’ai donc resuivi le tutoriel et remis ceci dans le String de la déclaration

                            cdTensionRising = new CdTensionRising("modminekingdomhearts:similiMusic").setMaxStackSize(1).setUnlocalizedName("cdTensionRising").setTextureName(modMineKingdomHearts.MODID + ":cdTensionRising");

                            Mais ça ne marche pas et ajoute ceci comme texte lorsque je le fais jouer dans un jukebox

                            Pourquoi .desc
                            Est ce que je pourrais regarder dans le sounds.json de mo’creature en m’aidant de sa déclaration de son disque ais-je le droit?

                            Oui c’est sûr si j’ai besoin d’aide je te mp car là on parle plus trop de disque ^^

                            1 réponse Dernière réponse Répondre Citer 0
                            • robin4002
                              robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 19 mai 2014, 18:09

                              Le .desc est ajouter par mc, il prend le nom dans le constructeur.
                              Mo creature je pense pas, les sources sont fermés. En revanche, tu as ça qui pourra t’aider :
                              https://github.com/FFMT/ModTutoriel/blob/master/tutoriel/common/ModTutoriel.java#L111
                              https://github.com/FFMT/ModTutoriel/blob/master/tutoriel/common/ItemCdTutorial.java
                              https://github.com/FFMT/ModTutoriel/blob/master/assets/modtutoriel/sounds.json#L10-L18

                              1 réponse Dernière réponse Répondre Citer 0
                              • Deleted
                                Deleted dernière édition par 19 mai 2014, 18:20

                                @‘robin4002’:

                                Le .desc est ajouter par mc, il prend le nom dans le constructeur.
                                Mo creature je pense pas, les sources sont fermés. En revanche, tu as ça qui pourra t’aider :
                                https://github.com/FFMT/ModTutoriel/blob/master/tutoriel/common/ModTutoriel.java#L111
                                https://github.com/FFMT/ModTutoriel/blob/master/tutoriel/common/ItemCdTutorial.java
                                https://github.com/FFMT/ModTutoriel/blob/master/assets/modtutoriel/sounds.json#L10-L18

                                Bon bah merci beaucoup pour ton aider Robin. Je me suis basé sur ce mod exemple et pourtant en m’étant inspiré de ses codes, cela ne marche toujours pas.
                                Je vais rechercher de mon côté et dès que j’ai du nouveau je reviendrais en parler ici même dans ce poste 😉

                                1 réponse Dernière réponse Répondre Citer 0
                                • robin4002
                                  robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 19 mai 2014, 19:55

                                  Tu peux renvoyer tes codes actuels ?

                                  1 réponse Dernière réponse Répondre Citer 0
                                  • Deleted
                                    Deleted dernière édition par 19 mai 2014, 20:04

                                    @‘robin4002’:

                                    Tu peux renvoyer tes codes actuels ?

                                    Ok tiens ma class principale :

                                    package mods.maxiworldcraft.mineKingdomHeartsmod.common;
                                    import java.awt.Color;
                                    import mods.maxiworldcraft.mineKingdomHeartsmod.proxy.modMineKingdomHeartsCommonProxy;
                                    import net.minecraft.block.Block;
                                    import net.minecraft.block.material.Material;
                                    import net.minecraft.creativetab.CreativeTabs;
                                    import net.minecraft.item.Item;
                                    import net.minecraft.item.Item.ToolMaterial;
                                    import net.minecraft.item.ItemSword;
                                    import net.minecraftforge.client.event.sound.SoundLoadEvent;
                                    import net.minecraftforge.common.MinecraftForge;
                                    import net.minecraftforge.common.util.EnumHelper;
                                    import cpw.mods.fml.common.Mod;
                                    import cpw.mods.fml.common.Mod.EventHandler;
                                    import cpw.mods.fml.common.Mod.Instance;
                                    import cpw.mods.fml.common.SidedProxy;
                                    import cpw.mods.fml.common.event.FMLInitializationEvent;
                                    import cpw.mods.fml.common.event.FMLPostInitializationEvent;
                                    import cpw.mods.fml.common.event.FMLPreInitializationEvent;
                                    import cpw.mods.fml.common.registry.EntityRegistry;
                                    import cpw.mods.fml.common.registry.GameRegistry;
                                    @Mod(modid = modMineKingdomHearts.MODID, name = "Mod MineKingdom Hearts", version = "1.0")
                                    public class modMineKingdomHearts
                                    {
                                    public static final String MODID = "modminekingdomhearts";
                                    public static Item cdTensionRising;
                                    @Instance("MODID")
                                    public static modMineKingdomHearts instance;
                                    public static CreativeTabs mineKingdomHeartsCreativeTabs = new mineKingdomHeartsCreativeTabs("MineKingdom Hearts");
                                    @SidedProxy(clientSide = "mods.maxiworldcraft.mineKingdomHeartsmod.client.modMineKingdomHeartsClientProxy", serverSide = "mods.maxiworldcraft.mineKingdomHeartsmod.proxy.modMineKingdomHeartsCommonProxy")
                                    public static modMineKingdomHeartsCommonProxy proxy;
                                    @EventHandler
                                    public void preInit(FMLPreInitializationEvent event)
                                    {
                                    cdTensionRising = new CdTensionRising("cdTensionRising").setMaxStackSize(1).setUnlocalizedName("cdTensionRising").setTextureName(modMineKingdomHearts.MODID + ":cdTensionRising");
                                    GameRegistry.registerItem(cdTensionRising, "cdTensionRising");
                                    }
                                    @EventHandler
                                    public void init(FMLInitializationEvent event)
                                    {
                                    proxy.registerRenderer();
                                    proxy.registerTileEntityRender();
                                    }
                                    @EventHandler
                                    public void postInit(FMLPostInitializationEvent event)
                                    {
                                    }
                                    }

                                    mon item disque

                                    package mods.maxiworldcraft.mineKingdomHeartsmod.common;
                                    import net.minecraft.item.ItemRecord;
                                    import net.minecraft.util.ResourceLocation;
                                    import cpw.mods.fml.relauncher.Side;
                                    import cpw.mods.fml.relauncher.SideOnly;
                                    public class CdTensionRising extends ItemRecord
                                    {
                                    protected CdTensionRising(String string)
                                    {
                                    super(string);
                                    this.setCreativeTab(modMineKingdomHearts.mineKingdomHeartsCreativeTabs);
                                    setUnlocalizedName(string);
                                    }
                                    @SideOnly(Side.CLIENT)
                                    public String getRecordTitle()
                                    {
                                    return "modMineKingdomHearts - " + this.recordName;
                                    }
                                    }

                                    mon sounds.json

                                    {
                                    "haynerLive" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "haynerLive"
                                    ]
                                    },
                                    "haynerHurt" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "haynerHurt"
                                    ]
                                    },
                                    "haynerDeath" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "haynerDeath"
                                    ]
                                    },
                                    "penceLive" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "penceLive"
                                    ]
                                    },
                                    "penceHurt" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "penceHurt"
                                    ]
                                    },
                                    "penceDeath" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "penceDeath"
                                    ]
                                    },
                                    "oletteLive" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "oletteLive"
                                    ]
                                    },
                                    "oletteHurt" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "oletteHurt"
                                    ]
                                    },
                                    "oletteDeath" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "oletteDeath"
                                    ]
                                    },
                                    "seiferLive" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "seiferLive"
                                    ]
                                    },
                                    "seiferHurt" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "seiferHurt"
                                    ]
                                    },
                                    "seiferDeath" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "seiferDeath"
                                    ]
                                    },
                                    "reiLive" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "reiLive"
                                    ]
                                    },
                                    "reiHurt" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "reiHurt"
                                    ]
                                    },
                                    "reiDeath" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "reiDeath"
                                    ]
                                    },
                                    "fuuLive" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "fuuLive"
                                    ]
                                    },
                                    "fuuHurt" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "fuuHurt"
                                    ]
                                    },
                                    "fuuDeath" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "fuuDeath"
                                    ]
                                    },
                                    "viviLive" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "viviLive"
                                    ]
                                    },
                                    "viviHurt" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "viviHurt"
                                    ]
                                    },
                                    "viviDeath" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "viviDeath"
                                    ]
                                    },
                                    "setzerLive" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "setzerLive"
                                    ]
                                    },
                                    "setzerHurt" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "setzerHurt"
                                    ]
                                    },
                                    "setzerDeath" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "setzerDeath"
                                    ]
                                    },
                                    "similiLive" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "similiLive"
                                    ]
                                    },
                                    "similiHurt" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "similiHurt"
                                    ]
                                    },
                                    "similiDeath" : {
                                    "category" : "neutral",
                                    "sounds" : [
                                    "similiDeath"
                                    ]
                                    },
                                    "records.similiMusic": {
                                    "category": "record",
                                    "sounds": [
                                    {
                                    "name": "records/similiMusic",
                                    "stream": true
                                    }
                                    ]
                                    }
                                    }
                                    1 réponse Dernière réponse Répondre Citer 0
                                    • robin4002
                                      robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 19 mai 2014, 20:13

                                      Dans la classe de l’item :
                                      getRecordTitle() -> supprime cette fonction.
                                      Et ajoute :

                                      public ResourceLocation getRecordResource(String name)
                                      {
                                      return new ResourceLocation("modminekingdomhearts:records.similiMusic");
                                      }
                                      1 réponse Dernière réponse Répondre Citer 1
                                      • Deleted
                                        Deleted dernière édition par 19 mai 2014, 20:31

                                        @‘robin4002’:

                                        Dans la classe de l’item :
                                        getRecordTitle() -> supprime cette fonction.
                                        Et ajoute :

                                        public ResourceLocation getRecordResource(String name)
                                        {
                                        return new ResourceLocation("modminekingdomhearts:records.similiMusic");
                                        }

                                        Alors si je t’ai bien écouté ma class de mon item devrait ressembler à ceci

                                        package mods.maxiworldcraft.mineKingdomHeartsmod.common;
                                        import net.minecraft.item.ItemRecord;
                                        import net.minecraft.util.ResourceLocation;
                                        import cpw.mods.fml.relauncher.Side;
                                        import cpw.mods.fml.relauncher.SideOnly;
                                        public class CdTensionRising extends ItemRecord
                                        {
                                        protected CdTensionRising(String string)
                                        {
                                        super(string);
                                        this.setCreativeTab(modMineKingdomHearts.mineKingdomHeartsCreativeTabs);
                                        setUnlocalizedName(string);
                                        }
                                        public ResourceLocation getRecordResource(String name)
                                        {
                                        return new ResourceLocation("modminekingdomhearts:records.similiMusic");
                                        }
                                        }

                                        PS = cela ne marche toujours pas voici les logs avec cette fois-ci une erreur différente

                                        [22:26:13] [main/INFO]: Setting user: Julot10085
                                        [22:26:15] [Client thread/INFO]: LWJGL Version: 2.9.0
                                        [22:26:23] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod MineKingdom Hearts
                                        [22:26:26] [Sound Library Loader/INFO]: Sound engine started
                                        [22:26:27] [Client thread/WARN]: File modminekingdomhearts:sounds/records/similiMusic.ogg does not exist, cannot add it to event modminekingdomhearts:records.similiMusic
                                        [22:26:29] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                                        [22:26:29] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                                        [22:26:34] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod MineKingdom Hearts
                                        [22:26:35] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                                        [22:26:35] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                                        [22:26:36] [Sound Library Loader/INFO]: Sound engine started
                                        [22:26:38] [Client thread/WARN]: File modminekingdomhearts:sounds/records/similiMusic.ogg does not exist, cannot add it to event modminekingdomhearts:records.similiMusic
                                        [22:26:43] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms
                                        [22:27:09] [Server thread/INFO]: Starting integrated minecraft server version 1.7.2
                                        [22:27:09] [Server thread/INFO]: Generating keypair
                                        [22:27:10] [Server thread/INFO]: Preparing start region for level 0
                                        [22:27:11] [Server thread/INFO]: Preparing spawn area: 44%
                                        [22:27:13] [Server thread/INFO]: Julot10085[local:E:0ba9aecf] logged in with entity id 116 at (150.6067319233654, 64.0, 1661.9991809965438)
                                        [22:27:13] [Server thread/INFO]: Julot10085 joined the game
                                        [22:27:30] [Client thread/WARN]: Unable to play empty soundEvent: modminekingdomhearts:records.similiMusic
                                        [22:27:39] [Server thread/INFO]: Saving and pausing game…
                                        [22:27:39] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                                        [22:27:39] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                                        [22:27:39] [Server thread/INFO]: Saving chunks for level 'New World'/The End
                                        [22:27:39] [Server thread/INFO]: Stopping server
                                        [22:27:39] [Server thread/INFO]: Saving players
                                        [22:27:39] [Server thread/INFO]: Saving worlds
                                        [22:27:39] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                                        [22:27:39] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                                        [22:27:39] [Server thread/INFO]: Saving chunks for level 'New World'/The End
                                        [22:27:43] [Server thread/INFO]: Starting integrated minecraft server version 1.7.2
                                        [22:27:43] [Server thread/INFO]: Generating keypair
                                        [22:27:44] [Server thread/INFO]: Preparing start region for level 0
                                        [22:27:45] [Server thread/INFO]: Preparing spawn area: 66%
                                        [22:27:45] [Server thread/INFO]: Julot10085[local:E:d9136524] logged in with entity id 4605 at (153.78426553185153, 64.0, 1662.4123974377121)
                                        [22:27:45] [Server thread/INFO]: Julot10085 joined the game
                                        [22:27:48] [Client thread/WARN]: Unable to play empty soundEvent: modminekingdomhearts:records.similiMusic
                                        [22:27:54] [Client thread/WARN]: Unable to play empty soundEvent: modminekingdomhearts:records.similiMusic
                                        [22:27:57] [Server thread/INFO]: Saving and pausing game…
                                        [22:27:57] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                                        [22:27:57] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                                        [22:27:57] [Server thread/INFO]: Saving chunks for level 'New World'/The End
                                        [22:27:58] [Server thread/INFO]: Stopping server
                                        [22:27:58] [Server thread/INFO]: Saving players
                                        [22:27:58] [Server thread/INFO]: Saving worlds
                                        [22:27:58] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                                        [22:27:58] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                                        [22:27:58] [Server thread/INFO]: Saving chunks for level 'New World'/The End
                                        [22:27:59] [Client thread/INFO]: Stopping!

                                        Je veux bien croire qu’il n’y ait pas de SimiliMusic.ogg dans le dossier records du dossier sounds ^^ lol
                                        Pourquoi il dit que le dossier records devrait se trouve dans le dossier Sounds ? Nous n’avons jamais spécifié un tel chemin, il me semble (même dans le sounds.json on n’a pas écrit une tellel ligne)?

                                        {
                                        "haynerLive" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "haynerLive"
                                        ]
                                        },
                                        "haynerHurt" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "haynerHurt"
                                        ]
                                        },
                                        "haynerDeath" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "haynerDeath"
                                        ]
                                        },
                                        "penceLive" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "penceLive"
                                        ]
                                        },
                                        "penceHurt" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "penceHurt"
                                        ]
                                        },
                                        "penceDeath" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "penceDeath"
                                        ]
                                        },
                                        "oletteLive" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "oletteLive"
                                        ]
                                        },
                                        "oletteHurt" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "oletteHurt"
                                        ]
                                        },
                                        "oletteDeath" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "oletteDeath"
                                        ]
                                        },
                                        "seiferLive" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "seiferLive"
                                        ]
                                        },
                                        "seiferHurt" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "seiferHurt"
                                        ]
                                        },
                                        "seiferDeath" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "seiferDeath"
                                        ]
                                        },
                                        "reiLive" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "reiLive"
                                        ]
                                        },
                                        "reiHurt" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "reiHurt"
                                        ]
                                        },
                                        "reiDeath" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "reiDeath"
                                        ]
                                        },
                                        "fuuLive" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "fuuLive"
                                        ]
                                        },
                                        "fuuHurt" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "fuuHurt"
                                        ]
                                        },
                                        "fuuDeath" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "fuuDeath"
                                        ]
                                        },
                                        "viviLive" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "viviLive"
                                        ]
                                        },
                                        "viviHurt" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "viviHurt"
                                        ]
                                        },
                                        "viviDeath" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "viviDeath"
                                        ]
                                        },
                                        "setzerLive" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "setzerLive"
                                        ]
                                        },
                                        "setzerHurt" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "setzerHurt"
                                        ]
                                        },
                                        "setzerDeath" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "setzerDeath"
                                        ]
                                        },
                                        "similiLive" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "similiLive"
                                        ]
                                        },
                                        "similiHurt" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "similiHurt"
                                        ]
                                        },
                                        "similiDeath" : {
                                        "category" : "neutral",
                                        "sounds" : [
                                        "similiDeath"
                                        ]
                                        },
                                        "records.similiMusic": {
                                        "category": "record",
                                        "sounds": [
                                        {
                                        "name": "records/similiMusic",
                                        "stream": true
                                        }
                                        ]
                                        }
                                        }

                                        EDIT = Après création du dossier records dans le dossier sounds, enfin j’ai pu injecter la musique et créer mon nouveau disque tant attendu je tiens vraiment à te remercier pour ta patience Robin tu m’as vraiment bcp aidé !!!

                                        1 réponse Dernière réponse Répondre Citer 0
                                        • robin4002
                                          robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 19 mai 2014, 21:04

                                          @‘Julot10085’:

                                          Pourquoi il dit que le dossier records devrait se trouve dans le dossier Sounds ? Nous n’avons jamais spécifié un tel chemin, il me semble (même dans le sounds.json on n’a pas écrit une tellel ligne)?

                                          En fait dans le fichier sounds.json, tu indique le chemin à partir du dossier assets/tonmodid/sounds/
                                          Donc avec : “name”: “records/similiMusic”,
                                          Le fichier sera assets/tonmodid/sounds/records/similiMusic.ogg
                                          Avec “name”: “dossier/autredossier/encoreunautre/son”,
                                          le fichier sera assets/tonmodid/sounds/dossier/autredossier/encoreunautre/son.ogg
                                          Tout simplement.
                                          De rien !

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

                                          MINECRAFT FORGE FRANCE © 2018

                                          Powered by NodeBB