Problème Invetory + Item comme une map
-
Le crash report ?
-
Ha oui effectivement excusé moi le voici :
[19:44:04] [Client thread/FATAL]: Reported exception thrown! net.minecraft.util.ReportedException: Rendering item at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1092) ~[blt.class:?] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1001) ~[bao.class:?] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:898) [bao.class:?] at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] Caused by: java.lang.IllegalStateException: Not tesselating! at net.minecraft.client.renderer.Tessellator.func_78381_a(Tessellator.java:70) ~[bmh.class:?] at fr.ph1823.MyLife.Item.IdentityTechneRender.handleRenderType(IdentityTechneRender.java:65) ~[IdentityTechneRender.class:?] at net.minecraftforge.client.MinecraftForgeClient.getItemRenderer(MinecraftForgeClient.java:37) ~[MinecraftForgeClient.class:?] at net.minecraftforge.client.ForgeHooksClient.renderInventoryItem(ForgeHooksClient.java:155) ~[ForgeHooksClient.class:?] at net.minecraft.client.renderer.entity.RenderItem.func_82406_b(RenderItem.java:563) ~[bny.class:?] at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:271) ~[bex.class:?] at net.minecraft.client.gui.inventory.GuiContainer.func_73863_a(GuiContainer.java:99) ~[bex.class:?] at net.minecraft.client.renderer.InventoryEffectRenderer.func_73863_a(InventoryEffectRenderer.java:38) ~[bfo.class:?] at net.minecraft.client.gui.inventory.GuiContainerCreative.func_73863_a(GuiContainerCreative.java:638) ~[bfl.class:?] at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1061) ~[blt.class:?] … 9 more -
tessellator.startDrawingQuads(); tessellator.addVertexWithUV((double)((float)(b0 + 0) + f), (double)((float)(b1 + 128) - f), -0.009999999776482582D, 0.0D, 1.0D); tessellator.addVertexWithUV((double)((float)(b0 + 128) - f), (double)((float)(b1 + 128) - f), -0.009999999776482582D, 1.0D, 1.0D); tessellator.addVertexWithUV((double)((float)(b0 + 128) - f), (double)((float)(b1 + 0) + f), -0.009999999776482582D, 1.0D, 0.0D); tessellator.addVertexWithUV((double)((float)(b0 + 0) + f), (double)((float)(b1 + 0) + f), -0.009999999776482582D, 0.0D, 0.0D); tessellator.draw(); tessellator.draw();Tu dessines 2 fois sans commencer à dessiner, supprime le dernier
PS : mets plutôt dans une balise code
-
La balise bt à la place de la balise code x)
-
Bonjours, maintenance ca me mais un crahs avec nullpointer exception alors que toutes mais variables sont définei voici l’erreur :
22:59:38] [Client thread/INFO] [STDOUT]: [tv.twitch.StandardCoreAPI:<init>:16]: If on Windows, make sure to provide all of the necessary dll's as specified in the twitchsdk README. Also, make sure to set the PATH environment variable to point to the directory containing the dll's. [22:59:38] [Client thread/ERROR]: Couldn't initialize twitch stream [22:59:39] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ---- // Don't be sad, have a hug! <3 Time: 31/03/16 22:59 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_77, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 51335160 bytes (48 MB) / 129761280 bytes (123 MB) up to 2100035584 bytes (2002 MB) JVM Flags: 3 total; -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy 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: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 364.51' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2' [22:59:39] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [22:59:39] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1541 Initialized [22:59:39] [Client thread/INFO] [FML]: Replaced 183 ore recipies [22:59:39] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [22:59:39] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [22:59:39] [Client thread/INFO] [FML]: Searching C:\Users\ph1823 - Minecraft\AppData\Roaming\.MyLife\mods for mods [22:59:44] [Client thread/INFO] [FML]: Attempting to reparse the mod container [1.7.10]SecurityCraft v1.8.1.jar [22:59:45] [Client thread/INFO] [MonoblocksMultipart]: Mod MonoblocksMultipart is missing the required element 'name'. Substituting MonoblocksMultipart [22:59:45] [Client thread/INFO] [FML]: Forge Mod Loader has identified 17 mods to load [22:59:45] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, securitycraft, BiblioCraft, CarpentersBlocks, chisel, customnpcs, PTRModelLib, props, flansmod, flenixcities, gvc, Monoblocks, MonoblocksMultipart, cfm, MyLife] at CLIENT [22:59:45] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, securitycraft, BiblioCraft, CarpentersBlocks, chisel, customnpcs, PTRModelLib, props, flansmod, flenixcities, gvc, Monoblocks, MonoblocksMultipart, cfm, MyLife] at SERVER [22:59:47] [Client thread/ERROR] [FML]: An error occured trying to load a proxy into {serverSide=fr.ph1823.MyLife.Proxy.CommonProxy, clientSide=fr.ph1823.MyLife.Proxy.ClientProxy}.fr.ph1823.MyLife.GloryRP java.lang.NullPointerException at fr.ph1823.MyLife.Item.IdentityTechneRender.<init>(IdentityTechneRender.java:38) ~[IdentityTechneRender.class:?] at fr.ph1823.MyLife.Proxy.ClientProxy.<init>(ClientProxy.java:14) ~[ClientProxy.class:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_77] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_77] at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_77] at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_77] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) [ProxyInjector.class:?] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:512) [FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) [LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) [LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) [bao.class:?] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) [bao.class:?] at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] [22:59:47] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue [22:59:47] [Client thread/ERROR] [FML]: States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UC mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UC FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1541-1.7.10.jar) UC Forge{10.13.4.1541} [Minecraft Forge] (forge-1.7.10-10.13.4.1541-1.7.10.jar) UC securitycraft{v1.8.1} [SecurityCraft] ([1.7.10]SecurityCraft v1.8.1.jar) UC BiblioCraft{1.11.4} [BiblioCraft] (BiblioCraft[v1.11.4][MC1.7.10].jar) UC CarpentersBlocks{3.3.0 DEV R4} [Carpenter's Blocks] (CarpenterBlocks.jar) UC chisel{1.5.7} [Chisel] (Chisel[v1.5.7][1.7.10].jar) UC customnpcs{1.7.10d} [CustomNpcs] (CustomNPCs[vd][1.7.10].jar) UC PTRModelLib{1.0.0} [PTRModelLib] (Decocraft-2.1.1_1.7.10.jar) UC props{2.1.1} [Decocraft] (Decocraft-2.1.1_1.7.10.jar) UC flansmod{4.10.0} [Flan's Mod] (FlansMod-1.7.10-4.10.0.jar) UC flenixcities{0.16.1} [FlenixCities] (FlenixCitiesCore_[1.7.10]-0.16.1-b127.jar) UC gvc{0.6.1} [§aGliby's§f Voice Chat Mod] (GlibysVC-1.7.10-0.6.2a.jar) UC Monoblocks{1.10.23} [§1M§2o§3n§4o§5b§6l§7o§8c§9k§as] (Monoblocks-1.10.23.jar) UC MonoblocksMultipart{1.10.23} [MonoblocksMultipart] (Monoblocks-1.10.23.jar) UC cfm{3.4.7} [§9MrCrayfish's Furniture Mod] (MrCrayfishFurnitureModv3.4.7(1.7.10).jar) UE MyLife{1.0} [MyLife] (Mylife.jar) [22:59:47] [Client thread/ERROR] [FML]: The following problems were captured during this phase [22:59:47] [Client thread/ERROR] [FML]: Caught exception from MyLife cpw.mods.fml.common.LoaderException: java.lang.NullPointerException at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76) ~[forge-1.7.10-10.13.4.1541-1.7.10.jar:?] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:512) ~[forge-1.7.10-10.13.4.1541-1.7.10.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[forge-1.7.10-10.13.4.1541-1.7.10.jar:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forge-1.7.10-10.13.4.1541-1.7.10.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) [bao.class:?] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) [bao.class:?] at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] Caused by: java.lang.NullPointerException at fr.ph1823.MyLife.Item.IdentityTechneRender.<init>(IdentityTechneRender.java:38) ~[IdentityTechneRender.class:?] at fr.ph1823.MyLife.Proxy.ClientProxy.<init>(ClientProxy.java:14) ~[ClientProxy.class:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_77] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_77] at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_77] at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_77] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ~[forge-1.7.10-10.13.4.1541-1.7.10.jar:?] … 33 more [22:59:47] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:func_71377_b:349]: –-- Minecraft Crash Report ---- // Quite honestly, I wouldn't worry myself about that. Time: 31/03/16 22:59 Description: There was a severe problem during mod loading that has caused the game to fail cpw.mods.fml.common.LoaderException: java.lang.NullPointerException at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:512) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) at net.minecraft.client.main.Main.main(SourceFile:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.NullPointerException at fr.ph1823.MyLife.Item.IdentityTechneRender.<init>(IdentityTechneRender.java:38) at fr.ph1823.MyLife.Proxy.ClientProxy.<init>(ClientProxy.java:14) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ... 33 more 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_77, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 93737928 bytes (89 MB) / 212611072 bytes (202 MB) up to 2100035584 bytes (2002 MB) JVM Flags: 3 total; -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy 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: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1541 17 mods loaded, 17 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UC mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UC FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1541-1.7.10.jar) UC Forge{10.13.4.1541} [Minecraft Forge] (forge-1.7.10-10.13.4.1541-1.7.10.jar) UC securitycraft{v1.8.1} [SecurityCraft] ([1.7.10]SecurityCraft v1.8.1.jar) UC BiblioCraft{1.11.4} [BiblioCraft] (BiblioCraft[v1.11.4][MC1.7.10].jar) UC CarpentersBlocks{3.3.0 DEV R4} [Carpenter's Blocks] (CarpenterBlocks.jar) UC chisel{1.5.7} [Chisel] (Chisel[v1.5.7][1.7.10].jar) UC customnpcs{1.7.10d} [CustomNpcs] (CustomNPCs[vd][1.7.10].jar) UC PTRModelLib{1.0.0} [PTRModelLib] (Decocraft-2.1.1_1.7.10.jar) UC props{2.1.1} [Decocraft] (Decocraft-2.1.1_1.7.10.jar) UC flansmod{4.10.0} [Flan's Mod] (FlansMod-1.7.10-4.10.0.jar) UC flenixcities{0.16.1} [FlenixCities] (FlenixCitiesCore_[1.7.10]-0.16.1-b127.jar) UC gvc{0.6.1} [§aGliby's§f Voice Chat Mod] (GlibysVC-1.7.10-0.6.2a.jar) UC Monoblocks{1.10.23} [§1M§2o§3n§4o§5b§6l§7o§8c§9k§as] (Monoblocks-1.10.23.jar) UC MonoblocksMultipart{1.10.23} [MonoblocksMultipart] (Monoblocks-1.10.23.jar) UC cfm{3.4.7} [§9MrCrayfish's Furniture Mod] (MrCrayfishFurnitureModv3.4.7(1.7.10).jar) UE MyLife{1.0} [MyLife] (Mylife.jar) GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 364.51' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2' [22:59:47] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:func_71377_b:359]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\ph1823 - Minecraft\AppData\Roaming\.MyLife\crash-reports\crash-2016-03-31_22.59.47-client.txtet voici le code :
[font=Courier Newpackage ]fr.ph1823.MyLife.Item%(#cc7832)[; ] import net.minecraft.client.Minecraft%(#cc7832)[; ]import net.minecraft.client.gui.FontRenderer%(#cc7832)[; ]import net.minecraft.client.gui.MapItemRenderer%(#cc7832)[; ]import net.minecraft.client.renderer.Tessellator%(#cc7832)[; ]import net.minecraft.client.renderer.entity.RenderItem%(#cc7832)[; ]import net.minecraft.client.renderer.texture.DynamicTexture%(#cc7832)[; ]import net.minecraft.client.renderer.texture.TextureManager%(#cc7832)[; ]import net.minecraft.item.ItemMap%(#cc7832)[; ]import net.minecraft.item.ItemStack%(#cc7832)[; ]import net.minecraft.nbt.NBTTagCompound%(#cc7832)[; ]import net.minecraft.nbt.NBTTagList%(#cc7832)[; ]import net.minecraft.nbt.NBTTagString%(#cc7832)[; ]import net.minecraft.util.ResourceLocation%(#cc7832)[; ]import net.minecraft.world.storage.MapData%(#cc7832)[; ]import net.minecraftforge.client.IItemRenderer%(#cc7832)[; ]import org.lwjgl.opengl.GL11%(#cc7832)[; ] %(#629755)[*/** *]%(#629755)[* * Created by ph1823 - Minecraft on 28/03/2016. *]%(#629755)[* */ *]public class IdentityTechneRender implements IItemRenderer { protected Identity model%(#cc7832)[; ] private static RenderItem *renderItem *= new RenderItem()%(#cc7832)[; ] private static DynamicTexture *dyn*%(#cc7832)[; ] private static TextureManager *manager *= Minecraft.*getMinecraft*().getTextureManager()%(#cc7832)[; ] protected static ResourceLocation texture = new ResourceLocation("plants:textures/items/card.png")%(#cc7832)[; ] public IdentityTechneRender() { %(#808080)[// this.getDynamicTextureLocation() ] model = new Identity()%(#cc7832)[; ] *dyn *= new DynamicTexture(128, 128)%(#cc7832)[; ] %(#808080)[// this.field_148241_e = this.field_148243_c.getTextureData(); ] texture = *manager*.getDynamicTextureLocation("plants:textures/items/card.png", *dyn*)%(#cc7832)[; ] } %(#bbb529)[@Override ] public boolean handleRenderType(ItemStack item, ItemRenderType type) { %(#808080)[// Get icon index for the texture ] String text= "texte par default"%(#cc7832)[; ] NBTTagCompound nbt = item.getTagCompound()%(#cc7832)[; ] if (nbt != null) { NBTTagCompound disp = nbt.getCompoundTag("display")%(#cc7832)[; ] if (disp != null) { NBTTagList lore = disp.getTagList("Lore", 8)%(#cc7832)[; ] if (lore != null) { %(#808080)[// text = lore.getStringTagAt(0); ] } } } *manager*.bindTexture(texture)%(#cc7832)[; ] %(#808080)[//net.minecraft.util.IIcon icon = item.getIconIndex(); ]%(#808080)[// Use vanilla code to render the icon in a 16x16 square of inventory slot ]%(#808080)[ // renderItem.renderIcon(0, 0, icon, 16, 16); ] %(#808080)[ // ]%(#808080)[// Set drawing mode (see first tutorial link above). ]%(#808080)[ /* GL11.glBegin(GL11.GL_QUADS); ]%(#808080)[// Set semi-transparent black color ]%(#808080)[ GL11.glColor4f(0F, 0F, 0F, 0.5F); ] %(#808080)[// Draw a 8x8 square ]%(#808080)[ GL11.glVertex3d(0, 0, 0); ]%(#808080)[ GL11.glVertex3d(0, 8, 0); ]%(#808080)[ GL11.glVertex3d(8, 8, 0); ]%(#808080)[ GL11.glVertex3d(8, 0, 0);*/ ] %(#808080)[// GL11.glEnd(); ] byte b0 = 0%(#cc7832)[; ] byte b1 = 0%(#cc7832)[; ] Tessellator tessellator = Tessellator.*instance*%(#cc7832)[; ] float f = 0.0F%(#cc7832)[; ]%(#808080)[// Set drawing mode. Tessellator should support most drawing modes. ]%(#808080)[ // tessellator.startDrawing(GL11.GL_QUADS); ]%(#808080)[// Set semi-transparent black color ] tessellator.startDrawingQuads()%(#cc7832)[; ] tessellator.addVertexWithUV((double)((float)(b0 + 0) + f), (double)((float)(b1 + 128) - f), -0.009999999776482582D, 0.0D, 1.0D)%(#cc7832)[; ] tessellator.addVertexWithUV((double)((float)(b0 + 128) - f), (double)((float)(b1 + 128) - f), -0.009999999776482582D, 1.0D, 1.0D)%(#cc7832)[; ] tessellator.addVertexWithUV((double)((float)(b0 + 128) - f), (double)((float)(b1 + 0) + f), -0.009999999776482582D, 1.0D, 0.0D)%(#cc7832)[; ] tessellator.addVertexWithUV((double)((float)(b0 + 0) + f), (double)((float)(b1 + 0) + f), -0.009999999776482582D, 0.0D, 0.0D)%(#cc7832)[; ] tessellator.draw()%(#cc7832)[; ] FontRenderer fontRenderer = Minecraft.*getMinecraft*().fontRenderer%(#cc7832)[; ] GL11.*glEnable*(GL11.*GL_ALPHA_TEST*)%(#cc7832)[; ] GL11.*glDisable*(GL11.*GL_BLEND*)%(#cc7832)[; ] %(#808080)[// Enable texturing, because Minecraft text font is actually a texture ]%(#808080)[ //GL11.glEnable(GL11.GL_TEXTURE_2D); ]%(#808080)[// Get our text value ] %(#808080)[// Draw our text at (1, 1) with white color ] fontRenderer.drawStringWithShadow(text, 1, 1, 0xFFFFFF)%(#cc7832)[; ] %(#808080)[// MapItemRenderer ]%(#808080)[//ItemMap ] GL11.*glPushMatrix*()%(#cc7832)[; ] GL11.*glTranslatef*(0.0F, 0.0F, -0.04F)%(#cc7832)[; ] GL11.*glScalef*(1.0F, 1.0F, 1.0F)%(#cc7832)[; ] GL11.*glPopMatrix*()%(#cc7832)[; ] switch(type) { case *FIRST_PERSON_MAP*: %(#cc7832)[return true; ] default: %(#cc7832)[return false; ] } %(#808080)[// return false; ] } %(#bbb529)[@Override ] public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { switch(type) { case *FIRST_PERSON_MAP*: %(#cc7832)[return true; ] default: %(#cc7832)[return false; ] } } %(#bbb529)[@Override ] public void renderItem(ItemRenderType type, ItemStack item, Object… data) { switch(type) { case *FIRST_PERSON_MAP*: { } default: %(#cc7832)[break; ] } } }La ligne de l’erreur :
%(#a9b7c6)[[font=Courier New]*texture *]= %(#9876aa)[*manager*].getDynamicTextureLocation(%(#6a8759)["plants:textures/items/card.png"]%(#cc7832)[, ]%(#9876aa)[*dyn*])%(#cc7832)[;]La variable manager :
%(#a9b7c6)[[font=Courier New]private static ]TextureManager %(#9876aa)[*manager *]= Minecraft.*getMinecraft*().getTextureManager()%(#cc7832)[;]La variable dyn :
%(#a9b7c6)[[font=Courier New]dyn = new ]DynamicTexture(%(#6897bb)[128]%(#cc7832)[, ]%(#6897bb)[128])%(#cc7832)[;]Je crois que c’est car j’ai mis 128128 alors que l’image c’est du 6464 non?
P.S Ca fait le render alors que l’ont a pas l’item en main, ca ne fait pas comme un map en plus ca le mais en haut :/</init></init></init></init></init></init></init> -
Minecraft.getMinecraft().getTextureManager(); est surement null au moment ou tu enregistres ton rendu.
Essaies de l’enregistrer dans init au lieu de preinit. -
Bonjours, ceci me met toujours une erreur même dans poste event par contre, quand je désactive cette ligne :
%(#a9b7c6)[[font=Courier New]MinecraftForgeClient.registerItemRenderer(GloryRP.Identity, new IdentityTechneRender());]dans ClientProxy ( ici :
[font=Courier Newpackage ]fr.ph1823.MyLife.Proxy%(#cc7832)[; ] import fr.ph1823.MyLife.GloryRP%(#cc7832)[; ]import fr.ph1823.MyLife.Item.IdentityTechneRender%(#cc7832)[; ]import net.minecraftforge.client.IItemRenderer%(#cc7832)[; ]import net.minecraftforge.client.MinecraftForgeClient%(#cc7832)[; ]import net.minecraftforge.common.MinecraftForge%(#cc7832)[; ] public class ClientProxy extends CommonProxy { public ClientProxy() { %(#808080)[//MinecraftForgeClient.registerItemRenderer(GloryRP1.t.itemID, (IItemRenderer)new IdentityTechneRender()); ] MinecraftForge.*EVENT_BUS*.register(this)%(#cc7832)[; ] %(#808080)[//MinecraftForgeClient.registerItemRenderer(GloryRP.Identity, new IdentityTechneRender()); ] } } ``` ) Ceci ne produit plus l'erreur. -
Euh pourquoi cette ligne au juste ?
MinecraftForge.EVENT_BUS.register(this);Et après le code pour enregistrer les IITemRenderer devrait être à placer dans une méthode crée exprès pour ça, dans ton client proxy. De plus elle devrait (la méthode) être aussi présente dans ton common proxy, mais vide. Et c’est la méthode du common proxy que tu appelleras dans init.
-
Tu l’as mit dans le constructeur du client proxy, donc pas étonnant que Minecraft.getMinecraft().getTextureManager() est null à ce moment.
Il faut mettre MinecraftForgeClient.registerItemRenderer(GloryRP.Identity, new IdentityTechneRender() à l’intérieur d’une fonction du client proxy (à toi de choisir un nom) que tu vas ensuite appelé depuis la classe principale. -
-
Essaie de changer les valeurs du glScalef dans handleRenderType(…)
Ensuite tu ajusteras sa position dans le slot de l’inventaire du joueur, avec le glTranslatef -
Bon, je suis un peux nul je crois, car j’ai pris les même valeur que MapItemRenderer voici mon code :
[font=Courier Newpackage ]fr.ph1823.MyLife.Item%(#cc7832)[; ] import net.minecraft.client.Minecraft%(#cc7832)[; ]import net.minecraft.client.gui.FontRenderer%(#cc7832)[; ]import net.minecraft.client.gui.MapItemRenderer%(#cc7832)[; ]import net.minecraft.client.renderer.Tessellator%(#cc7832)[; ]import net.minecraft.client.renderer.entity.RenderItem%(#cc7832)[; ]import net.minecraft.client.renderer.texture.DynamicTexture%(#cc7832)[; ]import net.minecraft.client.renderer.texture.TextureManager%(#cc7832)[; ]import net.minecraft.item.ItemMap%(#cc7832)[; ]import net.minecraft.item.ItemStack%(#cc7832)[; ]import net.minecraft.nbt.NBTTagCompound%(#cc7832)[; ]import net.minecraft.nbt.NBTTagList%(#cc7832)[; ]import net.minecraft.nbt.NBTTagString%(#cc7832)[; ]import net.minecraft.util.ResourceLocation%(#cc7832)[; ]import net.minecraft.world.storage.MapData%(#cc7832)[; ]import net.minecraftforge.client.IItemRenderer%(#cc7832)[; ]import org.lwjgl.opengl.GL11%(#cc7832)[; ] %(#629755)[*/** *]%(#629755)[* * Created by ph1823 - Minecraft on 28/03/2016. *]%(#629755)[* */ *]public class IdentityTechneRender implements IItemRenderer { protected Identity model%(#cc7832)[; ] private static RenderItem *renderItem *= new RenderItem()%(#cc7832)[; ] private static DynamicTexture *dyn*%(#cc7832)[; ] private static TextureManager *manager *= Minecraft.*getMinecraft*().getTextureManager()%(#cc7832)[; ] protected static ResourceLocation *texture *= new ResourceLocation("plants:textures/items/card.png")%(#cc7832)[; ] public IdentityTechneRender() { %(#808080)[// this.getDynamicTextureLocation() ]%(#808080)[ //model = new Identity(); ] *dyn *= new DynamicTexture(64,64)%(#cc7832)[; ] %(#808080)[// this.field_148241_e = this.field_148243_c.getTextureData(); ] *texture *= *manager*.getDynamicTextureLocation("plants:textures/items/card.png", *dyn*)%(#cc7832)[; ] } %(#bbb529)[@Override ] public boolean handleRenderType(ItemStack item, ItemRenderType type) { %(#808080)[// Get icon index for the texture ] String text= "texte par default"%(#cc7832)[; ] NBTTagCompound nbt = item.getTagCompound()%(#cc7832)[; ] if (nbt != null) { NBTTagCompound disp = nbt.getCompoundTag("display")%(#cc7832)[; ] if (disp != null) { NBTTagList lore = disp.getTagList("Lore", 8)%(#cc7832)[; ] if (lore != null) { %(#808080)[// text = lore.getStringTagAt(0); ] } } } *manager*.bindTexture(*texture*)%(#cc7832)[; ] %(#808080)[//net.minecraft.util.IIcon icon = item.getIconIndex(); ]%(#808080)[// Use vanilla code to render the icon in a 16x16 square of inventory slot ]%(#808080)[ // renderItem.renderIcon(0, 0, icon, 16, 16); ] %(#808080)[ // ]%(#808080)[// Set drawing mode (see first tutorial link above). ]%(#808080)[ /* GL11.glBegin(GL11.GL_QUADS); ]%(#808080)[// Set semi-transparent black color ]%(#808080)[ GL11.glColor4f(0F, 0F, 0F, 0.5F); ] %(#808080)[// Draw a 8x8 square ]%(#808080)[ GL11.glVertex3d(0, 0, 0); ]%(#808080)[ GL11.glVertex3d(0, 8, 0); ]%(#808080)[ GL11.glVertex3d(8, 8, 0); ]%(#808080)[ GL11.glVertex3d(8, 0, 0);*/ ] %(#808080)[// GL11.glEnd(); ] byte b0 = 0%(#cc7832)[; ] byte b1 = 0%(#cc7832)[; ] Tessellator tessellator = Tessellator.*instance*%(#cc7832)[; ] float f = 0.0F%(#cc7832)[; ]%(#808080)[// Set drawing mode. Tessellator should support most drawing modes. ]%(#808080)[ // tessellator.startDrawing(GL11.GL_QUADS); ]%(#808080)[// Set semi-transparent black color ] tessellator.startDrawingQuads()%(#cc7832)[; ] tessellator.addVertexWithUV((double)((float)(b0 + 0) + f), (double)((float)(b1 + 128) - f), -0.009999999776482582D, 0.0D, 1.0D)%(#cc7832)[; ] tessellator.addVertexWithUV((double)((float)(b0 + 128) - f), (double)((float)(b1 + 128) - f), -0.009999999776482582D, 1.0D, 1.0D)%(#cc7832)[; ] tessellator.addVertexWithUV((double)((float)(b0 + 128) - f), (double)((float)(b1 + 0) + f), -0.009999999776482582D, 1.0D, 0.0D)%(#cc7832)[; ] tessellator.addVertexWithUV((double)((float)(b0 + 0) + f), (double)((float)(b1 + 0) + f), -0.009999999776482582D, 0.0D, 0.0D)%(#cc7832)[; ] tessellator.draw()%(#cc7832)[; ] FontRenderer fontRenderer = Minecraft.*getMinecraft*().fontRenderer%(#cc7832)[; ] GL11.*glEnable*(GL11.*GL_ALPHA_TEST*)%(#cc7832)[; ] GL11.*glDisable*(GL11.*GL_BLEND*)%(#cc7832)[; ] %(#808080)[// Enable texturing, because Minecraft text font is actually a texture ]%(#808080)[ //GL11.glEnable(GL11.GL_TEXTURE_2D); ]%(#808080)[// Get our text value ] %(#808080)[// Draw our text at (1, 1) with white color ] fontRenderer.drawStringWithShadow(text, 1, 1, 0xFFFFFF)%(#cc7832)[; ] %(#808080)[// MapItemRenderer ]%(#808080)[//ItemMap ] GL11.*glPushMatrix*()%(#cc7832)[; ] %(#808080)[//GL11.glTranslatef((float)b0 + (float)mapcoord.centerX / 2.0F + 64.0F, (float)b1 + (float)mapcoord.centerZ / 2.0F + 64.0F, -0.02F); ]%(#808080)[ //GL11.glRotatef((float)(mapcoord.iconRotation * 360) / 16.0F, 0.0F, 0.0F, 1.0F); ] GL11.*glScalef*(4.0F, 4.0F, 3.0F)%(#cc7832)[; ] GL11.*glTranslatef*(-0.125F, 0.125F, 0.0F)%(#cc7832)[; ] GL11.*glPopMatrix*()%(#cc7832)[; ] switch(type) { case *FIRST_PERSON_MAP*: %(#cc7832)[return true; ] default: %(#cc7832)[return false; ] } %(#808080)[// return false; ] } %(#bbb529)[@Override ] public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { switch(type) { case *FIRST_PERSON_MAP*: %(#cc7832)[return true; ] default: %(#cc7832)[return false; ] } } %(#bbb529)[@Override ] public void renderItem(ItemRenderType type, ItemStack item, Object… data) { switch(type) { case *FIRST_PERSON_MAP*: { } default: %(#cc7832)[break; ] } } }Merci de vos réponse.
-
Problème résolu du coup ?
-
Ha mince, en mettant ce message j’avais crue mettre bien exprimé, justement non, cela fait la même chose que avec l’ancien code, et le même bug que dans l’image
Comment pourais-je faire ? -
Essaie de recopier une fonction pour dessiner, la tesselation est compliquée et elle fait souvent n’importe quoi
-
Bonjoours, recopier quelle fonction? Une fonction de MapItemRender? Merci de votre aide.
-
Le problème vient bien de là ?
tessellator.startDrawingQuads(); tessellator.addVertexWithUV((double)((float)(b0 + 0) + f), (double)((float)(b1 + 128) - f), -0.009999999776482582D, 0.0D, 1.0D); tessellator.addVertexWithUV((double)((float)(b0 + 128) - f), (double)((float)(b1 + 128) - f), -0.009999999776482582D, 1.0D, 1.0D); tessellator.addVertexWithUV((double)((float)(b0 + 128) - f), (double)((float)(b1 + 0) + f), -0.009999999776482582D, 1.0D, 0.0D); tessellator.addVertexWithUV((double)((float)(b0 + 0) + f), (double)((float)(b1 + 0) + f), -0.009999999776482582D, 0.0D, 0.0D); tessellator.draw();Pour tester mets en commentaire par exemple
