MC Modding
Please register and join the community!

Image not Found

MC Modding :: Help :: Help

View previous topic View next topic Go down

Image not Found

Post by werdna17 on Fri Nov 04, 2011 10:50 pm

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.

werdna17
Member

Posts : 2
Join date : 2011-11-04

View user profile

Back to top Go down

Re: Image not Found

Post by AthosZBrogi on Sat Nov 05, 2011 12:23 am

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 : 20

View user profile

Back to top Go down

Re: Image not Found

Post by Leon on Sat Nov 05, 2011 1:38 am

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

View user profile

Back to top Go down

Re: Image not Found

Post by breakyorself on Sat Nov 05, 2011 2:43 am

He just has to go to MCP/jars/bin/minecraft.jar and paste the spade.png.
avatar
breakyorself
Member

Posts : 60
Join date : 2011-10-19

View user profile

Back to top Go down

Re: Image not Found

Post by werdna17 on Sat Nov 05, 2011 5:21 am

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

View user profile

Back to top Go down

Solution to Error load image

Post by Nycklar on Sat Nov 12, 2011 11:17 am

Do not miss the slash at the last argument.
ModLoader.addOverride("/gui/items.png", "/laser.png");

Nycklar
Guest


Back to top Go down

Re: Image not Found

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


MC Modding :: Help :: Help

 
Permissions in this forum:
You cannot reply to topics in this forum