hi. im back i was trying to create a mob for my mod and it re-compiles and reobfuscates without error, but when i install it into the client or use the client inside MCP is has a boot problem or something. and it doesn't give me an error log so here's the script in the command console:
== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) ==
[19:59:07] 27 achievements
[19:59:07] 182 recipes
[19:59:07] LWJGL Version: 2.4.2
[19:59:09] ModLoader 1.2.5 Initializing...
[19:59:09] CONFLICT @ 2006
[19:59:09] Overriding /gui/items.png with /cardboard/crane.png @ 38. 84 left.
[19:59:09] Mod Initialized: mod_cardboard2 1.2.5
[19:59:09] Mod Loaded: mod_cardboard2 1.2.5
[19:59:09] Done.
[19:59:09] Exception in thread "Minecraft main thread" java.lang.ExceptionInInit
ializerError
[19:59:09] at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
[19:59:09] at net.minecraft.client.Minecraft.run(Minecraft.java:786)
[19:59:09] at java.lang.Thread.run(Thread.java:722)
[19:59:09] Caused by: java.lang.NullPointerException
[19:59:09] at net.minecraft.src.ModelCrane.<init>(ModelCrane.java:68)
[19:59:09] at net.minecraft.src.mod_cardboard2.addRenderer(mod_cardboard2.j
ava:27)
[19:59:09] at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:16
3)
[19:59:09] at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
[19:59:09] at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:1
2)
[19:59:09] ... 3 more
Press any key to continue . . .
and here are my classes:
mod_cardboard2:
package net.minecraft.src;
import java.util.Map;
public class mod_cardboard2 extends BaseMod
{
public static final Item crane = new ItemCrane(2006).setItemName("crane");
public mod_cardboard2()
{
crane.iconIndex = ModLoader.addOverride("/gui/items.png", "/cardboard/crane.png");
ModLoader.addName(crane, "Origami Crane");
ModLoader.addRecipe(new ItemStack(crane, 1), new Object[] {
" | ", "|#|", Character.valueOf('|'), Item.paper, Character.valueOf('#'), Block.slowSand
});
}
public void load()
{
ModLoader.registerEntityID(EntityCrane.class, "Crane", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntityCrane.class, 15, 5, 7, EnumCreatureType.creature);
}
public void addRenderer(Map map)
{
map.put(EntityCrane.class, new RenderCrane(new ModelCrane(), 0.5F));
}
public String getVersion()
{
return "1.2.5";
}
}
ItemCrane:
package net.minecraft.src;
public class ItemCrane extends Item
{
public ItemCrane(int i)
{
super(i);
maxStackSize = (64);
}
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
{
world.spawnEntityInWorld(new EntityCrane(world));
return itemstack;
}
}
I've tried many varied things even using different methods but i can't fix it and i don't want to start over. oh, and this isn't completely finished yet.
I don't think I counted right, but the error says the problem is on line 68 in the Model code... which took me into the creating of the box for the right wing.
I think the problem is that you're trying to mirror something that hasn't been created yet, hence the null error. Remove the excess rightwing.mirror lines and hopefully that fixes it.
and here are my classes:
mod_cardboard2:
ItemCrane:
RenderCrane:
ModelCrane:
EntityCrane:
I've tried many varied things even using different methods but i can't fix it and i don't want to start over. oh, and this isn't completely finished yet.
I think the problem is that you're trying to mirror something that hasn't been created yet, hence the null error. Remove the excess rightwing.mirror lines and hopefully that fixes it.