Résolu Comment faire pour que les joueurs entende autour de moi le son que j'active
-
Je crois que tu n’as pas compris comment devais fonctionner ton paquet, voici les étapes :
- Envoyer le paquet au serveur lorsque la touche est pressée (juste l’envoi, pas de boucles ni rien d’autre)
- Le serveur reçois le paquet
- Dans le handler, tu envoi le son à tous les joueurs autour
-
c’est se que j’ai fais, dans mon client proxy j’envoi le paquet au serveur avec: AltisMineMod.samu.sendToServer(new PacketSamu());
Donc le serveur reçois normalement le paquet et da -
c’est se que j’ai fais, dans mon client proxy j’envoi le paquet au serveur avec: AltisMineMod.samu.sendToServer(new PacketSamu());
Donc le serveur reçois normalement le paquet et dans le Handler j’envois le son à, tous les joueurs via le code: world.playSoundAtEntity(player, “amm:BarrettShoot”, 1.0F, 1.0F);je pense que le code “world.playSoundAtEntity(player, “amm:BarrettShoot”, 1.0F, 1.0F);” est faux .
Peut-etre aussi que je suis con, j’essaye en solo pas en multijoueur , en solo je dois entendre le son ou y’a que en multijoueur que j’entend le son ?
-
public static class Handler implements IMessageHandler <packetsamu, imessage="">{ @Override public IMessage onMessage(PacketSamu message, MessageContext ctx) { EntityPlayerMP player = ctx.getServerHandler().playerEntity; World world = FMLClientHandler.instance().getWorldClient(); if(player.capabilities.isCreativeMode){ if(player.inventory.hasItem(AltisMineMod.GyroSamu)){ if(true){ world.playSoundAtEntity(player, "amm:BarrettShoot", 1.0F, 1.0F); System.out.println("Test"); } } } return null; } }
Sérieusement … Si tu mélange du client et du serveur c’est normal que ça fasse n’importe quoi.
public static class Handler implements IMessageHandler <packetsamu, imessage="">{ @Override public IMessage onMessage(PacketSamu message, MessageContext ctx) { EntityPlayerMP player = ctx.getServerHandler().playerEntity; if(player.capabilities.isCreativeMode){ if(player.inventory.hasItem(AltisMineMod.GyroSamu)){ player.worldObj.playSoundAtEntity(player, "amm:BarrettShoot", 1.0F, 1.0F); } } return null; } } ```</packetsamu,></packetsamu,>
-
Ouais c’est niquel juste un dernier truc j’aimerai jouer un son dans un rayon de 60 blocs a partir du joueur qui appuie sur le bouton.
j’ai essayé cela:EntityPlayer player = Minecraft.getMinecraft().thePlayer; if(player.capabilities.isCreativeMode){ if(player.inventory.hasItem(AltisMineMod.GyroSamu)){ if(true){ AltisMineMod.samu.sendToAllAround(new PacketSamu(), player.worldObj.provider.getDimensionId(), player.posX, player.posY, player.posZ);
J’ai une erreur au .getDimensionId
-
Quel est l’erreur ?
-
Faut utiliser sendToServer car tu es sûr le client. Si tu veux que plus que le rayon soit plus grand que ce que fait par défaut playSoundAtEntity il faut depuis le serveur renvoyer un paquet à tous les client puis jouer le son à l’arrivé de ce deuxième paquet.
-
J’ai voulus ajouté d’autre son j’ai bien changer les chiffre:
samu = NetworkRegistry.INSTANCE.newSimpleChannel("amm:"); samu.registerMessage(PacketSamu.Handler.class, PacketSamu.class, 0, Side.SERVER); police = NetworkRegistry.INSTANCE.newSimpleChannel("amm:"); police.registerMessage(PacketPolice.Handler2.class, PacketPolice.class, 1, Side.SERVER); pompier = NetworkRegistry.INSTANCE.newSimpleChannel("amm:"); pompier.registerMessage(PacketPompier.Handler.class, PacketPompier.class, 2, Side.SERVER);
CRASH:
[00:11:33] [main/INFO] [GradleStart]: Extra: [] [00:11:33] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Admin/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [00:11:33] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [00:11:33] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [00:11:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [00:11:33] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [00:11:33] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1291 for Minecraft 1.7.10 loading [00:11:33] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.8.0_45, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jdk1.8.0_45\jre [00:11:33] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [00:11:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [00:11:33] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin [00:11:33] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [00:11:33] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [00:11:33] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [00:11:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [00:11:33] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [00:11:33] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [00:11:33] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [00:11:33] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [00:11:34] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [00:11:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [00:11:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [00:11:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [00:11:34] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker [00:11:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker [00:11:34] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [00:11:34] [main/INFO]: Setting user: Player231 [00:11:35] [Client thread/INFO]: LWJGL Version: 2.9.1 [00:11:35] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [00:11:35] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1291 Initialized [00:11:35] [Client thread/INFO] [FML]: Replaced 183 ore recipies [00:11:35] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [00:11:35] [Client thread/INFO] [FML]: Searching C:\Users\Admin\Desktop\Modding\AltisMineMod\eclipse\mods for mods [00:11:36] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [00:11:36] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, amm] at CLIENT [00:11:36] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, amm] at SERVER [00:11:37] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:§aAltisMineMod [00:11:37] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [00:11:37] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [00:11:37] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [00:11:37] [Client thread/INFO] [FML]: Applying holder lookups [00:11:37] [Client thread/INFO] [FML]: Holder lookups applied [00:11:37] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [00:11:37] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [00:11:37] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [00:11:37] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [00:11:37] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [00:11:37] [Client thread/WARN]: File amm:sounds/AK74Shoot.ogg does not exist, cannot add it to event amm:AK74Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:BazookaReload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:BrenReload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:BrowningReload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:ColtReload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:DesertEagleShoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:DP28Reload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:DragunovShoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:G36Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:Kar98kReload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:LeeEnfieldReload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:LugerReload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:L96Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1CarbineReload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M9Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M14Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M21Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M60Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M249Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1014Reload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1014Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MG42Reload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MiniUziShoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MP5Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MP40Reload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MP44Reload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:P90Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:PPSHReload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:R700Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:Reload1 [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:RPDShoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:RPGShoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:SkorpionShoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:SpringfieldReload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:StenReload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:ThompsonReload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:TT33Reload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:USPShoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:W1200Reload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:W1200Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:GlockShoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:SG550Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:AT4Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MakarovShoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:SIGP229Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:R870Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:FNSCARShoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:Helicopter1 [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:Helicopter2 [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:HelicopterStart [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:JetEngine1 [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:JetEngine2 [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:RocketFire1 [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:RocketFire2 [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:BulletHit [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MinigunWarmup [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MinigunSpin [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MinigunCooldown [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1887Shoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1887Reload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:GrenadeLauncherShoot [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:GL6Reload [00:11:37] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:GrenadeLauncherReload [00:11:37] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [00:11:37] [Sound Library Loader/INFO]: Sound engine started [00:11:37] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [00:11:38] [Client thread/INFO]: Created: 2048x1024 textures/items-atlas [00:11:38] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [00:11:38] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:§aAltisMineMod [00:11:38] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [00:11:38] [Client thread/INFO]: Created: 2048x1024 textures/items-atlas [00:11:38] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [00:11:38] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down… [00:11:38] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com [00:11:38] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [00:11:38] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [00:11:38] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [00:11:38] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [00:11:38] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [00:11:38] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [00:11:39] [Client thread/WARN]: File amm:sounds/AK74Shoot.ogg does not exist, cannot add it to event amm:AK74Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:BazookaReload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:BrenReload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:BrowningReload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:ColtReload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:DesertEagleShoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:DP28Reload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:DragunovShoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:G36Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:Kar98kReload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:LeeEnfieldReload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:LugerReload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:L96Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1CarbineReload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M9Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M14Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M21Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M60Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M249Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1014Reload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1014Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MG42Reload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MiniUziShoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MP5Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MP40Reload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MP44Reload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:P90Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:PPSHReload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:R700Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:Reload1 [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:RPDShoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:RPGShoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:SkorpionShoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:SpringfieldReload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:StenReload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:ThompsonReload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:TT33Reload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:USPShoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:W1200Reload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:W1200Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:GlockShoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:SG550Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:AT4Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MakarovShoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:SIGP229Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:R870Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:FNSCARShoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:Helicopter1 [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:Helicopter2 [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:HelicopterStart [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:JetEngine1 [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:JetEngine2 [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:RocketFire1 [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:RocketFire2 [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:BulletHit [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MinigunWarmup [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MinigunSpin [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MinigunCooldown [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1887Shoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1887Reload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:GrenadeLauncherShoot [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:GL6Reload [00:11:39] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:GrenadeLauncherReload [00:11:39] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [00:11:39] [Sound Library Loader/INFO]: Sound engine started [00:11:40] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10 [00:11:40] [Server thread/INFO]: Generating keypair [00:11:41] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance [00:11:41] [Server thread/INFO] [FML]: Applying holder lookups [00:11:41] [Server thread/INFO] [FML]: Holder lookups applied [00:11:41] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1982e8b) [00:11:41] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1982e8b) [00:11:41] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1982e8b) [00:11:41] [Server thread/INFO]: Preparing start region for level 0 [00:11:41] [Server thread/INFO]: Changing view distance to 8, from 10 [00:11:42] [Netty Client IO #0/INFO] [FML]: Server protocol version 1 [00:11:42] [Netty IO #1/INFO] [FML]: Client protocol version 1 [00:11:42] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : amm@1.0,FML@7.10.85.1291,Forge@10.13.2.1291,mcp@9.05 [00:11:42] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [00:11:42] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER [00:11:42] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established [00:11:42] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established [00:11:42] [Server thread/INFO]: Player231[local:E:09055d0f] logged in with entity id 299 at (129.5, 76.0, 238.5) [00:11:42] [Server thread/INFO]: Player231 joined the game [00:11:42] [Server thread/ERROR] [FML]: FMLIndexedMessageCodec exception caught io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel amm: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel amm: at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?] at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:17) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:?] … 13 more [00:11:42] [Server thread/ERROR] [FML]: SimpleChannelHandlerWrapper exception io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel amm: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel amm: at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?] at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:17) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:?] … 13 more [00:11:42] [Server thread/ERROR] [FML]: There was a critical exception handling a packet on channel amm: io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel amm: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) ~[DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel amm: at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?] at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:17) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:?] … 13 more [00:11:42] [Server thread/INFO]: Stopping server [00:11:42] [Server thread/INFO]: Saving players [00:11:42] [Server thread/INFO]: Saving worlds [00:11:42] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [00:11:42] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [00:11:42] [Server thread/INFO]: Saving chunks for level 'New World'/The End [00:11:43] [Server thread/INFO] [FML]: Unloading dimension 0 [00:11:43] [Server thread/INFO] [FML]: Unloading dimension -1 [00:11:43] [Server thread/INFO] [FML]: Unloading dimension 1 [00:11:43] [Server thread/INFO] [FML]: Applying holder lookups [00:11:43] [Server thread/INFO] [FML]: Holder lookups applied [00:11:47] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10 [00:11:47] [Server thread/INFO]: Generating keypair [00:11:47] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance [00:11:47] [Server thread/INFO] [FML]: Applying holder lookups [00:11:47] [Server thread/INFO] [FML]: Holder lookups applied [00:11:47] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@c9acd8) [00:11:47] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@c9acd8) [00:11:47] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@c9acd8) [00:11:47] [Server thread/INFO]: Preparing start region for level 0 [00:11:48] [Server thread/INFO]: Changing view distance to 8, from 10 [00:11:48] [Netty Client IO #1/INFO] [FML]: Server protocol version 1 [00:11:48] [Netty IO #3/INFO] [FML]: Client protocol version 1 [00:11:48] [Netty IO #3/INFO] [FML]: Client attempting to join with 4 mods : amm@1.0,FML@7.10.85.1291,Forge@10.13.2.1291,mcp@9.05 [00:11:48] [Netty IO #3/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [00:11:48] [Netty Client IO #1/INFO] [FML]: Attempting connection with missing mods [] at SERVER [00:11:48] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established [00:11:48] [Server thread/INFO]: Player231[local:E:16ef8842] logged in with entity id 647 at (129.5, 76.0, 238.5) [00:11:48] [Server thread/INFO]: Player231 joined the game [00:11:48] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established [00:11:49] [Server thread/ERROR] [FML]: FMLIndexedMessageCodec exception caught io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 1 in channel amm: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 1 in channel amm: at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?] at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:17) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:?] … 13 more [00:11:49] [Server thread/ERROR] [FML]: SimpleChannelHandlerWrapper exception io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 1 in channel amm: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 1 in channel amm: at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?] at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:17) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:?] … 13 more [00:11:49] [Server thread/ERROR] [FML]: There was a critical exception handling a packet on channel amm: io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 1 in channel amm: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) ~[DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 1 in channel amm: at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?] at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:17) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:?] … 13 more [00:11:49] [Server thread/INFO]: Stopping server [00:11:49] [Server thread/INFO]: Saving players [00:11:49] [Server thread/INFO]: Saving worlds [00:11:49] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [00:11:49] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [00:11:49] [Server thread/INFO]: Saving chunks for level 'New World'/The End [00:11:49] [Server thread/INFO] [FML]: Unloading dimension 0 [00:11:49] [Server thread/INFO] [FML]: Unloading dimension -1 [00:11:49] [Server thread/INFO] [FML]: Unloading dimension 1 [00:11:49] [Server thread/INFO] [FML]: Applying holder lookups [00:11:49] [Server thread/INFO] [FML]: Holder lookups applied [00:11:53] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10 [00:11:53] [Server thread/INFO]: Generating keypair [00:11:53] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance [00:11:53] [Server thread/INFO] [FML]: Applying holder lookups [00:11:53] [Server thread/INFO] [FML]: Holder lookups applied [00:11:53] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1a89eee) [00:11:53] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1a89eee) [00:11:53] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1a89eee) [00:11:53] [Server thread/INFO]: Preparing start region for level 0 [00:11:54] [Server thread/INFO]: Changing view distance to 8, from 10 [00:11:54] [Netty Client IO #2/INFO] [FML]: Server protocol version 1 [00:11:54] [Netty IO #5/INFO] [FML]: Client protocol version 1 [00:11:54] [Netty IO #5/INFO] [FML]: Client attempting to join with 4 mods : amm@1.0,FML@7.10.85.1291,Forge@10.13.2.1291,mcp@9.05 [00:11:54] [Netty IO #5/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [00:11:54] [Netty Client IO #2/INFO] [FML]: Attempting connection with missing mods [] at SERVER [00:11:54] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established [00:11:54] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established [00:11:54] [Server thread/INFO]: Player231[local:E:d279eee3] logged in with entity id 1005 at (129.5, 76.0, 238.5) [00:11:54] [Server thread/INFO]: Player231 joined the game [00:11:58] [Server thread/INFO]: Player231 has just earned the achievement [Taking Inventory] [00:11:58] [Client thread/INFO]: [CHAT] Player231 has just earned the achievement [Taking Inventory] [00:12:04] [Server thread/INFO]: Saving and pausing game… [00:12:04] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [00:12:04] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [00:12:04] [Server thread/INFO]: Saving chunks for level 'New World'/The End [00:12:08] [Server thread/ERROR] [FML]: FMLIndexedMessageCodec exception caught io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel amm: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel amm: at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?] at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:17) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:?] … 13 more [00:12:08] [Server thread/ERROR] [FML]: SimpleChannelHandlerWrapper exception io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel amm: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel amm: at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?] at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:17) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:?] … 13 more [00:12:08] [Server thread/ERROR] [FML]: There was a critical exception handling a packet on channel amm: io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel amm: at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) ~[DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel amm: at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?] at cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:17) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:?] … 13 more [00:12:08] [Server thread/INFO]: Stopping server [00:12:08] [Server thread/INFO]: Saving players [00:12:08] [Server thread/INFO]: Saving worlds [00:12:08] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [00:12:08] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [00:12:08] [Server thread/INFO]: Saving chunks for level 'New World'/The End [00:12:09] [Server thread/INFO] [FML]: Unloading dimension 0 [00:12:09] [Server thread/INFO] [FML]: Unloading dimension -1 [00:12:09] [Server thread/INFO] [FML]: Unloading dimension 1 [00:12:09] [Server thread/INFO] [FML]: Applying holder lookups [00:12:09] [Server thread/INFO] [FML]: Holder lookups applied [00:12:10] [Client thread/INFO]: Stopping! [00:12:10] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [00:12:10] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down… [00:12:11] [Client thread/INFO] [STDOUT]: [paulscode.sound.So undSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com [00:12:11] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release ```___C'est bon ^^ j'ai changer ("amm:"); a chaque ligne c'est niquel___Juste un dernier truc est après c'est bon normalement, est-ce que c'est possible de jouer le son en appuyant sur une touche en ayant l'inventaire ouvert merci.
-
C’est pas bon, là tu créé un chanel par paquet. Il en faut que un par mod :
network = NetworkRegistry.INSTANCE.newSimpleChannel("amm:"); network.registerMessage(PacketSamu.Handler.class, PacketSamu.class, 0, Side.SERVER); network.registerMessage(PacketPolice.Handler2.class, PacketPolice.class, 1, Side.SERVER); network.registerMessage(PacketPompier.Handler.class, PacketPompier.class, 2, Side.SERVER);
etc …
Pour le son dans l’inventaire, il faut vérifier que player.openContainer n’est pas null. (ou est d’instance ContainerPlayer).
-
en gros je dois pas mettre cela: if(player.openContainer != null)
je dois mettre du coup car if(player.openContainer != true) marche pas -
J’ai rien compris à ce que tu dis et " if(player.openContainer != true)" ça n’a aucun sens.
-
bah je dois mettre quoi du coup pour que je puisse jouer un son avec l’inventaire ouvert
-
if(player.openContainer instanceof PlayerContainer)
-
il trouve pas PlayerContainer c’est pas plutôt: if(player.openContainer instanceof ContainerPlayer) ?
mais ça marche pas -
Possible. Envoies ton code.
-
public static class Handler implements IMessageHandler <packetsamu, imessage="">{ @Override public IMessage onMessage(PacketSamu message, MessageContext ctx) { EntityPlayerMP player = ctx.getServerHandler().playerEntity; if(player.inventory.hasItem(AltisMineMod.GyroSamu)){ if(player.openContainer instanceof ContainerPlayer) player.worldObj.playSoundAtEntity(player, "amm:BarrettShoot", 1.0F, 1.0F); } return null; } } } ```</packetsamu,>
-
Juste un dernier truc aussi tu pense que c’est possible de répété un son avec un boucle for infiniment est tant que je r’appui pas sur la touche le son s’arrête pas .
-
J’aurai plutôt dit qu’une fois que t’as appuyé sur la touche ça passe un boolean à sauvegarder à true. Et avec un while tant qu’il est true tu joues ton son. Et si tu rappuies tu le repasses à false
-
ouais voilà mais bon vue que je connais cela j’aimerai avoir le code
-
Le forum est là pour aider pas pour donner du code gratuitement…