MFF

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

    Créer un nouveau disque

    Planifier Épinglé Verrouillé Déplacé Les items
    1.6.x
    22 Messages 5 Publieurs 11.9k Vues 1 Watching
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • DeletedD Hors-ligne
      Deleted
      dernière édition par

      @‘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
      • robin4002R Hors-ligne
        robin4002 Moddeurs confirmés Rédacteurs Administrateurs
        dernière édition par

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

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

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

              @‘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
              • robin4002R Hors-ligne
                robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                dernière édition par

                Tu peux renvoyer tes codes actuels ?

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

                  @‘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
                  • robin4002R Hors-ligne
                    robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                    dernière édition par

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

                      @‘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
                      • robin4002R Hors-ligne
                        robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                        dernière édition par

                        @‘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
                        • DeletedD Hors-ligne
                          Deleted
                          dernière édition par

                          @‘robin4002’:

                          @‘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 !

                          Ha ok d’accord je ne comprenais pas car jusqu’à maintenant je ne faisais que des sons vraiment heureusement que MFF ezxiste vraiment ! Et surtout encore merci Robin

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

                            Salut !

                            Ce post est plutot ancien mais bon c’est le seul actif on va dire…

                            Bref j’ai un probleme qui est que quand je lance Minecraft ça m’affiche ça : http://prntscr.com/bqm0x2
                            Alors que j’ai mis le bon répertoire http://prntscr.com/bqm1h3
                            Est ce que vous sauriez pourquoi ça me fait ça ?

                            EDIT: C’est bon j’ai trouvé c’était symplement une erreur dans le sounds.json j’avais mis

                            "name": "records/unravel"
                            

                            Au lieu de :

                            "name": "mangaop:records/unravel"
                            

                            Passionné de programmation en Java et de [infobulle=Actuellement 1.9]Modding[/infobulle].
                            MangaOpening et GuardianStuff en Développement !

                            …

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

                            MINECRAFT FORGE FRANCE © 2024

                            Powered by NodeBB