Image not Found
4 posters
MC Modding :: Help :: Help
Page 1 of 1
Image not Found
This is the error I recieve:
--- BEGIN ERROR REPORT c699ff31 --------
Generated 11/4/11 1:46 PM
Minecraft: Minecraft Beta 1.8.1
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_01, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics version 2.1.0 - Build 8.15.10.2302, Intel
java.lang.RuntimeException: java.lang.Exception: Image not found: Spade.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1166)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:887)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:24)
at net.minecraft.client.Minecraft.run(Minecraft.java:517)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: Spade.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:851)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1158)
... 4 more
--- END ERROR REPORT d334ca62 ----------
My code:
package net.minecraft.src;
import java.util.Random;
public class mod_Tools extends BaseMod
{
public static final Item SandstonePickaxe = new ItemPickaxe(127,EnumToolMaterial.Sandstone).setItemName("asdf");
public static final Item SandstoneAxe = new ItemAxe(128,EnumToolMaterial.Sandstone).setItemName("asdfa");
public static final Item SandstoneHoe = new ItemHoe(129,EnumToolMaterial.Sandstone).setItemName("asdfas");
public static final Item SandstoneSword = new ItemSword(130,EnumToolMaterial.Sandstone).setItemName("asdfasd");
public static final Item SandstoneSpade = new ItemSpade(131,EnumToolMaterial.Sandstone).setItemName("asdfasdf");
public mod_Tools()
{
SandstonePickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "Pick.png");
SandstoneAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "Axe.png");
SandstoneHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "Hoe.png");
SandstoneSword.iconIndex = ModLoader.addOverride("/gui/items.png", "Sword.png");
SandstoneSpade.iconIndex = ModLoader.addOverride("/gui/items.png", "Spade.png");
ModLoader.AddName(SandstonePickaxe, "Sandstone Pickaxe");
ModLoader.AddName(SandstoneAxe, "Sandstone Axe");
ModLoader.AddName(SandstoneHoe, "Sandstone Hoe");
ModLoader.AddName(SandstoneSword, "Sandstone Sword");
ModLoader.AddName(SandstoneSpade, "Sandstone Shovel");
ModLoader.AddRecipe(new ItemStack(SandstonePickaxe, 1), new Object [] {
"***", " # ", " # ", Character.valueOf('*'), Block.sandStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(SandstoneAxe, 1), new Object [] {
"** ", "*# ", " # ", Character.valueOf('*'), Block.sandStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(SandstoneHoe, 1), new Object [] {
" **", " # ", " # ", Character.valueOf('*'), Block.sandStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(SandstoneSword, 1), new Object [] {
" * ", " * ", " # ", Character.valueOf('*'), Block.sandStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(SandstoneSpade, 1), new Object [] {
" * ", " # ", " # ", Character.valueOf('*'), Block.sandStone, Character.valueOf('#'), Item.stick
});
}
public String Version()
{
return "3.14159265";
}
}
If you have had this error before or know how to fix it please respond with a solution.
--- BEGIN ERROR REPORT c699ff31 --------
Generated 11/4/11 1:46 PM
Minecraft: Minecraft Beta 1.8.1
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_01, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics version 2.1.0 - Build 8.15.10.2302, Intel
java.lang.RuntimeException: java.lang.Exception: Image not found: Spade.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1166)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:887)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:24)
at net.minecraft.client.Minecraft.run(Minecraft.java:517)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: Spade.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:851)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1158)
... 4 more
--- END ERROR REPORT d334ca62 ----------
My code:
package net.minecraft.src;
import java.util.Random;
public class mod_Tools extends BaseMod
{
public static final Item SandstonePickaxe = new ItemPickaxe(127,EnumToolMaterial.Sandstone).setItemName("asdf");
public static final Item SandstoneAxe = new ItemAxe(128,EnumToolMaterial.Sandstone).setItemName("asdfa");
public static final Item SandstoneHoe = new ItemHoe(129,EnumToolMaterial.Sandstone).setItemName("asdfas");
public static final Item SandstoneSword = new ItemSword(130,EnumToolMaterial.Sandstone).setItemName("asdfasd");
public static final Item SandstoneSpade = new ItemSpade(131,EnumToolMaterial.Sandstone).setItemName("asdfasdf");
public mod_Tools()
{
SandstonePickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "Pick.png");
SandstoneAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "Axe.png");
SandstoneHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "Hoe.png");
SandstoneSword.iconIndex = ModLoader.addOverride("/gui/items.png", "Sword.png");
SandstoneSpade.iconIndex = ModLoader.addOverride("/gui/items.png", "Spade.png");
ModLoader.AddName(SandstonePickaxe, "Sandstone Pickaxe");
ModLoader.AddName(SandstoneAxe, "Sandstone Axe");
ModLoader.AddName(SandstoneHoe, "Sandstone Hoe");
ModLoader.AddName(SandstoneSword, "Sandstone Sword");
ModLoader.AddName(SandstoneSpade, "Sandstone Shovel");
ModLoader.AddRecipe(new ItemStack(SandstonePickaxe, 1), new Object [] {
"***", " # ", " # ", Character.valueOf('*'), Block.sandStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(SandstoneAxe, 1), new Object [] {
"** ", "*# ", " # ", Character.valueOf('*'), Block.sandStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(SandstoneHoe, 1), new Object [] {
" **", " # ", " # ", Character.valueOf('*'), Block.sandStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(SandstoneSword, 1), new Object [] {
" * ", " * ", " # ", Character.valueOf('*'), Block.sandStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(SandstoneSpade, 1), new Object [] {
" * ", " # ", " # ", Character.valueOf('*'), Block.sandStone, Character.valueOf('#'), Item.stick
});
}
public String Version()
{
return "3.14159265";
}
}
If you have had this error before or know how to fix it please respond with a solution.
werdna17- Member
- Posts : 2
Join date : 2011-11-04
Re: Image not Found
go to your coderpack then into bin/minecraft/ and paste the image you made of Spade.png here
AthosZBrogi- Member
- Posts : 12
Join date : 2011-10-24
Age : 27
Re: Image not Found
I had the same problem like you. But if you have all classes, put the mod to your Minecraft with images and look, if this will work.
Leon- Member
- Posts : 1
Join date : 2011-11-02
Re: Image not Found
He just has to go to MCP/jars/bin/minecraft.jar and paste the spade.png.
breakyorself- Member
- Posts : 60
Join date : 2011-10-19
Re: Image not Found
I tried putting my pictures in both the minecraft.jar file under jars and the minecraft folder under bin and the same error happens. Leon do you mean the minecraft.jar file if not let me know.
werdna17- Member
- Posts : 2
Join date : 2011-11-04
Solution to Error load image
Do not miss the slash at the last argument.
ModLoader.addOverride("/gui/items.png", "/laser.png");
ModLoader.addOverride("/gui/items.png", "/laser.png");
Nycklar- Guest
MC Modding :: Help :: Help
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum