Résolu Textures 1.7.2
-
Ayant enfin décidé de me remettre au modding, je tente un petit mod. Et c’est encore au niveau des textures que ça plante …
Chemin complet de l’image : D:\Forge 1.7.2\src\main\resources\assets\wololo\textures\items\edenapple.png
Code de la texture :
apple = new CraftItem().setUnlocalizedName("orbe").setTextureName("wololo:edenapple"); GameRegistry.registerItem(apple, "orbe_eden");
Rapport d’erreur :
[21:08:05] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [21:08:05] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:The mighty word of god [21:08:05] [Client thread/ERROR]: Using missing texture, unable to load wololo:textures/items/edenapple.png java.io.FileNotFoundException: wololo:textures/items/edenapple.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [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:624) [Minecraft.class:?] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [21:08:05] [Client thread/INFO]: Created: 256x256 textures/items-atlas [21:08:05] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
Voila, merci de votre aide.
-
@‘Nolan-XX’:
Ayant enfin décidé de me remettre au modding, je tente un petit mod. Et c’est encore au niveau des textures que ça plante …
Chemin complet de l’image : D:\Forge 1.7.2\src\main\resources\assets\wololo\textures\items\edenapple.png
Code de la texture :
apple = new CraftItem().setUnlocalizedName("orbe").setTextureName("wololo:edenapple"); GameRegistry.registerItem(apple, "orbe_eden");
Rapport d’erreur :
[21:08:05] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [21:08:05] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:The mighty word of god [21:08:05] [Client thread/ERROR]: Using missing texture, unable to load wololo:textures/items/edenapple.png java.io.FileNotFoundException: wololo:textures/items/edenapple.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [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:624) [Minecraft.class:?] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [21:08:05] [Client thread/INFO]: Created: 256x256 textures/items-atlas [21:08:05] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
Voila, merci de votre aide.
Vérifie bien que tu as indiqué en haut de ta class ton modid ou que tu crées une instance de celui-ci auquel cas tes textures ne pourront pas détecter quel nom pourra avoir ton mod ou sinon vérifie bien la résolution de ton .png
-
package fr.nolancraft.wololo.common; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import fr.nolancraft.wololo.items.CraftItem; import fr.nolancraft.wololo.proxy.CommonProxy; @Mod(modid = "wololo", name = "The mighty word of god", version = "1.0.0") public class Main { @Instance("wololo") public static Main instance; public static final String MODID = "wololo"; @SidedProxy(clientSide = "fr.nolancraft.wololo.proxy.ClientProxy", serverSide = "fr.nolancraft.wololo.proxy.CommonProxy") public static CommonProxy proxy; public static Item apple; @EventHandler public void preInit(FMLPreInitializationEvent event) { apple = new CraftItem().setUnlocalizedName("orbe").setTextureName("wololo:edenapple"); GameRegistry.registerItem(apple, "orbe_eden"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
Attends, les images ne peuvent qu’êtres en multiple de 16 ?
-
Salut,
4x4, 8x8, 16x16, 32x32, 64x64, 128x128, 256x256, etc … -
Moui bon ça ne venait pas de ça
-
@‘Nolan-XX’:
package fr.nolancraft.wololo.common; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import fr.nolancraft.wololo.items.CraftItem; import fr.nolancraft.wololo.proxy.CommonProxy; @Mod(modid = "wololo", name = "The mighty word of god", version = "1.0.0") public class Main { @Instance("wololo") public static Main instance; public static final String MODID = "wololo"; @SidedProxy(clientSide = "fr.nolancraft.wololo.proxy.ClientProxy", serverSide = "fr.nolancraft.wololo.proxy.CommonProxy") public static CommonProxy proxy; public static Item apple; @EventHandler public void preInit(FMLPreInitializationEvent event) { apple = new CraftItem().setUnlocalizedName("orbe").setTextureName("wololo:edenapple"); GameRegistry.registerItem(apple, "orbe_eden"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
Attends, les images ne peuvent qu’êtres en multiple de 16 ?
plutôt comme ceci :
package fr.nolancraft.wololo.common; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import fr.nolancraft.wololo.items.CraftItem; import fr.nolancraft.wololo.proxy.CommonProxy; @Mod(modid = tonmod.MODID, name = "The mighty word of god", version = "1.0.0") public class Main { @Instance("MODID") public static tonmod instance; public static final String MODID = "wololo"; @SidedProxy(clientSide = "fr.nolancraft.wololo.proxy.ClientProxy", serverSide = "fr.nolancraft.wololo.proxy.CommonProxy") public static CommonProxy proxy; public static Item apple; @EventHandler public void preInit(FMLPreInitializationEvent event) { apple = new CraftItem().setUnlocalizedName("orbe").setTextureName("tonmod.MODID:edenapple"); GameRegistry.registerItem(apple, "orbe_eden"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
Réponds moi
Cordialement Julot10085 et si ça marche pense à ma réputation ^^ lol -
@‘Julot10085’:
@‘Nolan-XX’:
package fr.nolancraft.wololo.common; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import fr.nolancraft.wololo.items.CraftItem; import fr.nolancraft.wololo.proxy.CommonProxy; @Mod(modid = "wololo", name = "The mighty word of god", version = "1.0.0") public class Main { @Instance("wololo") public static Main instance; public static final String MODID = "wololo"; @SidedProxy(clientSide = "fr.nolancraft.wololo.proxy.ClientProxy", serverSide = "fr.nolancraft.wololo.proxy.CommonProxy") public static CommonProxy proxy; public static Item apple; @EventHandler public void preInit(FMLPreInitializationEvent event) { apple = new CraftItem().setUnlocalizedName("orbe").setTextureName("wololo:edenapple"); GameRegistry.registerItem(apple, "orbe_eden"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
Attends, les images ne peuvent qu’êtres en multiple de 16 ?
plutôt comme ceci :
package fr.nolancraft.wololo.common; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import fr.nolancraft.wololo.items.CraftItem; import fr.nolancraft.wololo.proxy.CommonProxy; @Mod(modid = tonmod.MODID, name = "The mighty word of god", version = "1.0.0") public class Main { @Instance("MODID") public static tonmod instance; public static final String MODID = "wololo"; @SidedProxy(clientSide = "fr.nolancraft.wololo.proxy.ClientProxy", serverSide = "fr.nolancraft.wololo.proxy.CommonProxy") public static CommonProxy proxy; public static Item apple; @EventHandler public void preInit(FMLPreInitializationEvent event) { apple = new CraftItem().setUnlocalizedName("orbe").setTextureName("tonmod.MODID:edenapple"); GameRegistry.registerItem(apple, "orbe_eden"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
Réponds moi
Cordialement Julot10085 et si ça marche pense à ma réputation ^^ lolNon, ça ne change rien
-
@‘Nolan-XX’:
@‘Julot10085’:
@‘Nolan-XX’:
package fr.nolancraft.wololo.common; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import fr.nolancraft.wololo.items.CraftItem; import fr.nolancraft.wololo.proxy.CommonProxy; @Mod(modid = "wololo", name = "The mighty word of god", version = "1.0.0") public class Main { @Instance("wololo") public static Main instance; public static final String MODID = "wololo"; @SidedProxy(clientSide = "fr.nolancraft.wololo.proxy.ClientProxy", serverSide = "fr.nolancraft.wololo.proxy.CommonProxy") public static CommonProxy proxy; public static Item apple; @EventHandler public void preInit(FMLPreInitializationEvent event) { apple = new CraftItem().setUnlocalizedName("orbe").setTextureName("wololo:edenapple"); GameRegistry.registerItem(apple, "orbe_eden"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
Attends, les images ne peuvent qu’êtres en multiple de 16 ?
plutôt comme ceci :
package fr.nolancraft.wololo.common; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import fr.nolancraft.wololo.items.CraftItem; import fr.nolancraft.wololo.proxy.CommonProxy; @Mod(modid = tonmod.MODID, name = "The mighty word of god", version = "1.0.0") public class Main { @Instance("MODID") public static tonmod instance; public static final String MODID = "wololo"; @SidedProxy(clientSide = "fr.nolancraft.wololo.proxy.ClientProxy", serverSide = "fr.nolancraft.wololo.proxy.CommonProxy") public static CommonProxy proxy; public static Item apple; @EventHandler public void preInit(FMLPreInitializationEvent event) { apple = new CraftItem().setUnlocalizedName("orbe").setTextureName("tonmod.MODID:edenapple"); GameRegistry.registerItem(apple, "orbe_eden"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
Réponds moi
Cordialement Julot10085 et si ça marche pense à ma réputation ^^ lolNon, ça ne change rien
Bon bah dans ce cas là je reviendrai si j’ai plus le temps
@‘Nolan-XX’:
package fr.nolancraft.wololo.common; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import fr.nolancraft.wololo.items.CraftItem; import fr.nolancraft.wololo.proxy.CommonProxy; @Mod(modid = "wololo", name = "The mighty word of god", version = "1.0.0") public class Main { @Instance("wololo") public static Main instance; public static final String MODID = "wololo"; @SidedProxy(clientSide = "fr.nolancraft.wololo.proxy.ClientProxy", serverSide = "fr.nolancraft.wololo.proxy.CommonProxy") public static CommonProxy proxy; public static Item apple; @EventHandler public void preInit(FMLPreInitializationEvent event) { apple = new CraftItem().setUnlocalizedName("orbe").setTextureName("wololo:edenapple"); GameRegistry.registerItem(apple, "orbe_eden"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
Attends, les images ne peuvent qu’êtres en multiple de 16 ?
Les images doivent être forcément des puissance de 2
-
Je peux avoir un screenshot d’eclipse avec le menu src/main/resources déplié ?
-
Refresh eclipse
-
-
Étrange, le dossier texture est vide sur eclipse. Essaye de créer un package assets.wololo.textures.items puis de glisser le .png dedans.
-
“Package already exists with a different case.”
Voila ce que ça me donne
-
Clic sur src/main/resources et fait f5 ?
-
se sent stupide
Je vais devoir le faire a chaque fois que j’ajoute une texture ? -
Normalement tu n’es pas sensé avoir besoin de refresh, eclipse est sensé le faire automatiquement.
-
Dans certains cas, eclipse ne refresh pas les dossiers de ressources. Si c’est le cas, un simple F5 sur le dossier concerné et c’est réglé. ( Quand vous éditez un fichier lang en dehors d’eclipse aussi /!\ )