Im new to modding and i thought i would start by making a mod of tools using cleanstone for my sister who plays and i coded everything with no errors in Eclipse. I recompiled and reobfuscate and got two .class folders, put them into minecraft along with an image folder. I start up minecraft and it gets to the Mojang screen and freezes for a little then Minecraft Crashes. Any ideas on what the problem might be? If you need any coding I can send you it.
did you try it in the StartClient.bat first? that will easly let you know whats up with the code if it is a problim in there.
It says there's a problem with finding an image. In my folder do i need to have '.png' in the name of the image? They are all named correctly, but they don't have '.png' at the end and they are all '.png' photos. Also its only coming up with an error for one image only and i triple checked everything for that and everythings correct? any help?
I am getting that VERY SAME THING on my tool mod!
It said my EmeraldSpade had no nametag! Thinking about taking it out completly just to see if it will do it all the way down the other items I made as well =/
We both ran into the same problim thats kinda funny though lol.
I am getting that VERY SAME THING on my tool mod!
It said my EmeraldSpade had no nametag! Thinking about taking it out completly just to see if it will do it all the way down the other items I made as well =/
We both ran into the same problim thats kinda funny though lol.
I know there is I just cant seem to find it right now equaling I cant go any farther working on my mod untill this is resolved... I keep rechecking my thread and this one, and going over my code, and looking at others Items code to see if my Syntax is bad or what not, but nothing so far....
I know there is I just cant seem to find it right now equaling I cant go any farther working on my mod untill this is resolved... I keep rechecking my thread and this one, and going over my code, and looking at others Items code to see if my Syntax is bad or what not, but nothing so far....
Seems like we're at a halt until help arrives and fixes are found.
ModLoader.AddName("","");
mine looks like
ModLoader.AddName("SaphireSword", "Saphire Sword");
what it SHOULD BE
ModLoader.AddName(SaphireSword, "Saphire Sword");
so do your .AddName's without the first set of "" to name your item!
This info was brought to us by xTwilight3 [THANK YOU SO MUCH]
Sadly im still having an item image error. Heres the error:
Nov 26, 2011 7:05:20 PM ModLoader init
FINE: ModLoader 1.0.0 Initializing...
Nov 26, 2011 7:05:20 PM ModLoader readFromClassPath
FINER: Adding mods from C:\Users\MakingMods(for)MC\AppData\Roaming\.minecraft\bin\minecraft.jar
Nov 26, 2011 7:05:20 PM ModLoader readFromClassPath
FINER: Zip found.
Nov 26, 2011 7:05:20 PM ModLoader addOverride
FINER: addOverride(/gui/items.png,/KatiestoneTools/KatiestonePickaxe.png,38). 87 left.
Nov 26, 2011 7:05:20 PM ModLoader addOverride
FINER: addOverride(/gui/items.png,/KatiestoneTools/KatiestoneAxe.png,102). 86 left.
Nov 26, 2011 7:05:20 PM ModLoader addOverride
FINER: addOverride(/gui/items.png,/KatiestoneTools/KatiestoneShovel.png,118). 85 left.
Nov 26, 2011 7:05:20 PM ModLoader addOverride
FINER: addOverride(/gui/items.png,/KatiestoneTools/KatiestoneHoe.png,119). 84 left.
Nov 26, 2011 7:05:20 PM ModLoader addOverride
FINER: addOverride(/gui/items.png,/KatiestoneTools/KatiestoneSword.png,120). 83 left.
Nov 26, 2011 7:05:20 PM ModLoader addMod
FINE: Failed to load mod from "mod_Katiestone.class"
Nov 26, 2011 7:05:20 PM ModLoader addMod
FINER: THROW
java.lang.StringIndexOutOfBoundsException: String index out of range: 8
at java.lang.String.charAt(Unknown Source)
at sl.a(SourceFile:531)
at ModLoader.AddRecipe(ModLoader.java:374)
at mod_Katiestone.addRecipes(mod_Katiestone.java:52)
at mod_Katiestone.<init>(mod_Katiestone.java:13)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at ModLoader.addMod(ModLoader.java:275)
at ModLoader.readFromClassPath(ModLoader.java:1227)
at ModLoader.init(ModLoader.java:825)
at ModLoader.AddAllRenderers(ModLoader.java:186)
at wb.<init>(wb.java:76)
at wb.<clinit>(wb.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:265)
at net.minecraft.client.Minecraft.run(SourceFile:644)
at java.lang.Thread.run(Unknown Source)
Nov 26, 2011 7:05:30 PM ModLoader AddAllRenderers
FINE: Initialized
And heres my code:
package net.minecraft.src;
import java.util.Random;
public class mod_Katiestone extends BaseMod
{
public mod_Katiestone()
{
//Todo List
addNames();
setTextures();
addFuel();
registerBlocks();
addRecipes();
addSmelting();
}
public String getVersion()
{
return "mod_Katiestone v.1";
}
public void addNames()
{
ModLoader.AddName(KatiestonePickaxe, "KatieStone Pickaxe");
ModLoader.AddName(KatiestoneAxe, "KatieStone Axe");
ModLoader.AddName(KatiestoneShovel, "KatieStone Shovel");
ModLoader.AddName(KatiestoneHoe, "KatieStone Hoe");
ModLoader.AddName(KatiestoneSword, "KatieStone Sword");
}
public void setTextures()
{
KatiestonePickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/KatiestoneTools/KatiestonePickaxe.png");
KatiestoneAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/KatiestoneTools/KatiestoneAxe.png");
KatiestoneShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/KatiestoneTools/KatiestoneShovel.png");
KatiestoneHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/KatiestoneTools/KatiestoneHoe.png");
KatiestoneSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/KatiestoneTools/KatiestoneSword.png");
}
public void addFuel()
{
}
public void registerBlocks()
{
}
public void addRecipes()
{
ModLoader.AddRecipe(new ItemStack(KatiestonePickaxe, 1), new Object[] {
"KKK", " S ", " S ", Character.valueOf('K'), Block.stone, Character.valueOf('S'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(KatiestoneShovel, 1), new Object[] {
" K ", " S ", " S ", Character.valueOf('K'), Block.stone, Character.valueOf('S'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(KatiestoneAxe, 1), new Object[] {
"KK", "KS ", " S ", Character.valueOf('K'), Block.stone, Character.valueOf('S'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(KatiestoneHoe, 1), new Object[] {
"KK ", " S ", " S ", Character.valueOf('K'), Block.stone, Character.valueOf('S'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(KatiestoneSword, 1), new Object[] {
" K ", " K ", " S ", Character.valueOf('K'), Block.stone, Character.valueOf('S'), Item.stick
});
}
public void addSmelting()
{
}
public static Item KatiestonePickaxe;
public static Item KatiestoneShovel;
public static Item KatiestoneAxe;
public static Item KatiestoneSword;
public static Item KatiestoneHoe;
static
{
KatiestonePickaxe = new ItemPickaxe(2310, EnumToolMaterial.SSTONE).setItemName("KatiestonePickaxe");
KatiestoneShovel = new ItemSpade (2311, EnumToolMaterial.SSTONE).setItemName("KatiestoneShovel");
KatiestoneAxe = new ItemAxe(2312, EnumToolMaterial.SSTONE).setItemName("KatiestoneAxe");
KatiestoneSword= new ItemSword(2313, EnumToolMaterial.SSTONE).setItemName("KatieStoneSword");
KatiestoneHoe= new ItemHoe(2314, EnumToolMaterial.SSTONE).setItemName("KatiestoneHoe");
}
public void load()
{
return;
}
}
If anything else is needed to find a fix please let me know!
Please dont bump your post begging, its against the rules, and anywho are you sure the Item#'s can go that high?
I set mine at 1000 [1001,1002 ect] and I got mine working again [xTwillight3's fix was to only one of my problims lol]
I would ask do you want to revert to 1.8.1 and we could work together to make a cool big mod.
also note I just thought of something you might of overlooked.... are you referancing your item's picture right?
as in, I see it is coded corectly, but did you put the file Katiestonetools with all the pic's in the right place...
that just ran across my mind so let me know if thats it.
I would ask do you want to revert to 1.8.1 and we could work together to make a cool big mod.
also note I just thought of something you might of overlooked.... are you referancing your item's picture right?
as in, I see it is coded corectly, but did you put the file Katiestonetools with all the pic's in the right place...
that just ran across my mind so let me know if thats it.
I just put them into the Minecraft.Jar like i was installing a mod. Its near the 'item' and 'lang' folder in the Minecraft.Jar folder. Is that where it belongs? Also reverting back to 1.8.1 and making a cool big mod sounds fun, ill think about it.
yeah thats right... hmmm, do you still have a copy of that folder with the items inside, in your MCP file so that when you run your client.bat for testing it can referance it from its usual position??
Because I have done that once, made my mod, put it all into the .jar to actualy mod my minecraft and play, then bam ID error lol, went to fix it, but forgot that I moved the image files from MCP when I did that so I had to put them back to finish redoing my first mistake lol.
yeah thats right... hmmm, do you still have a copy of that folder with the items inside, in your CMP file so that when you run your client.bat for testing it can referance it from its usual position??
Because I have done that once, made my mod, put it all into the .jar to actualy mod my minecraft and play, then bam ID error lol, went to fix it, but forgot that I moved the image files from MCP when I did that so I had to put them back to finish redoing my first mistake lol.
I dont get what you mean? Should i have a copy of the folder in my MCP folder? i only have it in my minecraft.jar and on my desktop?
Yes I have deleted that.
It says there's a problem with finding an image. In my folder do i need to have '.png' in the name of the image? They are all named correctly, but they don't have '.png' at the end and they are all '.png' photos. Also its only coming up with an error for one image only and i triple checked everything for that and everythings correct? any help?
I am getting that VERY SAME THING on my tool mod!
It said my EmeraldSpade had no nametag! Thinking about taking it out completly just to see if it will do it all the way down the other items I made as well =/
We both ran into the same problim thats kinda funny though lol.
Hopefully theres a fix
Seems like we're at a halt until help arrives and fixes are found.
ModLoader.AddName("","");
mine looks like
ModLoader.AddName("SaphireSword", "Saphire Sword");
what it SHOULD BE
ModLoader.AddName(SaphireSword, "Saphire Sword");
so do your .AddName's without the first set of "" to name your item!
This info was brought to us by xTwilight3 [THANK YOU SO MUCH]
Sadly im still having an item image error. Heres the error:
And heres my code:
If anything else is needed to find a fix please let me know!
I set mine at 1000 [1001,1002 ect] and I got mine working again [xTwillight3's fix was to only one of my problims lol]
yeah let me know if that works =/ Im running out of Ideas atm, even for my code so haha yeah....
I would ask do you want to revert to 1.8.1 and we could work together to make a cool big mod.
also note I just thought of something you might of overlooked.... are you referancing your item's picture right?
as in, I see it is coded corectly, but did you put the file Katiestonetools with all the pic's in the right place...
that just ran across my mind so let me know if thats it.
I just put them into the Minecraft.Jar like i was installing a mod. Its near the 'item' and 'lang' folder in the Minecraft.Jar folder. Is that where it belongs? Also reverting back to 1.8.1 and making a cool big mod sounds fun, ill think about it.
Because I have done that once, made my mod, put it all into the .jar to actualy mod my minecraft and play, then bam ID error lol, went to fix it, but forgot that I moved the image files from MCP when I did that so I had to put them back to finish redoing my first mistake lol.
I dont get what you mean? Should i have a copy of the folder in my MCP folder? i only have it in my minecraft.jar and on my desktop?