Animer vos rendus TESR.
-
N’ouvre pas de nouvelle matrix.
Rend tout le modèle sauf le morceau voulu, déplace, puis fait le rendu du morceau voulu : private void renderTileEntityTutorielAt(TileEntityTutoriel tile, double x, double y, double z, float partialRenderTick) { GL11.glPushMatrix(); GL11.glTranslated(x + 0.5D, y + 1.5D, z + 0.5D); GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F); GL11.glRotatef((90F * tile.getDirection()) + 180F, 0.0F, 1.0F, 0.0F); this.bindTexture(texture); model.renderAll(); GL11.glTranslated(0.0D, -1D, 0.0D); model.renderDoor(); GL11.glPopMatrix(); }
ça fonctionne sans problème chez moi, la partie porte se trouve un bloc plus haut que le reste avec ça.
-
Sa me met une erreur quand j’essaye de “bouger” le model en question j’ai ecris cec
GL11.glTranslated(0.0D, -te.getMouv_1(), 0.0D);
Mais sa ne fonctionne pas et te.getMouv_1() varie de 0 à 1
-
Tes valeurs sont bien synchro avec le client ?
-
càd ?
-
Que le client connait bien la bonne valeur de getMouv_1()
Fait un System.out.println de cette valeur et tu verra bien si elle est bonne ou pas.
-
Sa crash automatiquement donc je peux pas verifier …
-
Envoie le rapport de crash.
-
[15:16:23] [main/INFO] [GradleStart]: No arguments specified, assuming client. [15:16:23] [main/INFO] [GradleStart]: Extra: [] [15:16:23] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Portuar/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker] [15:16:23] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [15:16:23] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [15:16:23] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [15:16:24] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1231 for Minecraft 1.7.10 loading [15:16:24] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_25 [15:16:24] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [15:16:24] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [15:16:24] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [15:16:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [15:16:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [15:16:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [15:16:24] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [15:16:25] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [15:16:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [15:16:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [15:16:25] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker [15:16:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker [15:16:25] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [15:16:26] [main/INFO]: Setting user: Player603 [15:16:26] [Client thread/INFO]: LWJGL Version: 2.9.1 [15:16:27] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [15:16:27] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1231 Initialized [15:16:27] [Client thread/INFO] [FML]: Replaced 182 ore recipies [15:16:27] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [15:16:27] [Client thread/INFO] [FML]: Searching D:\Desktop\SpectralCraft\eclipse\mods for mods [15:16:29] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [15:16:29] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, Spectralcraft] at CLIENT [15:16:29] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, Spectralcraft] at SERVER [15:16:29] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Spectral Craft [15:16:29] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [15:16:29] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [15:16:29] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [15:16:29] [Client thread/INFO] [FML]: Applying holder lookups [15:16:29] [Client thread/INFO] [FML]: Holder lookups applied [15:16:30] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [15:16:30] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [15:16:30] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [15:16:30] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [15:16:30] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [15:16:30] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [15:16:30] [Sound Library Loader/INFO]: Sound engine started [15:16:31] [Client thread/ERROR]: Unable to parse metadata from spectralcraft:textures/blocks/ReviveDispenser.png java.lang.RuntimeException: broken aspect ratio and not an animation at net.minecraft.client.renderer.texture.TextureAtlasSprite.loadSprite(TextureAtlasSprite.java:245) ~[TextureAtlasSprite.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:170) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:582) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at GradleStart.bounce(GradleStart.java:107) [start/:?] at GradleStart.startClient(GradleStart.java:100) [start/:?] at GradleStart.main(GradleStart.java:55) [start/:?] [15:16:31] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [15:16:31] [Client thread/INFO]: Created: 256x256 textures/items-atlas [15:16:31] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [15:16:31] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Spectral Craft [15:16:31] [Client thread/ERROR]: Unable to parse metadata from spectralcraft:textures/blocks/ReviveDispenser.png java.lang.RuntimeException: broken aspect ratio and not an animation at net.minecraft.client.renderer.texture.TextureAtlasSprite.loadSprite(TextureAtlasSprite.java:245) ~[TextureAtlasSprite.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:170) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:643) [Minecraft.class:?] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:586) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at GradleStart.bounce(GradleStart.java:107) [start/:?] at GradleStart.startClient(GradleStart.java:100) [start/:?] at GradleStart.main(GradleStart.java:55) [start/:?] [15:16:31] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [15:16:31] [Client thread/INFO]: Created: 256x256 textures/items-atlas [15:16:31] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [15:16:31] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down… [15:16:31] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com [15:16:31] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [15:16:31] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [15:16:31] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [15:16:31] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [15:16:31] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [15:16:32] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [15:16:32] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [15:16:32] [Sound Library Loader/INFO]: Sound engine started [15:16:35] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10 [15:16:35] [Server thread/INFO]: Generating keypair [15:16:35] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance [15:16:35] [Server thread/INFO] [FML]: Applying holder lookups [15:16:35] [Server thread/INFO] [FML]: Holder lookups applied [15:16:35] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@25bf983f) [15:16:35] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@25bf983f) [15:16:35] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@25bf983f) [15:16:35] [Server thread/INFO]: Preparing start region for level 0 [15:16:36] [Server thread/WARN]: Skipping BlockEntity with id Sculpture [15:16:36] [Server thread/WARN]: Skipping BlockEntity with id Sculpture [15:16:36] [Server thread/INFO]: Changing view distance to 12, from 10 [15:16:38] [Server thread/INFO]: Stopping server [15:16:38] [Server thread/INFO]: Saving players [15:16:38] [Server thread/INFO]: Saving worlds [15:16:38] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [15:16:38] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [15:16:38] [Server thread/INFO]: Saving chunks for level 'New World'/The End [15:16:39] [Server thread/INFO] [FML]: Unloading dimension 0 [15:16:39] [Server thread/INFO] [FML]: Unloading dimension -1 [15:16:39] [Server thread/INFO] [FML]: Unloading dimension 1 [15:16:39] [Server thread/INFO] [FML]: Applying holder lookups [15:16:39] [Server thread/INFO] [FML]: Holder lookups applied [15:16:39] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10 [15:16:39] [Server thread/INFO]: Generating keypair [15:16:39] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance [15:16:39] [Server thread/INFO] [FML]: Applying holder lookups [15:16:39] [Server thread/INFO] [FML]: Holder lookups applied [15:16:39] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@9916c35) [15:16:39] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@9916c35) [15:16:39] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@9916c35) [15:16:39] [Server thread/INFO]: Preparing start region for level 0 [15:16:39] [Server thread/WARN]: Skipping BlockEntity with id Sculpture [15:16:39] [Server thread/WARN]: Skipping BlockEntity with id Sculpture [15:16:39] [Server thread/INFO]: Changing view distance to 12, from 10 [15:16:40] [Netty Client IO #1/INFO] [FML]: Server protocol version 1 [15:16:40] [Netty IO #3/INFO] [FML]: Client protocol version 1 [15:16:40] [Netty IO #3/INFO] [FML]: Client attempting to join with 4 mods : Spectralcraft@1.0.0,FML@7.10.85.1231,Forge@10.13.2.1231,mcp@9.05 [15:16:40] [Netty IO #3/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [15:16:40] [Netty Client IO #1/INFO] [FML]: Attempting connection with missing mods [] at SERVER [15:16:40] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established [15:16:40] [Server thread/INFO]: Player603[local:E:6de53edd] logged in with entity id 494 at (-197.5, 64.0, 53.5) [15:16:40] [Server thread/INFO]: Player603 joined the game [15:16:40] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established [15:16:43] [Server thread/INFO]: Player603 has just earned the achievement [Taking Inventory] [15:16:43] [Client thread/INFO]: [CHAT] Player603 has just earned the achievement [Taking Inventory] [15:16:45] [Server thread/INFO]: Stopping server [15:16:45] [Server thread/INFO]: Saving players [15:16:45] [Server thread/INFO]: Saving worlds [15:16:45] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [15:16:45] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [15:16:45] [Server thread/INFO]: Saving chunks for level 'New World'/The End [15:16:45] [Server thread/INFO] [FML]: Unloading dimension 0 [15:16:45] [Server thread/INFO] [FML]: Unloading dimension -1 [15:16:45] [Server thread/INFO] [FML]: Unloading dimension 1 [15:16:45] [Server thread/INFO] [FML]: Applying holder lookups [15:16:45] [Server thread/INFO] [FML]: Holder lookups applied [15:16:46] [Client thread/FATAL]: Reported exception thrown! net.minecraft.util.ReportedException: Rendering item at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1168) ~[EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1056) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at GradleStart.bounce(GradleStart.java:107) [start/:?] at GradleStart.startClient(GradleStart.java:100) [start/:?] at GradleStart.main(GradleStart.java:55) [start/:?] Caused by: java.lang.NullPointerException at com.google.Portuar.SpectralCraft.common.block.TileEntitySpecialReviveDispenser.renderTileEntityBaseAt(TileEntitySpecialReviveDispenser.java:58) ~[TileEntitySpecialReviveDispenser.class:?] at com.google.Portuar.SpectralCraft.common.block.TileEntitySpecialReviveDispenser.renderInventory(TileEntitySpecialReviveDispenser.java:33) ~[TileEntitySpecialReviveDispenser.class:?] at com.google.Portuar.SpectralCraft.client.TESRInventoryRenderer.renderInventoryBlock(TESRInventoryRenderer.java:52) ~[TESRInventoryRenderer.class:?] at cpw.mods.fml.client.registry.RenderingRegistry.renderInventoryBlock(RenderingRegistry.java:125) ~[RenderingRegistry.class:?] at net.minecraft.src.FMLRenderAccessLibrary.renderInventoryBlock(FMLRenderAccessLibrary.java:59) ~[FMLRenderAccessLibrary.class:?] at net.minecraft.client.renderer.RenderBlocks.renderBlockAsItem(RenderBlocks.java:8361) ~[RenderBlocks.class:?] at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:463) ~[RenderItem.class:?] at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585) ~[RenderItem.class:?] at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:287) ~[GuiContainer.class:?] at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:114) ~[GuiContainer.class:?] at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44) ~[InventoryEffectRenderer.class:?] at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673) ~[GuiContainerCreative.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137) ~[EntityRenderer.class:?] … 16 more [15:16:46] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ---- // My bad. Time: 25/10/14 15:16 Description: Rendering item java.lang.NullPointerException: Rendering item at com.google.Portuar.SpectralCraft.common.block.TileEntitySpecialReviveDispenser.renderTileEntityBaseAt(TileEntitySpecialReviveDispenser.java:58) at com.google.Portuar.SpectralCraft.common.block.TileEntitySpecialReviveDispenser.renderInventory(TileEntitySpecialReviveDispenser.java:33) at com.google.Portuar.SpectralCraft.client.TESRInventoryRenderer.renderInventoryBlock(TESRInventoryRenderer.java:52) at cpw.mods.fml.client.registry.RenderingRegistry.renderInventoryBlock(RenderingRegistry.java:125) at net.minecraft.src.FMLRenderAccessLibrary.renderInventoryBlock(FMLRenderAccessLibrary.java:59) at net.minecraft.client.renderer.RenderBlocks.renderBlockAsItem(RenderBlocks.java:8361) at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:463) at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585) at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:287) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:114) at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44) at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1056) at net.minecraft.client.Minecraft.run(Minecraft.java:951) at net.minecraft.client.main.Main.main(Main.java:164) 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) 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 GradleStart.bounce(GradleStart.java:107) at GradleStart.startClient(GradleStart.java:100) at GradleStart.main(GradleStart.java:55) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at com.google.Portuar.SpectralCraft.common.block.TileEntitySpecialReviveDispenser.renderTileEntityBaseAt(TileEntitySpecialReviveDispenser.java:58) at com.google.Portuar.SpectralCraft.common.block.TileEntitySpecialReviveDispenser.renderInventory(TileEntitySpecialReviveDispenser.java:33) at com.google.Portuar.SpectralCraft.client.TESRInventoryRenderer.renderInventoryBlock(TESRInventoryRenderer.java:52) at cpw.mods.fml.client.registry.RenderingRegistry.renderInventoryBlock(RenderingRegistry.java:125) at net.minecraft.src.FMLRenderAccessLibrary.renderInventoryBlock(FMLRenderAccessLibrary.java:59) at net.minecraft.client.renderer.RenderBlocks.renderBlockAsItem(RenderBlocks.java:8361) at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:463) -- Item being rendered -- Details: Item Type: net.minecraft.item.ItemBlock@41db6e4b Item Aux: 0 Item NBT: null Item Foil: false Stacktrace: at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585) at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:287) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:114) at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44) at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673) -- Screen render details -- Details: Screen name: net.minecraft.client.gui.inventory.GuiContainerCreative Mouse location: Scaled: (226, 101). Absolute: (452, 277) Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2 -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player603'/494, l='MpServer', x=-193,74, y=76,40, z=68,81]] Chunk stats: MultiplayerChunkCache: 495, 495 Level seed: 0 Level generator: ID 00 - default, ver 1\. Features enabled: false Level generator options: Level spawn location: World: (-200,64,60), Chunk: (at 8,4,12 in -13,3; contains blocks -208,0,48 to -193,255,63), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Level time: 45839 game time, 45839 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 74 total; [EntityCow['Cow'/384, l='MpServer', x=-200,44, y=72,00, z=106,53], EntityCow['Cow'/385, l='MpServer', x=-193,47, y=68,00, z=111,53], EntityCow['Cow'/386, l='MpServer', x=-200,97, y=69,00, z=123,88], EntityCow['Cow'/387, l='MpServer', x=-194,78, y=79,00, z=142,47], EntityCow['Cow'/396, l='MpServer', x=-184,69, y=64,00, z=28,34], EntityCow['Cow'/397, l='MpServer', x=-183,53, y=64,00, z=46,66], EntityCreeper['Creeper'/409, l='MpServer', x=-161,94, y=63,12, z=-13,47], EntityCow['Cow'/411, l='MpServer', x=-165,16, y=64,00, z=-10,97], EntityCreeper['Creeper'/412, l='MpServer', x=-170,47, y=13,00, z=44,41], EntityCow['Cow'/423, l='MpServer', x=-152,88, y=67,00, z=17,69], EntityCreeper['Creeper'/424, l='MpServer', x=-158,28, y=64,00, z=17,09], EntityBat['Bat'/425, l='MpServer', x=-159,56, y=17,10, z=37,41], EntityBat['Bat'/426, l='MpServer', x=-152,50, y=20,10, z=44,75], EntityBat['Bat'/427, l='MpServer', x=-159,25, y=17,10, z=53,28], EntityBat['Bat'/428, l='MpServer', x=-150,75, y=17,10, z=72,50], EntityBat['Bat'/429, l='MpServer', x=-151,75, y=17,10, z=73,25], EntityZombie['Zombie'/430, l='MpServer', x=-145,56, y=29,00, z=77,97], EntitySkeleton['Skeleton'/303, l='MpServer', x=-274,47, y=21,00, z=16,91], EntityCreeper['Creeper'/434, l='MpServer', x=-129,50, y=59,00, z=0,71], EntitySkeleton['Skeleton'/435, l='MpServer', x=-128,66, y=22,00, z=20,13], EntityCow['Cow'/436, l='MpServer', x=-133,82, y=70,00, z=31,94], EntityBat['Bat'/437, l='MpServer', x=-140,75, y=22,10, z=60,25], EntityBat['Bat'/438, l='MpServer', x=-140,47, y=22,10, z=61,09], EntityCreeper['Creeper'/439, l='MpServer', x=-133,35, y=69,00, z=61,94], EntitySkeleton['Skeleton'/440, l='MpServer', x=-143,59, y=65,00, z=57,22], EntityBat['Bat'/441, l='MpServer', x=-140,25, y=21,10, z=66,75], EntityCreeper['Creeper'/442, l='MpServer', x=-137,94, y=67,00, z=73,47], EntityZombie['Zombie'/443, l='MpServer', x=-130,63, y=68,00, z=70,72], EntitySpider['Spider'/444, l='MpServer', x=-140,34, y=70,00, z=101,53], EntitySkeleton['Skeleton'/320, l='MpServer', x=-266,22, y=14,00, z=11,69], EntityBat['Bat'/321, l='MpServer', x=-262,46, y=14,75, z=15,87], EntityBat['Bat'/322, l='MpServer', x=-261,78, y=14,00, z=15,20], EntityCreeper['Creeper'/450, l='MpServer', x=-124,66, y=12,00, z=44,41], EntityCreeper['Creeper'/323, l='MpServer', x=-260,47, y=44,00, z=17,78], EntitySkeleton['Skeleton'/451, l='MpServer', x=-121,13, y=69,00, z=77,38], EntityCreeper['Creeper'/324, l='MpServer', x=-260,69, y=34,00, z=23,41], EntityCreeper['Creeper'/452, l='MpServer', x=-118,28, y=69,00, z=73,66], EntityBat['Bat'/326, l='MpServer', x=-263,25, y=34,10, z=86,75], EntityCreeper['Creeper'/454, l='MpServer', x=-122,41, y=69,00, z=83,09], EntitySkeleton['Skeleton'/327, l='MpServer', x=-256,44, y=88,00, z=106,94], EntityBat['Bat'/455, l='MpServer', x=-118,43, y=15,00, z=105,03], EntityBat['Bat'/328, l='MpServer', x=-264,25, y=51,10, z=118,75], EntitySkeleton['Skeleton'/456, l='MpServer', x=-119,66, y=14,00, z=103,44], EntityZombie['Zombie'/457, l='MpServer', x=-126,69, y=17,00, z=100,50], EntityZombie['Zombie'/458, l='MpServer', x=-123,69, y=17,00, z=104,72], EntityBat['Bat'/459, l='MpServer', x=-117,25, y=16,10, z=102,25], EntitySkeleton['Skeleton'/460, l='MpServer', x=-125,44, y=17,00, z=101,09], EntityZombie['Zombie'/461, l='MpServer', x=-118,25, y=67,00, z=107,50], EntityCreeper['Creeper'/462, l='MpServer', x=-121,94, y=67,00, z=102,63], EntityZombie['Zombie'/464, l='MpServer', x=-125,66, y=66,00, z=115,09], EntityCreeper['Creeper'/465, l='MpServer', x=-122,53, y=42,00, z=131,03], EntitySkeleton['Skeleton'/466, l='MpServer', x=-117,50, y=67,00, z=129,94], EntityCow['Cow'/342, l='MpServer', x=-255,38, y=74,71, z=-7,60], EntityCreeper['Creeper'/343, l='MpServer', x=-253,44, y=34,47, z=21,84], EntityCow['Cow'/344, l='MpServer', x=-240,31, y=72,00, z=141,88], EntityZombie['Zombie'/355, l='MpServer', x=-237,50, y=34,00, z=31,31], EntityEnderman['Enderman'/356, l='MpServer', x=-232,39, y=63,00, z=27,93], EntityCow['Cow'/357, l='MpServer', x=-238,28, y=71,00, z=141,34], EntityCow['Cow'/358, l='MpServer', x=-228,16, y=69,00, z=137,38], EntityCow['Cow'/359, l='MpServer', x=-235,53, y=70,00, z=139,38], EntityCow['Cow'/360, l='MpServer', x=-238,25, y=71,00, z=146,53], EntityCow['Cow'/362, l='MpServer', x=-236,09, y=71,00, z=144,19], EntityZombie['Zombie'/366, l='MpServer', x=-222,69, y=21,00, z=-4,50], EntitySpider['Spider'/367, l='MpServer', x=-211,41, y=75,00, z=6,13], EntityItem['item.tile.flower1.dandelion'/368, l='MpServer', x=-223,38, y=65,13, z=27,53], EntityEnderman['Enderman'/369, l='MpServer', x=-223,59, y=63,00, z=43,97], EntitySpider['Spider'/370, l='MpServer', x=-224,28, y=63,00, z=47,46], EntityCow['Cow'/371, l='MpServer', x=-218,50, y=70,00, z=95,06], EntityCow['Cow'/378, l='MpServer', x=-201,84, y=77,00, z=-6,19], EntityClientPlayerMP['Player603'/494, l='MpServer', x=-193,74, y=76,40, z=68,81], EntityCreeper['Creeper'/380, l='MpServer', x=-211,26, y=75,00, z=7,50], EntitySpider['Spider'/381, l='MpServer', x=-201,00, y=76,00, z=9,91], EntityCow['Cow'/382, l='MpServer', x=-199,06, y=64,00, z=52,97], EntityCow['Cow'/383, l='MpServer', x=-194,28, y=70,00, z=108,72]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2555) at net.minecraft.client.Minecraft.run(Minecraft.java:973) at net.minecraft.client.main.Main.main(Main.java:164) 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) 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 GradleStart.bounce(GradleStart.java:107) at GradleStart.startClient(GradleStart.java:100) at GradleStart.main(GradleStart.java:55) – System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 700258744 bytes (667 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94 FML: MCP v9.05 FML v7.10.85.1231 Minecraft Forge 10.13.2.1231 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available FML{7.10.85.1231} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1231.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available Forge{10.13.2.1231} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1231.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available Spectralcraft{1.0.0} [Spectral Craft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: GeForce GTX 560 Ti/PCIe/SSE2 GL version 4.4.0 NVIDIA 344.11, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1) [15:16:46] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# D:\Desktop\SpectralCraft\eclipse\.\crash-reports\crash-2014-10-25_15.16.46-client.txt 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
-
Tu as un NPE à la ligne 58 de ta TileEntitySpecialReviveDispenser, envoie tout le code de cette classe.
-
package com.google.Portuar.SpectralCraft.common.block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.entity.RenderItem; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.entity.item.EntityItem; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; import scala.tools.nsc.MainClass; import com.google.Portuar.SpectralCraft.client.IInventoryRenderer; public class TileEntitySpecialReviveDispenser extends TileEntitySpecialRenderer implements IInventoryRenderer { private final ModelReviveDispenser model = new ModelReviveDispenser(); public static final ResourceLocation textureLocation = new ResourceLocation("spectralcraft", "textures/blocks/ReviveDispenser.png"); public TileEntitySpecialReviveDispenser() { this.func_147497_a(TileEntityRendererDispatcher.instance); } @Override public void renderInventory(double x, double y, double z) { this.renderTileEntityBaseAt(null, x, y, z, 0.0F); } @Override public void renderTileEntityAt(TileEntity te, double x, double y, double z, float f) { this.renderTileEntityBaseAt((TileEntityReviveDispenser)te, x, y, z, f); } public void renderTileEntityBaseAt(TileEntityReviveDispenser te, double x, double y, double z, float xc) { GL11.glPushMatrix(); GL11.glTranslated(x + 0.5F, y + 1.5F, z + 0.5F); GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F); if(te != null) { GL11.glRotatef(180f + 90F * te.getDirection(), 0.0F, 1.0F, 0.0F); } this.bindTexture(textureLocation); this.model.render(0.0625F); GL11.glTranslated(0.0D, -te.getMouv_1(), 0.0D); this.model.renderDoor_1(0.0625F); GL11.glPopMatrix(); } }
-
Forcement ça crash puisque te est null lorsqu’il faut le rendu dans l’inventaire …
Ajoute un null check :package com.google.Portuar.SpectralCraft.common.block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.entity.RenderItem; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.entity.item.EntityItem; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; import scala.tools.nsc.MainClass; import com.google.Portuar.SpectralCraft.client.IInventoryRenderer; public class TileEntitySpecialReviveDispenser extends TileEntitySpecialRenderer implements IInventoryRenderer { private final ModelReviveDispenser model = new ModelReviveDispenser(); public static final ResourceLocation textureLocation = new ResourceLocation("spectralcraft", "textures/blocks/ReviveDispenser.png"); public TileEntitySpecialReviveDispenser() { this.func_147497_a(TileEntityRendererDispatcher.instance); } @Override public void renderInventory(double x, double y, double z) { this.renderTileEntityBaseAt(null, x, y, z, 0.0F); } @Override public void renderTileEntityAt(TileEntity te, double x, double y, double z, float f) { this.renderTileEntityBaseAt((TileEntityReviveDispenser)te, x, y, z, f); } public void renderTileEntityBaseAt(TileEntityReviveDispenser te, double x, double y, double z, float xc) { GL11.glPushMatrix(); GL11.glTranslated(x + 0.5F, y + 1.5F, z + 0.5F); GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F); if(te != null) { GL11.glRotatef(180f + 90F * te.getDirection(), 0.0F, 1.0F, 0.0F); } this.bindTexture(textureLocation); this.model.render(0.0625F); if(te != null) { GL11.glTranslated(0.0D, -te.getMouv_1(), 0.0D); } this.model.renderDoor_1(0.0625F); GL11.glPopMatrix(); } }
-
Sa fonctionne très bien merci.
-
Bonjour ce tuto fonctionne t’ il en 1.7 ?
-
je crois en cas de besoin robin a fait une vidéo en 1.7 sur la chaine MFF
-
J’ai seulement fait le tutoriel sur les TESR, et la version en texte est ici : http://minecraftforgefrance.fr/showthread.php?tid=1509
Mais je pense que ce tutoriel fonctionne aussi en 1.7.10, et si il y a des erreurs il ne devrait pas en avoir beaucoup.