Résolu Crash lors du lancement de mon serveur
-
Crash report:
–-- Minecraft Crash Report ---- WARNING: coremods are present: SpongeCoremod (spongeforge-1.8-1577-3.0.0-BETA-1000 (1).jar) Contact their authors BEFORE contacting forge // Don't do that. Time: 19/10/16 21:08 Description: Exception in server tick loop net.minecraftforge.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiScreen at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:163) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:553) at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:88) at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:355) at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:117) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiScreen at com.CSC.net.item.CSCItems.<clinit>(CSCItems.java:18) at com.CSC.net.proxy.CommonProxy.preInit(CommonProxy.java:19) at com.CSC.net.proxy.ServerProxy.preInit(ServerProxy.java:17) at com.CSC.net.Main.preinit(Main.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:553) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:190) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.onPost(LoadController.java:53) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:550) ... 5 more Caused by: java.lang.ClassNotFoundException: net.minecraft.client.gui.GuiScreen at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 37 more Caused by: net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerException: Exception in class transformer net.minecraftforge.fml.common.asm.transformers.SideTransformer@1c3c1e1 from coremod FMLCorePlugin at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:234) at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ... 39 more Caused by: java.lang.RuntimeException: Attempted to load class bxf for invalid side SERVER at net.minecraftforge.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:49) at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:230) ... 41 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 7 (x86) version 6.1 Java Version: 1.8.0_45, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 64983552 bytes (61 MB) / 215486464 bytes (205 MB) up to 1037959168 bytes (989 MB) JVM Flags: 1 total; -Xmx1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.4.1563 6 mods loaded, 6 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forge.jar) UCH Forge{11.14.4.1563} [Minecraft Forge] (forge.jar) UCH sponge{1.8-1577-3.0.0-BETA-1000} [SpongeForge] (spongeforge-1.8-1577-3.0.0-BETA-1000 (1).jar) UCH me.florian{0.0.1} [CSCPlugin] (cscplugin-0.0.1-SNAPSHOT.jar) UCE csc{1.0} [Cite Sous Controle] (modid-1.0.jar) Loaded coremods (and transformers): SpongeCoremod (spongeforge-1.8-1577-3.0.0-BETA-1000 (1).jar) org.spongepowered.common.launch.transformer.SpongeSuperclassTransformer Profiler Position: N/A (disabled) Is Modded: Definitely; Server brand changed to 'fml,forge,SpongeForge' Type: Dedicated Server (map_server.txt)
Dites moi les classes qu’il vous faut pour le soucis ou quoi faire si vous pensez d’ou ça vient
Merci !</clinit> -
at com.CSC.net.item.CSCItems.<clinit>(CSCItems.java:18)
Ton mod essayes de charger une classe client à cette endroit.</clinit>
-
@‘robin4002’:
at com.CSC.net.item.CSCItems.<clinit>(CSCItems.java:18)
Ton mod essayes de charger une classe client à cette endroit.</clinit>
tien c’est cette classe:
package com.CSC.net.item; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import net.minecraft.client.Minecraft; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.ChatComponentText; import net.minecraft.util.IChatComponent; import net.minecraft.world.World; import com.CSC.net.Main; import com.CSC.net.GUI.Prison; public class batonP extends Item { public static ArrayList <entitylivingbase>array = new ArrayList<entitylivingbase>(); public static HashMap <entitylivingbase, date="">map = new HashMap(); public static EntityLivingBase base; public boolean itemInteractionForEntity(ItemStack stack, EntityPlayer player, EntityLivingBase target) { if(target instanceof EntityPlayer){ Minecraft.getMinecraft().displayGuiScreen(new Prison()); array.add(target); base = target; } return false; } public ItemStack onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer player) { return itemStackIn; } public void onUpdate(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected) { if(!array.isEmpty()) for(EntityLivingBase u : array) { if(map.get(u) != null){ System.out.println(map.get(u).getTime()); if(map.get(u).getTime() <= new Date().getTime()) { System.out.println(map.get(u).getTime() - new Date().getTime()); entityIn.addChatMessage(new ChatComponentText("test " + u.getName())); map.remove(u); array.remove(u); } } } } } ```</entitylivingbase,></entitylivingbase></entitylivingbase>
-
Minecraft.getMinecraft().displayGuiScreen(new Prison());
Soit faut passer par player.openGui, soit faut le faire en client seulement. -
Avec le player.openGui je dois passer par le guiHandler et je procédes comment pour ouvrir un guiScreen dans le guihandler seulement côté client ?
Et pour ouvrir le gui seulement client faut faire comment sinon?edit:
j’ai trouver je crois j’ai fais ça:
if(ID == 6) { return new Prison(); } }
dans le getclientguielement
J’ai un autre crash du coup:
–-- Minecraft Crash Report ---- WARNING: coremods are present: SpongeCoremod (spongeforge-1.8-1577-3.0.0-BETA-1000 (1).jar) Contact their authors BEFORE contacting forge // Ooh. Shiny. Time: 19/10/16 22:15 Description: Exception in server tick loop net.minecraftforge.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/audio/ISound at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:163) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:553) at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:88) at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:355) at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:117) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/audio/ISound at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) at java.lang.Class.getConstructor0(Class.java:3075) at java.lang.Class.newInstance(Class.java:412) at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.instantiate(SimpleNetworkWrapper.java:113) at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.registerMessage(SimpleNetworkWrapper.java:106) at com.CSC.net.Main.preinit(Main.java:100) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:553) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:190) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.onPost(LoadController.java:53) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:550) ... 5 more Caused by: java.lang.ClassNotFoundException: net.minecraft.client.audio.ISound at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 40 more Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ... 42 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 7 (x86) version 6.1 Java Version: 1.8.0_45, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 109913744 bytes (104 MB) / 215498752 bytes (205 MB) up to 1037959168 bytes (989 MB) JVM Flags: 1 total; -Xmx1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.4.1563 6 mods loaded, 6 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forge.jar) UCH Forge{11.14.4.1563} [Minecraft Forge] (forge.jar) UCH sponge{1.8-1577-3.0.0-BETA-1000} [SpongeForge] (spongeforge-1.8-1577-3.0.0-BETA-1000 (1).jar) UCH me.florian{0.0.1} [CSCPlugin] (cscplugin-0.0.1-SNAPSHOT.jar) UCE csc{1.0} [Cite Sous Controle] (modid-1.0.jar) Loaded coremods (and transformers): SpongeCoremod (spongeforge-1.8-1577-3.0.0-BETA-1000 (1).jar) org.spongepowered.common.launch.transformer.SpongeSuperclassTransformer Profiler Position: N/A (disabled) Is Modded: Definitely; Server brand changed to 'fml,forge,SpongeForge' Type: Dedicated Server (map_server.txt)
Surement avec les sons.
-
Dans la partie serveur, tu renvoies ‘null’ et dans la partie client tu renvoies une nouvelle instance de ton GuiScreen
-
@‘jglrxavpok’:
Dans la partie serveur, tu renvoies ‘null’ et dans la partie client tu renvoies une nouvelle instance de ton GuiScreen
Ouais c’est bon merci :), par contre j’ai un autre crash …
La ligne 100 de mon preinit pointe mon packet son je vous le passe:
package com.CSC.net.packet; import io.netty.buffer.ByteBuf; import net.minecraft.client.Minecraft; import net.minecraft.client.audio.PositionedSoundRecord; import net.minecraft.client.audio.SoundHandler; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.common.network.simpleimpl.IMessage; import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler; import net.minecraftforge.fml.common.network.simpleimpl.MessageContext; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class PacketSounds implements IMessage{ private Integer integer; public PacketSounds() { } public PacketSounds(Integer i) { this.integer = i; } @Override public void fromBytes(ByteBuf buf) { this.integer = buf.readInt(); } @Override public void toBytes(ByteBuf buf) { buf.writeInt(this.integer); } public static class Handler implements IMessageHandler <packetsounds, imessage="">{ @Override public IMessage onMessage(PacketSounds message, MessageContext ctx) { switch(message.integer) { case 0: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:10-97"), 1.0F)); break; case 1: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:administrer"), 1.0F)); break; case 2: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:affirmatif"), 1.0F)); break; case 3: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:ahahah"), 1.0F)); break; case 4: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:anti_citoyen"), 1.0F)); break; case 5: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:appliquez"), 1.0F)); break; case 6: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:arretez_tout_de_suite"), 1.0F));//arretez break; case 7: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:avancez"), 1.0F)); break; case 8: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:bloquez"), 1.0F)); break; case 9: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:bougez"), 1.0F)); break; case 10: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:circulez2"), 1.0F));//circulez2 break; case 11: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:citoyen"), 1.0F)); break; case 12: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:classez_le_sujet_comme_d_c_d_wa"), 1.0F));//dcd break; case 13: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:code100"), 1.0F)); break; case 14: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:confirmation_sur_le_suspect_10-0"), 1.0F));//confirmedata break; case 15: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:continuez"), 1.0F)); break; case 16: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:dernier_avertissement"), 1.0F)); break; case 17: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:deuxi_me_avertissement_"), 1.0F)); break; case 18: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:documentez"), 1.0F)); break; case 19: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:emput_"), 1.0F));//emputez break; case 20: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:examinez"), 1.0F)); break; case 21: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:f_anticitizenreport_spkr"), 1.0F));// Attendre darkmayke break; case 22: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:f_anticivil1_5_spkr"), 1.0F));// Attendre darkmayke break; case 23: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:f_anticivilevidence_3_spkr"), 1.0F));// Attendre darkmayke break; case 24: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:f_capitalmalcompliance_spkr"), 1.0F));// Attendre darkmayke break; case 25: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:f_citizenshiprevoked_6_spkr"), 1.0F));// Attendre darkmayke break; case 26: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:f_protectionresponse_1_spkr"), 1.0F));// Attendre darkmayke break; case 27: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:f_trainstation_assemble_spkr"), 1.0F));// Attendre darkmayke break; case 28: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:f_trainstation_assumepositions_spkr"), 1.0F));// Attendre darkmayke break; case 29: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:f_trainstation_offworldrelocation_spkr"), 1.0F));// Attendre darkmayke break; case 30: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:grenade"), 1.0F)); break; case 31: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:hostil"), 1.0F)); break; case 32: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:insecte"), 1.0F)); break; case 33: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:isolez"), 1.0F)); break; case 34: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:j_39_ai_dis_circulez"), 1.0F));//circulez3 break; case 35: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:Milice"), 1.0F)); break; case 36: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:mort"), 1.0F)); break; case 37: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:moveit2"), 1.0F));// ne pas mettre break; case 38: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:OKAY"), 1.0F)); break; case 39: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:okay_nous_allons_faire_un_test_de_loyaut_"), 1.0F));//test_loyaute break; case 40: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:pas_un_geste"), 1.0F)); break; case 41: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:passage_en_mod_visuel"), 1.0F));//visuel break; case 42: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:passif"), 1.0F)); break; case 43: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:poursuivez"), 1.0F)); break; case 44: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:pr_t_emputer_w"), 1.0F));//pret_emputez break; case 45: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:premier_avertissement_d_gagez_"), 1.0F));//avt1 break; case 46: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:re_u_"), 1.0F));//recu break; case 47: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:reculez"), 1.0F)); break; case 48: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:reculez_tout_de_suite"), 1.0F));//reculez2 break; case 49: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:refus_d_39_optemp_rer_en_cours_"), 1.0F));//refus_optemperer break; case 50: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:rois"), 1.0F)); break; case 51: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:st_rilisez_"), 1.0F));//sterilisez break; case 52: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:stop"), 1.0F));//stop1 break; case 53: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:sujet_505"), 1.0F));//505 break; case 54: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:tr_s_bien_circulez_"), 1.0F));//circulez1 break; case 55: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:union"), 1.0F)); break; case 56: Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("csc:vite"), 1.0F)); break; default: break; } return null; } } }
Il manque un sideonly client c’est ça? x)
C’était le sideonly c’est bon merci :D</packetsounds,>
-
Oui, il faut un sideonly au dessus de onMessage
Ce n’est pas le première fois que tu as ce problème, il serait tant que tu apprennes de tes erreurs … -
@‘robin4002’:
Oui, il faut un sideonly au dessus de onMessage
Ce n’est pas le première fois que tu as ce problème, il serait tant que tu apprennes de tes erreurs …Oui je l’oublie tout le temps… en gros a chaque packet register client je dois mettre un sideonly ?
-
Oui.