I've just sarted making mods and all my crafting recipes work but when I tried to make a ore it gave me this error:
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; ModLoader has failed to initialize.
This error has been saved to C:\Documents and Settings\***\Application Data\.minecraft\crash-reports\crash-2012-09-17_19.51.46-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT 517bb712 --------
Generated 9/17/12 7:51 PM
- Minecraft Version: 1.3.2
- Operating System: Windows XP (x86) version 5.1
- Java Version: 1.7.0_07, Oracle Corporation
- Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
- Memory: 409782024 bytes (390 MB) / 518979584 bytes (494 MB) up to 1037959168 bytes (989 MB)
- JVM Flags: 2 total; -Xms512m -Xmx1024m
- ModLoader: Mods loaded: 7
ModLoader 1.3.2
mod_NetherBrickCrafting 3.14159265
mod_OreSapphire null
mod_RottenFleshCrafting 3.14159265
mod_Sapphire 3.14159265
mod_SoulSandCrafting 3.14159265
mod_TooManyItems 1.3.2 2012-09-13
java.lang.ArrayIndexOutOfBoundsException: 397
at ModLoader.initStats(ModLoader.java:987)
at ModLoader.init(ModLoader.java:960)
at ModLoader.addAllRenderers(ModLoader.java:185)
at avy.<init>(RenderManager.java:87)
at avy.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.a(SourceFile:260)
at net.minecraft.client.Minecraft.run(SourceFile:516)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT ae92997b ----------
Theres also another mod that didn't load mod_SapphireOre, but here is the code for the Sapphire Ore and Item: mod_OreSapphire:
package net.minecraft.src;
import java.util.Random;
public class mod_OreSapphire extends BaseMod
{
public static final Block SapphireOre =
new mod_SapphireOre(398, 0).setHardness(0.5F).setResistance(5.0F).setLightValue(1F).setBlockName("mod_SapphireOre");
public mod_OreSapphire()
{
ModLoader.registerBlock(SapphireOre);
SapphireOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SapphireOre.png");
ModLoader.addName(SapphireOre, "Sapphire Ore");
}
public void generateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for (int i = 0; i< 15; i++)
{
int randPosX = chunkX + rand.nextInt(4);
int randPosY = rand.nextInt(30);
int randPosZ = chunkZ + rand.nextInt(4);
(new WorldGenMinable(SapphireOre.blockID, 50)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public String getVersion() {
return null;
}
public void load() {
}
}
mod_SapphireOre (Continued):
package net.minecraft.src;
import java.util.Random;
public class mod_SapphireOre extends Block
{
public mod_SapphireOre(int i, int j)
{
super(i,j,Material.iron);
}
public Item idDropped(int i)
{
return mod_Sapphire.itemSapphire;
}
public void load()
{
}
public String getVersion() {
return null;
}
}
And now the Sapphire Item mod_Sapphire:
package net.minecraft.src;
import java.util.Random;
public class mod_Sapphire extends BaseMod{
//This declares our new item, called itemHenry which is an item of type "ItemHenry".
public static final Item itemSapphire =
new Item(397).setItemName("Sapphire");
public mod_Sapphire()
{
//This overrides the texture pack and adds our own custom texture to the item.
itemSapphire.iconIndex = ModLoader.addOverride("/gui/items.png", "/Sapphire.PNG");
//This adds the in game name
ModLoader.addName(itemSapphire, "Sapphire");
}
public String getVersion()
{
return "3.14159265";
}
public void load() {
}
}
Okay, it got fixed, now it's error one the .pngs maybe they got deleted when I ran clean-up or decompiled...
java.lang.RuntimeException: java.lang.Exception: Image not found: /SapphireOre.png
at ModLoader.registerAllTextureOverrides(ModLoader.java:1612)
at ModLoader.onTick(ModLoader.java:1186)
at EntityRendererProxy.b(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.J(SourceFile:607)
at net.minecraft.client.Minecraft.run(SourceFile:535)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: /SapphireOre.png
at ModLoader.loadImage(ModLoader.java:1106)
at ModLoader.registerAllTextureOverrides(ModLoader.java:1604)
... 5 more
In the way i use to mod you would have to put the pngs the way he did ^^^^^ but you would also go to the modding work space of eclipse and put a folder in bin labeled whatever the file you put the override in for example ModLoader.addOverride(/gui/items.png, /items/whateverimagefile.png
Okay, so I opened up Mcp, then went to eclipse but there wasn't a Minecraft folder, only the files .metedata, bin, Client, Server, .classpath, .project, and some error reports.
I SERIOUSLY recommend placing your textures in MCP_FOLDER/jars/bin/minecraft.jar
Eclipse/bin is eventually going to get deleted and then you'll lose all your textures.
Okay, so I opened up Mcp, then went to eclipse but there wasn't a Minecraft folder, only the files .metedata, bin, Client, Server, .classpath, .project, and some errorr reports.
I've placed the .png files in every folder including my .minecrafts but I keep getting this error:
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Unexpected error
This error has been saved to C:\Documents and Settings\***\Application Data\.minecraft\crash-reports\crash-2012-09-18_16.05.40-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT 9bdedeeb --------
Generated 9/18/12 4:05 PM
- Minecraft Version: 1.3.2
- Operating System: Windows XP (x86) version 5.1
- Java Version: 1.7.0_07, Oracle Corporation
- Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
- Memory: 463926976 bytes (442 MB) / 518979584 bytes (494 MB) up to 1037959168 bytes (989 MB)
- JVM Flags: 2 total; -Xms512m -Xmx1024m
- ModLoader: Mods loaded: 7
ModLoader 1.3.2
mod_NetherBrickCrafting 3.14159265
mod_OreSapphire null
mod_RottenFleshCrafting 3.14159265
mod_Sapphire 3.14159265
mod_SoulSandCrafting 3.14159265
mod_TooManyItems 1.3.2 2012-09-13
- LWJGL: 2.4.2
- OpenGL: Intel 945GM GL version 1.4.0 - Build 7.14.10.4926, Intel
- Is Modded: Very likely
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)
java.lang.RuntimeException: java.lang.Exception: Image not found: /Sapphire.png
at ModLoader.registerAllTextureOverrides(ModLoader.java:1612)
at ModLoader.onTick(ModLoader.java:1186)
at EntityRendererProxy.b(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.J(SourceFile:607)
at net.minecraft.client.Minecraft.run(SourceFile:535)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: /Sapphire.png
at ModLoader.loadImage(ModLoader.java:1106)
at ModLoader.registerAllTextureOverrides(ModLoader.java:1604)
... 5 more
--- END ERROR REPORT c6b250f0 ----------
It still can't find the png, do I have to do anything after I put the pngs in MCP/jar/bin & in the jar file, I recomplied and reobfuscated. Wait, why does it say /SapphireOre.png you can't add / to png files.
It still can't find the png, do I have to do anything after I put the pngs in MCP/jar/bin & in the jar file, I recomplied and reobfuscated. Wait, why does it say /SapphireOre.png you can't add / to png files.
Are you sure it's exactly called "SapphireOre", and is the file extension .png?
put in bin folder on mcp folder if u didn´t setted the workstation to the eclipse folder or if u are running start client.bat, or reobfusctae then test on a normal minecraft.
SapphireOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SapphireOre.png");
And for the item:
itemSapphire.iconIndex = ModLoader.addOverride("/gui/items.png", "/Sapphire.png");
Is the / the problem?
Or maybe... I've noticed that on Eclipse Sapphire.png is called Sapphire.PNG could that be the problem? Because the SapphireOre.png loaded and it's lowercase...
Theres also another mod that didn't load mod_SapphireOre, but here is the code for the Sapphire Ore and Item: mod_OreSapphire:
Can anyone help?
Where are you supposed to put the .pngs
Eclipse/bin is eventually going to get deleted and then you'll lose all your textures.
I think he meant eclipse/bin/Minecraft
By the way, read the text above please
Are you sure it's exactly called "SapphireOre", and is the file extension .png?
Is the / the problem?
Or maybe... I've noticed that on Eclipse Sapphire.png is called Sapphire.PNG could that be the problem? Because the SapphireOre.png loaded and it's lowercase...
Add it to your block,
public Item idDropped(int i)
{
return mod_Sapphire.itemSapphire;
}
public void load()
{
Ooooo I need the ShiftedIndex part!
}
Btw now it says:
"full retard"? He's learning. That's why he asked how to do it.
Have you even read my post?