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

    Résolu Mettre la musique de fond en continue et la modifier

    Anciennes versions
    1.6.2
    4
    21
    7234
    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.
    • Axaurus
      Axaurus dernière édition par

      Salut
      J’aimerai modifier les musiques et les mettres en continue.
      Pour mettre la musique en continue, j’ai trouver un tutoriel; mais il est en 1.5 donc ne marche pas. J’ai quand même essayer, mais non; et il faut modifier le code source de Minecraft.

      Si vous avez une solution à mes deux problèmes (sans modifier le code source de minecraft) pouvez-vous les postez ?

      Merci d’avance

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

        Personne ?

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

          Merci de ne pas up un poste sous moins de 24 heures.
          De mon côté je sais pas j’ai jamais essayé de faire ça.

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

            Pour modifier une classe sans y toucher, tu dois utiliser la Reflection java. (Oui, Reflection s’écrit bien avec “ct” car on ne parle pas du verbe réfléchir.) Forge intègre un système de Reflection plus fiable pour éviter de déclarer 200 fields juste pour modifier une variable dans une classe.

            Voici deux classes où tu pourras trouver ton bonheur (A NE PAS MODIFIER BIEN ENTENDU, C’EST UNE CLASSE A UTILISER COMME GAMEREGISTRY/LANGUAGEREGISTRY etc…) :

            -ReflectionHelper
            -ObfuscationReflectionHelper

            Mon site | GitHub

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

              Salut
              Ok,merci
              Et désolée pour le UP

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

                J’ai tout créer mais il y a une erreur dans mon ClientTickHandler :

                package This_is_Halloween;
                
                import java.util.EnumSet;
                import java.util.Random;
                
                import net.minecraft.block.Block;
                import net.minecraft.client.Minecraft;
                import net.minecraft.client.audio.SoundManager;
                import net.minecraft.client.entity.EntityPlayerSP;
                import net.minecraft.util.MathHelper;
                import net.minecraft.world.biome.BiomeGenBase;
                import cpw.mods.fml.client.FMLClientHandler;
                import cpw.mods.fml.common.ITickHandler;
                import cpw.mods.fml.common.ObfuscationReflectionHelper;
                import cpw.mods.fml.common.TickType;
                
                public class ClientTickHandler implements ITickHandler
                {
                
                @Override
                public void tickStart(EnumSet <ticktype>type, Object… tickData)
                {
                
                }
                
                @Override
                public void tickEnd(EnumSet <ticktype>type, Object... tickData)
                {
                Minecraft mc = FMLClientHandler.instance().getClient();
                Random rand = mc.theWorld.rand;
                BiomeGenBase biome = mc.theWorld.getBiomeGenForCoords((int)mc.thePlayer.posX, (int)mc.thePlayer.posZ);
                final Minecraft minecraft = FMLClientHandler.instance().getClient();
                final EntityPlayerSP player = minecraft.thePlayer;
                if (type.equals(EnumSet.of(TickType.CLIENT)))
                {
                if(This_is_Halloween.music)
                {
                if(minecraft.running)
                {
                music(1); // ou le nombre que vous voulez, mais 6.0 c'est déjà assez
                }
                } else
                {
                }
                }
                
                if(rand.nextInt(15) > 13)
                {
                System.out.println(biome.getFloatTemperature());
                int i = MathHelper.floor_double(mc.thePlayer.posX);
                int k = MathHelper.floor_double(mc.thePlayer.posZ);
                int k1 = i + rand.nextInt(10) - rand.nextInt(10);
                int l1 = k + rand.nextInt(10) - rand.nextInt(10);
                int i2 = mc.theWorld.getPrecipitationHeight(k1, l1);
                int j2 = mc.theWorld.getBlockId(k1, i2 - 1, l1);
                float f1 = rand.nextFloat();
                float f2 = rand.nextFloat();
                double d0 = (double)((float)k1 + f1);
                double d1 = (double)((float)i2 + 0.1F) - Block.blocksList[j2].getBlockBoundsMinY();
                double d2 = (double)((float)l1 + f2);
                boolean biomeneige = biome.getFloatTemperature() == 0.05F || biome.getFloatTemperature() == 0.0F;
                if(mc.theWorld.isRaining() && biomeneige)
                {
                if(d1 > mc.thePlayer.posY + 1.0D && mc.theWorld.getPrecipitationHeight(MathHelper.floor_double(mc.thePlayer.posX), MathHelper.floor_double(mc.thePlayer.posZ)) > MathHelper.floor_double(mc.thePlayer.posY))
                {
                mc.theWorld.playSound(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, "halloween:music", 0.1F, 0.5F, false);
                }
                else
                {
                mc.theWorld.playSound(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, "halloween:music", 0.2F, 1.0F, false);
                }
                }
                }
                }
                
                @Override
                public EnumSet <ticktype>ticks()
                {
                return EnumSet.of(TickType.PLAYER);
                }
                
                @Override
                public String getLabel()
                {
                return "snow tick handler";
                }
                public static void music(float value)
                {
                ObfuscationReflectionHelper.setPrivateValue(SoundManager.class, FMLClientHandler.instance().getClient().entityRenderer, value, "MUSIC_INTERVAL");
                }
                }
                

                C’est ce code qui bug :

                public static void music(float value)
                {
                ObfuscationReflectionHelper.setPrivateValue(SoundManager.class, FMLClientHandler.instance().getClient().entityRenderer, value, "MUSIC_INTERVAL");
                }
                

                Et plus précisément setPrivateValue

                Ils proposent 2 choix, mais les deux modifient les codes de Forge, donc si vous pouvez m’aidez
                Merci d’avance</ticktype></ticktype></ticktype>

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

                  @‘Axaurus’:

                  C’est ce code qui bug :

                  public static void music(float value)
                  {
                  ObfuscationReflectionHelper.setPrivateValue(SoundManager.class, FMLClientHandler.instance().getClient().entityRenderer, value, "MUSIC_INTERVAL");
                  }
                  

                  Et plus précisément setPrivateValue

                  Normal, car il demande la classe que tu veux modifier, et COMMENT y accéder, c’est précisément le COMMENT y accéder que tu as fail. Tu as mis ça :

                  FMLClientHandler.instance().getClient().entityRenderer
                  

                  Il faut l’instance de SoundManager…

                  Mon site | GitHub

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

                    Merci, mais je suis aller en jeu(après avoir corriger l’erreur), et ça ne marche pas
                    Voici ce que j’ai mis dans le tickEnd :

                    final Minecraft minecraft = FMLClientHandler.instance().getClient();
                    if (type.equals(EnumSet.of(TickType.CLIENT)))
                    {
                    if(This_is_Halloween.music)
                    {
                    if(minecraft.running)
                    {
                    music(1);
                    }
                    } else
                    {
                    }
                    }
                    

                    Voici ce que j’ai mis dans le field que j’ai créer dans ClientTickHandler :

                    public static void music(float value)
                    {
                    ObfuscationReflectionHelper.setPrivateValue(SoundManager.class, FMLClientHandler.instance().getClient().sndManager, value, "MUSIC_INTERVAL");
                    }
                    

                    Et voici ce que j’ai mis dans ma classe principale du mod :

                    public static boolean music;
                    

                    Pourtant, il n’y a aucune erreur et ça ne marque rien dans la console.

                    Si quelqu’un peut m’aider,
                    Merci d’avance

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

                      UP

                      Personne ne sais comment résoudre mon problème ?

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

                        En fait, c’est comme si les codes que j’ai mis ne marche pas

                        C’est bizarre

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

                          Essaie de mettre des [title=“System.out.println(String message);”]logs[/title] dans ton code pour voir si ça s’exécute bien

                          Twitter :

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

                            Désolée si je suis nul, mais dans

                            System.out.println(ClientTickHandler.music(1));
                            
                            

                            le printIn est soulignez en rouge et propose d’enlever le 1.
                            Et si j’enlève le 1, c’est le music qui bug. Et si je change la méthode music, y’a 3 erreurs dans le fichier. Du coup, je suis face à une impasse

                            Si je résume tout, pour savoir si le code marche, il faut ajouter une ligne. Mais pour ajouter la ligne, il faut modifier le code de départ. Donc je ne saurais pas si ce que j’avais mis au départ marchais ou pas.___
                            Vous avez un autre moyen pour savoir si le code marche ?
                            Ou vous avez un autre moyen pour modifier une ligne d’un fichier sans passez par lui même ?

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

                              Il faut mettre ça :
                              System.out.println(“ça marche”);
                              Dans ton tick handler.

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

                                Ça ne fonctionnait pas parce que tu ne passais pas un String dans println, tu peux convertir le résultat de music avec (“” + ClientTickHandler.music(1))

                                Twitter :

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

                                  XDki113r -> Je n’ai pas compris ce que tu as dit. Du coup, j’ai fait ce que robin4002 m’a dit.
                                  robin4002 -> Je sais que mon TickClientHandler marche puisque je lui est dit d’afficher la température, donc j’ai mis ce que tu m’a dis dans```java
                                  public static void music(float value)
                                  {
                                  ObfuscationReflectionHelper.setPrivateValue(SoundManager.class, FMLClientHandler.instance().getClient().sndManager, value, “MUSIC_INTERVAL”);
                                  System.out.println(“ça marche”);
                                  }

                                  et dans ```java
                                  final Minecraft minecraft = FMLClientHandler.instance().getClient();
                                  if (type.equals(EnumSet.of(TickType.CLIENT)))
                                  {
                                  if(This_is_Halloween.music)
                                  {
                                  if(minecraft.running)
                                  {
                                  System.out.println("ça marche");
                                  music(1);
                                  }
                                  } else
                                  {
                                  }
                                  }
                                  

                                  Et ben, ça l’affiche pas
                                  Donc ça veut dire que c’est ces 2 codes qui bug

                                  😢
                                  Comment je peut faire ?
                                  Je vais chercher de mon côté, mais pouvez-vous m’aidez svp ?
                                  Merci___
                                  Pour le 1er code(celui là :```java
                                  final Minecraft minecraft = FMLClientHandler.instance().getClient();
                                  if (type.equals(EnumSet.of(TickType.CLIENT)))
                                  {

                                  if(This_is_Halloween.music)
                                  {
                                  if(minecraft.running)
                                  {
                                  System.out.println(“ça marche”);

                                  music(1);
                                  }
                                  } else
                                  {
                                  }
                                  }

                                  
                                  c'est le code du music qui fait buguer celui là. Car en dehors de ```java
                                  if(This_is_Halloween.music)
                                  {
                                  if(minecraft.running)
                                  {
                                  System.out.println("ça marche");
                                  
                                  music(1);
                                  }
                                  } else
                                  

                                  ça marche bien___
                                  C’est pas dans ClientTickHanler que ça bug car j’ai créer ça :

                                  public static void music(float value)
                                  {
                                  System.out.println("music marche");
                                  }
                                  

                                  et ça marche quand même pas
                                  Donc, ça vient pas de ce fichier

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

                                    Enfin…, je crois

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

                                      Salut
                                      J’ai essayer d’ajouter ceci :

                                      package This_is_Halloween;
                                      
                                      import net.minecraftforge.client.event.sound.SoundLoadEvent;
                                      import net.minecraftforge.event.ForgeSubscribe;
                                      
                                      public class dg {
                                      @ForgeSubscribe
                                      public void onSound(SoundLoadEvent event) {
                                      event.manager.sndSystem.backgroundMusic("halloween:music", "halloween:music", true);
                                      System.out.println("music marche");
                                      
                                      }
                                      }
                                      
                                      

                                      Je vais résumé cette ligne : ```java
                                      event.manager.sndSystem.backgroundMusic(“halloween:music”, “halloween:music”, true);

                                      "halloween:music" = le nom de la source du fichier
                                      "halloween:music" = le nom du fichier
                                      true = toLoop(si on veut que ça joue la musique en continue)
                                      
                                      J'ai aussi ajouter cette ligne dans la classe principale :
                                      ```java
                                      MinecraftForge.EVENT_BUS.register(new dg());
                                      

                                      Résultat : ça à CRASH

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

                                        @‘Axaurus’:

                                        Résultat : ça à CRASH

                                        Détails ?

                                        Twitter :

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

                                          Voici la console du crash :

                                          août 27, 2013 4:48:03 PM net.minecraft.launchwrapper.LogWrapper log
                                          INFO: Using tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                          2013-08-27 16:48:03 [INFO] [ForgeModLoader] Forge Mod Loader version 6.2.35.804 for Minecraft 1.6.2 loading
                                          2013-08-27 16:48:03 [INFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7
                                          2013-08-27 16:48:04 [INFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                                          2013-08-27 16:48:04 [INFO] [STDOUT] Loaded 39 rules from AccessTransformer config file fml_at.cfg
                                          2013-08-27 16:48:04 [INFO] [STDOUT] Loaded 107 rules from AccessTransformer config file forge_at.cfg
                                          2013-08-27 16:48:06 [SEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                                          2013-08-27 16:48:07 [INFO] [ForgeModLoader] Launching wrapped minecraft
                                          2013-08-27 16:48:15 [INFO] [Minecraft-Client] Setting user: Player494
                                          2013-08-27 16:48:15 [INFO] [Minecraft-Client] (Session ID is null)
                                          2013-08-27 16:48:22 [INFO] [Minecraft-Client] LWJGL Version: 2.9.0
                                          2013-08-27 16:48:28 [INFO] [Minecraft-Client] Reloading ResourceManager: Default
                                          2013-08-27 16:48:29 [INFO] [STDOUT]
                                          2013-08-27 16:48:29 [INFO] [STDOUT] Starting up SoundSystem…
                                          2013-08-27 16:48:30 [INFO] [STDOUT] Initializing LWJGL OpenAL
                                          2013-08-27 16:48:30 [INFO] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
                                          2013-08-27 16:48:30 [INFO] [MinecraftForge] Attempting early MinecraftForge initialization
                                          2013-08-27 16:48:30 [INFO] [STDOUT] MinecraftForge v9.10.0.804 Initialized
                                          2013-08-27 16:48:30 [INFO] [ForgeModLoader] MinecraftForge v9.10.0.804 Initialized
                                          2013-08-27 16:48:30 [INFO] [STDOUT] OpenAL initialized.
                                          2013-08-27 16:48:31 [INFO] [STDOUT]
                                          2013-08-27 16:48:31 [INFO] [STDOUT] Replaced 101 ore recipies
                                          2013-08-27 16:48:31 [INFO] [MinecraftForge] Completed early MinecraftForge initialization
                                          2013-08-27 16:48:31 [INFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Antonin\Desktop\Codage\halloween\mcp\jars\config\logging.properties
                                          2013-08-27 16:48:31 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
                                          2013-08-27 16:48:32 [INFO] [ForgeModLoader] Searching C:\Users\Antonin\Desktop\Codage\halloween\mcp\jars\mods for mods
                                          2013-08-27 16:48:42 [INFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
                                          2013-08-27 16:48:42 [INFO] [mcp] Activating mod mcp
                                          2013-08-27 16:48:42 [INFO] [FML] Activating mod FML
                                          2013-08-27 16:48:42 [INFO] [Forge] Activating mod Forge
                                          2013-08-27 16:48:42 [INFO] [This_is_Halloween] Activating mod This_is_Halloween
                                          2013-08-27 16:48:42 [WARNING] [This is Halloween] Mod This is Halloween is missing a pack.mcmeta file, things may not work well
                                          2013-08-27 16:48:42 [INFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:This is Halloween
                                          2013-08-27 16:48:42 [INFO] [STDOUT]
                                          2013-08-27 16:48:42 [INFO] [STDOUT] SoundSystem shutting down…
                                          2013-08-27 16:48:42 [INFO] [STDOUT] Author: Paul Lamb, www.paulscode.com
                                          2013-08-27 16:48:42 [INFO] [STDOUT]
                                          2013-08-27 16:48:42 [INFO] [STDOUT]
                                          2013-08-27 16:48:42 [INFO] [STDOUT] Starting up SoundSystem…
                                          2013-08-27 16:48:43 [INFO] [ForgeModLoader] Registering Forge Packet Handler
                                          2013-08-27 16:48:43 [INFO] [ForgeModLoader] Succeeded registering Forge Packet Handler
                                          2013-08-27 16:48:43 [INFO] [STDOUT] Initializing LWJGL OpenAL
                                          2013-08-27 16:48:43 [INFO] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
                                          2013-08-27 16:48:43 [INFO] [STDOUT] OpenAL initialized.
                                          2013-08-27 16:48:43 [INFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
                                          2013-08-27 16:48:43 [INFO] [STDOUT]
                                          2013-08-27 16:48:44 [INFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
                                          2013-08-27 16:48:44 [WARNING] [This is Halloween] Mod This is Halloween is missing a pack.mcmeta file, things may not work well
                                          2013-08-27 16:48:44 [INFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:This is Halloween
                                          2013-08-27 16:48:45 [INFO] [STDOUT]
                                          2013-08-27 16:48:45 [INFO] [STDOUT] SoundSystem shutting down…
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Author: Paul Lamb, www.paulscode.com
                                          2013-08-27 16:48:45 [INFO] [STDOUT]
                                          2013-08-27 16:48:45 [INFO] [STDOUT]
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Starting up SoundSystem…
                                          2013-08-27 16:48:45 [INFO] [STDOUT] –-- Minecraft Crash Report ----
                                          2013-08-27 16:48:45 [INFO] [STDOUT] // Sorry :(
                                          2013-08-27 16:48:45 [INFO] [STDOUT]
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Time: 27/08/13 16:48
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Description: Initializing game
                                          2013-08-27 16:48:45 [INFO] [STDOUT]
                                          2013-08-27 16:48:45 [INFO] [STDOUT] java.lang.NullPointerException
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at paulscode.sound.SoundSystem.backgroundMusic(SoundSystem.java:640)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at This_is_Halloween.dg.onSound(dg.java:9)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraftforge.event.ASMEventHandler_5_dg_onSound_SoundLoadEvent.invoke(.dynamic)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraftforge.event.EventBus.post(EventBus.java:108)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.audio.SoundManager.func_110549_a(SoundManager.java:101)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110544_b(SimpleReloadableResourceManager.java:119)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110541_a(SimpleReloadableResourceManager.java:103)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_110436_a(Minecraft.java:540)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:246)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:506)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:93)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
                                          2013-08-27 16:48:45 [INFO] [STDOUT]
                                          2013-08-27 16:48:45 [INFO] [STDOUT]
                                          2013-08-27 16:48:45 [INFO] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
                                          2013-08-27 16:48:45 [INFO] [STDOUT] –-------------------------------------------------------------------------------------
                                          2013-08-27 16:48:45 [INFO] [STDOUT]
                                          2013-08-27 16:48:45 [INFO] [STDOUT] – Head --
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Stacktrace:
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at paulscode.sound.SoundSystem.backgroundMusic(SoundSystem.java:640)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at This_is_Halloween.dg.onSound(dg.java:9)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraftforge.event.ASMEventHandler_5_dg_onSound_SoundLoadEvent.invoke(.dynamic)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraftforge.event.EventBus.post(EventBus.java:108)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.audio.SoundManager.func_110549_a(SoundManager.java:101)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110544_b(SimpleReloadableResourceManager.java:119)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110541_a(SimpleReloadableResourceManager.java:103)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_110436_a(Minecraft.java:540)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:246)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:506)
                                          2013-08-27 16:48:45 [INFO] [STDOUT]
                                          2013-08-27 16:48:45 [INFO] [STDOUT] – Initialization --
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Details:
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Stacktrace:
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:93)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
                                          2013-08-27 16:48:45 [INFO] [STDOUT]
                                          2013-08-27 16:48:45 [INFO] [STDOUT] – System Details --
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Details:
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Minecraft Version: 1.6.2
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Operating System: Windows 7 (amd64) version 6.1
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Java Version: 1.7.0_25, Oracle Corporation
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Memory: 875799680 bytes (835 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                                          2013-08-27 16:48:45 [INFO] [STDOUT] AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Suspicious classes: FML and Forge are installed
                                          2013-08-27 16:48:45 [INFO] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                                          2013-08-27 16:48:45 [INFO] [STDOUT] FML: MCP v8.04 FML v6.2.35.804 Minecraft Forge 9.10.0.804 4 mods loaded, 4 mods active
                                          2013-08-27 16:48:45 [INFO] [STDOUT] mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
                                          2013-08-27 16:48:45 [INFO] [STDOUT] FML{6.2.35.804} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Forge{9.10.0.804} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
                                          2013-08-27 16:48:45 [INFO] [STDOUT] This_is_Halloween{1.0} [This is Halloween] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Launched Version: 1.6
                                          2013-08-27 16:48:45 [INFO] [STDOUT] LWJGL: 2.9.0
                                          2013-08-27 16:48:45 [INFO] [STDOUT] OpenGL: AMD Radeon HD 7480D GL version 4.2.11762 Compatibility Profile Context, ATI Technologies Inc.
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Type: Client (map_client.txt)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Resource Pack: Default
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Current Language: English (US)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Profiler Position: N/A (disabled)
                                          2013-08-27 16:48:45 [INFO] [STDOUT] Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
                                          2013-08-27 16:48:46 [INFO] [STDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Antonin\Desktop\Codage\halloween\mcp\jars\.\crash-reports\crash-2013-08-27_16.48.45-client.txt
                                          AL lib: (EE) alc_cleanup: 1 device not closed
                                          
                                          1 réponse Dernière réponse Répondre Citer 0
                                          • robin4002
                                            robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par

                                            Les logs c’est pas du code java u_U
                                            Tu essaye de jouer du son alors que le menu n’est même pas encore actif et que le jeu n’est pas encore entièrement chargé, logique que ça crash.

                                            C’est pas plus simple de faire un tickHandler et du jouer du son sur le joueur de la même façon que pour la neige ?

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

                                            MINECRAFT FORGE FRANCE © 2018

                                            Powered by NodeBB