Here are the instructions for installing 1.6.2 and modloader using MCP:
1. Force update
2. Download the 1.6.2 modloader zip
3. Go to %appdata%/minecraft/versions/1.6.2/ and open 1.6.2.jar
4. Paste the contents of the modloader zip and delete META-INF
5. Run cleanup.bat in your mcp folder and delete everything in /jars/
6. Place the minecraft_server.jar for 1.6.2 in /jars/ again
7. Run decompile.bat to fetch your .minecraft
8. Open eclipse, set the workspace and start coding from scratch
Risugami's instructions are only for installing modloader if you aren't a modder.
Can you send me your modloader.java in a spoiler and code. Apparently mine's broken...
I have reobfuscated my Minecraft Mod and when a ran it in Minecraft, I got this report:
---- Minecraft Crash Report ----
// Would you like a cupcake?
Time: 9/29/13 4:14 PM
Description: ModLoader has failed to initialize.
java.lang.NullPointerException
at aae.a(SourceFile:756)
at ModLoader.addRecipe(ModLoader.java:400)
at mod_Boogatite.load(mod_Boogatite.java:34)
at ModLoader.init(ModLoader.java:732)
at ModLoader.addAllRenderers(ModLoader.java:191)
at bgi.<init>(RenderManager.java:98)
at bgi.<clinit>(RenderManager.java:14)
at ats.O(SourceFile:343)
at ats.d(SourceFile:599)
at net.minecraft.client.main.Main.main(SourceFile:101)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.6.2
Operating System: Windows 8 (amd64) version 6.2
Java Version: 1.7.0_11, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 83732048 bytes (79 MB) / 128319488 bytes (122 MB) up to 954466304 bytes (910 MB)
JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: ModLoader, EntityRendererProxy, BaseMod, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.6.2
mod_Boogatite 1.6.2
And the class it talks about:
package net.minecraft.src;
import java.util.Random;
public class mod_Boogatite extends BaseMod{
public static final Block boogatiteore = new BlockBoogatiteOre(272, 0).setHardness(3.0F).setResistance(5F).setUnlocalizedName("BoogatiteOre").func_111022_d("BoogatiteOre");
public static final Item boogatite = new Item(422).setUnlocalizedName("Boogatite").func_111206_d("Boogatite").setCreativeTab(CreativeTabs.tabMaterials);
public static final Block boogatiteblock = new BlockBoogatiteBlock(273, 0).setHardness(3.0F).setResistance(5F).setUnlocalizedName("BoogatiteBlock").func_111022_d("BoogatiteBlock");
public static final Item helmetBoogatite = new ItemArmorBoogatite(423, EnumArmorBoogatite.BOOGATITE, ModLoader.addArmor("boogatite"), 0).setUnlocalizedName("BoogatiteHelmet").setCreativeTab(CreativeTabs.tabCombat);
public static final Item chestplateBoogatite = new ItemArmorBoogatite(424, EnumArmorBoogatite.BOOGATITE, ModLoader.addArmor("boogatite"), 1).setUnlocalizedName("BoogatiteChestplate").setCreativeTab(CreativeTabs.tabCombat);
public static final Item leggingsBoogatite = new ItemArmorBoogatite(425, EnumArmorBoogatite.BOOGATITE, ModLoader.addArmor("boogatite"), 2).setUnlocalizedName("BoogatiteLeggings").setCreativeTab(CreativeTabs.tabCombat);
public static final Item bootsBoogatite = new ItemArmorBoogatite(426, EnumArmorBoogatite.BOOGATITE, ModLoader.addArmor("boogatite"), 3).setUnlocalizedName("BoogatiteBoots").setCreativeTab(CreativeTabs.tabCombat);
public static final Item hoeBoogatite = new ItemHoeBoogatite(427, EnumToolBoogatite.BOOGATITE).setUnlocalizedName("BoogatiteHoe");
public static final Item spadeBoogatite = new ItemSpadeBoogatite(428, EnumToolBoogatite.BOOGATITE).setUnlocalizedName("BoogatiteShovel");
public static final Item swordBoogatite = new ItemSwordBoogatite(429, EnumToolBoogatite.BOOGATITE).setUnlocalizedName("BoogatiteSword");
public static final Item pickaxeBoogatite = new ItemPickaxeBoogatite(430, EnumToolBoogatite.BOOGATITE).setUnlocalizedName("BoogatitePickaxe");
public static final Item axeBoogatite = new ItemAxeBoogatite(431, EnumToolBoogatite.BOOGATITE).setUnlocalizedName("BoogatiteAxe");
public void load(){
ModLoader.addName(boogatiteore, "Boogatite Ore");
ModLoader.addName(boogatite, "Boogatite");
ModLoader.addName(boogatiteblock, "Block of Boogatite");
ModLoader.addName(helmetBoogatite, "Boogatite Helmet");
ModLoader.addName(chestplateBoogatite, "Boogatite Chestplate");
ModLoader.addName(leggingsBoogatite, "Boogatite Leggings");
ModLoader.addName(bootsBoogatite, "Boogatite Boots");
ModLoader.addName(hoeBoogatite, "Boogatite Hoe");
ModLoader.addName(spadeBoogatite, "Boogatite Shovel");
ModLoader.addName(swordBoogatite, "Boogatite Sword");
ModLoader.addName(pickaxeBoogatite, "Boogatite Pickaxe");
ModLoader.addName(axeBoogatite, "Boogatite Axe");
ModLoader.registerBlock(boogatiteore);
ModLoader.registerBlock(boogatiteblock);
ModLoader.addRecipe(new ItemStack(boogatiteore, 1), new Object[]{
"XXX", "XXX", "XXX", Character.valueOf('X'), mod_Boogatite.boogatite.itemID
});
ModLoader.addRecipe(new ItemStack(helmetBoogatite, 1), new Object[]{
"XXX", "X X", Character.valueOf('X'), mod_Boogatite.boogatite.itemID
});
ModLoader.addRecipe(new ItemStack(chestplateBoogatite, 1), new Object[]{
"X X", "XXX", "XXX", Character.valueOf('X'), mod_Boogatite.boogatite.itemID
});
ModLoader.addRecipe(new ItemStack(leggingsBoogatite, 1), new Object[]{
"XXX", "X X", "X X", Character.valueOf('X'), mod_Boogatite.boogatite.itemID
});
ModLoader.addRecipe(new ItemStack(bootsBoogatite, 1), new Object[]{
"X X", "X X", Character.valueOf('X'), mod_Boogatite.boogatite.itemID
});
ModLoader.addRecipe(new ItemStack(hoeBoogatite, 1), new Object[]{
"XX ", " I ", " I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(hoeBoogatite, 1), new Object[]{
" XX", " I ", " I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(spadeBoogatite, 1), new Object[]{
"X ", "I ", "I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(spadeBoogatite, 1), new Object[]{
" X ", " I ", " I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(spadeBoogatite, 1), new Object[]{
" X", " I", " I", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(swordBoogatite, 1), new Object[]{
"X ", "X ", "I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(swordBoogatite, 1), new Object[]{
" X ", " X ", " I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(swordBoogatite, 1), new Object[]{
" X", " X", " I", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(pickaxeBoogatite, 1), new Object[]{
"XXX", "I ", "I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(axeBoogatite, 1), new Object[]{
"XX ", "I ", "I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(axeBoogatite, 1), new Object[]{
" XX", "I ", "I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(spadeBoogatite, 1), new Object[]{
"XX ", "I ", "I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(spadeBoogatite, 1), new Object[]{
" XX", " I", " I", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
}
public void generateSurface(World world, Random random, int i, int j){
for(int k = 0; k < 5; k++){
int randPosX = i + random.nextInt(16);
int randPosY = random.nextInt(64);
int randPosZ = j + random.nextInt(16);
(new WorldGenMinable(boogatiteore.blockID, 8)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion(){
return "1.6.2";
}
}
Rollback Post to RevisionRollBack
WHY DOESN'T ANY FORUMS HAVE THE NAME "ANONYMOUS" AVAILABLE?!?!?!
I have reobfuscated my Minecraft Mod and when a ran it in Minecraft, I got this report:
---- Minecraft Crash Report ----
// Would you like a cupcake?
Time: 9/29/13 4:14 PM
Description: ModLoader has failed to initialize.
java.lang.NullPointerException
at aae.a(SourceFile:756)
at ModLoader.addRecipe(ModLoader.java:400)
at mod_Boogatite.load(mod_Boogatite.java:34)
at ModLoader.init(ModLoader.java:732)
at ModLoader.addAllRenderers(ModLoader.java:191)
at bgi.<init>(RenderManager.java:98)
at bgi.<clinit>(RenderManager.java:14)
at ats.O(SourceFile:343)
at ats.d(SourceFile:599)
at net.minecraft.client.main.Main.main(SourceFile:101)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.6.2
Operating System: Windows 8 (amd64) version 6.2
Java Version: 1.7.0_11, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 83732048 bytes (79 MB) / 128319488 bytes (122 MB) up to 954466304 bytes (910 MB)
JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: ModLoader, EntityRendererProxy, BaseMod, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.6.2
mod_Boogatite 1.6.2
And the class it talks about:
package net.minecraft.src;
import java.util.Random;
public class mod_Boogatite extends BaseMod{
public static final Block boogatiteore = new BlockBoogatiteOre(272, 0).setHardness(3.0F).setResistance(5F).setUnlocalizedName("BoogatiteOre").func_111022_d("BoogatiteOre");
public static final Item boogatite = new Item(422).setUnlocalizedName("Boogatite").func_111206_d("Boogatite").setCreativeTab(CreativeTabs.tabMaterials);
public static final Block boogatiteblock = new BlockBoogatiteBlock(273, 0).setHardness(3.0F).setResistance(5F).setUnlocalizedName("BoogatiteBlock").func_111022_d("BoogatiteBlock");
public static final Item helmetBoogatite = new ItemArmorBoogatite(423, EnumArmorBoogatite.BOOGATITE, ModLoader.addArmor("boogatite"), 0).setUnlocalizedName("BoogatiteHelmet").setCreativeTab(CreativeTabs.tabCombat);
public static final Item chestplateBoogatite = new ItemArmorBoogatite(424, EnumArmorBoogatite.BOOGATITE, ModLoader.addArmor("boogatite"), 1).setUnlocalizedName("BoogatiteChestplate").setCreativeTab(CreativeTabs.tabCombat);
public static final Item leggingsBoogatite = new ItemArmorBoogatite(425, EnumArmorBoogatite.BOOGATITE, ModLoader.addArmor("boogatite"), 2).setUnlocalizedName("BoogatiteLeggings").setCreativeTab(CreativeTabs.tabCombat);
public static final Item bootsBoogatite = new ItemArmorBoogatite(426, EnumArmorBoogatite.BOOGATITE, ModLoader.addArmor("boogatite"), 3).setUnlocalizedName("BoogatiteBoots").setCreativeTab(CreativeTabs.tabCombat);
public static final Item hoeBoogatite = new ItemHoeBoogatite(427, EnumToolBoogatite.BOOGATITE).setUnlocalizedName("BoogatiteHoe");
public static final Item spadeBoogatite = new ItemSpadeBoogatite(428, EnumToolBoogatite.BOOGATITE).setUnlocalizedName("BoogatiteShovel");
public static final Item swordBoogatite = new ItemSwordBoogatite(429, EnumToolBoogatite.BOOGATITE).setUnlocalizedName("BoogatiteSword");
public static final Item pickaxeBoogatite = new ItemPickaxeBoogatite(430, EnumToolBoogatite.BOOGATITE).setUnlocalizedName("BoogatitePickaxe");
public static final Item axeBoogatite = new ItemAxeBoogatite(431, EnumToolBoogatite.BOOGATITE).setUnlocalizedName("BoogatiteAxe");
public void load(){
ModLoader.addName(boogatiteore, "Boogatite Ore");
ModLoader.addName(boogatite, "Boogatite");
ModLoader.addName(boogatiteblock, "Block of Boogatite");
ModLoader.addName(helmetBoogatite, "Boogatite Helmet");
ModLoader.addName(chestplateBoogatite, "Boogatite Chestplate");
ModLoader.addName(leggingsBoogatite, "Boogatite Leggings");
ModLoader.addName(bootsBoogatite, "Boogatite Boots");
ModLoader.addName(hoeBoogatite, "Boogatite Hoe");
ModLoader.addName(spadeBoogatite, "Boogatite Shovel");
ModLoader.addName(swordBoogatite, "Boogatite Sword");
ModLoader.addName(pickaxeBoogatite, "Boogatite Pickaxe");
ModLoader.addName(axeBoogatite, "Boogatite Axe");
ModLoader.registerBlock(boogatiteore);
ModLoader.registerBlock(boogatiteblock);
ModLoader.addRecipe(new ItemStack(boogatiteore, 1), new Object[]{
"XXX", "XXX", "XXX", Character.valueOf('X'), mod_Boogatite.boogatite.itemID
});
ModLoader.addRecipe(new ItemStack(helmetBoogatite, 1), new Object[]{
"XXX", "X X", Character.valueOf('X'), mod_Boogatite.boogatite.itemID
});
ModLoader.addRecipe(new ItemStack(chestplateBoogatite, 1), new Object[]{
"X X", "XXX", "XXX", Character.valueOf('X'), mod_Boogatite.boogatite.itemID
});
ModLoader.addRecipe(new ItemStack(leggingsBoogatite, 1), new Object[]{
"XXX", "X X", "X X", Character.valueOf('X'), mod_Boogatite.boogatite.itemID
});
ModLoader.addRecipe(new ItemStack(bootsBoogatite, 1), new Object[]{
"X X", "X X", Character.valueOf('X'), mod_Boogatite.boogatite.itemID
});
ModLoader.addRecipe(new ItemStack(hoeBoogatite, 1), new Object[]{
"XX ", " I ", " I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(hoeBoogatite, 1), new Object[]{
" XX", " I ", " I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(spadeBoogatite, 1), new Object[]{
"X ", "I ", "I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(spadeBoogatite, 1), new Object[]{
" X ", " I ", " I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(spadeBoogatite, 1), new Object[]{
" X", " I", " I", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(swordBoogatite, 1), new Object[]{
"X ", "X ", "I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(swordBoogatite, 1), new Object[]{
" X ", " X ", " I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(swordBoogatite, 1), new Object[]{
" X", " X", " I", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(pickaxeBoogatite, 1), new Object[]{
"XXX", "I ", "I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(axeBoogatite, 1), new Object[]{
"XX ", "I ", "I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(axeBoogatite, 1), new Object[]{
" XX", "I ", "I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(spadeBoogatite, 1), new Object[]{
"XX ", "I ", "I ", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
ModLoader.addRecipe(new ItemStack(spadeBoogatite, 1), new Object[]{
" XX", " I", " I", Character.valueOf('X'), mod_Boogatite.boogatite.itemID, Character.valueOf('I'), Item.stick.itemID
});
}
public void generateSurface(World world, Random random, int i, int j){
for(int k = 0; k < 5; k++){
int randPosX = i + random.nextInt(16);
int randPosY = random.nextInt(64);
int randPosZ = j + random.nextInt(16);
(new WorldGenMinable(boogatiteore.blockID, 8)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion(){
return "1.6.2";
}
}
Looking at the error, it says there is a problem at line 34
at mod_Boogatite.load(mod_Boogatite.java:34)
The reason you are getting crashes is because you are adding .itemID at the end of your item in the recipe, like so:
I applied your fix to my code, now ModLoader crashed for a different reason
The report:
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.
Time: 9/29/13 7:09 PM
Description: ModLoader has failed to initialize.
java.lang.NullPointerException
at aae.a(SourceFile:756)
at ModLoader.addRecipe(ModLoader.java:400)
at mod_Boogatite.load(mod_Boogatite.java:49)
at ModLoader.init(ModLoader.java:732)
at ModLoader.addAllRenderers(ModLoader.java:191)
at bgi.<init>(RenderManager.java:98)
at bgi.<clinit>(RenderManager.java:14)
at ats.O(SourceFile:343)
at ats.d(SourceFile:599)
at net.minecraft.client.main.Main.main(SourceFile:101)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.6.2
Operating System: Windows 8 (amd64) version 6.2
Java Version: 1.7.0_11, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 83481256 bytes (79 MB) / 128319488 bytes (122 MB) up to 954466304 bytes (910 MB)
JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: ModLoader, EntityRendererProxy, BaseMod, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.6.2
mod_Boogatite 1.6.2
And the line in question(the top line is 49):
ModLoader.addRecipe(new ItemStack(hoeBoogatite, 1), new Object[]{
"XX ", " I ", " I ", Character.valueOf('X'), mod_Boogatite.boogatite, Character.valueOf('I'), Item.stick.itemID
});
I applied your fix to my code, now ModLoader crashed for a different reason
The report:
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.
Time: 9/29/13 7:09 PM
Description: ModLoader has failed to initialize.
java.lang.NullPointerException
at aae.a(SourceFile:756)
at ModLoader.addRecipe(ModLoader.java:400)
at mod_Boogatite.load(mod_Boogatite.java:49)
at ModLoader.init(ModLoader.java:732)
at ModLoader.addAllRenderers(ModLoader.java:191)
at bgi.<init>(RenderManager.java:98)
at bgi.<clinit>(RenderManager.java:14)
at ats.O(SourceFile:343)
at ats.d(SourceFile:599)
at net.minecraft.client.main.Main.main(SourceFile:101)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.6.2
Operating System: Windows 8 (amd64) version 6.2
Java Version: 1.7.0_11, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 83481256 bytes (79 MB) / 128319488 bytes (122 MB) up to 954466304 bytes (910 MB)
JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: ModLoader, EntityRendererProxy, BaseMod, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.6.2
mod_Boogatite 1.6.2
And the line in question(why does ModLoader hate my recipes?):
ModLoader.addRecipe(new ItemStack(hoeBoogatite, 1), new Object[]{
"XX ", " I ", " I ", Character.valueOf('X'), mod_Boogatite.boogatite, Character.valueOf('I'), Item.stick.itemID
});
Please help!
It's the same error... You are defining I as Item.stick.itemID not Item.stick
Now it crashed and I don't know why! (I think ModLoader hates me)
---- Minecraft Crash Report ----
// There are four lights!
Time: 9/30/13 3:22 PM
Description: ModLoader has failed to initialize.
java.lang.ArrayIndexOutOfBoundsException: 272
at ModLoader.initStats(ModLoader.java:781)
at ModLoader.init(ModLoader.java:757)
at ModLoader.addAllRenderers(ModLoader.java:191)
at bgi.<init>(RenderManager.java:98)
at bgi.<clinit>(RenderManager.java:14)
at ats.O(SourceFile:343)
at ats.d(SourceFile:599)
at net.minecraft.client.main.Main.main(SourceFile:101)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.6.2
Operating System: Windows 8 (amd64) version 6.2
Java Version: 1.7.0_11, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 26219248 bytes (25 MB) / 128319488 bytes (122 MB) up to 954466304 bytes (910 MB)
JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: ModLoader, EntityRendererProxy, BaseMod, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.6.2
mod_Boogatite 1.6.2
I reinstalled ModLoader already, so that's not the problem. Please help!
I am afraid I can't update the mob tutorial, since 1.5.2 it has stopped working and I have tried and tried but haven't been able to find a fix or anything for it.
Now it crashed and I don't know why! (I think ModLoader hates me)
---- Minecraft Crash Report ----
// There are four lights!
Time: 9/30/13 3:22 PM
Description: ModLoader has failed to initialize.
java.lang.ArrayIndexOutOfBoundsException: 272
at ModLoader.initStats(ModLoader.java:781)
at ModLoader.init(ModLoader.java:757)
at ModLoader.addAllRenderers(ModLoader.java:191)
at bgi.<init>(RenderManager.java:98)
at bgi.<clinit>(RenderManager.java:14)
at ats.O(SourceFile:343)
at ats.d(SourceFile:599)
at net.minecraft.client.main.Main.main(SourceFile:101)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.6.2
Operating System: Windows 8 (amd64) version 6.2
Java Version: 1.7.0_11, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 26219248 bytes (25 MB) / 128319488 bytes (122 MB) up to 954466304 bytes (910 MB)
JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: ModLoader, EntityRendererProxy, BaseMod, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.6.2
mod_Boogatite 1.6.2
I reinstalled ModLoader already, so that's not the problem. Please help!
I have no idea why this is happening... I suggest you report this to risugami or someone from the Modloader team, you can contact them via IRC on #risucraft or post on the Modloader post
can there be a way to make a block which when you right click it it opens a GUI and you can put you jetpack in it to charge it?
Right now I don't have a GUI tutorial but if you find one you can add it to the block and open it using
public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
please help! when i am in the mod_Name and i type this line of code:
public class mod_NaturalGems extends BaseMod{
it gives me an error saying that the "mod_NaturalGems" part is wrong or something and it also says the "BaseMod" part is wrong too. please help!
or how about i give you guys the whole picture because it seems like alot of things are wrong...
My guess is that you installed ModLoader wrong, I recently changed the installation tutorial because I had forgotten to mention something. If you have the class BaseMod or ModLoader then you should have a good installation
Not really, the render is the problem causing the mob tutorial to not work so I don't think I will have render fixed in a while
Right now I don't have a GUI tutorial but if you find one you can add it to the block and open it using
public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
My guess is that you installed ModLoader wrong, I recently changed the installation tutorial because I had forgotten to mention something. If you have the class BaseMod or ModLoader then you should have a good installation
i thought i just had to put all the ML class files from the modloader.jar in the 1.6.2.jar in the versions folder. is that not right?
Hey there. I just decompiled minecraft 1.6.2 with mcp805 for Minecraft 1.6.2. I got these errors in my code and I do not know how to fix them.
== ERRORS FOUND in JAVA CODE ==
src\minecraft\net\minecraft\src\ChatMessageComponent.java:266: error: cannot fin
d symbol
var7.append(StatCollector.translateToLocalFormatted(this.field_1
11090_h, (Object[])var13));
^
symbol: variable field_111090_h
src\minecraft\net\minecraft\src\ModLoader.java:292: error: method put in interfa
ce Map<K,V> cannot be applied to given types;
localizedStrings.put(s1, obj);
^
required: String,Map<String,String>
found: String,Object
reason: actual argument Object cannot be converted to Map<String,String> by me
thod invocation conversion
where K,V are type-variables:
K extends Object declared in interface Map
V extends Object declared in interface Map
src\minecraft\net\minecraft\src\ModLoader.java:309: error: method put in interfa
ce Map<K,V> cannot be applied to given types;
tradeItems.put(Integer.valueOf(profession), list);
^
required: Integer,List<TradeEntry>
found: Integer,Object
reason: actual argument Object cannot be converted to List<TradeEntry> by meth
od invocation conversion
where K,V are type-variables:
K extends Object declared in interface Map
V extends Object declared in interface Map
src\minecraft\net\minecraft\src\ModLoader.java:1501: error: method put in interf
ace Map<K,V> cannot be applied to given types;
keyList.put(basemod, obj);
^
required: BaseMod,Map<KeyBinding,boolean[]>
found: BaseMod,Object
reason: actual argument Object cannot be converted to Map<KeyBinding,boolean[]
> by method invocation conversion
where K,V are type-variables:
K extends Object declared in interface Map
V extends Object declared in interface Map
4 errors
==================
Hey there. I just decompiled minecraft 1.6.2 with mcp805 for Minecraft 1.6.2. I got these errors in my code and I do not know how to fix them.
== ERRORS FOUND in JAVA CODE ==
src\minecraft\net\minecraft\src\ChatMessageComponent.java:266: error: cannot fin
d symbol
var7.append(StatCollector.translateToLocalFormatted(this.field_1
11090_h, (Object[])var13));
^
symbol: variable field_111090_h
src\minecraft\net\minecraft\src\ModLoader.java:292: error: method put in interfa
ce Map<K,V> cannot be applied to given types;
localizedStrings.put(s1, obj);
^
required: String,Map<String,String>
found: String,Object
reason: actual argument Object cannot be converted to Map<String,String> by me
thod invocation conversion
where K,V are type-variables:
K extends Object declared in interface Map
V extends Object declared in interface Map
src\minecraft\net\minecraft\src\ModLoader.java:309: error: method put in interfa
ce Map<K,V> cannot be applied to given types;
tradeItems.put(Integer.valueOf(profession), list);
^
required: Integer,List<TradeEntry>
found: Integer,Object
reason: actual argument Object cannot be converted to List<TradeEntry> by meth
od invocation conversion
where K,V are type-variables:
K extends Object declared in interface Map
V extends Object declared in interface Map
src\minecraft\net\minecraft\src\ModLoader.java:1501: error: method put in interf
ace Map<K,V> cannot be applied to given types;
keyList.put(basemod, obj);
^
required: BaseMod,Map<KeyBinding,boolean[]>
found: BaseMod,Object
reason: actual argument Object cannot be converted to Map<KeyBinding,boolean[]
> by method invocation conversion
where K,V are type-variables:
K extends Object declared in interface Map
V extends Object declared in interface Map
4 errors
==================
public static void registerKey(BaseMod basemod, KeyBinding keybinding, boolean flag)
{
Object obj = (Map)keyList.get(basemod);
if (obj == null)
{
obj = new HashMap();
}
boolean[] aflag = new boolean[] {flag, false};
((Map)obj).put(keybinding, aflag);
keyList.put(basemod, obj);
}
Please reply I need to update my mod for a lot of people. I haven't been active on the mod since 1.5.2.
It looks like you have placed the fix for the compile error on line 266 instead of 256. If you still are getting problems try using the code without the fix.
make this forge! although forge has not updated to 1.7.2
I am going to keep this as modloader because there are many forge tutorials out there and modloader has very few updated tutorials. It is also good to have modloader tutorials for people who want to use it to make learning forge easier.
Can you send me your modloader.java in a spoiler and code. Apparently mine's broken...
And the class it talks about:
Looking at the error, it says there is a problem at line 34
The reason you are getting crashes is because you are adding .itemID at the end of your item in the recipe, like so:
The code should be like:
The report:
And the line in question(the top line is 49):
Please help!
It's the same error... You are defining I as Item.stick.itemID not Item.stick
I reinstalled ModLoader already, so that's not the problem. Please help!
I am afraid I can't update the mob tutorial, since 1.5.2 it has stopped working and I have tried and tried but haven't been able to find a fix or anything for it.
I have no idea why this is happening... I suggest you report this to risugami or someone from the Modloader team, you can contact them via IRC on #risucraft or post on the Modloader post
it gives me an error saying that the "mod_NaturalGems" part is wrong or something and it also says the "BaseMod" part is wrong too. please help!
Not really, the render is the problem causing the mob tutorial to not work so I don't think I will have render fixed in a while
Right now I don't have a GUI tutorial but if you find one you can add it to the block and open it using
My guess is that you installed ModLoader wrong, I recently changed the installation tutorial because I had forgotten to mention something. If you have the class BaseMod or ModLoader then you should have a good installation
"r" is the name of my texture in the textures folder.
The code should work, what error are you getting?
please help
You shouldn't have any errors at all, The only causes I can think of is that you are using a different version or forge. Try using
instead. If you still get the error, I'm afraid I can't help you
Here is the part in ChatMessageComponent.java:
Heres the part with ModLoader.java
Please reply I need to update my mod for a lot of people. I haven't been active on the mod since 1.5.2.
use a later version of windows and you need to import them into your main mod file
It looks like you have placed the fix for the compile error on line 266 instead of 256. If you still are getting problems try using the code without the fix.
I am going to keep this as modloader because there are many forge tutorials out there and modloader has very few updated tutorials. It is also good to have modloader tutorials for people who want to use it to make learning forge easier.