MFF

    Minecraft Forge France
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes
    • Forge Events
      • Automatique
      • Foncé
      • Clair
    • S'inscrire
    • Se connecter

    Une aide pour des events.

    Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x
    1.7.10
    46 Messages 8 Publieurs 7.2k Vues 1 Watching
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • Y Hors-ligne
      yveslefou
      dernière édition par

      @‘AymericRed’:

      Le même rapport qu’avant les println, mais maintenant on a éliminé des causes possibles, cliques sur l’endroit où il y la ligne du crash dans la console, et montre la fonction avec la ligne indiqué par eclipse “mise en valeur” (étant donné qu’on ne peut pas voir ici la ligne précisément car c’est faussé sans les imports).

      Envoyé de mon RAINBOW LITE 4G en utilisant Tapatalk

      [16:35:52] [main/INFO] [GradleStart]: Extra: []
      [16:35:52] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/yves/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
      [16:35:53] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
      [16:35:53] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
      [16:35:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
      [16:35:53] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
      [16:35:53] [main/INFO] [FML]: Forge Mod Loader version 7.99.40.1614 for Minecraft 1.7.10 loading
      [16:35:53] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_91, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_91
      [16:35:53] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
      [16:35:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
      [16:35:53] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
      [16:35:53] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
      [16:35:53] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
      [16:35:53] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
      [16:35:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
      [16:35:53] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
      [16:35:53] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
      [16:35:53] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
      [16:35:53] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
      [16:35:57] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
      [16:35:57] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
      [16:35:57] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
      [16:35:58] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
      [16:35:58] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
      [16:35:58] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
      [16:35:58] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
      [16:36:00] [main/INFO]: Setting user: Player702
      [16:36:02] [Client thread/INFO]: LWJGL Version: 2.9.1
      [16:36:04] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ----
      // Shall we play a game?
      
      Time: 29/06/16 16:36
      Description: Loading screen debug info
      
      This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
      
      A detailed walkthrough of the error, its code path and all known details is as follows:
      ---------------------------------------------------------------------------------------
      
      -- System Details --
      Details:
      Minecraft Version: 1.7.10
      Operating System: Windows 10 (amd64) version 10.0
      Java Version: 1.8.0_91, Oracle Corporation
      Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
      Memory: 796908240 bytes (759 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 0, tcache: 0, allocated: 0, tallocated: 0
      FML:
      GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 10.18.15.4248' Renderer: 'Intel(R) HD Graphics 4400'
      [16:36:04] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
      [16:36:04] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1614 Initialized
      [16:36:04] [Client thread/INFO] [FML]: Replaced 183 ore recipies
      [16:36:05] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
      [16:36:05] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
      [16:36:05] [Client thread/INFO] [FML]: Searching C:\Users\yves\Desktop\mod exta\forge\eclipse\mods for mods
      [16:36:16] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
      [16:36:17] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, extaziliamod] at CLIENT
      [16:36:17] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, extaziliamod] at SERVER
      [16:36:17] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Extazilia Mod
      [16:36:17] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
      [16:36:17] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
      [16:36:17] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
      [16:36:17] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
      [16:36:17] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
      [16:36:18] [Client thread/INFO] [FML]: Applying holder lookups
      [16:36:18] [Client thread/INFO] [FML]: Holder lookups applied
      [16:36:18] [Client thread/INFO] [FML]: Injecting itemstacks
      [16:36:18] [Client thread/INFO] [FML]: Itemstack injection complete
      [16:36:18] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
      [16:36:18] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
      [16:36:18] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
      [16:36:18] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
      [16:36:18] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
      [16:36:19] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
      [16:36:19] [Sound Library Loader/INFO]: Sound engine started
      [16:36:22] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
      [16:36:22] [Client thread/INFO]: Created: 16x16 textures/items-atlas
      [16:36:22] [Client thread/INFO] [STDOUT]: [fr.extazilia.extaziliamod.proxy.ClientProxy:registerRender:32]: &4test client
      [16:36:22] [Client thread/INFO] [FML]: Injecting itemstacks
      [16:36:22] [Client thread/INFO] [FML]: Itemstack injection complete
      [16:36:22] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
      [16:36:22] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Extazilia Mod
      [16:36:22] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
      [16:36:24] [Client thread/INFO]: Created: 512x256 textures/items-atlas
      [16:36:24] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
      [16:36:24] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
      [16:36:24] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
      [16:36:24] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
      [16:36:24] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
      [16:36:24] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
      [16:36:24] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
      [16:36:24] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
      [16:36:24] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
      [16:36:25] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
      [16:36:25] [Sound Library Loader/INFO]: Sound engine started
      [16:36:44] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
      [16:36:44] [Server thread/INFO]: Generating keypair
      [16:36:44] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
      [16:36:44] [Server thread/INFO] [FML]: Applying holder lookups
      [16:36:44] [Server thread/INFO] [FML]: Holder lookups applied
      [16:36:45] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1943dad3)
      [16:36:45] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1943dad3)
      [16:36:45] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1943dad3)
      [16:36:45] [Server thread/INFO]: Preparing start region for level 0
      [16:36:46] [Server thread/INFO]: Preparing spawn area: 74%
      [16:36:46] [Server thread/INFO]: Changing view distance to 12, from 10
      [16:36:47] [Server thread/INFO] [STDOUT]: [Channel.ExtendVieLv:Lv:156]: DDDD
      [16:36:47] [Server thread/INFO] [STDOUT]: [Channel.ExtendVieLv:Lv:157]: ef448a75-16a1-42b3-a813-c92e583a6561
      [16:36:47] [Server thread/ERROR] [FML]: Exception caught during firing event net.minecraftforge.event.entity.EntityEvent$EntityConstructing@18893ad6:
      java.lang.NullPointerException
      at Channel.ExtendVieLv.Lv(ExtendVieLv.java:161) ~[ExtendVieLv.class:?]
      at Channel.EventHardler.onEntityConstructing(EventHardler.java:18) ~[EventHardler.class:?]
      at cpw.mods.fml.common.eventhandler.ASMEventHandler_6_EventHardler_onEntityConstructing_EntityConstructing.invoke(.dynamic) ~[?:?]
      at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?]
      at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) [EventBus.class:?]
      at net.minecraft.entity.Entity.<init>(Entity.java:224) [Entity.class:?]
      at net.minecraft.entity.EntityLivingBase.<init>(EntityLivingBase.java:155) [EntityLivingBase.class:?]
      at net.minecraft.entity.player.EntityPlayer.<init>(EntityPlayer.java:165) [EntityPlayer.class:?]
      at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:158) [EntityPlayerMP.class:?]
      at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:443) [ServerConfigurationManager.class:?]
      at net.minecraft.server.network.NetHandlerLoginServer.func_147326_c(NetHandlerLoginServer.java:105) [NetHandlerLoginServer.class:?]
      at net.minecraft.server.network.NetHandlerLoginServer.onNetworkTick(NetHandlerLoginServer.java:64) [NetHandlerLoginServer.class:?]
      at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:244) [NetworkManager.class:?]
      at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?]
      at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?]
      at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?]
      at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?]
      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
      at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
      [16:36:47] [Server thread/ERROR] [FML]: Index: 1 Listeners:
      [16:36:47] [Server thread/ERROR] [FML]: 0: NORMAL
      [16:36:47] [Server thread/ERROR] [FML]: 1: ASM: Channel.EventHardler@12f1cdab onEntityConstructing(Lnet/minecraftforge/event/entity/EntityEvent$EntityConstructing;)V
      [16:36:47] [Server thread/ERROR]: Encountered an unexpected exception
      net.minecraft.util.ReportedException: Ticking memory connection
      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 Channel.ExtendVieLv.Lv(ExtendVieLv.java:161) ~[ExtendVieLv.class:?]
      at Channel.EventHardler.onEntityConstructing(EventHardler.java:18) ~[EventHardler.class:?]
      at cpw.mods.fml.common.eventhandler.ASMEventHandler_6_EventHardler_onEntityConstructing_EntityConstructing.invoke(.dynamic) ~[?:?]
      at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?]
      at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) ~[EventBus.class:?]
      at net.minecraft.entity.Entity.<init>(Entity.java:224) ~[Entity.class:?]
      at net.minecraft.entity.EntityLivingBase.<init>(EntityLivingBase.java:155) ~[EntityLivingBase.class:?]
      at net.minecraft.entity.player.EntityPlayer.<init>(EntityPlayer.java:165) ~[EntityPlayer.class:?]
      at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:158) ~[EntityPlayerMP.class:?]
      at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:443) ~[ServerConfigurationManager.class:?]
      at net.minecraft.server.network.NetHandlerLoginServer.func_147326_c(NetHandlerLoginServer.java:105) ~[NetHandlerLoginServer.class:?]
      at net.minecraft.server.network.NetHandlerLoginServer.onNetworkTick(NetHandlerLoginServer.java:64) ~[NetHandlerLoginServer.class:?]
      at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:244) ~[NetworkManager.class:?]
      at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) ~[NetworkSystem.class:?]
      … 5 more
      [16:36:47] [Server thread/ERROR]: This crash report has been saved to: C:\Users\yves\Desktop\mod exta\forge\eclipse\.\crash-reports\crash-2016-06-29_16.36.47-server.txt
      [16:36:47] [Server thread/INFO]: Stopping server
      [16:36:47] [Server thread/INFO]: Saving players
      [16:36:47] [Server thread/INFO]: Saving worlds
      [16:36:47] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
      [16:36:47] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
      // I bet Cylons wouldn't have this problem.
      
      Time: 29/06/16 16:36
      Description: Ticking memory connection
      
      java.lang.NullPointerException: Ticking memory connection
      at Channel.ExtendVieLv.Lv(ExtendVieLv.java:161)
      at Channel.EventHardler.onEntityConstructing(EventHardler.java:18)
      at cpw.mods.fml.common.eventhandler.ASMEventHandler_6_EventHardler_onEntityConstructing_EntityConstructing.invoke(.dynamic)
      at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
      at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
      at net.minecraft.entity.Entity.<init>(Entity.java:224)
      at net.minecraft.entity.EntityLivingBase.<init>(EntityLivingBase.java:155)
      at net.minecraft.entity.player.EntityPlayer.<init>(EntityPlayer.java:165)
      at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:158)
      at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:443)
      at net.minecraft.server.network.NetHandlerLoginServer.func_147326_c(NetHandlerLoginServer.java:105)
      at net.minecraft.server.network.NetHandlerLoginServer.onNetworkTick(NetHandlerLoginServer.java:64)
      at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:244)
      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 Channel.ExtendVieLv.Lv(ExtendVieLv.java:161)
      at Channel.EventHardler.onEntityConstructing(EventHardler.java:18)
      at cpw.mods.fml.common.eventhandler.ASMEventHandler_6_EventHardler_onEntityConstructing_EntityConstructing.invoke(.dynamic)
      at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
      at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
      at net.minecraft.entity.Entity.<init>(Entity.java:224)
      at net.minecraft.entity.EntityLivingBase.<init>(EntityLivingBase.java:155)
      at net.minecraft.entity.player.EntityPlayer.<init>(EntityPlayer.java:165)
      at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:158)
      at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:443)
      at net.minecraft.server.network.NetHandlerLoginServer.func_147326_c(NetHandlerLoginServer.java:105)
      at net.minecraft.server.network.NetHandlerLoginServer.onNetworkTick(NetHandlerLoginServer.java:64)
      at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:244)
      
      -- Ticking connection --
      Details:
      Connection: net.minecraft.network.NetworkManager@3f0a95ba
      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 10 (amd64) version 10.0
      Java Version: 1.8.0_91, Oracle Corporation
      Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
      Memory: 895517392 bytes (854 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 0, tcache: 0, allocated: 12, tallocated: 94
      FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 4 mods loaded, 4 mods active
      States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
      UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
      UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
      UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
      UCHIJAAAA extaziliamod{1.2} [Extazilia Mod] (bin)
      GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
      Profiler Position: N/A (disabled)
      Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
      Player Count: 0 / 8; []
      Type: Integrated Server (map_client.txt)
      Is Modded: Definitely; Client brand changed to 'fml,forge'
      [16:36:47] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
      [16:36:47] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2016-06-29_16.36.47-server.txt
      [16:36:47] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.
      [16:36:47] [Server thread/INFO]: Saving chunks for level 'New World'/The End
      [16:36:47] [Server thread/INFO] [FML]: Unloading dimension 0
      [16:36:47] [Server thread/INFO] [FML]: Unloading dimension -1
      [16:36:47] [Server thread/INFO] [FML]: Unloading dimension 1
      [16:36:47] [Server thread/INFO] [FML]: Applying holder lookups
      [16:36:47] [Server thread/INFO] [FML]: Holder lookups applied
      [16:36:47] [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:36:47] [Client thread/INFO] [FML]: Server terminated.
      AL lib: (EE) alc_cleanup: 1 device not closed
      Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
      
      
      package Channel;
      
      import com.google.common.base.Strings;
      
      import cpw.mods.fml.common.network.simpleimpl.IMessage;
      import fr.extazilia.extaziliamod.common.Main;
      import fr.extazilia.extaziliamod.proxy.CommonProxy;
      import io.netty.buffer.ByteBuf;
      import io.netty.channel.ChannelHandlerContext;
      import net.minecraft.entity.Entity;
      import net.minecraft.entity.SharedMonsterAttributes;
      import net.minecraft.entity.ai.attributes.AttributeModifier;
      import net.minecraft.entity.ai.attributes.IAttributeInstance;
      import net.minecraft.entity.player.EntityPlayer;
      import net.minecraft.entity.player.EntityPlayerMP;
      import net.minecraft.nbt.NBTTagCompound;
      import net.minecraft.potion.PotionEffect;
      import net.minecraft.util.ChatComponentText;
      import net.minecraft.world.World;
      import net.minecraftforge.common.IExtendedEntityProperties;
      
      public class ExtendVieLv implements IExtendedEntityProperties{
      
      public final static String EXT_Vie = "PropVie";
      private EntityPlayer player;
      public String Lv;
      public long LevelV;
      public static long LLv;
      
      public ExtendVieLv(EntityPlayer player) {
      this.player = player;
      this.Lv = "";
      this.LevelV = 0;
      }
      
          public static final void register(EntityPlayer player) {
          player.registerExtendedProperties(ExtendVieLv.EXT_Vie,new ExtendVieLv(player));}
      
          public static final ExtendVieLv get(EntityPlayer player) {
          return (ExtendVieLv) player.getExtendedProperties(EXT_Vie);
          }
      
      @Override
      public void saveNBTData(NBTTagCompound compound) {
      NBTTagCompound properties = new NBTTagCompound();
      properties.setLong("NiveauxVie", this.LevelV);
      compound.setTag(EXT_Vie, properties);
      }
      
      @Override
      public void loadNBTData(NBTTagCompound compound) {
      NBTTagCompound properties = (NBTTagCompound) compound.getTag(EXT_Vie);
      this.LevelV = properties.getLong("NiveauxVie");
      }
      
      public final void sync() {
      transformation();
      MyMessage packetMoney = new MyMessage(this.Lv);
              Main.network.sendToServer(packetMoney);
      
      if (!player.worldObj.isRemote) {
      EntityPlayerMP player1 = (EntityPlayerMP) player;
      Main.network.sendTo(packetMoney, player1);
      }
      transformation2();
      return;
      }
      private static String getSaveKey(EntityPlayer player) {
      return player.getDisplayName() + ":" + EXT_Vie;
      }
      
      public static void saveProxyData(EntityPlayer player) {
      ExtendVieLv playerData = ExtendVieLv.get(player);
      NBTTagCompound savedData = new NBTTagCompound();
      
      playerData.saveNBTData(savedData);
      CommonProxy.storeEntityData(getSaveKey(player), savedData);
      }
      
      public static void loadProxyData(EntityPlayer player) {
      ExtendVieLv playerData = ExtendVieLv.get(player);
      NBTTagCompound savedData = CommonProxy.getEntityData(getSaveKey(player));
      
      if (savedData != null) {
      playerData.loadNBTData(savedData);
      }
      playerData.sync();
      }
      
      public String transformation(){
      if (this.LevelV == 0){this.Lv = "0";}
      if (this.LevelV == 1){this.Lv = "1";}
      if (this.LevelV == 2){this.Lv = "2";}
      if (this.LevelV == 3){this.Lv = "3";}
      if (this.LevelV == 4){this.Lv = "4";}
      if (this.LevelV == 5){this.Lv = "5";}
      if (this.LevelV == 6){this.Lv = "6";}
      if (this.LevelV == 7){this.Lv = "7";}
      if (this.LevelV == 8){this.Lv = "8";}
      if (this.LevelV == 9){this.Lv = "9";}
      if (this.LevelV == 10){this.Lv = "10";}
      if (this.LevelV == 11){this.Lv = "11";}
      if (this.LevelV == 12){this.Lv = "12";}
      if (this.LevelV == 13){this.Lv = "13";}
      if (this.LevelV == 14){this.Lv = "14";}
      if (this.LevelV == 15){this.Lv = "15";}
      if (this.LevelV == 16){this.Lv = "16";}
      if (this.LevelV == 17){this.Lv = "17";}
      if (this.LevelV == 18){this.Lv = "18";}
      if (this.LevelV == 19){this.Lv = "19";}
      if (this.LevelV == 20){this.Lv = "20";}
      return Lv;}
      
      public Long transformation2(){
      if(this.Lv=="0"){this.LevelV=0;};
      if(this.Lv=="1"){this.LevelV=1;};
      if(this.Lv=="2"){this.LevelV=2;};
      if(this.Lv=="3"){this.LevelV=3;};
      if(this.Lv=="4"){this.LevelV=4;};
      if(this.Lv=="5"){this.LevelV=5;};
      if(this.Lv=="6"){this.LevelV=6;};
      if(this.Lv=="7"){this.LevelV=7;};
      if(this.Lv=="8"){this.LevelV=8;};
      if(this.Lv=="9"){this.LevelV=9;};
      if(this.Lv=="10"){this.LevelV=10;};
      if(this.Lv=="11"){this.LevelV=11;};
      if(this.Lv=="12"){this.LevelV=12;};
      if(this.Lv=="13"){this.LevelV=13;};
      if(this.Lv=="14"){this.LevelV=14;};
      if(this.Lv=="15"){this.LevelV=15;};
      if(this.Lv=="16"){this.LevelV=16;};
      if(this.Lv=="17"){this.LevelV=17;};
      if(this.Lv=="18"){this.LevelV=18;};
      if(this.Lv=="19"){this.LevelV=19;};
      if(this.Lv=="20"){this.LevelV=20;};
      return LevelV;
      
      }
      
      public boolean LvUp() {
      System.out.println(player);
      if (LevelV < 10 ){
      this.LevelV += 1;
      this.LLv = this.LevelV ;
      AttributeModifier moreHealth = new AttributeModifier(player.getPersistentID(), "Test",4*LLv, 0).setSaved(true); 
      IAttributeInstance attributeinstance = player.getEntityAttribute(SharedMonsterAttributes.maxHealth);
      attributeinstance.removeModifier(moreHealth);
      attributeinstance.applyModifier(moreHealth);
      this.sync();
      return true;}
      else{
      return false;}
      }
      public void Lv(){
      this.LLv = this.LevelV ;
      AttributeModifier moreHealth = new AttributeModifier(player.getPersistentID(), "Test",4*LLv, 0).setSaved(true); 
      IAttributeInstance attributeinstance = player.getEntityAttribute(SharedMonsterAttributes.maxHealth);
      attributeinstance.removeModifier(moreHealth);
      attributeinstance.applyModifier(moreHealth);
      player.addPotionEffect(new PotionEffect(6, 2));
      player.addPotionEffect(new PotionEffect(7, 1));
      player.addPotionEffect(new PotionEffect(6, 2));}
      
      private void Lv1() {
      // TODO Auto-generated method stub
      
      }
      
      @Override
      public void init(Entity entity, World world) {}
      }
      

      Je te donne avec les importations car j’ais du mal à comprendre les lignes de la console.</init></init></init></init></init></init></init></init></init></init></init></init></init></init></init></init>

      1 réponse Dernière réponse Répondre Citer 0
      • AymericRedA Hors-ligne
        AymericRed
        dernière édition par

        Le NPE se situe ici : ```java
        player.addPotionEffect(new PotionEffect(6, 2));

        
        "Je te donne avec les importations car j'ais du mal à comprendre les lignes de la console."
        Il suffisait de cliquer sur la première chose de l'erreur, mais si tu as du mal, je t'invite à regarder la vidéo de robin sur le sujet (je cherche le lien puis je revient).
        EDIT : https://www.youtube.com/watch?v=pGQcCjFUFmM

        Si je vous ai aidé, n'oubliez pas d’être heureux, j'aiderai encore +

        AymericRed, moddeur expérimenté qui aide sur ce forum et qui peut accepter de faire un mod Forge rémunéré de temps en temps.

        Mes tutos : Table de craft, plugin NEI, plugin JEI, modifier l'overlay
        Je suis un membre apprécié et joueur, j'ai déjà obtenu 6 points de réputation.

        1 réponse Dernière réponse Répondre Citer 0
        • Y Hors-ligne
          yveslefou
          dernière édition par

          @‘AymericRed’:

          Le NPE se situe ici : ```java
          player.addPotionEffect(new PotionEffect(6, 2));

          
          "Je te donne avec les importations car j'ais du mal à comprendre les lignes de la console."
          Il suffisait de cliquer sur la première chose de l'erreur, mais si tu as du mal, je t'invite à regarder la vidéo de robin sur le sujet (je cherche le lien puis je revient).
          

          A oui sa vidéo pourrait vraiment m’aider - et je vais faire un test sans les effets de potion alors___En faite cela crash quand même sans les effets de potions.

          [17:17:39] [main/INFO] [GradleStart]: Extra: []
          [17:17:40] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/yves/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
          [17:17:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
          [17:17:40] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
          [17:17:40] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
          [17:17:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
          [17:17:40] [main/INFO] [FML]: Forge Mod Loader version 7.99.40.1614 for Minecraft 1.7.10 loading
          [17:17:40] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_91, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_91
          [17:17:40] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
          [17:17:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
          [17:17:40] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
          [17:17:40] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
          [17:17:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
          [17:17:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
          [17:17:40] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
          [17:17:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
          [17:17:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
          [17:17:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
          [17:17:40] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
          [17:17:43] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
          [17:17:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
          [17:17:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
          [17:17:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
          [17:17:44] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
          [17:17:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
          [17:17:44] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
          [17:17:48] [main/INFO]: Setting user: Player100
          [17:17:52] [Client thread/INFO]: LWJGL Version: 2.9.1
          [17:17:53] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ----
          // This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]
          
          Time: 29/06/16 17:17
          Description: Loading screen debug info
          
          This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
          
          A detailed walkthrough of the error, its code path and all known details is as follows:
          –-------------------------------------------------------------------------------------
          
          -- System Details --
          Details:
          Minecraft Version: 1.7.10
          Operating System: Windows 10 (amd64) version 10.0
          Java Version: 1.8.0_91, Oracle Corporation
          Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
          Memory: 794015224 bytes (757 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 0, tcache: 0, allocated: 0, tallocated: 0
          FML:
          GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 10.18.15.4248' Renderer: 'Intel(R) HD Graphics 4400'
          [17:17:53] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
          [17:17:53] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1614 Initialized
          [17:17:53] [Client thread/INFO] [FML]: Replaced 183 ore recipies
          [17:17:54] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
          [17:17:54] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
          [17:17:54] [Client thread/INFO] [FML]: Searching C:\Users\yves\Desktop\mod exta\forge\eclipse\mods for mods
          [17:18:07] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
          [17:18:08] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, extaziliamod] at CLIENT
          [17:18:08] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, extaziliamod] at SERVER
          [17:18:09] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Extazilia Mod
          [17:18:10] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
          [17:18:10] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
          [17:18:10] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
          [17:18:10] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
          [17:18:10] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
          [17:18:10] [Client thread/INFO] [FML]: Applying holder lookups
          [17:18:10] [Client thread/INFO] [FML]: Holder lookups applied
          [17:18:10] [Client thread/INFO] [FML]: Injecting itemstacks
          [17:18:10] [Client thread/INFO] [FML]: Itemstack injection complete
          [17:18:10] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
          [17:18:10] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
          [17:18:11] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
          [17:18:11] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
          [17:18:11] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
          [17:18:11] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
          [17:18:11] [Sound Library Loader/INFO]: Sound engine started
          [17:18:17] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
          [17:18:17] [Client thread/INFO]: Created: 16x16 textures/items-atlas
          [17:18:17] [Client thread/INFO] [STDOUT]: [fr.extazilia.extaziliamod.proxy.ClientProxy:registerRender:32]: &4test client
          [17:18:17] [Client thread/INFO] [FML]: Injecting itemstacks
          [17:18:17] [Client thread/INFO] [FML]: Itemstack injection complete
          [17:18:17] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
          [17:18:17] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Extazilia Mod
          [17:18:18] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
          [17:18:20] [Client thread/INFO]: Created: 512x256 textures/items-atlas
          [17:18:20] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
          [17:18:20] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
          [17:18:20] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
          [17:18:20] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
          [17:18:20] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
          [17:18:20] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
          [17:18:20] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
          [17:18:20] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
          [17:18:20] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
          [17:18:21] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
          [17:18:21] [Sound Library Loader/INFO]: Sound engine started
          [17:18:47] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:47] [Client thread/ERROR]: @ Post render
          [17:18:47] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:47] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:47] [Client thread/ERROR]: @ Post render
          [17:18:47] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:47] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:47] [Client thread/ERROR]: @ Post render
          [17:18:47] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:47] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:47] [Client thread/ERROR]: @ Post render
          [17:18:47] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:47] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:47] [Client thread/ERROR]: @ Post render
          [17:18:47] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:47] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:47] [Client thread/ERROR]: @ Post render
          [17:18:47] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:47] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:47] [Client thread/ERROR]: @ Post render
          [17:18:47] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:47] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:47] [Client thread/ERROR]: @ Post render
          [17:18:47] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:48] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:48] [Client thread/ERROR]: @ Post render
          [17:18:48] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:48] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:48] [Client thread/ERROR]: @ Post render
          [17:18:48] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:48] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:48] [Client thread/ERROR]: @ Post render
          [17:18:48] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:48] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:48] [Client thread/ERROR]: @ Post render
          [17:18:48] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:48] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:48] [Client thread/ERROR]: @ Post render
          [17:18:48] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:48] [Client thread/ERROR]: ########## GL ERROR ##########
          [17:18:48] [Client thread/ERROR]: @ Post render
          [17:18:48] [Client thread/ERROR]: 1280: Invalid enum
          [17:18:51] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
          [17:18:51] [Server thread/INFO]: Generating keypair
          [17:18:51] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
          [17:18:51] [Server thread/INFO] [FML]: Applying holder lookups
          [17:18:51] [Server thread/INFO] [FML]: Holder lookups applied
          [17:18:51] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@2114cbe6)
          [17:18:51] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@2114cbe6)
          [17:18:51] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@2114cbe6)
          [17:18:51] [Server thread/INFO]: Preparing start region for level 0
          [17:18:52] [Server thread/INFO]: Preparing spawn area: 47%
          [17:18:53] [Server thread/INFO]: Changing view distance to 12, from 10
          [17:18:53] [Server thread/ERROR] [FML]: Exception caught during firing event net.minecraftforge.event.entity.EntityEvent$EntityConstructing@25c46706:
          java.lang.NullPointerException
          at Channel.ExtendVieLv.Lv(ExtendVieLv.java:159) ~[ExtendVieLv.class:?]
          at Channel.EventHardler.onEntityConstructing(EventHardler.java:18) ~[EventHardler.class:?]
          at cpw.mods.fml.common.eventhandler.ASMEventHandler_7_EventHardler_onEntityConstructing_EntityConstructing.invoke(.dynamic) ~[?:?]
          at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?]
          at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) [EventBus.class:?]
          at net.minecraft.entity.Entity.<init>(Entity.java:224) [Entity.class:?]
          at net.minecraft.entity.EntityLivingBase.<init>(EntityLivingBase.java:155) [EntityLivingBase.class:?]
          at net.minecraft.entity.player.EntityPlayer.<init>(EntityPlayer.java:165) [EntityPlayer.class:?]
          at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:158) [EntityPlayerMP.class:?]
          at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:443) [ServerConfigurationManager.class:?]
          at net.minecraft.server.network.NetHandlerLoginServer.func_147326_c(NetHandlerLoginServer.java:105) [NetHandlerLoginServer.class:?]
          at net.minecraft.server.network.NetHandlerLoginServer.onNetworkTick(NetHandlerLoginServer.java:64) [NetHandlerLoginServer.class:?]
          at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:244) [NetworkManager.class:?]
          at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?]
          at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?]
          at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?]
          at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?]
          at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
          at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
          [17:18:53] [Server thread/ERROR] [FML]: Index: 1 Listeners:
          [17:18:53] [Server thread/ERROR] [FML]: 0: NORMAL
          [17:18:53] [Server thread/ERROR] [FML]: 1: ASM: Channel.EventHardler@12f1cdab onEntityConstructing(Lnet/minecraftforge/event/entity/EntityEvent$EntityConstructing;)V
          [17:18:53] [Server thread/ERROR]: Encountered an unexpected exception
          net.minecraft.util.ReportedException: Ticking memory connection
          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 Channel.ExtendVieLv.Lv(ExtendVieLv.java:159) ~[ExtendVieLv.class:?]
          at Channel.EventHardler.onEntityConstructing(EventHardler.java:18) ~[EventHardler.class:?]
          at cpw.mods.fml.common.eventhandler.ASMEventHandler_7_EventHardler_onEntityConstructing_EntityConstructing.invoke(.dynamic) ~[?:?]
          at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?]
          at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) ~[EventBus.class:?]
          at net.minecraft.entity.Entity.<init>(Entity.java:224) ~[Entity.class:?]
          at net.minecraft.entity.EntityLivingBase.<init>(EntityLivingBase.java:155) ~[EntityLivingBase.class:?]
          at net.minecraft.entity.player.EntityPlayer.<init>(EntityPlayer.java:165) ~[EntityPlayer.class:?]
          at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:158) ~[EntityPlayerMP.class:?]
          at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:443) ~[ServerConfigurationManager.class:?]
          at net.minecraft.server.network.NetHandlerLoginServer.func_147326_c(NetHandlerLoginServer.java:105) ~[NetHandlerLoginServer.class:?]
          at net.minecraft.server.network.NetHandlerLoginServer.onNetworkTick(NetHandlerLoginServer.java:64) ~[NetHandlerLoginServer.class:?]
          at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:244) ~[NetworkManager.class:?]
          at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) ~[NetworkSystem.class:?]
          … 5 more
          [17:18:53] [Server thread/ERROR]: This crash report has been saved to: C:\Users\yves\Desktop\mod exta\forge\eclipse\.\crash-reports\crash-2016-06-29_17.18.53-server.txt
          [17:18:53] [Server thread/INFO]: Stopping server
          [17:18:53] [Server thread/INFO]: Saving players
          [17:18:53] [Server thread/INFO]: Saving worlds
          [17:18:53] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
          [17:18:53] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
          // Ouch. That hurt :(
          
          Time: 29/06/16 17:18
          Description: Ticking memory connection
          
          java.lang.NullPointerException: Ticking memory connection
          at Channel.ExtendVieLv.Lv(ExtendVieLv.java:159)
          at Channel.EventHardler.onEntityConstructing(EventHardler.java:18)
          at cpw.mods.fml.common.eventhandler.ASMEventHandler_7_EventHardler_onEntityConstructing_EntityConstructing.invoke(.dynamic)
          at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
          at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
          at net.minecraft.entity.Entity.<init>(Entity.java:224)
          at net.minecraft.entity.EntityLivingBase.<init>(EntityLivingBase.java:155)
          at net.minecraft.entity.player.EntityPlayer.<init>(EntityPlayer.java:165)
          at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:158)
          at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:443)
          at net.minecraft.server.network.NetHandlerLoginServer.func_147326_c(NetHandlerLoginServer.java:105)
          at net.minecraft.server.network.NetHandlerLoginServer.onNetworkTick(NetHandlerLoginServer.java:64)
          at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:244)
          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 Channel.ExtendVieLv.Lv(ExtendVieLv.java:159)
          at Channel.EventHardler.onEntityConstructing(EventHardler.java:18)
          at cpw.mods.fml.common.eventhandler.ASMEventHandler_7_EventHardler_onEntityConstructing_EntityConstructing.invoke(.dynamic)
          at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
          at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
          at net.minecraft.entity.Entity.<init>(Entity.java:224)
          at net.minecraft.entity.EntityLivingBase.<init>(EntityLivingBase.java:155)
          at net.minecraft.entity.player.EntityPlayer.<init>(EntityPlayer.java:165)
          at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:158)
          at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:443)
          at net.minecraft.server.network.NetHandlerLoginServer.func_147326_c(NetHandlerLoginServer.java:105)
          at net.minecraft.server.network.NetHandlerLoginServer.onNetworkTick(NetHandlerLoginServer.java:64)
          at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:244)
          
          -- Ticking connection --
          Details:
          Connection: net.minecraft.network.NetworkManager@7f7da1e5
          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 10 (amd64) version 10.0
          Java Version: 1.8.0_91, Oracle Corporation
          Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
          Memory: 900740512 bytes (859 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 0, tcache: 0, allocated: 12, tallocated: 94
          FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 4 mods loaded, 4 mods active
          States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
          UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
          UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
          UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
          UCHIJAAAA extaziliamod{1.2} [Extazilia Mod] (bin)
          GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
          Profiler Position: N/A (disabled)
          Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
          Player Count: 0 / 8; []
          Type: Integrated Server (map_client.txt)
          Is Modded: Definitely; Client brand changed to 'fml,forge'
          [17:18:53] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
          [17:18:54] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2016-06-29_17.18.53-server.txt
          [17:18:54] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.
          [17:18:54] [Server thread/INFO]: Saving chunks for level 'New World'/The End
          [17:18:54] [Server thread/INFO] [FML]: Unloading dimension 0
          [17:18:54] [Server thread/INFO] [FML]: Unloading dimension -1
          [17:18:54] [Server thread/INFO] [FML]: Unloading dimension 1
          [17:18:54] [Server thread/INFO] [FML]: Applying holder lookups
          [17:18:54] [Server thread/INFO] [FML]: Holder lookups applied
          [17:18:54] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
          [17:18:54] [Client thread/INFO] [FML]: Server terminated.
          AL lib: (EE) alc_cleanup: 1 device not closed
          Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
          
          

          La classe sans les effets de potion :

          package Channel;
          
          import com.google.common.base.Strings;
          
          import cpw.mods.fml.common.network.simpleimpl.IMessage;
          import fr.extazilia.extaziliamod.common.Main;
          import fr.extazilia.extaziliamod.proxy.CommonProxy;
          import io.netty.buffer.ByteBuf;
          import io.netty.channel.ChannelHandlerContext;
          import net.minecraft.entity.Entity;
          import net.minecraft.entity.SharedMonsterAttributes;
          import net.minecraft.entity.ai.attributes.AttributeModifier;
          import net.minecraft.entity.ai.attributes.IAttributeInstance;
          import net.minecraft.entity.player.EntityPlayer;
          import net.minecraft.entity.player.EntityPlayerMP;
          import net.minecraft.nbt.NBTTagCompound;
          import net.minecraft.potion.PotionEffect;
          import net.minecraft.util.ChatComponentText;
          import net.minecraft.world.World;
          import net.minecraftforge.common.IExtendedEntityProperties;
          
          public class ExtendVieLv implements IExtendedEntityProperties{
          
          public final static String EXT_Vie = "PropVie";
          private EntityPlayer player;
          public String Lv;
          public long LevelV;
          public static long LLv;
          
          public ExtendVieLv(EntityPlayer player) {
          this.player = player;
          this.Lv = "";
          this.LevelV = 0;
          }
          
              public static final void register(EntityPlayer player) {
              player.registerExtendedProperties(ExtendVieLv.EXT_Vie,new ExtendVieLv(player));}
          
              public static final ExtendVieLv get(EntityPlayer player) {
              return (ExtendVieLv) player.getExtendedProperties(EXT_Vie);
              }
          
          @Override
          public void saveNBTData(NBTTagCompound compound) {
          NBTTagCompound properties = new NBTTagCompound();
          properties.setLong("NiveauxVie", this.LevelV);
          compound.setTag(EXT_Vie, properties);
          }
          
          @Override
          public void loadNBTData(NBTTagCompound compound) {
          NBTTagCompound properties = (NBTTagCompound) compound.getTag(EXT_Vie);
          this.LevelV = properties.getLong("NiveauxVie");
          }
          
          public final void sync() {
          transformation();
          MyMessage packetMoney = new MyMessage(this.Lv);
                  Main.network.sendToServer(packetMoney);
          
          if (!player.worldObj.isRemote) {
          EntityPlayerMP player1 = (EntityPlayerMP) player;
          Main.network.sendTo(packetMoney, player1);
          }
          transformation2();
          return;
          }
          private static String getSaveKey(EntityPlayer player) {
          return player.getDisplayName() + ":" + EXT_Vie;
          }
          
          public static void saveProxyData(EntityPlayer player) {
          ExtendVieLv playerData = ExtendVieLv.get(player);
          NBTTagCompound savedData = new NBTTagCompound();
          
          playerData.saveNBTData(savedData);
          CommonProxy.storeEntityData(getSaveKey(player), savedData);
          }
          
          public static void loadProxyData(EntityPlayer player) {
          ExtendVieLv playerData = ExtendVieLv.get(player);
          NBTTagCompound savedData = CommonProxy.getEntityData(getSaveKey(player));
          
          if (savedData != null) {
          playerData.loadNBTData(savedData);
          }
          playerData.sync();
          }
          
          public String transformation(){
          if (this.LevelV == 0){this.Lv = "0";}
          if (this.LevelV == 1){this.Lv = "1";}
          if (this.LevelV == 2){this.Lv = "2";}
          if (this.LevelV == 3){this.Lv = "3";}
          if (this.LevelV == 4){this.Lv = "4";}
          if (this.LevelV == 5){this.Lv = "5";}
          if (this.LevelV == 6){this.Lv = "6";}
          if (this.LevelV == 7){this.Lv = "7";}
          if (this.LevelV == 8){this.Lv = "8";}
          if (this.LevelV == 9){this.Lv = "9";}
          if (this.LevelV == 10){this.Lv = "10";}
          if (this.LevelV == 11){this.Lv = "11";}
          if (this.LevelV == 12){this.Lv = "12";}
          if (this.LevelV == 13){this.Lv = "13";}
          if (this.LevelV == 14){this.Lv = "14";}
          if (this.LevelV == 15){this.Lv = "15";}
          if (this.LevelV == 16){this.Lv = "16";}
          if (this.LevelV == 17){this.Lv = "17";}
          if (this.LevelV == 18){this.Lv = "18";}
          if (this.LevelV == 19){this.Lv = "19";}
          if (this.LevelV == 20){this.Lv = "20";}
          return Lv;}
          
          public Long transformation2(){
          if(this.Lv=="0"){this.LevelV=0;};
          if(this.Lv=="1"){this.LevelV=1;};
          if(this.Lv=="2"){this.LevelV=2;};
          if(this.Lv=="3"){this.LevelV=3;};
          if(this.Lv=="4"){this.LevelV=4;};
          if(this.Lv=="5"){this.LevelV=5;};
          if(this.Lv=="6"){this.LevelV=6;};
          if(this.Lv=="7"){this.LevelV=7;};
          if(this.Lv=="8"){this.LevelV=8;};
          if(this.Lv=="9"){this.LevelV=9;};
          if(this.Lv=="10"){this.LevelV=10;};
          if(this.Lv=="11"){this.LevelV=11;};
          if(this.Lv=="12"){this.LevelV=12;};
          if(this.Lv=="13"){this.LevelV=13;};
          if(this.Lv=="14"){this.LevelV=14;};
          if(this.Lv=="15"){this.LevelV=15;};
          if(this.Lv=="16"){this.LevelV=16;};
          if(this.Lv=="17"){this.LevelV=17;};
          if(this.Lv=="18"){this.LevelV=18;};
          if(this.Lv=="19"){this.LevelV=19;};
          if(this.Lv=="20"){this.LevelV=20;};
          return LevelV;
          
          }
          
          public boolean LvUp() {
          System.out.println(player);
          if (LevelV < 10 ){
          this.LevelV += 1;
          this.LLv = this.LevelV ;
          AttributeModifier moreHealth = new AttributeModifier(player.getPersistentID(), "Test",4*LLv, 0).setSaved(true); 
          IAttributeInstance attributeinstance = player.getEntityAttribute(SharedMonsterAttributes.maxHealth);
          attributeinstance.removeModifier(moreHealth);
          attributeinstance.applyModifier(moreHealth);
          this.sync();
          return true;}
          else{
          return false;}
          }
          public void Lv(){
          this.LLv = this.LevelV ;
          AttributeModifier moreHealth = new AttributeModifier(player.getPersistentID(), "Test",4*LLv, 0).setSaved(true); 
          IAttributeInstance attributeinstance = player.getEntityAttribute(SharedMonsterAttributes.maxHealth);
          attributeinstance.removeModifier(moreHealth);
          attributeinstance.applyModifier(moreHealth);}
          
          private void Lv1() {
          // TODO Auto-generated method stub
          
          }
          
          @Override
          public void init(Entity entity, World world) {}
          }
          ```</init></init></init></init></init></init></init></init></init></init></init></init></init></init></init></init>
          1 réponse Dernière réponse Répondre Citer 0
          • AymericRedA Hors-ligne
            AymericRed
            dernière édition par

            Attention double post !
            Ajoute la classes sans les trucs de potions pour avoir la ligne du crash (edite ton message).
            Et as-tu des classes de rendu ? Car tu as ça comme erreur :

            [17:18:48] [Client thread/ERROR]: ########## GL ERROR ##########
            [17:18:48] [Client thread/ERROR]: @ Post render
            [17:18:48] [Client thread/ERROR]: 1280: Invalid enum
            ``` (ce n'est pas lié au crash).

            Si je vous ai aidé, n'oubliez pas d’être heureux, j'aiderai encore +

            AymericRed, moddeur expérimenté qui aide sur ce forum et qui peut accepter de faire un mod Forge rémunéré de temps en temps.

            Mes tutos : Table de craft, plugin NEI, plugin JEI, modifier l'overlay
            Je suis un membre apprécié et joueur, j'ai déjà obtenu 6 points de réputation.

            1 réponse Dernière réponse Répondre Citer 0
            • SCAREXS Hors-ligne
              SCAREX
              dernière édition par

              Ici “attributeinstance.removeModifier(moreHealth);” tu devrais vérifier que le joueur a le modifieur.

              PS : fait attention à la convention java, ton code est incompréhensible.

              Site web contenant mes scripts : http://SCAREXgaming.github.io

              Pas de demandes de support par MP ni par skype SVP.
              Je n'accepte sur skype que l…

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

                @‘AymericRed’:

                Le NPE se situe ici : ```java
                player.addPotionEffect(new PotionEffect(6, 2));

                
                "Je te donne avec les importations car j'ais du mal à comprendre les lignes de la console."
                Il suffisait de cliquer sur la première chose de l'erreur, mais si tu as du mal, je t'invite à regarder la vidéo de robin sur le sujet (je cherche le lien puis je revient).
                EDIT : ~~https://www.youtube.com/watch?v=pGQcCjFUFmM~~
                

                Youtube Video

                la vidéo que tu as mit c’est mon test pour jouer un son en asm x)

                1 réponse Dernière réponse Répondre Citer 0
                • Y Hors-ligne
                  yveslefou
                  dernière édition par

                  @‘SCAREX’:

                  Ici “attributeinstance.removeModifier(moreHealth);” tu devrais vérifier que le joueur a le modifieur.

                  PS : fait attention à la convention java, ton code est incompréhensible.

                  Pour ce qui est de la convention j’apprends encore et j’ais vérifier si c’était pas null mais cela crash quand même.

                  1 réponse Dernière réponse Répondre Citer 0
                  • Y Hors-ligne
                    yveslefou
                    dernière édition par

                    @‘robin4002’:

                    @‘AymericRed’:

                    Le NPE se situe ici : ```java
                    player.addPotionEffect(new PotionEffect(6, 2));

                    
                    "Je te donne avec les importations car j'ais du mal à comprendre les lignes de la console."
                    Il suffisait de cliquer sur la première chose de l'erreur, mais si tu as du mal, je t'invite à regarder la vidéo de robin sur le sujet (je cherche le lien puis je revient).
                    EDIT : ~~https://www.youtube.com/watch?v=pGQcCjFUFmM~~
                    

                    Youtube Video

                    la vidéo que tu as mit c’est mon test pour jouer un son en asm x)

                    Merci pour la vidéo je la regarderé dés que je pourrais.

                    1 réponse Dernière réponse Répondre Citer 0
                    • AymericRedA Hors-ligne
                      AymericRed
                      dernière édition par

                      J’avais ça dans mon historique yt ? Bizarre je ne me souviens pas avoir vu ça.

                      Si je vous ai aidé, n'oubliez pas d’être heureux, j'aiderai encore +

                      AymericRed, moddeur expérimenté qui aide sur ce forum et qui peut accepter de faire un mod Forge rémunéré de temps en temps.

                      Mes tutos : Table de craft, plugin NEI, plugin JEI, modifier l'overlay
                      Je suis un membre apprécié et joueur, j'ai déjà obtenu 6 points de réputation.

                      1 réponse Dernière réponse Répondre Citer 0
                      • Y Hors-ligne
                        yveslefou
                        dernière édition par

                        Grâce à la vidéo sur les rapports de crash j’ais peut régler les crash mais il me reste un soucis avec l’event quand le joueur meurt.
                        Il n’y a pas de crash mais ne fais pas ce qu’il faut pour réactialiser la vie maximal du joueur.

                        La fonction qui est utilisé pour actialiser la vie du joueur (Cela marche pour quand le joueur rejoind un monde mais pas quand il meurt).

                        public void Lv(){
                        System.out.println("Ca lance");
                        this.transformation();
                        System.out.print(Lv);
                        if (this.LevelV > 0){
                        AttributeModifier moreHealth = new AttributeModifier(player.getPersistentID(), "Test",4*LevelV, 0).setSaved(true); 
                        IAttributeInstance attributeinstance = player.getEntityAttribute(SharedMonsterAttributes.maxHealth);
                        attributeinstance.removeModifier(moreHealth);
                        attributeinstance.applyModifier(moreHealth);
                        System.out.println("Ca lance version 2");
                        player.addPotionEffect(new PotionEffect(6,1));
                        player.addPotionEffect(new PotionEffect(7,1));
                        player.addPotionEffect(new PotionEffect(10,800,1));}}
                        

                        Une partie de la console :

                        [13:28:14] [Client thread/INFO]: [CHAT] Player882 suffocated in a wall
                        [13:28:15] [Server thread/INFO] [STDOUT]: [Channel.ExtendVieLv:Lv:155]: Ca lance
                        0[13:28:15] [Server thread/INFO] [STDOUT]: [Channel.MyMessage$Handler:onMessage:33]: Received 10 from Player882
                        

                        Je pense que cela veut bien dire que LevelV est bien supérieur à zéro mais je n’arrive pas alors à comprendre pourquoi la vie n’est pas appliqué.

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

                          print la valeur de this.LevelV

                          1 réponse Dernière réponse Répondre Citer 0
                          • Y Hors-ligne
                            yveslefou
                            dernière édition par

                            @‘robin4002’:

                            print la valeur de this.LevelV

                            Il renvoie 10 qui est bien sa valeur.

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

                              Étrange qu’il n’y ait pas Ca lance version 2 dans les logs ni l’effet 😕

                              1 réponse Dernière réponse Répondre Citer 0
                              • Y Hors-ligne
                                yveslefou
                                dernière édition par

                                @‘robin4002’:

                                Étrange qu’il n’y ait pas Ca lance version 2 dans les logs ni l’effet 😕

                                Je sais je ne comprend moi aussi l’erreur mais je pense contourner le probléme avec un event de forge playerEvent.PlayerRespawnEvent. Le soucie est que je ne sais pas comment l’exploiter.

                                1 réponse Dernière réponse Répondre Citer 0
                                • RedRelayR Hors-ligne
                                  RedRelay Moddeurs confirmés
                                  dernière édition par

                                  @‘BrokenSwing’:

                                  
                                  public String transformation(){
                                  if (this.LevelV == 0){this.Lv = "0";}
                                  if (this.LevelV == 1){this.Lv = "1";}
                                  if (this.LevelV == 2){this.Lv = "2";}
                                  if (this.LevelV == 3){this.Lv = "3";}
                                  if (this.LevelV == 4){this.Lv = "4";}
                                  if (this.LevelV == 5){this.Lv = "5";}
                                  if (this.LevelV == 6){this.Lv = "6";}
                                  if (this.LevelV == 7){this.Lv = "7";}
                                  if (this.LevelV == 8){this.Lv = "8";}
                                  if (this.LevelV == 9){this.Lv = "9";}
                                  if (this.LevelV == 10){this.Lv = "10";}
                                  if (this.LevelV == 11){this.Lv = "11";}
                                  if (this.LevelV == 12){this.Lv = "12";}
                                  if (this.LevelV == 13){this.Lv = "13";}
                                  if (this.LevelV == 14){this.Lv = "14";}
                                  if (this.LevelV == 15){this.Lv = "15";}
                                  if (this.LevelV == 16){this.Lv = "16";}
                                  if (this.LevelV == 17){this.Lv = "17";}
                                  if (this.LevelV == 18){this.Lv = "18";}
                                  if (this.LevelV == 19){this.Lv = "19";}
                                  if (this.LevelV == 20){this.Lv = "20";}
                                  return Lv;}
                                  
                                  

                                  Devient :

                                  
                                  public String transformation() {
                                  this.Lv = new String(this.LevelV);
                                  return Lv;
                                  }
                                  
                                  

                                  Ça a rien avoir ton problème mais faut pas abuser

                                  J’ai pas tout lu, mais la non plus faut pas abuser :

                                  
                                  public String transformation() {
                                  this.Lv = new String(this.LevelV);
                                  return Lv;
                                  }
                                  
                                  

                                  Devient

                                  
                                  public void transformation() {
                                  this.Lv = Integer.toString(this.LevelV);
                                  }
                                  
                                  

                                  On n’appel jamais “new” quand on utilise une chaîne de caractères.
                                  Tout ça pour une fonction transformation() qui n’a pas lieu d’être car les attributs de tes objets n’ont aucun sens, tu dupliques les valeurs en fonction de leur type, ça va créer des incohérences dans ton objet
                                  Tu n’a besoin que de this.lv (oui une petite relecture des conventions de nommage, ça pourrait t’être utile 😉 )

                                  Pour comprendre ton erreur, met des breakpoints et utilise le debugger d’eclipse 😉

                                  –------------------------------------------------------------------------------------
                                  Si tu trouves mon intervention pertinente, n'hésite pas a m…

                                  1 réponse Dernière réponse Répondre Citer 0
                                  • Y Hors-ligne
                                    yveslefou
                                    dernière édition par

                                    J’ais compris l’erreur mais je ne la comprend pas.
                                    En faite la variable LevelV vaut 0 lorsque le joueur meurt.

                                    Les code lorsque le joueur change de monde (qui marche trés bien) :

                                    [14:18:50] [Server thread/INFO] [STDOUT]: [Channel.ExtendVieLv:Lv:155]: Ca lance
                                    10
                                    [14:18:50] [Server thread/INFO] [STDOUT]: [Channel.ExtendVieLv:Lv:158]: Le if passe
                                    [14:18:50] [Server thread/INFO] [STDOUT]: [Channel.ExtendVieLv:Lv:160]: Le if passe 2
                                    [14:18:50] [Server thread/INFO] [STDOUT]: [Channel.ExtendVieLv:Lv:162]: Le if passe 3
                                    [14:18:50] [Server thread/INFO] [STDOUT]: [Channel.ExtendVieLv:Lv:165]: Ca lance version 2
                                    [14:18:50] [Server thread/INFO] [STDOUT]: [Channel.ExtendVieLv:Lv:169]: Effet de potion passé
                                    

                                    mais lorsqu’il meurt on a :

                                    [14:18:52] [Server thread/INFO] [STDOUT]: [Channel.ExtendVieLv:Lv:155]: Ca lance
                                    0
                                    

                                    La fonction lorsque le joueur change de monde ou meurt :

                                    public void Lv(){
                                    System.out.println("Ca lance");
                                    System.out.println(LevelV);
                                    if (this.LevelV > 0){
                                    System.out.println("Le if passe");
                                    AttributeModifier moreHealth = new AttributeModifier(player.getPersistentID(), "Test",4*LevelV, 0).setSaved(true); 
                                    System.out.println("Le if passe 2");
                                    IAttributeInstance attributeinstance = player.getEntityAttribute(SharedMonsterAttributes.maxHealth);
                                    System.out.println("Le if passe 3");
                                    attributeinstance.removeModifier(moreHealth);
                                    attributeinstance.applyModifier(moreHealth);
                                    System.out.println("Ca lance version 2");
                                    player.addPotionEffect(new PotionEffect(6,1));
                                    player.addPotionEffect(new PotionEffect(7,1));
                                    player.addPotionEffect(new PotionEffect(10,800,1));
                                    System.out.println("Effet de potion passé");}}
                                    

                                    La classe compléte :

                                    package Channel;
                                    
                                    import com.google.common.base.Strings;
                                    
                                    import cpw.mods.fml.common.network.simpleimpl.IMessage;
                                    import fr.extazilia.extaziliamod.common.Main;
                                    import fr.extazilia.extaziliamod.proxy.CommonProxy;
                                    import io.netty.buffer.ByteBuf;
                                    import io.netty.channel.ChannelHandlerContext;
                                    import net.minecraft.entity.Entity;
                                    import net.minecraft.entity.SharedMonsterAttributes;
                                    import net.minecraft.entity.ai.attributes.AttributeModifier;
                                    import net.minecraft.entity.ai.attributes.IAttributeInstance;
                                    import net.minecraft.entity.player.EntityPlayer;
                                    import net.minecraft.entity.player.EntityPlayerMP;
                                    import net.minecraft.nbt.NBTTagCompound;
                                    import net.minecraft.potion.PotionEffect;
                                    import net.minecraft.util.ChatComponentText;
                                    import net.minecraft.world.World;
                                    import net.minecraftforge.common.IExtendedEntityProperties;
                                    
                                    public class ExtendVieLv implements IExtendedEntityProperties{
                                    
                                    public final static String EXT_Vie = "PropVie";
                                    private EntityPlayer player;
                                    public String Lv;
                                    public long LevelV;
                                    public static long LLv;
                                    
                                    public ExtendVieLv(EntityPlayer player) {
                                    this.player = player;
                                    this.Lv = "";
                                    this.LevelV = 0;
                                    }
                                    
                                        public static final void register(EntityPlayer player) {
                                        player.registerExtendedProperties(ExtendVieLv.EXT_Vie,new ExtendVieLv(player));}
                                    
                                        public static final ExtendVieLv get(EntityPlayer player) {
                                        return (ExtendVieLv) player.getExtendedProperties(EXT_Vie);
                                        }
                                    
                                    @Override
                                    public void saveNBTData(NBTTagCompound compound) {
                                    NBTTagCompound properties = new NBTTagCompound();
                                    properties.setLong("NiveauxVie", this.LevelV);
                                    compound.setTag(EXT_Vie, properties);
                                    }
                                    
                                    @Override
                                    public void loadNBTData(NBTTagCompound compound) {
                                    NBTTagCompound properties = (NBTTagCompound) compound.getTag(EXT_Vie);
                                    this.LevelV = properties.getLong("NiveauxVie");
                                    }
                                    
                                    public final void sync() {
                                    transformation();
                                    MyMessage packetMoney = new MyMessage(this.Lv);
                                            Main.network.sendToServer(packetMoney);
                                    
                                    if (!player.worldObj.isRemote) {
                                    EntityPlayerMP player1 = (EntityPlayerMP) player;
                                    Main.network.sendTo(packetMoney, player1);
                                    }
                                    transformation2();
                                    return;
                                    }
                                    private static String getSaveKey(EntityPlayer player) {
                                    return player.getDisplayName() + ":" + EXT_Vie;
                                    }
                                    
                                    public static void saveProxyData(EntityPlayer player) {
                                    ExtendVieLv playerData = ExtendVieLv.get(player);
                                    NBTTagCompound savedData = new NBTTagCompound();
                                    
                                    playerData.saveNBTData(savedData);
                                    CommonProxy.storeEntityData(getSaveKey(player), savedData);
                                    }
                                    
                                    public static void loadProxyData(EntityPlayer player) {
                                    ExtendVieLv playerData = ExtendVieLv.get(player);
                                    NBTTagCompound savedData = CommonProxy.getEntityData(getSaveKey(player));
                                    
                                    if (savedData != null) {
                                    playerData.loadNBTData(savedData);
                                    }
                                    playerData.sync();
                                    }
                                    
                                    public String transformation(){
                                    if (this.LevelV == 0){this.Lv = "0";}
                                    if (this.LevelV == 1){this.Lv = "1";}
                                    if (this.LevelV == 2){this.Lv = "2";}
                                    if (this.LevelV == 3){this.Lv = "3";}
                                    if (this.LevelV == 4){this.Lv = "4";}
                                    if (this.LevelV == 5){this.Lv = "5";}
                                    if (this.LevelV == 6){this.Lv = "6";}
                                    if (this.LevelV == 7){this.Lv = "7";}
                                    if (this.LevelV == 8){this.Lv = "8";}
                                    if (this.LevelV == 9){this.Lv = "9";}
                                    if (this.LevelV == 10){this.Lv = "10";}
                                    if (this.LevelV == 11){this.Lv = "11";}
                                    if (this.LevelV == 12){this.Lv = "12";}
                                    if (this.LevelV == 13){this.Lv = "13";}
                                    if (this.LevelV == 14){this.Lv = "14";}
                                    if (this.LevelV == 15){this.Lv = "15";}
                                    if (this.LevelV == 16){this.Lv = "16";}
                                    if (this.LevelV == 17){this.Lv = "17";}
                                    if (this.LevelV == 18){this.Lv = "18";}
                                    if (this.LevelV == 19){this.Lv = "19";}
                                    if (this.LevelV == 20){this.Lv = "20";}
                                    return Lv;}
                                    
                                    public Long transformation2(){
                                    if(this.Lv=="0"){this.LevelV=0;};
                                    if(this.Lv=="1"){this.LevelV=1;};
                                    if(this.Lv=="2"){this.LevelV=2;};
                                    if(this.Lv=="3"){this.LevelV=3;};
                                    if(this.Lv=="4"){this.LevelV=4;};
                                    if(this.Lv=="5"){this.LevelV=5;};
                                    if(this.Lv=="6"){this.LevelV=6;};
                                    if(this.Lv=="7"){this.LevelV=7;};
                                    if(this.Lv=="8"){this.LevelV=8;};
                                    if(this.Lv=="9"){this.LevelV=9;};
                                    if(this.Lv=="10"){this.LevelV=10;};
                                    if(this.Lv=="11"){this.LevelV=11;};
                                    if(this.Lv=="12"){this.LevelV=12;};
                                    if(this.Lv=="13"){this.LevelV=13;};
                                    if(this.Lv=="14"){this.LevelV=14;};
                                    if(this.Lv=="15"){this.LevelV=15;};
                                    if(this.Lv=="16"){this.LevelV=16;};
                                    if(this.Lv=="17"){this.LevelV=17;};
                                    if(this.Lv=="18"){this.LevelV=18;};
                                    if(this.Lv=="19"){this.LevelV=19;};
                                    if(this.Lv=="20"){this.LevelV=20;};
                                    return LevelV;
                                    
                                    }
                                    
                                    public boolean LvUp() {
                                    System.out.println(player);
                                    if (LevelV < 10 ){
                                    this.LevelV += 1;
                                    AttributeModifier moreHealth = new AttributeModifier(player.getPersistentID(), "Test",4*LevelV, 0).setSaved(true); 
                                    IAttributeInstance attributeinstance = player.getEntityAttribute(SharedMonsterAttributes.maxHealth);
                                    attributeinstance.removeModifier(moreHealth);
                                    attributeinstance.applyModifier(moreHealth);
                                    this.sync();
                                    return true;}
                                    else{
                                    return false;}
                                    }
                                    public void Lv(){
                                    System.out.println("Ca lance");
                                    System.out.println(LevelV);
                                    if (this.LevelV > 0){
                                    System.out.println("Le if passe");
                                    AttributeModifier moreHealth = new AttributeModifier(player.getPersistentID(), "Test",4*LevelV, 0).setSaved(true); 
                                    System.out.println("Le if passe 2");
                                    IAttributeInstance attributeinstance = player.getEntityAttribute(SharedMonsterAttributes.maxHealth);
                                    System.out.println("Le if passe 3");
                                    attributeinstance.removeModifier(moreHealth);
                                    attributeinstance.applyModifier(moreHealth);
                                    System.out.println("Ca lance version 2");
                                    player.addPotionEffect(new PotionEffect(6,1));
                                    player.addPotionEffect(new PotionEffect(7,1));
                                    player.addPotionEffect(new PotionEffect(10,800,1));
                                    System.out.println("Effet de potion passé");}}
                                    
                                    public void Check(){
                                    this.transformation();
                                    System.out.println(Lv);
                                    player.addChatMessage(new ChatComponentText(Lv));
                                    }
                                    
                                    private void Lv1() {
                                    // TODO Auto-generated method stub
                                    
                                    }
                                    
                                    @Override
                                    public void init(Entity entity, World world) {}
                                    }
                                    

                                    La classe d’event :

                                    public class EventHardler {
                                    public EntityPlayer player;
                                    
                                    @SubscribeEvent
                                    public void onEntityConstructing(EntityConstructing event) {
                                    if (event.entity instanceof EntityPlayer&& ExtendVieLv.get((EntityPlayer) event.entity) == null)
                                    ExtendVieLv.register((EntityPlayer) event.entity);}
                                    
                                    @SubscribeEvent
                                    public void onLivingDeathEvent(LivingDeathEvent event) {
                                    if (!event.entity.worldObj.isRemote&& event.entity instanceof EntityPlayer) {
                                    ExtendVieLv props = ExtendVieLv.get((EntityPlayer) event.entity);
                                    props.Lv();
                                    NBTTagCompound playerData = new NBTTagCompound();
                                    ((ExtendVieLv) (event.entity.getExtendedProperties(ExtendVieLv.EXT_Vie))).saveNBTData(playerData);
                                    CommonProxy.storeEntityData(((EntityPlayer) event.entity).getDisplayName(), playerData);
                                    ExtendVieLv.saveProxyData((EntityPlayer) event.entity);} else {}
                                    }
                                    @SubscribeEvent
                                    public void onEntityJoinWorld(EntityJoinWorldEvent event) {
                                    if (!event.entity.worldObj.isRemote&& event.entity instanceof EntityPlayer) {
                                    ExtendVieLv props = ExtendVieLv.get((EntityPlayer) event.entity);
                                    props.Lv();
                                    NBTTagCompound playerData = CommonProxy.getEntityData(((EntityPlayer) event.entity).getDisplayName());
                                    if (playerData != null) {
                                    ((ExtendVieLv) (event.entity.getExtendedProperties(ExtendVieLv.EXT_Vie))).loadNBTData(playerData);}
                                    ((ExtendVieLv) (event.entity.getExtendedProperties(ExtendVieLv.EXT_Vie))).sync();}}}
                                    

                                    PS : pour ceux qui mon conseillé de modifié transformation, les solutions qui mon était donné sont détecté comme des erreurs néanmoins merci quand même cela me permettras de savoir quoi rechercher.

                                    1 réponse Dernière réponse Répondre Citer 0
                                    • BrokenSwingB Hors-ligne
                                      BrokenSwing Moddeurs confirmés Rédacteurs
                                      dernière édition par

                                      Ou il y a encore

                                      
                                      chaineCaractere = "" + nombre;
                                      
                                      
                                      1 réponse Dernière réponse Répondre Citer 0
                                      • Y Hors-ligne
                                        yveslefou
                                        dernière édition par

                                        @‘BrokenSwing’:

                                        Ou il y a encore

                                        
                                        chaineCaractere = "" + nombre;
                                        
                                        

                                        Je vais essayer et sinon aurais tu une idée pourquoi lorsque le joueur LevelV tombe à zero mais a bien sa valeur lorsqu’il change de monde ?

                                        1 réponse Dernière réponse Répondre Citer 0
                                        • RedRelayR Hors-ligne
                                          RedRelay Moddeurs confirmés
                                          dernière édition par

                                          @‘BrokenSwing’:

                                          Ou il y a encore

                                          
                                          chaineCaractere = "" + nombre;
                                          
                                          

                                          Ce qui après compilation revient a new StringBuilder(“”).append(Integer.toString(nombre)).toString().
                                          Donc méthode de crado moins performante

                                          –------------------------------------------------------------------------------------
                                          Si tu trouves mon intervention pertinente, n'hésite pas a m…

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

                                          MINECRAFT FORGE FRANCE © 2024

                                          Powered by NodeBB