[FAQ] Perso
-
Tu as mit les json et les textures pour le rendu dans l’inventaire ? Car au total il faut 6 textures, deux pour celles sur le joueur et 4 pour dans l’inventaire.
-
Suite a mes bidouillages nocturnes j’ai réussi a faire apparaître les textures des items dans l’inventaire sauf celle du plastron mais toutes les textures de l’armure ont disparu
-
C’est normal : Dans ton code dans le GameRegistry de ton plastron c’est PLastron1 ! Enlève le L Majuscule voyons ^_^
De plus es-tu sûr d’avoir mis les textures des armures au bon endroit ? :
tonmodid:textures/models/armor/layer1.png
tonmodid:textures/models/armor/layer2.pngMontre nous le fichier com.mod2.Reference s’il te plait.
-
Bonjour,
Je reviens vers vous car je n’arrive a rien
voici un bilan de ma situation :
Eclipse :- le code :
[12:54:45] [main/INFO] [GradleStart]: username: onepiecedeath@hotmail.fr [12:54:45] [main/INFO] [GradleStart]: Extra: [] [12:54:45] [main/INFO] [GradleStart]: Password found, attempting login [12:54:46] [main/INFO]: Logging in with username & password [12:54:49] [main/INFO] [GradleStart]: Login Succesful! [12:54:49] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, [], –assetsDir, C:/Users/SCS6/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --userType, mojang, --accessToken, {REDACTED}, --version, 1.8, --uuid, fad4142154044226b116e6c1558184a3, --username, Kriksou, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [12:54:49] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:54:50] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:54:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [12:54:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [12:54:51] [main/INFO] [FML]: Forge Mod Loader version 8.99.182.1491 for Minecraft 1.8 loading [12:54:51] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.8.0_51 [12:54:51] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [12:54:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [12:54:51] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [12:54:51] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [12:54:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:54:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:54:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:54:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:54:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:54:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:54:52] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [12:54:54] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [12:54:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:54:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:54:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:54:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [12:54:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [12:54:56] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [12:54:57] [Client thread/INFO]: Setting user: Kriksou [12:55:03] [Client thread/INFO]: LWJGL Version: 2.9.1 [12:55:05] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:235]: –-- Minecraft Crash Report ---- // This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~] Time: 21/07/15 12:55 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.8 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 915934208 bytes (873 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'Intel' Version: '2.1.0 - Build 8.15.10.1872' Renderer: 'Intel(R) 4 Series Internal Chipset' [12:55:05] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [12:55:05] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1491 Initialized [12:55:05] [Client thread/INFO] [FML]: Replaced 204 ore recipies [12:55:06] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [12:55:07] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [12:55:07] [Client thread/INFO] [FML]: Searching C:\Users\SCS6\Downloads\forge-1.8-11.14.3.1491-src\eclipse\mods for mods [12:55:19] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [12:55:20] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mod2] at CLIENT [12:55:20] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mod2] at SERVER [12:55:21] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Projet2 [12:55:22] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [12:55:22] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [12:55:22] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [12:55:22] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [12:55:22] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [12:55:22] [Client thread/INFO] [FML]: Applying holder lookups [12:55:22] [Client thread/INFO] [FML]: Holder lookups applied [12:55:22] [Client thread/INFO] [FML]: Injecting itemstacks [12:55:22] [Client thread/INFO] [FML]: Itemstack injection complete [12:55:24] [Sound Library Loader/INFO]: Starting up SoundSystem… [12:55:24] [Thread-9/INFO]: Initializing LWJGL OpenAL [12:55:24] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:55:26] [Thread-9/INFO]: OpenAL initialized. [12:55:26] [Sound Library Loader/INFO]: Sound engine started [12:55:35] [Client thread/INFO] [FML]: Max texture size: 4096 [12:55:35] [Client thread/INFO]: Created: 16x16 textures-atlas [12:55:36] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktrois#inventory not found [12:55:36] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktest#inventory not found [12:55:39] [Client thread/INFO] [FML]: Injecting itemstacks [12:55:39] [Client thread/INFO] [FML]: Itemstack injection complete [12:55:40] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [12:55:40] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Projet2 [12:55:40] [Client thread/INFO]: SoundSystem shutting down… [12:55:40] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [12:55:40] [Sound Library Loader/INFO]: Starting up SoundSystem… [12:55:41] [Thread-11/INFO]: Initializing LWJGL OpenAL [12:55:41] [Thread-11/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:55:41] [Thread-11/INFO]: OpenAL initialized. [12:55:41] [Sound Library Loader/INFO]: Sound engine started [12:55:44] [Client thread/INFO] [FML]: Max texture size: 4096 [12:55:47] [Client thread/INFO]: Created: 512x512 textures-atlas [12:55:48] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktrois#inventory not found [12:55:48] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktest#inventory not found [12:55:56] [Server thread/INFO]: Starting integrated minecraft server version 1.8 [12:55:56] [Server thread/INFO]: Generating keypair [12:55:56] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance [12:55:56] [Server thread/INFO] [FML]: Applying holder lookups [12:55:56] [Server thread/INFO] [FML]: Holder lookups applied [12:55:56] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@41f8caf5) [12:55:57] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@41f8caf5) [12:55:57] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@41f8caf5) [12:55:57] [Server thread/INFO]: Preparing start region for level 0 [12:55:58] [Server thread/INFO]: Preparing spawn area: 36% [12:56:03] [Server thread/INFO]: Changing view distance to 6, from 10 [12:56:03] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 4805ms behind, skipping 96 tick(s) [12:56:07] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [12:56:07] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [12:56:07] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : mod2@1.8,FML@8.0.99.99,Forge@11.14.3.1491,mcp@9.05 [12:56:07] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [12:56:07] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established [12:56:07] [Server thread/INFO]: Kriksou[local:E:19c3a73c] logged in with entity id 59 at (306.15632522002005, 4.0, -1135.2943127673302) [12:56:07] [Server thread/INFO]: Kriksou joined the game [12:56:24] [Thread-11/ERROR]: Error in class 'LibraryLWJGLOpenAL' [12:56:24] [Thread-11/ERROR]: Source 'ca8c2cb3-633f-4631-a819-58c9de291371' not found in method 'play' [12:56:24] [Thread-11/ERROR]: Error in class 'LibraryLWJGLOpenAL' [12:56:24] [Thread-11/ERROR]: Source '68b6e498-1b08-40ac-ad7d-9100d79ce7fc' not found in method 'play' [12:56:24] [Thread-11/ERROR]: Error in class 'LibraryLWJGLOpenAL' [12:56:24] [Thread-11/ERROR]: Source '49a3498c-51b3-46f2-b3c8-6c3198067208' not found in method 'play' [12:56:24] [Thread-11/ERROR]: Error in class 'LibraryLWJGLOpenAL' [12:56:24] [Thread-11/ERROR]: Source '1c543023-b3f0-4e18-bf9a-7aa8a53bb3e3' not found in method 'play' [12:56:24] [Thread-11/ERROR]: Error in class 'LibraryLWJGLOpenAL' [12:56:24] [Thread-11/ERROR]: Source '5c4d2996-c5f7-44eb-a6d7-ece95a053e28' not found in method 'play' [12:56:24] [Thread-11/ERROR]: Error in class 'LibraryLWJGLOpenAL' [12:56:24] [Thread-11/ERROR]: Source '88e8c57f-8b00-4c68-9b1b-3515561cbf54' not found in method 'play' [12:57:12] [Server thread/INFO]: Saving and pausing game… [12:57:12] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [12:57:12] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [12:57:12] [Server thread/INFO]: Saving chunks for level 'New World'/The End [12:58:48] [Client thread/INFO]: Stopping! [12:58:48] [Client thread/INFO]: SoundSystem shutting down… [12:58:48] [Server thread/INFO]: Stopping server [12:58:48] [Server thread/INFO]: Saving players [12:58:48] [Server thread/INFO]: Saving worlds [12:58:48] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [12:58:48] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [12:58:48] [Server thread/INFO]: Saving chunks for level 'New World'/The End [12:58:48] [Server thread/INFO] [FML]: Unloading dimension 0 [12:58:48] [Server thread/INFO] [FML]: Unloading dimension -1 [12:58:48] [Server thread/INFO] [FML]: Unloading dimension 1 [12:58:48] [Server thread/INFO] [FML]: Applying holder lookups [12:58:48] [Server thread/INFO] [FML]: Holder lookups applied [12:58:48] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release- La classeItem :
package com.mod2.init; import com.mod2.Reference; import Items.ClasseArmure; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemAxe; import net.minecraft.item.ItemPickaxe; import net.minecraft.item.ItemSword; import net.minecraftforge.common.util.EnumHelper; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.common.registry.LanguageRegistry; public class ItemMod { public static Item SuperSword,Item1,Casque1,Plastron1,Jambiere1,Chaussure1; public static ToolMaterial SuperTool = EnumHelper.addToolMaterial("SuperTool", 3, 100, 12.0F, 11.0F, 18); public static ArmorMaterial SuperArmor = EnumHelper.addArmorMaterial("SuperArmor","Super:Super", 25,new int[] {10, 10, 10, 10} , 30); public static void init() { SuperSword = new ItemSword(SuperTool).setUnlocalizedName("SuperSword").setCreativeTab(CreativeTabs.tabCombat); Item1 = new Item().setUnlocalizedName("Item1").setCreativeTab(CreativeTabs.tabDecorations); Casque1 = new ClasseArmure(SuperArmor, 1, 0).setUnlocalizedName("Casque1").setCreativeTab(CreativeTabs.tabCombat); Plastron1 = new ClasseArmure(SuperArmor, 1, 1).setUnlocalizedName("Plastron1").setCreativeTab(CreativeTabs.tabCombat); Jambiere1 = new ClasseArmure(SuperArmor, 2, 2).setUnlocalizedName("Jambiere1").setCreativeTab(CreativeTabs.tabCombat); Chaussure1 = new ClasseArmure(SuperArmor, 1, 3).setUnlocalizedName("Chaussure1").setCreativeTab(CreativeTabs.tabCombat); } public static void register() { GameRegistry.registerItem(SuperSword, "SuperSword"); GameRegistry.registerItem(Item1, "Item1"); GameRegistry.registerItem(Casque1, "Casque1"); GameRegistry.registerItem(Plastron1, "PLastron1"); GameRegistry.registerItem(Jambiere1, "Jambiere1"); GameRegistry.registerItem(Chaussure1, "Chaussure1"); } public static void registerRenders() { registerRender(SuperSword); registerRender(Item1); registerRender(Casque1); registerRender(Plastron1); registerRender(Jambiere1); registerRender(Chaussure1); } public static void registerRender(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory")); } }- La classeArmure :
package Items; import com.mod2.Reference; import net.minecraft.entity.Entity; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; public class ClasseArmure extends ItemArmor { public ClasseArmure(ArmorMaterial material, int renderIndex, int armorType) { super(material, renderIndex, armorType); } public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) { if(slot == 2) { return Reference.MOD_ID + ":textures/models/armor/layer_1.png"; } return Reference.MOD_ID + ":textures/models/armor/layer_2.png"; } }En jeu :
- La texture de l’armure sur moi est entièrement bugue les pieds correspondent au pantalon les jambes font apparaître une partie du torse le plastron me fait des mains non textures (toutes blanches)
Et le casque pareille que le plastron
(tête toute blanche)
Voici mon menu de gauche entièrement déroule :

Merci d’avance a tous ceux qui liront ce message
KriksouPS : Voici le dossier Reference :
package com.mod2; public class Reference { public static final String MOD_ID = "mod2"; public static final String MOD_NAME = "Projet2"; public static final String VERSION = "1.8"; public static final String CLIENT_PROXY_CLASS = "com.mod2.proxy.ClientProxy"; public static final String SERVER_PROXY_CLASS = "com.mod2.proxy.CommonProxy"; }Merci pour le PLastron j’avais pas du tous remarque du coups pour les textures dans l’inventaire c’est bon
-
Montre moi alors Layer_1 et Layer_2 (les png)
-
Voici les deux layers :
Layer_1 :
Layer_2 :
Et voila comme demande

-
Ils n’y a pas de transparence dans tes images c’est pour ça…
-
Ahha my bad ,my bad petite retouche sur photoshop et le tour et joue malheureusement cela ne change rien

-
Dans ton code tu as inversé layer1 et 2.
Ça devrait être comme ça :package Items; import com.mod2.Reference; import net.minecraft.entity.Entity; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; public class ClasseArmure extends ItemArmor { public ClasseArmure(ArmorMaterial material, int renderIndex, int armorType) { super(material, renderIndex, armorType); } public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) { if(slot == 2) { return Reference.MOD_ID + ":textures/models/armor/layer_2.png"; } return Reference.MOD_ID + ":textures/models/armor/layer_1.png"; } } -

Pourtant mes layer son bien “vide” autours
-
Envoies les fichiers
-
Les voici :


-
T’as mal mis la transparence xD
Tu dois mettre le fond totalement transparent, pas mettre un dégradé !
Et ton problème sera réglé ! (Le layer 1 se met au dessus du layer 2 donc si tu met la transparence, le layer 2 s’affichera correctement).
-
C’est transparent , qu’elle dégradé ?

-
Tes anciennes images ont une sorte de “dégradé”.
-
Envoies directement le fichier, pas une capture …
-
Mais celle la c’est bon ? Quelle est mon problème =(
-
Quelle fichier exactement ? Les layers ? C’est fait plus haut
-
Autant pour moi, je n’avais que vu les images où tu avais envoyé un screenshot.
Je réinstalles juste gimp et je regardes.J’ai eu de gros problème avec tes images, je ne peux pas utiliser couleur vers alpha pour une raison inconnu. En tout cas il n’y avait pas d’alpha.
Je viens de mettre en pièce jointe les images modifiées.

-
Merci