Résolu [FFMT]Crash avec les packets
-
H.S
Si je comprends bien, tu fais un mod Kingdom Hearts ? Je suis avec toi à 100%
H.SCe sujet va m’être utile pour plus tard, j’espère que tu trouveras la solution
-
Dans classe MineSagasEventHandlerClient, remplace par ça :
@SubscribeEvent public void onTickPlayer(TickEvent.PlayerTickEvent event) { if (event.phase == TickEvent.Phase.END) { if(MineSagasMod.keyboard.testToucheKeyDown(event.player)) { MineSagasMod.keyboard.sendKeyUpdate(); System.out.println("touche appuyé sur le client"); } } }
Tu obtiens le message ou pas ?
-
@‘robin4002’:
Dans classe MineSagasEventHandlerClient, remplace par ça :
@SubscribeEvent public void onTickPlayer(TickEvent.PlayerTickEvent event) { if (event.phase == TickEvent.Phase.END) { if(MineSagasMod.keyboard.testToucheKeyDown(event.player)) { MineSagasMod.keyboard.sendKeyUpdate(); System.out.println("touche appuyé sur le client"); } } }
Tu obtiens le message ou pas ?
Nan rien aucun message et je suis en solo? D’où vient l’erreur ? Le packet s’envoie bien-t-il ou c’est l’event qui merde?
@‘AlphaSwittleTeam’:
H.S
Si je comprends bien, tu fais un mod Kingdom Hearts ? Je suis avec toi à 100%
H.SCe sujet va m’être utile pour plus tard, j’espère que tu trouveras la solution
Merci AlphaSwittleTeam je te tiendrai au courant de l’avancement ; sachant qu’à la base je tenais à réadapter kh2 dans minecraft sur un serveur donc , je pourrai t’envoyer le mod en alpha et t’envoyer l’ ip du serveur pour que tu viennes voir
-
Si tu n’as même pas le message qui s’affiche c’est qu’il ne détecte pas que tu as appuyé sur la touche.
Met des System.out.println(“quelque chose”) dans chaque condition pour voir ce qui se passe. -
@‘robin4002’:
Si tu n’as même pas le message qui s’affiche c’est qu’il ne détecte pas que tu as appuyé sur la touche.
Met des System.out.println(“quelque chose”) dans chaque condition pour voir ce qui se passe.tu as bien raison c’est cette condition qui ne marche pas :
if(MineSagasMod.keyboard.testToucheKeyDown(event.player)) { MineSagasMod.keyboard.sendKeyUpdate(); }
car j’ai mis mon system.out.println(“tu me vois ?”);
juste au dessus de cette condition, et le message s’affiche bien a chaque tick
Alors cela vient du boolean testToucheKeyDown (EntityPlayer player) public boolean testToucheKeyDown(EntityPlayer player) { if(this.testTouche.containsKey(player)) { System.out.println("z tu vois?"); return this.testTouche.get(player); } return false; }
j’ai bien regardé le nom de la touche est le même dans les deux keybindings, alors des idées ?
-
En fait vire la condition if(MineSagasMod.keyboard.testToucheKeyDown(event.player)) dans ton client event handler. Car de toute façon elle ne sera jamais vrai le temps que tu n’as pas regardé si la touche est pressé ou pas, ce qui est le but de la fonction MineSagasMod.keyboard.sendKeyUpdate();
-
@‘robin4002’:
En fait vire la condition if(MineSagasMod.keyboard.testToucheKeyDown(event.player)) dans ton client event handler. Car de toute façon elle ne sera jamais vrai le temps que tu n’as pas regardé si la touche est pressé ou pas, ce qui est le but de la fonction MineSagasMod.keyboard.sendKeyUpdate();
alors maintenant quand j’appuie sur la touche z cela crash avec comme message “a fatal error has occured, this connection is terminated” et après cela m’affiche la liste des serv >_<
Et voici le ccrash report :[14:53:18] [Server thread/ERROR] [FML]: FMLIndexedMessageCodec exception caught io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel MSM 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:247) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:624) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:495) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:762) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel MSM 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 [14:53:18] [Server thread/ERROR] [FML]: There was a critical exception handling a packet on channel MSM io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel MSM 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:247) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:624) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:495) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:762) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel MSM 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
et aussi j’ai bien le message dans les logs que j’ai ici dans mon common evant handler :
@SubscribeEvent public void onTickPlayer(TickEvent.PlayerTickEvent event) { if(MineSagasMod.keyboard.testToucheKeyDown(event.player)) { if(event.phase == TickEvent.Phase.START && event.side == Side.SERVER) { System.out.println("touche z pressé tu me vois?"); event.player.setFire(7); } } }
-
Il y a un NPE, apparement le message est null, mais je ne vois pas du tout pourquoi …
Ton paquet se trouve bien dans le même package que celui que tu as mit dans le constructeur de ton PacketManager ? -
@‘robin4002’:
Il y a un NPE, apparement le message est null, mais je ne vois pas du tout pourquoi …
Ton paquet se trouve bien dans le même package que celui que tu as mit dans le constructeur de ton PacketManager ?oui bon au cas où je te repasse quand même ma main class, t’as besoin d’une autre classe sinon ?
package mrplaigon.psccraft.minesagasmod.common; import java.awt.Color; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import mrplaigon.psccraft.minesagasmod.client.KeyBindingsSolo; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.mineSagasModCreativeTabs; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.FunPSCModCreativeTabs; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.blocks.blockTest; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.entities.mob.EntityBarMan; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.entities.mob.EntityDj; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.entities.mob.EntityPute; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemCdDareShakira; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemCdFeatTheMagicInTheAir; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemCdMerciQui; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemCdNewWorldSound; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemEpeePersonnage; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemLecteurDj; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemTest; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemVodka; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.block.blockstesr.BlockHayner; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.block.blockstesr.BlockSetzer; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.ItemStella; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.itemCIN1; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDDearlyOblivied; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDDiveIntoTheHeart; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDFragmentsOfSorrow; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDLazyAfternoons; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDPassion; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDPassionSingle; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDSinisterSundown; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDTensionRising; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDTheEscapade; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.tileentity.TileEntityBlockHayner; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.tileentity.TileEntityBlockSetzer; import mrplaigon.psccraft.minesagasmod.common.ModTest.block.blocks.BlockSpeed; import mrplaigon.psccraft.minesagasmod.common.ModTest.block.blocks.BlockTutoriel; import mrplaigon.psccraft.minesagasmod.common.ModTest.block.ores.BlockMineraiUranium; import mrplaigon.psccraft.minesagasmod.common.ModTest.entity.mob.EntityAragog; import mrplaigon.psccraft.minesagasmod.common.ModTest.entity.mob.EntityBadman; import mrplaigon.psccraft.minesagasmod.common.ModTest.entity.mob.EntityChocogrenouille; import mrplaigon.psccraft.minesagasmod.common.ModTest.entity.mob.EntityMobTutoriel; import mrplaigon.psccraft.minesagasmod.common.ModTest.entity.mob.EntityVlad; import mrplaigon.psccraft.minesagasmod.common.ModTest.generation.WorldGeneration; import mrplaigon.psccraft.minesagasmod.common.ModTest.generation.biome.BiomeSuper; import mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemArmorEmeraude; import mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemBaguette; import mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemBatonMineur; import mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemGun; import mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemTutoriel; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.Minecraft; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import net.minecraft.potion.Potion; import net.minecraft.server.MinecraftServer; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.BiomeDictionary; import net.minecraftforge.common.BiomeDictionary.Type; import net.minecraftforge.common.BiomeManager; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.util.EnumHelper; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.GameRegistry; import fr.minecraftforgefrance.ffmtlibs.network.PacketManager; @Mod(modid="minesagasmod", name="MineSagasMod", version="1.0.0") public class MineSagasMod { public static final String MODID = "minesagasmod"; @Instance("minesagasmod") public static MineSagasMod instance; @SidedProxy(clientSide="mrplaigon.psccraft.minesagasmod.client.MineSagasClientProxy", serverSide="mrplaigon.psccraft.minesagasmod.common.MineSagasCommonProxy") public static MineSagasCommonProxy commonproxy; //DÉCLARATION DES VARIABLES DES ITEMS public static Item itemtutoriel; public static Item itemGun; public static Item munitionGun; public static Item batonDeMineur; public static Item baguette; //DÉCLARATION DES VARIABLES DES ITEMS FUNPSC MOD public static Item test; public static Item portable; public static Item vodka; public static Item lecteurDj; public static Item cdNewWorldSound; public static Item epeePersonnage; public static Item cdDareShakira; public static Item cdMerciQui; public static Item cdFeatTheMagicInTheAir; WorldGeneration worldgeneration = new WorldGeneration(); //DÉCLARATION DES VARIABLES DES ITEMS KINGDOM HEARTS 2 public static Item chaineRoyale; public static Item tendrePromesse; public static Item stella; public static Item dragonTapis; public static Item emblemeDeHeros; public static Item gouvernail; public static Item cercleVital; public static Item souvenirPerdu; public static Item debuggerPhoton; public static Item monochrome; public static Item roseDeCombat; public static Item albatros; public static Item lionAssoupi; public static Item citrouilleDeNoel; public static Item lampeMagique; public static Item ameDeGardien; public static Item batonStruggleAttaque; public static Item batonStruggleDefense; public static Item batonStruggleMagie; public static Item cdDearlyOblivied; public static Item cdPassion; public static Item cdPassionSingle; public static Item cdLazyAfternoons; public static Item cdSinisterSundown; public static Item cdTheEscapade; public static Item cdDiveIntoTheHeart; public static Item cdFragmentsOfSorrow; public static Item cdTensionRising; public static Item itemCIN1; //DÉCLARATION DES VARIABLES DES Blocks KINGDOM HEARTS 2 public static Block blockHayner; public static Block blockSetzer; //DÉCLARATION DES VARIABLES DES BLOCKS public static Block blocktutoriel; public static Block blockSpeed; public static Block blockmineraiuranium; //DÉCLARATION DES VARIABLES DES BLOCKS FUNPSC MOD public static Block test1; //DÉCLARATION DES VARIABLES DES ARMURES public static Item casqueEmeraude; public static Item plastronEmeraude; public static Item jambiereEmeraude; public static Item bottesEmeraude; public static BiomeGenBase[] biomes = { BiomeGenBase.plains, BiomeGenBase.extremeHills, BiomeGenBase.beach, BiomeGenBase.desert, BiomeGenBase.desertHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.icePlains, BiomeGenBase.iceMountains, BiomeGenBase.river, BiomeGenBase.birchForest, BiomeGenBase.birchForestHills, BiomeGenBase.coldBeach, BiomeGenBase.coldTaiga, BiomeGenBase.coldTaigaHills, BiomeGenBase.deepOcean, BiomeGenBase.extremeHillsPlus, BiomeGenBase.jungleEdge, BiomeGenBase.megaTaiga, BiomeGenBase.megaTaigaHills, BiomeGenBase.mesa, BiomeGenBase.mesaPlateau, BiomeGenBase.mesaPlateau_F, BiomeGenBase.roofedForest, BiomeGenBase.savanna, BiomeGenBase.savannaPlateau, BiomeGenBase.stoneBeach }; //DÉCLARATION DU TOOLMATERIAL public static ArmorMaterial emeraude = EnumHelper.addArmorMaterial("emeraude", 66, new int[] {6, 16, 12, 6}, 40);//En fait c'est une armure qui a les mêmes valeurs que celle en diams mais doublée sauf pour l'enchantement protected static final BiomeGenBase.Height height_Super = new BiomeGenBase.Height(0.2F, 0.2F); //DÉCLARATION DES VARIABLES DIVERSES DU MOD @SidedProxy(clientSide = "mrplaigon.psccraft.minesagasmod.client.KeyBindingsSolo", serverSide = "mrplaigon.psccraft.minesagasmod.common.KeyBindingsServer") public static KeyBindingsServer keyboard; public static final PacketManager packetHandler = new PacketManager("mrplaigon.psccraft.minesagasmod.common", MODID , "MSM"); public static CreativeTabs mineSagasModCreativeTabs = new mineSagasModCreativeTabs("mineSagasModCreativeTabs"); public static BiomeGenBase superbiome; //DÉCLARATION DES VARIABLES DIVERSES DU MOD FUNPSC MOD public static CreativeTabs TutorialCreativeTabs = new FunPSCModCreativeTabs("PSCCreativeTabs"); @EventHandler public void preInit(FMLPreInitializationEvent event) { System.out.println("preinit"); commonproxy.initialiseTickHandler(); //DÉCLARATION PRINCIPALES DES ITEMS itemtutoriel = new ItemTutoriel().setUnlocalizedName("tutoriel").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":itemtutoriel"); GameRegistry.registerItem(itemtutoriel, "item_tutoriel"); batonDeMineur = new ItemBatonMineur().setUnlocalizedName("batonDeMineur").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":batondemineur"); GameRegistry.registerItem(batonDeMineur, "batonDeMineur"); baguette = new ItemBaguette().setUnlocalizedName("baguette").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":batondemineur"); GameRegistry.registerItem(baguette, "baguette"); itemGun = new ItemGun().setUnlocalizedName("itemGun").setFull3D().setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setMaxDamage(29).setTextureName(MineSagasMod.MODID + ":itemGun").setMaxStackSize(1);//la valeur du .setMaxDamage doit être soustrait d'une unité pour cause : un bug du jeu. Le pistolet (ou le gun) a une durabilité de 30, il s'utilise 30 fois GameRegistry.registerItem(itemGun, "itemGun"); munitionGun = new ItemTutoriel().setUnlocalizedName("munitionGun").setMaxStackSize(10).setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":munitionGun"); GameRegistry.registerItem(munitionGun, "munitionGun"); //DÉCLARATION PRINCIPALES DES ITEMS FUNPSC MOD test = new itemTest().setUnlocalizedName("test").setCreativeTab(TutorialCreativeTabs).setTextureName(MineSagasMod.MODID + ":test"); GameRegistry.registerItem(test, "test"); vodka = new itemVodka(0, 0.0F, true).setPotionEffect(Potion.blindness.id, 7, 3, 1.0F).setUnlocalizedName("vodka").setCreativeTab(TutorialCreativeTabs).setTextureName(MineSagasMod.MODID + ":vodka"); GameRegistry.registerItem(vodka, "vodka"); lecteurDj = new itemLecteurDj().setUnlocalizedName("lecteurDj").setMaxStackSize(1).setCreativeTab(TutorialCreativeTabs).setTextureName(MineSagasMod.MODID + ":lecteurDj"); GameRegistry.registerItem(lecteurDj, "lecteurDj"); epeePersonnage = new itemEpeePersonnage(Item.ToolMaterial.IRON).setUnlocalizedName("epeePersonnage").setCreativeTab(TutorialCreativeTabs).setTextureName(MineSagasMod.MODID + ":epeePersonnage"); GameRegistry.registerItem(epeePersonnage, "epeePersonnage"); cdNewWorldSound = new itemCdNewWorldSound("New World Sound - 1st Track FunPSC Mod").setUnlocalizedName("cdNewWorldSound").setTextureName(MineSagasMod.MODID + ":cdNewWorldSound").setCreativeTab(TutorialCreativeTabs); GameRegistry.registerItem(cdNewWorldSound, "cdNewWorldSound"); cdDareShakira = new itemCdDareShakira("Dare Dare, Shakira - 2nd Track FunPSC Mod").setUnlocalizedName("cdDareShakira").setTextureName(MineSagasMod.MODID + ":cdDareShakira").setCreativeTab(TutorialCreativeTabs); GameRegistry.registerItem(cdDareShakira, "cdDareShakira"); cdMerciQui = new itemCdMerciQui("Merci Qui - 3rd Track FunPSC Mod").setUnlocalizedName("cdMerciQui").setTextureName(MineSagasMod.MODID + ":cdMerciQui").setCreativeTab(TutorialCreativeTabs); GameRegistry.registerItem(cdMerciQui, "cdMerciQui"); cdFeatTheMagicInTheAir = new itemCdFeatTheMagicInTheAir("Feat the magic in the air - 4th Track FunPSC Mod").setUnlocalizedName("cdFeatTheMagicInTheAir").setTextureName(MineSagasMod.MODID + ":cdFeatTheMagicInTheAir").setCreativeTab(TutorialCreativeTabs); GameRegistry.registerItem(cdFeatTheMagicInTheAir, "cdFeatTheMagicInTheAir"); //DÉCLARATION PRINCIPALES DES ITEMS KINGDOM HEARTS 2 chaineRoyale = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("chaineRoyale").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":chaine royale"); GameRegistry.registerItem(chaineRoyale, "chaineRoyale"); tendrePromesse = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("tendrePromesse").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":tendre promesse"); GameRegistry.registerItem(tendrePromesse, "tendrePromesse"); stella = new ItemStella(ToolMaterial.EMERALD).setUnlocalizedName("stella").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":stella"); GameRegistry.registerItem(stella, "stella"); dragonTapis = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("dragonTapis").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":dragonTapis"); GameRegistry.registerItem(dragonTapis, "dragonTapis"); emblemeDeHeros = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("emblemeDeHeros").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":emblemeDeHeros"); GameRegistry.registerItem(emblemeDeHeros, "emblemeDeHeros"); gouvernail = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("gouvernail").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":gouvernail"); GameRegistry.registerItem(gouvernail, "gouvernail"); cercleVital = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("cercleVital").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cercleVital"); GameRegistry.registerItem(cercleVital, "cercleVital"); souvenirPerdu = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("souvenirPerdu").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":souvenirPerdu"); GameRegistry.registerItem(souvenirPerdu, "souvenirPerdu"); debuggerPhoton = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("debuggerPhoton").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":debuggerPhoton"); GameRegistry.registerItem(debuggerPhoton, "debuggerPhoton"); monochrome = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("monochrome").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":monochrome"); GameRegistry.registerItem(monochrome, "monochrome"); roseDeCombat = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("roseDeCombat").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":roseDeCombat"); GameRegistry.registerItem(roseDeCombat, "roseDeCombat"); albatros = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("albatros").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":albatros"); GameRegistry.registerItem(albatros, "albatros"); lionAssoupi = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("lionAssoupi").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":lionAssoupi"); GameRegistry.registerItem(lionAssoupi, "lionAssoupi"); citrouilleDeNoel = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("citrouilleDeNoel").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":citrouilleDeNoel"); GameRegistry.registerItem(citrouilleDeNoel, "citrouilleDeNoel"); lampeMagique = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("lampeMagique").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":lampeMagique"); GameRegistry.registerItem(lampeMagique, "lampeMagique"); ameDeGardien = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("ameDeGardien").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":ameDeGardien"); GameRegistry.registerItem(ameDeGardien, "ameDeGardien"); batonStruggleAttaque = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("batonStruggleAttaque").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":baton struggle attaque"); GameRegistry.registerItem(batonStruggleAttaque, "batonStruggleAttaque"); batonStruggleDefense = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("batonStruggleDefense").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":baton struggle defense"); GameRegistry.registerItem(batonStruggleDefense, "batonStruggleDefense"); batonStruggleMagie = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("batonStruggleMagie").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":baton struggle magie"); GameRegistry.registerItem(batonStruggleMagie, "batonStruggleMagie"); itemCIN1 = new itemCIN1().setUnlocalizedName("itemCIN1").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":itemCIN1"); GameRegistry.registerItem(itemCIN1, "itemCIN1"); cdDearlyOblivied = new itemCDDearlyOblivied("Dearly Oblivied - 1st Song").setUnlocalizedName("cdDearlyOblivied").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdDearlyOblivied"); GameRegistry.registerItem(cdDearlyOblivied, "cdDearlyOblivied"); cdPassion = new itemCDPassion("Passion Orchestra Instrumental Version - 2nd Song").setUnlocalizedName("cdPassion").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdPassion"); GameRegistry.registerItem(cdPassion, "cdPassion"); cdPassionSingle = new itemCDPassionSingle("Dearly Passion Single Version - 3rd Song").setUnlocalizedName("cdPassionSingle").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdPassionSingle"); GameRegistry.registerItem(cdPassionSingle, "cdPassionSingle"); cdLazyAfternoons = new itemCDLazyAfternoons("Lazy Afternoons - 4th Song").setUnlocalizedName("cdLazyAfternoons").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdLazyAfternoons"); GameRegistry.registerItem(cdLazyAfternoons, "cdLazyAfternoons"); cdSinisterSundown = new itemCDSinisterSundown("Sinister Sundown - 5th Song").setUnlocalizedName("cdSinisterSundown").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdSinisterSundown"); GameRegistry.registerItem(cdSinisterSundown, "cdSinisterSundown"); cdTheEscapade = new itemCDTheEscapade("The Escapade - 6th Song").setUnlocalizedName("cdTheEscapade").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdTheEscapade"); GameRegistry.registerItem(cdTheEscapade, "cdTheEscapade"); cdDiveIntoTheHeart = new itemCDDiveIntoTheHeart("Dive Into The Heart - 7th Song").setUnlocalizedName("cdDiveIntoTheHeart").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdDiveIntoTheHeart"); GameRegistry.registerItem(cdDiveIntoTheHeart, "cdDiveIntoTheHeart"); cdFragmentsOfSorrow = new itemCDFragmentsOfSorrow("Fragments Of Sorrow - 8th Song").setUnlocalizedName("cdFragmentsOfSorrow").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdFragmentsOfSorrow"); GameRegistry.registerItem(cdFragmentsOfSorrow, "cdFragmentsOfSorrow"); cdTensionRising = new itemCDTensionRising("Tension Rising - 9th Song").setUnlocalizedName("cdTensionRising").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdTensionRising"); GameRegistry.registerItem(cdTensionRising, "cdTensionRising"); //DÉCLARATION PRINCIPALES DES BLOCKS KINGDOM HEARTS 2 blockHayner = new BlockHayner(Material.rock).setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setBlockName("blockHayner").setBlockTextureName(MineSagasMod.MODID + ":blockHayner"); GameRegistry.registerBlock(blockHayner, "blockHayner"); blockSetzer = new BlockSetzer(Material.rock).setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setBlockName("blockSetzer").setBlockTextureName(MineSagasMod.MODID + ":blockHayner"); GameRegistry.registerBlock(blockSetzer, "blockSetzer"); //DÉCLARATION PRINCIPALES DES BLOCKS blocktutoriel = new BlockTutoriel(Material.grass).setBlockName("blocktutoriel").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setBlockTextureName(MineSagasMod.MODID + ":blocktutoriel"); GameRegistry.registerBlock(blocktutoriel, "blocktutoriel"); blockSpeed = new BlockSpeed(Material.glass).setBlockName("blockSpeed").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setBlockTextureName(MineSagasMod.MODID + ":blockSpeed"); GameRegistry.registerBlock(blockSpeed, "blockSpeed"); blockmineraiuranium = new BlockMineraiUranium(Material.rock).setBlockName("blockmineraiuranium").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setBlockTextureName(MineSagasMod.MODID + ":blockmineraiuranium").setHardness(10.0F).setResistance(5.0F).setLightLevel(2.0F); GameRegistry.registerBlock(blockmineraiuranium, "blockmineraiuranium"); //DÉCLARATION PRINCIPALES DES BLOCKS FUNPSC MOD test1 = new blockTest(Material.rock).setCreativeTab(TutorialCreativeTabs).setBlockName("test1").setBlockTextureName("MineSagasMod:test1"); GameRegistry.registerBlock(test1, "test1"); //DÉCLARATION PRINCIPALE DES ARMURES casqueEmeraude = new ItemArmorEmeraude(this.emeraude, 0).setUnlocalizedName("casqueEmeraude").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":casqueEmeraude");//0 est une valeur qui ne doit pas être changée au fil des déclarations d'armure car forge s'en charge lui-même plastronEmeraude = new ItemArmorEmeraude(this.emeraude, 1).setUnlocalizedName("plastronEmeraude").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":plastronEmeraude"); jambiereEmeraude = new ItemArmorEmeraude(this.emeraude, 2).setUnlocalizedName("jambiereEmeraude").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":jambiereEmeraude"); bottesEmeraude = new ItemArmorEmeraude(this.emeraude, 3).setUnlocalizedName("bottesEmeraude").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":bottesEmeraude"); GameRegistry.registerItem(casqueEmeraude, "casqueEmeraude"); GameRegistry.registerItem(plastronEmeraude, "plastronEmeraude"); GameRegistry.registerItem(jambiereEmeraude, "jambiereEmeraude"); GameRegistry.registerItem(bottesEmeraude, "bottesEmeraude"); //ENREGISTREMENT DES TILE ENTITY GameRegistry.registerTileEntity(TileEntityBlockHayner.class, "blockHayner"); GameRegistry.registerTileEntity(TileEntityBlockSetzer.class, "blockSetzer"); GameRegistry.addRecipe(new ItemStack(plastronEmeraude, 1), new Object[] { "X X", "XXX", "XXX", Character.valueOf('X'), Items.emerald }); GameRegistry.addRecipe(new ItemStack(casqueEmeraude, 1), new Object[] { "XXX", "X X", Character.valueOf('X'), Items.emerald }); GameRegistry.addRecipe(new ItemStack(jambiereEmeraude, 1), new Object[] { "XXX", "X X", "X X", Character.valueOf('X'), Items.emerald }); GameRegistry.addRecipe(new ItemStack(bottesEmeraude, 1), new Object[] { "X X", "X X", Character.valueOf('X'), Items.emerald }); GameRegistry.registerWorldGenerator(worldgeneration, 0); } @EventHandler public void init(FMLInitializationEvent event) { System.out.println("init"); commonproxy.registerEntityRenderer(); commonproxy.registerItemRenderer(); commonproxy.registerTileEntitySpecialRenderer(); keyboard.init(); //DÉCLARATION PRINCIPALES DES ENTITÉES EntityRegistry.registerGlobalEntityID(EntityMobTutoriel.class, "mobTutoriel", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 255, 0).getRGB(), new Color(255, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityMobTutoriel.class, "mobTutoriel", 420, this.instance, 40, 1, true); EntityRegistry.registerGlobalEntityID(EntityAragog.class, "aragog", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 255, 0).getRGB(), new Color(255, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityAragog.class, "aragog", 421, this.instance, 40, 1, true); EntityRegistry.registerGlobalEntityID(EntityChocogrenouille.class, "chocogrenouille", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 255, 0).getRGB(), new Color(255, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityChocogrenouille.class, "chocogrenouille", 422, this.instance, 40, 1, true); /**EntityRegistry.registerGlobalEntityID(EntityServeuse.class, "serveuse", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 255, 0).getRGB(), new Color(255, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityServeuse.class, "serveuse", 423, this.instance, 40, 1, true);*/ EntityRegistry.registerGlobalEntityID(EntityBadman.class, "badman", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 255, 0).getRGB(), new Color(255, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityBadman.class, "badman", 424, this.instance, 40, 1, true); EntityRegistry.registerGlobalEntityID(EntityVlad.class, "vlad", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 255, 0).getRGB(), new Color(255, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityVlad.class, "vlad", 425, this.instance, 40, 1, true); //EntityRegistry.addSpawn(EntityVlad.class, 5, 1, 3, EnumCreatureType.monster, this.biomes); //DÉCLARATION PRINCIPALES DES ENTITÉES FUNPSC MOD EntityRegistry.registerGlobalEntityID(EntityTest.class, "test2", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 0, 0).getRGB(), new Color(79, 255, 35).getRGB()); EntityRegistry.registerModEntity(EntityTest.class, "test2", 426, instance, 40, 1, true); EntityRegistry.registerGlobalEntityID(EntityBarMan.class, "barman", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 0, 0).getRGB(), new Color(255, 255, 255).getRGB()); EntityRegistry.registerModEntity(EntityBarMan.class, "barman", 428, instance, 40, 1, true); EntityRegistry.registerGlobalEntityID(EntityDj.class, "dj", EntityRegistry.findGlobalUniqueEntityId(), new Color(127, 51, 0).getRGB(), new Color(0, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityDj.class, "dj", 429, instance, 40, 1, true); EntityRegistry.registerGlobalEntityID(EntityPute.class, "pute", EntityRegistry.findGlobalUniqueEntityId(), new Color(255, 223, 201).getRGB(), new Color(124, 82, 53).getRGB()); EntityRegistry.registerModEntity(EntityPute.class, "pute", 430, instance, 40, 1, true); superbiome = new BiomeSuper(137).setBiomeName("superbiome").setTemperatureRainfall(1.2F, 0.9F); BiomeDictionary.registerBiomeType(superbiome, Type.FOREST); BiomeManager.addSpawnBiome(superbiome); if(event.getSide().isClient()) { MinecraftForge.EVENT_BUS.register(new MineSagasEventHandlerCommon()); } FMLCommonHandler.instance().bus().register(new MineSagasEventHandlerCommon()); MinecraftForge.EVENT_BUS.register(new MineSagasEventHandlerCommon()); } @EventHandler public void postInit(FMLPostInitializationEvent event) { System.out.println("postinit"); } }
et en supplément le screen de mon workspace pour te prouver le bon chemin ^^
http://hpics.li/3d5c696Et étrangement ça fait ce bug quand j’ai retiré la condition de l’event handler client. J’ai bien fait comme sur le github du nanotech mod, nan ?
-
Ce qui est sûr c’est que le paquet merde, tu peux envoyer les logs de lancement du jeu ?
-
@‘robin4002’:
Ce qui est sûr c’est que le paquet merde, tu peux envoyer les logs de lancement du jeu ?
merci je commençais à désespérer en regardant le github de gug42 avec le rc mod (je le remercie au passage ^^)
voici les logs jusqu’au crash, si tu veux une classe n’hésite pas[17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:item_tutoriel 4096 mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemTutoriel@61c48525 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:batonDeMineur 4097 mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemBatonMineur@25246feb [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:baguette 4098 mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemBaguette@67698344 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:itemGun 4099 mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemGun@6fb36cc5 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:munitionGun 4100 mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemTutoriel@6caa32cd [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:test 4101 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemTest@3fdff708 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:vodka 4102 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemVodka@156b2796 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:lecteurDj 4103 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemLecteurDj@70d592ed [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:epeePersonnage 4104 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemEpeePersonnage@7c3b5e2a [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cdNewWorldSound 4105 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemCdNewWorldSound@18fceccf [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cdDareShakira 4106 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemCdDareShakira@1d93f216 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cdMerciQui 4107 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemCdMerciQui@32b9cfa2 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cdFeatTheMagicInTheAir 4108 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemCdFeatTheMagicInTheAir@7ce18764 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:chaineRoyale 4109 net.minecraft.item.ItemSword@3a7ff649 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:tendrePromesse 4110 net.minecraft.item.ItemSword@270250a0 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:stella 4111 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.ItemStella@7a37b2e4 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:dragonTapis 4112 net.minecraft.item.ItemSword@5ec1d56b [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:emblemeDeHeros 4113 net.minecraft.item.ItemSword@7a29467 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:gouvernail 4114 net.minecraft.item.ItemSword@42bcfa1b [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cercleVital 4115 net.minecraft.item.ItemSword@4c824d8 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:souvenirPerdu 4116 net.minecraft.item.ItemSword@6feae35b [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:debuggerPhoton 4117 net.minecraft.item.ItemSword@25f4a4c4 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:monochrome 4118 net.minecraft.item.ItemSword@606d5353 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:roseDeCombat 4119 net.minecraft.item.ItemSword@29799f9a [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:albatros 4120 net.minecraft.item.ItemSword@6fdd4cbb [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:lionAssoupi 4121 net.minecraft.item.ItemSword@29d8c25d [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:citrouilleDeNoel 4122 net.minecraft.item.ItemSword@55c07d21 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:lampeMagique 4123 net.minecraft.item.ItemSword@50572d82 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:ameDeGardien 4124 net.minecraft.item.ItemSword@b6cdb03 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:batonStruggleAttaque 4125 net.minecraft.item.ItemSword@179ea7d1 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:batonStruggleDefense 4126 net.minecraft.item.ItemSword@311b9674 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:batonStruggleMagie 4127 net.minecraft.item.ItemSword@a32b2dc [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:itemCIN1 4128 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.itemCIN1@3eb2aebe [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cdDearlyOblivied 4129 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDDearlyOblivied@1294c234 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cdPassion 4130 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDPassion@72e189d6 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cdPassionSingle 4131 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDPassionSingle@bbf6845 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cdLazyAfternoons 4132 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDLazyAfternoons@2c84b7c4 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cdSinisterSundown 4133 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDSinisterSundown@1483e3a3 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cdTheEscapade 4134 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDTheEscapade@5329863 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cdDiveIntoTheHeart 4135 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDDiveIntoTheHeart@cc0b3ef [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cdFragmentsOfSorrow 4136 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDFragmentsOfSorrow@6e2aeee8 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:cdTensionRising 4137 mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDTensionRising@328b7fd3 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:casqueEmeraude 4138 mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemArmorEmeraude@405e036b [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:plastronEmeraude 4139 mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemArmorEmeraude@5c3286d0 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:jambiereEmeraude 4140 mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemArmorEmeraude@7930f0f9 [17:28:24] [Server thread/TRACE] [FML/]: Registry: minesagasmod:bottesEmeraude 4141 mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemArmorEmeraude@7c1ca997 [17:28:24] [Server thread/TRACE] [FML/]: Skipping remap event - no remaps occured [17:28:24] [Server thread/INFO] [FML/]: Applying holder lookups [17:28:24] [Server thread/INFO] [FML/]: Holder lookups applied [17:28:24] [Server thread/INFO] [FML/]: Loading dimension 0 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@7396f3cf) [17:28:24] [Server thread/INFO] [FML/]: Loading dimension 1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@7396f3cf) [17:28:24] [Server thread/INFO] [FML/]: Loading dimension -1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@7396f3cf) [17:28:25] [Server thread/TRACE] [mcp/mcp]: Sending event FMLServerStartingEvent to mod mcp [17:28:25] [Server thread/TRACE] [mcp/mcp]: Sent event FMLServerStartingEvent to mod mcp [17:28:25] [Server thread/TRACE] [FML/FML]: Sending event FMLServerStartingEvent to mod FML [17:28:25] [Server thread/TRACE] [FML/FML]: Sent event FMLServerStartingEvent to mod FML [17:28:25] [Server thread/TRACE] [Forge/Forge]: Sending event FMLServerStartingEvent to mod Forge [17:28:25] [Server thread/TRACE] [Forge/Forge]: Sent event FMLServerStartingEvent to mod Forge [17:28:25] [Server thread/TRACE] [minesagasmod/minesagasmod]: Sending event FMLServerStartingEvent to mod minesagasmod [17:28:25] [Server thread/TRACE] [minesagasmod/minesagasmod]: Sent event FMLServerStartingEvent to mod minesagasmod [17:28:25] [Server thread/TRACE] [ffmtlibs/ffmtlibs]: Sending event FMLServerStartingEvent to mod ffmtlibs [17:28:25] [Server thread/TRACE] [ffmtlibs/ffmtlibs]: Sent event FMLServerStartingEvent to mod ffmtlibs [17:28:25] [Server thread/TRACE] [mcp/mcp]: Sending event FMLServerStartedEvent to mod mcp [17:28:25] [Server thread/TRACE] [mcp/mcp]: Sent event FMLServerStartedEvent to mod mcp [17:28:25] [Server thread/TRACE] [FML/FML]: Sending event FMLServerStartedEvent to mod FML [17:28:25] [Server thread/TRACE] [FML/FML]: Sent event FMLServerStartedEvent to mod FML [17:28:25] [Server thread/TRACE] [Forge/Forge]: Sending event FMLServerStartedEvent to mod Forge [17:28:25] [Server thread/TRACE] [Forge/Forge]: Sent event FMLServerStartedEvent to mod Forge [17:28:25] [Server thread/TRACE] [minesagasmod/minesagasmod]: Sending event FMLServerStartedEvent to mod minesagasmod [17:28:25] [Server thread/TRACE] [minesagasmod/minesagasmod]: Sent event FMLServerStartedEvent to mod minesagasmod [17:28:25] [Server thread/TRACE] [ffmtlibs/ffmtlibs]: Sending event FMLServerStartedEvent to mod ffmtlibs [17:28:25] [Server thread/TRACE] [ffmtlibs/ffmtlibs]: Sent event FMLServerStartedEvent to mod ffmtlibs [17:28:26] [Netty Client IO #0/TRACE] [FML/]: $ServerHello->FMLHandshakeClientState$2:HELLO [17:28:26] [Netty Client IO #0/INFO] [FML/]: Server protocol version 1 [17:28:26] [Netty IO #1/TRACE] [FML/]: $ClientHello->FMLHandshakeServerState$2:HELLO [17:28:26] [Netty IO #1/INFO] [FML/]: Client protocol version 1 [17:28:26] [Netty IO #1/TRACE] [FML/]: $ModList:5 mods->FMLHandshakeServerState$2:HELLO [17:28:26] [Netty IO #1/INFO] [FML/]: Client attempting to join with 5 mods : mcp@9.05,FML@7.10.25.1200,Forge@10.13.0.1200,minesagasmod@1.0.0,ffmtlibs@1.4.3.91 [17:28:26] [Netty IO #1/INFO] [FML/]: Attempting connection with missing mods [] at CLIENT [17:28:26] [Netty Client IO #0/TRACE] [FML/]: $ModList:5 mods->FMLHandshakeClientState$3:WAITINGSERVERDATA [17:28:26] [Netty Client IO #0/INFO] [FML/]: Attempting connection with missing mods [] at SERVER [17:28:26] [Netty IO #1/TRACE] [FML/]: $HandshakeAck:{2}->FMLHandshakeServerState$3:WAITINGCACK [17:28:26] [Netty Client IO #0/TRACE] [FML/]: $HandshakeAck:{2}->FMLHandshakeClientState$5:PENDINGCOMPLETE [17:28:26] [Netty IO #1/TRACE] [FML/]: $HandshakeAck:{4}->FMLHandshakeServerState$4:COMPLETE [17:28:26] [Netty Client IO #0/TRACE] [FML/]: $HandshakeAck:{3}->FMLHandshakeClientState$6:COMPLETE [17:28:26] [Netty IO #1/TRACE] [FML/]: $HandshakeAck:{5}->FMLHandshakeServerState$5:DONE [17:28:26] [Server thread/INFO] [FML/]: [Server thread] Server side modded connection established [17:28:26] [Client thread/INFO] [FML/]: [Client thread] Client side modded connection established [17:28:32] [Server thread/ERROR] [FML/]: FMLIndexedMessageCodec exception caught io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel MSM 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:247) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:624) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:495) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:762) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel MSM 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 [17:28:32] [Server thread/ERROR] [FML/]: There was a critical exception handling a packet on channel MSM io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel MSM 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:247) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:624) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:495) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:762) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel MSM 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 [17:28:32] [Server thread/ERROR] [FML/]: FMLIndexedMessageCodec exception caught io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel MSM 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:247) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:624) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:495) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:762) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel MSM 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 [17:28:32] [Server thread/ERROR] [FML/]: There was a critical exception handling a packet on channel MSM io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel MSM 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:247) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:624) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:495) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:762) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel MSM 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 [17:28:32] [Server thread/TRACE] [mcp/mcp]: Sending event FMLServerStoppingEvent to mod mcp [17:28:32] [Server thread/TRACE] [mcp/mcp]: Sent event FMLServerStoppingEvent to mod mcp [17:28:32] [Server thread/TRACE] [FML/FML]: Sending event FMLServerStoppingEvent to mod FML [17:28:32] [Server thread/TRACE] [FML/FML]: Sent event FMLServerStoppingEvent to mod FML [17:28:32] [Server thread/TRACE] [Forge/Forge]: Sending event FMLServerStoppingEvent to mod Forge [17:28:32] [Server thread/TRACE] [Forge/Forge]: Sent event FMLServerStoppingEvent to mod Forge [17:28:32] [Server thread/TRACE] [minesagasmod/minesagasmod]: Sending event FMLServerStoppingEvent to mod minesagasmod [17:28:32] [Server thread/TRACE] [minesagasmod/minesagasmod]: Sent event FMLServerStoppingEvent to mod minesagasmod [17:28:32] [Server thread/TRACE] [ffmtlibs/ffmtlibs]: Sending event FMLServerStoppingEvent to mod ffmtlibs [17:28:32] [Server thread/TRACE] [ffmtlibs/ffmtlibs]: Sent event FMLServerStoppingEvent to mod ffmtlibs [17:28:32] [Server thread/DEBUG] [FML/]: Gathering id map for writing to world save Nouveau monde [17:28:33] [Server thread/INFO] [FML/]: Unloading dimension 0 [17:28:33] [Server thread/INFO] [FML/]: Unloading dimension -1 [17:28:33] [Server thread/INFO] [FML/]: Unloading dimension 1 [17:28:33] [Server thread/DEBUG] [FML/]: Reverting to frozen data state. [17:28:33] [Server thread/INFO] [FML/]: Applying holder lookups [17:28:33] [Server thread/INFO] [FML/]: Holder lookups applied [17:28:33] [Server thread/TRACE] [mcp/mcp]: Sending event FMLServerStoppedEvent to mod mcp [17:28:33] [Server thread/TRACE] [mcp/mcp]: Sent event FMLServerStoppedEvent to mod mcp [17:28:33] [Server thread/TRACE] [FML/FML]: Sending event FMLServerStoppedEvent to mod FML [17:28:33] [Server thread/TRACE] [FML/FML]: Sent event FMLServerStoppedEvent to mod FML [17:28:33] [Server thread/TRACE] [Forge/Forge]: Sending event FMLServerStoppedEvent to mod Forge [17:28:33] [Server thread/TRACE] [Forge/Forge]: Sent event FMLServerStoppedEvent to mod Forge [17:28:33] [Server thread/TRACE] [minesagasmod/minesagasmod]: Sending event FMLServerStoppedEvent to mod minesagasmod [17:28:33] [Server thread/TRACE] [minesagasmod/minesagasmod]: Sent event FMLServerStoppedEvent to mod minesagasmod [17:28:33] [Server thread/TRACE] [ffmtlibs/ffmtlibs]: Sending event FMLServerStoppedEvent to mod ffmtlibs [17:28:33] [Server thread/TRACE] [ffmtlibs/ffmtlibs]: Sent event FMLServerStoppedEvent to mod ffmtlibs
-
Ils sont pas complet. Moi je veux les logs du lancement du jeu.
-
@‘robin4002’:
Ils sont pas complet. Moi je veux les logs du lancement du jeu.
a ok mais ils étaient trop gros pour le message bon alors j’upload sous mediafire tu pourras voir comme ça sans avoir à télécharger
http://www.mediafire.com/view/83dotm33pdtds6h/log_mff_pour_pb_packet.txt -
Essaye de mettre ton paquet dans un package à part, car visiblement il n’est pas enregistré.
(tu devrais avoir un truc du genre :
[15:15:28] [Client thread/INFO] [FFMTLibs]: Successful register packet : fr.mcnanotech.privatizer.common.packet.PacketEditor with discriminator 0
dans les logs) -
Ok donc c’est bon j’ai bien le message dans les logs (system.out.println (“”);) et celui là aussi
Successful register packet : mrplaigon.psccraft.minesagasmod.common.testPacket.PacketKeys from minesagasmod
seulement trois petits problème :
-en serveur mon joueur n’a pas les degats du feu, pourtant nous voyons bien les flammes à la 1ère personne
-j’ai testé avec un message dans les logs à partir du moment où j’appuie sur z mon message s’affiche à l’infini comme mon joueur qui prend feu à l’infini en solo. J’ai vu que sur les anciennes versions pour le keybindings y’avait une méthode qui détectait quand nous relachions la touche. IL y a un équivalent en 1.7.10? la condition avec le Phase.END ? C’est l’équivalent ? Ou autre chose svp?
-vu que nous avons retiré cette condition sur l’event handler client if(MineSagasMod.keyboard.testToucheKeyDown(event.player)) {}
il m’enflamme automatiquement et quand je la mets rien ne marche appuyer sur z n’a plus d’ effet.
-
Renvoie tout ton code, sinon je ne vais pas m’en sortir.
Déjà un des problèmes c’est que tu mets le feu au joueur côté client, ce n’est pas bon. -
@‘robin4002’:
Renvoie tout ton code, sinon je ne vais pas m’en sortir.
Déjà un des problèmes c’est que tu mets le feu au joueur côté client, ce n’est pas bon.a oui j’ai oublié de préciser carsi je le mets juste cote server il ne se passe rien, pourtant selon la console les logs le packet a bien été appelé……
event handler client
package mrplaigon.psccraft.minesagasmod.client; import mrplaigon.psccraft.minesagasmod.common.MineSagasMod; import net.minecraft.client.Minecraft; import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.TickEvent; public class MineSagasEventHandlerClient { private Minecraft mc = FMLClientHandler.instance().getClient(); @SubscribeEvent public void onTickPlayer(TickEvent.PlayerTickEvent event) { if (event.phase == TickEvent.Phase.END) { //System.out.println("touche appuyé sur le client"); MineSagasMod.keyboard.sendKeyUpdate(); } } }
celui en server
package mrplaigon.psccraft.minesagasmod.common; import net.minecraft.client.Minecraft; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.server.MinecraftServer; import net.minecraft.world.World; import net.minecraftforge.event.entity.EntityJoinWorldEvent; import net.minecraftforge.event.entity.living.LivingDeathEvent; import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.TickEvent; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.server.FMLServerHandler; public class MineSagasEventHandlerCommon { public static boolean zIsPressed = false; @SubscribeEvent public void onEntityJoin(EntityJoinWorldEvent event) { /**System.out.println("une entité (" + event.entity.getCommandSenderName() + ") a rejoint le monde"); if(event.entity instanceof EntityCreeper) { event.setCanceled(true); }*/ if(event.entity instanceof EntityPlayer) { World worldEvent = event.world; worldEvent.getGameRules().setOrCreateGameRule("keepInventory", "false"); } } /**@SubscribeEvent @SideOnly(Side.CLIENT) public void onTooltip(ItemTooltipEvent event) { if(event.itemStack.getItem() == Items.dye && event.itemStack.getItemDamage() == 15 ) { event.toolTip.add("clic droit sur les plantes pour les faire pousser"); } /**else if(event.itemStack.getItem() == Item.getItemFromBlock(Blocks.obsidian)) { if(Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { event.toolTip.add("Bloc très résistant aux exposions"); event.toolTip.add("Résistance : 2000"); } else { event.toolTip.add("Maintenir shift gauche pour plus d'information"); } }*/ @SubscribeEvent public void onDeath(LivingDeathEvent event) { if(event.entity instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer)event.entity; if(player.inventory.hasItem(MineSagasMod.stella)) { System.out.println("tu es mort"); this.dropInventory(player.inventory); player.worldObj.getGameRules().setOrCreateGameRule("keepInventory", "true"); } } } private void dropInventory(InventoryPlayer inventory) { int i; for(i = 0; i < inventory.mainInventory.length; ++i) { if(inventory.mainInventory* != null) { if(inventory.mainInventory*.getItem() != MineSagasMod.stella) { inventory.player.func_146097_a(inventory.mainInventory*, true, false); inventory.mainInventory* = null; } } } for(i = 0; i < inventory.armorInventory.length; ++i) { if(inventory.armorInventory* != null) { inventory.player.func_146097_a(inventory.armorInventory*, true, false); inventory.armorInventory* = null; } } } /**@SubscribeEvent public void onKeyInput(InputEvent.KeyInputEvent event) { if(KeyBindings.openGUI.isPressed()) { if(mc.thePlayer != null) { zIsPressed = true; System.out.println("KEY Z"); //mc.thePlayer.setHealth(20.0F); //mc.thePlayer.inventory.addItemStackToInventory(new ItemStack(MineSagasMod.ameDeGardien)); /**EntityWolf wolf = new EntityWolf(mc.theWorld); wolf.setLocationAndAngles(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch); mc.theWorld.spawnEntityInWorld(wolf); //mc.thePlayer.setDead(); //mc.thePlayer.addPotionEffect(new PotionEffect(Potion.poison.id, 6 * 20, 10));//2eme argument en int c'est la durée , 3ème argument c'est la puissance de l'effet Minecraft.getMinecraft().thePlayer.addChatComponentMessage(new ChatComponentText("lol, it works")); } } else { zIsPressed = false; } }*/ /**@SubscribeEvent public void onDestroyItem(PlayerDestroyItemEvent event) { if (event.entityPlayer.getItemInUse().isItemEqual(p_77969_1_)) }*/ @SubscribeEvent public void onTickPlayer(TickEvent.PlayerTickEvent event) { if(MineSagasMod.keyboard.testToucheKeyDown(event.player)) { if(event.phase == TickEvent.Phase.START && event.side == Side.SERVER) { System.out.println("touche z pressé tu me vois?"); event.player.setFire(7); } } } }
package mrplaigon.psccraft.minesagasmod.common.testPacket; import io.netty.buffer.ByteBuf; import java.io.IOException; import mrplaigon.psccraft.minesagasmod.common.MineSagasMod; import net.minecraft.entity.player.EntityPlayer; import fr.minecraftforgefrance.ffmtlibs.network.FFMTPacket; public class PacketKeys extends FFMTPacket { private int keyState; public PacketKeys() { } public PacketKeys(int currentKeyState) { this.keyState = currentKeyState; } @Override public void writeData(ByteBuf buffer) throws IOException { buffer.writeInt(this.keyState); } @Override public void readData(ByteBuf buffer) { this.keyState = buffer.readInt(); } @Override public void handleClientSide(EntityPlayer player) { } @Override public void handleServerSide(EntityPlayer player) { MineSagasMod.keyboard.processKeyUpdate(player, this.keyState); } }
package mrplaigon.psccraft.minesagasmod.common; import java.awt.Color; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import mrplaigon.psccraft.minesagasmod.client.KeyBindingsSolo; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.mineSagasModCreativeTabs; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.FunPSCModCreativeTabs; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.blocks.blockTest; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.entities.mob.EntityBarMan; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.entities.mob.EntityDj; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.entities.mob.EntityPute; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemCdDareShakira; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemCdFeatTheMagicInTheAir; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemCdMerciQui; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemCdNewWorldSound; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemEpeePersonnage; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemLecteurDj; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemTest; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.FunPSCMod.items.itemVodka; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.block.blockstesr.BlockHayner; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.block.blockstesr.BlockSetzer; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.ItemStella; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.itemCIN1; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDDearlyOblivied; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDDiveIntoTheHeart; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDFragmentsOfSorrow; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDLazyAfternoons; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDPassion; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDPassionSingle; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDSinisterSundown; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDTensionRising; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.item.cds.itemCDTheEscapade; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.tileentity.TileEntityBlockHayner; import mrplaigon.psccraft.minesagasmod.common.MineKingdomHeartsMod.tileentity.TileEntityBlockSetzer; import mrplaigon.psccraft.minesagasmod.common.ModTest.block.blocks.BlockSpeed; import mrplaigon.psccraft.minesagasmod.common.ModTest.block.blocks.BlockTutoriel; import mrplaigon.psccraft.minesagasmod.common.ModTest.block.ores.BlockMineraiUranium; import mrplaigon.psccraft.minesagasmod.common.ModTest.entity.mob.EntityAragog; import mrplaigon.psccraft.minesagasmod.common.ModTest.entity.mob.EntityBadman; import mrplaigon.psccraft.minesagasmod.common.ModTest.entity.mob.EntityChocogrenouille; import mrplaigon.psccraft.minesagasmod.common.ModTest.entity.mob.EntityMobTutoriel; import mrplaigon.psccraft.minesagasmod.common.ModTest.entity.mob.EntityVlad; import mrplaigon.psccraft.minesagasmod.common.ModTest.generation.WorldGeneration; import mrplaigon.psccraft.minesagasmod.common.ModTest.generation.biome.BiomeSuper; import mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemArmorEmeraude; import mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemBaguette; import mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemBatonMineur; import mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemGun; import mrplaigon.psccraft.minesagasmod.common.ModTest.item.ItemTutoriel; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.Minecraft; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import net.minecraft.potion.Potion; import net.minecraft.server.MinecraftServer; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.BiomeDictionary; import net.minecraftforge.common.BiomeDictionary.Type; import net.minecraftforge.common.BiomeManager; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.util.EnumHelper; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.GameRegistry; import fr.minecraftforgefrance.ffmtlibs.network.PacketManager; @Mod(modid="minesagasmod", name="MineSagasMod", version="1.0.0") public class MineSagasMod { public static final String MODID = "minesagasmod"; @Instance("minesagasmod") public static MineSagasMod instance; @SidedProxy(clientSide="mrplaigon.psccraft.minesagasmod.client.MineSagasClientProxy", serverSide="mrplaigon.psccraft.minesagasmod.common.MineSagasCommonProxy") public static MineSagasCommonProxy commonproxy; //DÉCLARATION DES VARIABLES DES ITEMS public static Item itemtutoriel; public static Item itemGun; public static Item munitionGun; public static Item batonDeMineur; public static Item baguette; //DÉCLARATION DES VARIABLES DES ITEMS FUNPSC MOD public static Item test; public static Item portable; public static Item vodka; public static Item lecteurDj; public static Item cdNewWorldSound; public static Item epeePersonnage; public static Item cdDareShakira; public static Item cdMerciQui; public static Item cdFeatTheMagicInTheAir; WorldGeneration worldgeneration = new WorldGeneration(); //DÉCLARATION DES VARIABLES DES ITEMS KINGDOM HEARTS 2 public static Item chaineRoyale; public static Item tendrePromesse; public static Item stella; public static Item dragonTapis; public static Item emblemeDeHeros; public static Item gouvernail; public static Item cercleVital; public static Item souvenirPerdu; public static Item debuggerPhoton; public static Item monochrome; public static Item roseDeCombat; public static Item albatros; public static Item lionAssoupi; public static Item citrouilleDeNoel; public static Item lampeMagique; public static Item ameDeGardien; public static Item batonStruggleAttaque; public static Item batonStruggleDefense; public static Item batonStruggleMagie; public static Item cdDearlyOblivied; public static Item cdPassion; public static Item cdPassionSingle; public static Item cdLazyAfternoons; public static Item cdSinisterSundown; public static Item cdTheEscapade; public static Item cdDiveIntoTheHeart; public static Item cdFragmentsOfSorrow; public static Item cdTensionRising; public static Item itemCIN1; //DÉCLARATION DES VARIABLES DES Blocks KINGDOM HEARTS 2 public static Block blockHayner; public static Block blockSetzer; //DÉCLARATION DES VARIABLES DES BLOCKS public static Block blocktutoriel; public static Block blockSpeed; public static Block blockmineraiuranium; //DÉCLARATION DES VARIABLES DES BLOCKS FUNPSC MOD public static Block test1; //DÉCLARATION DES VARIABLES DES ARMURES public static Item casqueEmeraude; public static Item plastronEmeraude; public static Item jambiereEmeraude; public static Item bottesEmeraude; public static BiomeGenBase[] biomes = { BiomeGenBase.plains, BiomeGenBase.extremeHills, BiomeGenBase.beach, BiomeGenBase.desert, BiomeGenBase.desertHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.icePlains, BiomeGenBase.iceMountains, BiomeGenBase.river, BiomeGenBase.birchForest, BiomeGenBase.birchForestHills, BiomeGenBase.coldBeach, BiomeGenBase.coldTaiga, BiomeGenBase.coldTaigaHills, BiomeGenBase.deepOcean, BiomeGenBase.extremeHillsPlus, BiomeGenBase.jungleEdge, BiomeGenBase.megaTaiga, BiomeGenBase.megaTaigaHills, BiomeGenBase.mesa, BiomeGenBase.mesaPlateau, BiomeGenBase.mesaPlateau_F, BiomeGenBase.roofedForest, BiomeGenBase.savanna, BiomeGenBase.savannaPlateau, BiomeGenBase.stoneBeach }; //DÉCLARATION DU TOOLMATERIAL public static ArmorMaterial emeraude = EnumHelper.addArmorMaterial("emeraude", 66, new int[] {6, 16, 12, 6}, 40);//En fait c'est une armure qui a les mêmes valeurs que celle en diams mais doublée sauf pour l'enchantement protected static final BiomeGenBase.Height height_Super = new BiomeGenBase.Height(0.2F, 0.2F); //DÉCLARATION DES VARIABLES DIVERSES DU MOD @SidedProxy(clientSide = "mrplaigon.psccraft.minesagasmod.client.KeyBindingsSolo", serverSide = "mrplaigon.psccraft.minesagasmod.common.KeyBindingsServer") public static KeyBindingsServer keyboard; public static final PacketManager packetHandler = new PacketManager("mrplaigon.psccraft.minesagasmod.common.testPacket", MODID , "MSM"); public static CreativeTabs mineSagasModCreativeTabs = new mineSagasModCreativeTabs("mineSagasModCreativeTabs"); public static BiomeGenBase superbiome; //DÉCLARATION DES VARIABLES DIVERSES DU MOD FUNPSC MOD public static CreativeTabs TutorialCreativeTabs = new FunPSCModCreativeTabs("PSCCreativeTabs"); @EventHandler public void preInit(FMLPreInitializationEvent event) { System.out.println("preinit"); commonproxy.initialiseTickHandler(); //DÉCLARATION PRINCIPALES DES ITEMS itemtutoriel = new ItemTutoriel().setUnlocalizedName("tutoriel").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":itemtutoriel"); GameRegistry.registerItem(itemtutoriel, "item_tutoriel"); batonDeMineur = new ItemBatonMineur().setUnlocalizedName("batonDeMineur").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":batondemineur"); GameRegistry.registerItem(batonDeMineur, "batonDeMineur"); baguette = new ItemBaguette().setUnlocalizedName("baguette").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":batondemineur"); GameRegistry.registerItem(baguette, "baguette"); itemGun = new ItemGun().setUnlocalizedName("itemGun").setFull3D().setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setMaxDamage(29).setTextureName(MineSagasMod.MODID + ":itemGun").setMaxStackSize(1);//la valeur du .setMaxDamage doit être soustrait d'une unité pour cause : un bug du jeu. Le pistolet (ou le gun) a une durabilité de 30, il s'utilise 30 fois GameRegistry.registerItem(itemGun, "itemGun"); munitionGun = new ItemTutoriel().setUnlocalizedName("munitionGun").setMaxStackSize(10).setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":munitionGun"); GameRegistry.registerItem(munitionGun, "munitionGun"); //DÉCLARATION PRINCIPALES DES ITEMS FUNPSC MOD test = new itemTest().setUnlocalizedName("test").setCreativeTab(TutorialCreativeTabs).setTextureName(MineSagasMod.MODID + ":test"); GameRegistry.registerItem(test, "test"); vodka = new itemVodka(0, 0.0F, true).setPotionEffect(Potion.blindness.id, 7, 3, 1.0F).setUnlocalizedName("vodka").setCreativeTab(TutorialCreativeTabs).setTextureName(MineSagasMod.MODID + ":vodka"); GameRegistry.registerItem(vodka, "vodka"); lecteurDj = new itemLecteurDj().setUnlocalizedName("lecteurDj").setMaxStackSize(1).setCreativeTab(TutorialCreativeTabs).setTextureName(MineSagasMod.MODID + ":lecteurDj"); GameRegistry.registerItem(lecteurDj, "lecteurDj"); epeePersonnage = new itemEpeePersonnage(Item.ToolMaterial.IRON).setUnlocalizedName("epeePersonnage").setCreativeTab(TutorialCreativeTabs).setTextureName(MineSagasMod.MODID + ":epeePersonnage"); GameRegistry.registerItem(epeePersonnage, "epeePersonnage"); cdNewWorldSound = new itemCdNewWorldSound("New World Sound - 1st Track FunPSC Mod").setUnlocalizedName("cdNewWorldSound").setTextureName(MineSagasMod.MODID + ":cdNewWorldSound").setCreativeTab(TutorialCreativeTabs); GameRegistry.registerItem(cdNewWorldSound, "cdNewWorldSound"); cdDareShakira = new itemCdDareShakira("Dare Dare, Shakira - 2nd Track FunPSC Mod").setUnlocalizedName("cdDareShakira").setTextureName(MineSagasMod.MODID + ":cdDareShakira").setCreativeTab(TutorialCreativeTabs); GameRegistry.registerItem(cdDareShakira, "cdDareShakira"); cdMerciQui = new itemCdMerciQui("Merci Qui - 3rd Track FunPSC Mod").setUnlocalizedName("cdMerciQui").setTextureName(MineSagasMod.MODID + ":cdMerciQui").setCreativeTab(TutorialCreativeTabs); GameRegistry.registerItem(cdMerciQui, "cdMerciQui"); cdFeatTheMagicInTheAir = new itemCdFeatTheMagicInTheAir("Feat the magic in the air - 4th Track FunPSC Mod").setUnlocalizedName("cdFeatTheMagicInTheAir").setTextureName(MineSagasMod.MODID + ":cdFeatTheMagicInTheAir").setCreativeTab(TutorialCreativeTabs); GameRegistry.registerItem(cdFeatTheMagicInTheAir, "cdFeatTheMagicInTheAir"); //DÉCLARATION PRINCIPALES DES ITEMS KINGDOM HEARTS 2 chaineRoyale = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("chaineRoyale").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":chaine royale"); GameRegistry.registerItem(chaineRoyale, "chaineRoyale"); tendrePromesse = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("tendrePromesse").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":tendre promesse"); GameRegistry.registerItem(tendrePromesse, "tendrePromesse"); stella = new ItemStella(ToolMaterial.EMERALD).setUnlocalizedName("stella").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":stella"); GameRegistry.registerItem(stella, "stella"); dragonTapis = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("dragonTapis").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":dragonTapis"); GameRegistry.registerItem(dragonTapis, "dragonTapis"); emblemeDeHeros = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("emblemeDeHeros").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":emblemeDeHeros"); GameRegistry.registerItem(emblemeDeHeros, "emblemeDeHeros"); gouvernail = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("gouvernail").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":gouvernail"); GameRegistry.registerItem(gouvernail, "gouvernail"); cercleVital = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("cercleVital").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cercleVital"); GameRegistry.registerItem(cercleVital, "cercleVital"); souvenirPerdu = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("souvenirPerdu").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":souvenirPerdu"); GameRegistry.registerItem(souvenirPerdu, "souvenirPerdu"); debuggerPhoton = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("debuggerPhoton").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":debuggerPhoton"); GameRegistry.registerItem(debuggerPhoton, "debuggerPhoton"); monochrome = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("monochrome").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":monochrome"); GameRegistry.registerItem(monochrome, "monochrome"); roseDeCombat = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("roseDeCombat").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":roseDeCombat"); GameRegistry.registerItem(roseDeCombat, "roseDeCombat"); albatros = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("albatros").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":albatros"); GameRegistry.registerItem(albatros, "albatros"); lionAssoupi = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("lionAssoupi").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":lionAssoupi"); GameRegistry.registerItem(lionAssoupi, "lionAssoupi"); citrouilleDeNoel = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("citrouilleDeNoel").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":citrouilleDeNoel"); GameRegistry.registerItem(citrouilleDeNoel, "citrouilleDeNoel"); lampeMagique = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("lampeMagique").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":lampeMagique"); GameRegistry.registerItem(lampeMagique, "lampeMagique"); ameDeGardien = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("ameDeGardien").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":ameDeGardien"); GameRegistry.registerItem(ameDeGardien, "ameDeGardien"); batonStruggleAttaque = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("batonStruggleAttaque").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":baton struggle attaque"); GameRegistry.registerItem(batonStruggleAttaque, "batonStruggleAttaque"); batonStruggleDefense = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("batonStruggleDefense").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":baton struggle defense"); GameRegistry.registerItem(batonStruggleDefense, "batonStruggleDefense"); batonStruggleMagie = new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("batonStruggleMagie").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":baton struggle magie"); GameRegistry.registerItem(batonStruggleMagie, "batonStruggleMagie"); itemCIN1 = new itemCIN1().setUnlocalizedName("itemCIN1").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":itemCIN1"); GameRegistry.registerItem(itemCIN1, "itemCIN1"); cdDearlyOblivied = new itemCDDearlyOblivied("Dearly Oblivied - 1st Song").setUnlocalizedName("cdDearlyOblivied").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdDearlyOblivied"); GameRegistry.registerItem(cdDearlyOblivied, "cdDearlyOblivied"); cdPassion = new itemCDPassion("Passion Orchestra Instrumental Version - 2nd Song").setUnlocalizedName("cdPassion").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdPassion"); GameRegistry.registerItem(cdPassion, "cdPassion"); cdPassionSingle = new itemCDPassionSingle("Dearly Passion Single Version - 3rd Song").setUnlocalizedName("cdPassionSingle").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdPassionSingle"); GameRegistry.registerItem(cdPassionSingle, "cdPassionSingle"); cdLazyAfternoons = new itemCDLazyAfternoons("Lazy Afternoons - 4th Song").setUnlocalizedName("cdLazyAfternoons").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdLazyAfternoons"); GameRegistry.registerItem(cdLazyAfternoons, "cdLazyAfternoons"); cdSinisterSundown = new itemCDSinisterSundown("Sinister Sundown - 5th Song").setUnlocalizedName("cdSinisterSundown").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdSinisterSundown"); GameRegistry.registerItem(cdSinisterSundown, "cdSinisterSundown"); cdTheEscapade = new itemCDTheEscapade("The Escapade - 6th Song").setUnlocalizedName("cdTheEscapade").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdTheEscapade"); GameRegistry.registerItem(cdTheEscapade, "cdTheEscapade"); cdDiveIntoTheHeart = new itemCDDiveIntoTheHeart("Dive Into The Heart - 7th Song").setUnlocalizedName("cdDiveIntoTheHeart").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdDiveIntoTheHeart"); GameRegistry.registerItem(cdDiveIntoTheHeart, "cdDiveIntoTheHeart"); cdFragmentsOfSorrow = new itemCDFragmentsOfSorrow("Fragments Of Sorrow - 8th Song").setUnlocalizedName("cdFragmentsOfSorrow").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdFragmentsOfSorrow"); GameRegistry.registerItem(cdFragmentsOfSorrow, "cdFragmentsOfSorrow"); cdTensionRising = new itemCDTensionRising("Tension Rising - 9th Song").setUnlocalizedName("cdTensionRising").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":cdTensionRising"); GameRegistry.registerItem(cdTensionRising, "cdTensionRising"); //DÉCLARATION PRINCIPALES DES BLOCKS KINGDOM HEARTS 2 blockHayner = new BlockHayner(Material.rock).setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setBlockName("blockHayner").setBlockTextureName(MineSagasMod.MODID + ":blockHayner"); GameRegistry.registerBlock(blockHayner, "blockHayner"); blockSetzer = new BlockSetzer(Material.rock).setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setBlockName("blockSetzer").setBlockTextureName(MineSagasMod.MODID + ":blockHayner"); GameRegistry.registerBlock(blockSetzer, "blockSetzer"); //DÉCLARATION PRINCIPALES DES BLOCKS blocktutoriel = new BlockTutoriel(Material.grass).setBlockName("blocktutoriel").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setBlockTextureName(MineSagasMod.MODID + ":blocktutoriel"); GameRegistry.registerBlock(blocktutoriel, "blocktutoriel"); blockSpeed = new BlockSpeed(Material.glass).setBlockName("blockSpeed").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setBlockTextureName(MineSagasMod.MODID + ":blockSpeed"); GameRegistry.registerBlock(blockSpeed, "blockSpeed"); blockmineraiuranium = new BlockMineraiUranium(Material.rock).setBlockName("blockmineraiuranium").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setBlockTextureName(MineSagasMod.MODID + ":blockmineraiuranium").setHardness(10.0F).setResistance(5.0F).setLightLevel(2.0F); GameRegistry.registerBlock(blockmineraiuranium, "blockmineraiuranium"); //DÉCLARATION PRINCIPALES DES BLOCKS FUNPSC MOD test1 = new blockTest(Material.rock).setCreativeTab(TutorialCreativeTabs).setBlockName("test1").setBlockTextureName("MineSagasMod:test1"); GameRegistry.registerBlock(test1, "test1"); //DÉCLARATION PRINCIPALE DES ARMURES casqueEmeraude = new ItemArmorEmeraude(this.emeraude, 0).setUnlocalizedName("casqueEmeraude").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":casqueEmeraude");//0 est une valeur qui ne doit pas être changée au fil des déclarations d'armure car forge s'en charge lui-même plastronEmeraude = new ItemArmorEmeraude(this.emeraude, 1).setUnlocalizedName("plastronEmeraude").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":plastronEmeraude"); jambiereEmeraude = new ItemArmorEmeraude(this.emeraude, 2).setUnlocalizedName("jambiereEmeraude").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":jambiereEmeraude"); bottesEmeraude = new ItemArmorEmeraude(this.emeraude, 3).setUnlocalizedName("bottesEmeraude").setCreativeTab(MineSagasMod.mineSagasModCreativeTabs).setTextureName(MineSagasMod.MODID + ":bottesEmeraude"); GameRegistry.registerItem(casqueEmeraude, "casqueEmeraude"); GameRegistry.registerItem(plastronEmeraude, "plastronEmeraude"); GameRegistry.registerItem(jambiereEmeraude, "jambiereEmeraude"); GameRegistry.registerItem(bottesEmeraude, "bottesEmeraude"); //ENREGISTREMENT DES TILE ENTITY GameRegistry.registerTileEntity(TileEntityBlockHayner.class, "blockHayner"); GameRegistry.registerTileEntity(TileEntityBlockSetzer.class, "blockSetzer"); GameRegistry.addRecipe(new ItemStack(plastronEmeraude, 1), new Object[] { "X X", "XXX", "XXX", Character.valueOf('X'), Items.emerald }); GameRegistry.addRecipe(new ItemStack(casqueEmeraude, 1), new Object[] { "XXX", "X X", Character.valueOf('X'), Items.emerald }); GameRegistry.addRecipe(new ItemStack(jambiereEmeraude, 1), new Object[] { "XXX", "X X", "X X", Character.valueOf('X'), Items.emerald }); GameRegistry.addRecipe(new ItemStack(bottesEmeraude, 1), new Object[] { "X X", "X X", Character.valueOf('X'), Items.emerald }); GameRegistry.registerWorldGenerator(worldgeneration, 0); } @EventHandler public void init(FMLInitializationEvent event) { System.out.println("init"); commonproxy.registerEntityRenderer(); commonproxy.registerItemRenderer(); commonproxy.registerTileEntitySpecialRenderer(); keyboard.init(); //DÉCLARATION PRINCIPALES DES ENTITÉES EntityRegistry.registerGlobalEntityID(EntityMobTutoriel.class, "mobTutoriel", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 255, 0).getRGB(), new Color(255, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityMobTutoriel.class, "mobTutoriel", 420, this.instance, 40, 1, true); EntityRegistry.registerGlobalEntityID(EntityAragog.class, "aragog", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 255, 0).getRGB(), new Color(255, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityAragog.class, "aragog", 421, this.instance, 40, 1, true); EntityRegistry.registerGlobalEntityID(EntityChocogrenouille.class, "chocogrenouille", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 255, 0).getRGB(), new Color(255, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityChocogrenouille.class, "chocogrenouille", 422, this.instance, 40, 1, true); /**EntityRegistry.registerGlobalEntityID(EntityServeuse.class, "serveuse", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 255, 0).getRGB(), new Color(255, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityServeuse.class, "serveuse", 423, this.instance, 40, 1, true);*/ EntityRegistry.registerGlobalEntityID(EntityBadman.class, "badman", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 255, 0).getRGB(), new Color(255, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityBadman.class, "badman", 424, this.instance, 40, 1, true); EntityRegistry.registerGlobalEntityID(EntityVlad.class, "vlad", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 255, 0).getRGB(), new Color(255, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityVlad.class, "vlad", 425, this.instance, 40, 1, true); //EntityRegistry.addSpawn(EntityVlad.class, 5, 1, 3, EnumCreatureType.monster, this.biomes); //DÉCLARATION PRINCIPALES DES ENTITÉES FUNPSC MOD EntityRegistry.registerGlobalEntityID(EntityTest.class, "test2", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 0, 0).getRGB(), new Color(79, 255, 35).getRGB()); EntityRegistry.registerModEntity(EntityTest.class, "test2", 426, instance, 40, 1, true); EntityRegistry.registerGlobalEntityID(EntityBarMan.class, "barman", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 0, 0).getRGB(), new Color(255, 255, 255).getRGB()); EntityRegistry.registerModEntity(EntityBarMan.class, "barman", 428, instance, 40, 1, true); EntityRegistry.registerGlobalEntityID(EntityDj.class, "dj", EntityRegistry.findGlobalUniqueEntityId(), new Color(127, 51, 0).getRGB(), new Color(0, 0, 0).getRGB()); EntityRegistry.registerModEntity(EntityDj.class, "dj", 429, instance, 40, 1, true); EntityRegistry.registerGlobalEntityID(EntityPute.class, "pute", EntityRegistry.findGlobalUniqueEntityId(), new Color(255, 223, 201).getRGB(), new Color(124, 82, 53).getRGB()); EntityRegistry.registerModEntity(EntityPute.class, "pute", 430, instance, 40, 1, true); superbiome = new BiomeSuper(137).setBiomeName("superbiome").setTemperatureRainfall(1.2F, 0.9F); BiomeDictionary.registerBiomeType(superbiome, Type.FOREST); BiomeManager.addSpawnBiome(superbiome); if(event.getSide().isClient()) { MinecraftForge.EVENT_BUS.register(new MineSagasEventHandlerCommon()); } FMLCommonHandler.instance().bus().register(new MineSagasEventHandlerCommon()); MinecraftForge.EVENT_BUS.register(new MineSagasEventHandlerCommon()); } @EventHandler public void postInit(FMLPostInitializationEvent event) { System.out.println("postinit"); } }
-
KeyBindingsSolo et KeyBindingsServer ?
-
oui désolé j 'ai oublié le plus important
package mrplaigon.psccraft.minesagasmod.client; import mrplaigon.psccraft.minesagasmod.common.KeyBindingsServer; import mrplaigon.psccraft.minesagasmod.common.MineSagasMod; import mrplaigon.psccraft.minesagasmod.common.testPacket.PacketKeys; import net.minecraft.client.settings.KeyBinding; import org.lwjgl.input.Keyboard; import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.client.registry.ClientRegistry; public class KeyBindingsSolo extends KeyBindingsServer { public static KeyBinding testTouche; private int lastKeyState = 0; @Override public void init() { testTouche = new KeyBinding("key.openGUI", Keyboard.KEY_Z, "MineSagas Mod -Test de touches"); ClientRegistry.registerKeyBinding(testTouche); } @Override public void sendKeyUpdate() { int currentKeyState = (this.testTouche.isPressed() ? 1 : 0) << 0; if(currentKeyState != this.lastKeyState) { this.lastKeyState = currentKeyState; try { MineSagasMod.packetHandler.sendToServer(new PacketKeys(currentKeyState)); } catch(Exception exception) { } super.processKeyUpdate(FMLClientHandler.instance().getClientPlayerEntity(), currentKeyState); } } }
package mrplaigon.psccraft.minesagasmod.common; import java.util.HashMap; import java.util.Map; import net.minecraft.entity.player.EntityPlayer; public class KeyBindingsServer { private final Map <entityplayer, boolean="">testTouche = new HashMap(); public void init() { } public boolean testToucheKeyDown(EntityPlayer player) { if(this.testTouche.containsKey(player)) { System.out.println("z tu vois?"); return this.testTouche.get(player); } return false; } public void sendKeyUpdate() { } public void processKeyUpdate(EntityPlayer player, int keyState) { this.testTouche.put(player, Boolean.valueOf((keyState & 0x2) != 0)); } public void removePlayerReferences(EntityPlayer player) { this.testTouche.remove(player); } } ```</entityplayer,>
-
this.testTouche.put(player, Boolean.valueOf((keyState & 0x2) != 0));
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
this.testTouche.put(player, Boolean.valueOf((keyState & 0x1) != 0));