Résolu Crash.
-
Bonjour,
Alors j’ai un soucis quand je me give l’épée de l’inventaire creatif mon jeu plante et quand je la ramasse par terre pareil!
Merci d’avance!
Crash report:
[16:57:40] [main/INFO] [GradleStart]: username: floriangabet [16:57:40] [main/INFO] [GradleStart]: Extra: [] [16:57:40] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Admin/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --username, floriangabet, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [16:57:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [16:57:40] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [16:57:40] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [16:57:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [16:57:40] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1291 for Minecraft 1.7.10 loading [16:57:40] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.8.0_45, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jdk1.8.0_45\jre [16:57:40] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [16:57:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [16:57:40] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin [16:57:40] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [16:57:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [16:57:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [16:57:40] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [16:57:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [16:57:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [16:57:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [16:57:40] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [16:57:40] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [16:57:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [16:57:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [16:57:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [16:57:41] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker [16:57:41] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker [16:57:41] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [16:57:41] [main/INFO]: Setting user: floriangabet [16:57:41] [Client thread/INFO]: LWJGL Version: 2.9.1 [16:57:42] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [16:57:42] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1291 Initialized [16:57:42] [Client thread/INFO] [FML]: Replaced 183 ore recipies [16:57:42] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [16:57:42] [Client thread/INFO] [FML]: Searching C:\Users\Admin\Documents\Modding\LegacyMod\eclipse\mods for mods [16:57:42] [Client thread/INFO] [lc]: Mod lc is missing the required element 'name'. Substituting lc [16:57:43] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [16:57:43] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, lc] at CLIENT [16:57:43] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, lc] at SERVER [16:57:43] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:lc, [1.10] Firewolf v1.36.zip [16:57:43] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [16:57:43] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [16:57:43] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [16:57:43] [Client thread/INFO] [FML]: Applying holder lookups [16:57:43] [Client thread/INFO] [FML]: Holder lookups applied [16:57:43] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [16:57:43] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [16:57:44] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [16:57:44] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [16:57:44] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [16:57:44] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [16:57:44] [Sound Library Loader/INFO]: Sound engine started [16:57:46] [Client thread/INFO]: Created: 2048x2048 textures/blocks-atlas [16:57:46] [Client thread/INFO]: Created: 256x256 textures/items-atlas [16:57:46] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [16:57:46] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:lc, [1.10] Firewolf v1.36.zip [16:57:49] [Client thread/INFO]: Created: 2048x2048 textures/blocks-atlas [16:57:49] [Client thread/INFO]: Created: 256x256 textures/items-atlas [16:57:49] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [16:57:49] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down… [16:57:49] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com [16:57:49] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [16:57:49] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [16:57:49] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [16:57:49] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [16:57:49] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [16:57:49] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [16:57:49] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [16:57:49] [Sound Library Loader/INFO]: Sound engine started [16:57:51] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10 [16:57:51] [Server thread/INFO]: Generating keypair [16:57:51] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance [16:57:51] [Server thread/INFO] [FML]: Applying holder lookups [16:57:51] [Server thread/INFO] [FML]: Holder lookups applied [16:57:51] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1cac468) [16:57:51] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1cac468) [16:57:51] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1cac468) [16:57:51] [Server thread/INFO]: Preparing start region for level 0 [16:57:52] [Server thread/INFO]: Changing view distance to 8, from 10 [16:57:52] [Netty Client IO #0/INFO] [FML]: Server protocol version 1 [16:57:52] [Netty IO #1/INFO] [FML]: Client protocol version 1 [16:57:52] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@7.10.85.1291,lc@1.0,Forge@10.13.2.1291,mcp@9.05 [16:57:52] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [16:57:52] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER [16:57:52] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established [16:57:52] [Server thread/INFO]: floriangabet[local:E:74441d21] logged in with entity id 946 at (-66.51920914277434, 95.0, 259.53829119933647) [16:57:52] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established [16:57:52] [Server thread/INFO]: floriangabet joined the game [16:57:53] [Server thread/ERROR]: Encountered an unexpected exception net.minecraft.util.ReportedException: Ticking player at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:198) ~[NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) ~[MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException at net.legacymod.items.epee.onUpdate(epee.java:52) ~[epee.class:?] at net.minecraft.item.ItemStack.updateAnimation(ItemStack.java:476) ~[ItemStack.class:?] at net.minecraft.entity.player.InventoryPlayer.decrementAnimations(InventoryPlayer.java:347) ~[InventoryPlayer.class:?] at net.minecraft.entity.player.EntityPlayer.onLivingUpdate(EntityPlayer.java:610) ~[EntityPlayer.class:?] at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816) ~[EntityLivingBase.class:?] at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:327) ~[EntityPlayer.class:?] at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:330) ~[EntityPlayerMP.class:?] at net.minecraft.network.NetHandlerPlayServer.processPlayer(NetHandlerPlayServer.java:329) ~[NetHandlerPlayServer.class:?] at net.minecraft.network.play.client.C03PacketPlayer.processPacket(C03PacketPlayer.java:37) ~[C03PacketPlayer.class:?] at net.minecraft.network.play.client.C03PacketPlayer$C06PacketPlayerPosLook.processPacket(C03PacketPlayer.java:271) ~[C03PacketPlayer$C06PacketPlayerPosLook.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) ~[NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) ~[NetworkSystem.class:?] … 5 more [16:57:53] [Server thread/ERROR]: This crash report has been saved to: C:\Users\Admin\Documents\Modding\LegacyMod\eclipse\.\crash-reports\crash-2016-07-07_16.57.53-server.txt [16:57:53] [Server thread/INFO]: Stopping server [16:57:53] [Server thread/INFO]: Saving players [16:57:53] [Server thread/INFO]: Saving worlds [16:57:53] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [16:57:53] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [16:57:53] [Server thread/INFO]: Saving chunks for level 'New World'/The End [16:57:53] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ---- // Why is it breaking :( Time: 07/07/16 16:57 Description: Ticking player java.lang.NullPointerException: Ticking player at net.legacymod.items.epee.onUpdate(epee.java:52) at net.minecraft.item.ItemStack.updateAnimation(ItemStack.java:476) at net.minecraft.entity.player.InventoryPlayer.decrementAnimations(InventoryPlayer.java:347) at net.minecraft.entity.player.EntityPlayer.onLivingUpdate(EntityPlayer.java:610) at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816) at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:327) at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:330) at net.minecraft.network.NetHandlerPlayServer.processPlayer(NetHandlerPlayServer.java:329) at net.minecraft.network.play.client.C03PacketPlayer.processPacket(C03PacketPlayer.java:37) at net.minecraft.network.play.client.C03PacketPlayer$C06PacketPlayerPosLook.processPacket(C03PacketPlayer.java:271) at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.legacymod.items.epee.onUpdate(epee.java:52) at net.minecraft.item.ItemStack.updateAnimation(ItemStack.java:476) at net.minecraft.entity.player.InventoryPlayer.decrementAnimations(InventoryPlayer.java:347) at net.minecraft.entity.player.EntityPlayer.onLivingUpdate(EntityPlayer.java:610) at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816) at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:327) -- Player being ticked -- Details: Entity Type: null (net.minecraft.entity.player.EntityPlayerMP) Entity ID: 946 Entity Name: floriangabet Entity's Exact location: -66,52, 95,00, 259,54 Entity's Block location: World: (-67,95,259), Chunk: (at 13,5,3 in -5,16; contains blocks -80,0,256 to -65,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Entity's Momentum: 0,00, -0,08, 0,00 Stacktrace: at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:330) at net.minecraft.network.NetHandlerPlayServer.processPlayer(NetHandlerPlayServer.java:329) at net.minecraft.network.play.client.C03PacketPlayer.processPacket(C03PacketPlayer.java:37) at net.minecraft.network.play.client.C03PacketPlayer$C06PacketPlayerPosLook.processPacket(C03PacketPlayer.java:271) at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) -- Ticking connection -- Details: Connection: net.minecraft.network.NetworkManager@c4a308 Stacktrace: at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (x86) version 6.1 Java Version: 1.8.0_45, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 921444480 bytes (878 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 13, tcache: 0, allocated: 13, tallocated: 95 FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available lc{1.0} [lc] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Player Count: 1 / 8; [EntityPlayerMP['floriangabet'/946, l='New World', x=-66,52, y=95,00, z=259,54]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge' [16:57:53] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2016-07-07_16.57.53-server.txt [16:57:53] [Client thread/INFO] [FML]: Waiting for the server to terminate/save. [16:57:53] [Server thread/INFO] [FML]: Unloading dimension 0 [16:57:53] [Server thread/INFO] [FML]: Unloading dimension -1 [16:57:53] [Server thread/INFO] [FML]: Unloading dimension 1 [16:57:53] [Server thread/INFO] [FML]: Applying holder lookups [16:57:53] [Server thread/INFO] [FML]: Holder lookups applied [16:57:53] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded. [16:57:53] [Client thread/INFO] [FML]: Server terminated. AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Class onUpdate:
@Override public void onUpdate(ItemStack item, World world, Entity player, int slotIndex, boolean inHand) { if (item.hasTagCompound()) { if (item.stackTagCompound.getInteger("timer2") > 0) { item.stackTagCompound.setInteger("timer2", (int) (item.stackTagCompound.getInteger("timer2") + 1)); } if (item.stackTagCompound.getInteger("timer2") >= (int) (45 * 20)) { item.stackTagCompound.setInteger("timer2", 0); } } int timer = !item.getTagCompound().hasKey("timer") ? 0 : item.getTagCompound().getInteger("timer"); // ligne 52 timer++; item.getTagCompound().setInteger("timer", timer); int timer3 = !item.getTagCompound().hasKey("timer3") ? 0 : item.getTagCompound().getInteger("timer3"); timer3++; item.getTagCompound().setInteger("timer3", timer3); super.onUpdate(item, world, player, slotIndex, inHand); }
-
Etant ta condition, if item.hasTagCompound, à la ligne 52 tu as un NPE sur getTagCompound().hasKey(), plus simple au débuts de ton code fait un
if(!item.hasTagCompound()) { item.setTagCompound(new NBTTagCompound()); }
-
@‘BrokenSwing’:
Etant ta condition, if item.hasTagCompound, à la ligne 52 tu as un NPE sur getTagCompound().hasKey(), plus simple au débuts de ton code fait un
if(!item.hasTagCompound()) { item.setTagCompound(new NBTTagCompound()); }
Merciiii