Jump to content

[Resolved] Problem with proxy's? [1.7.10]


zomarea225

Recommended Posts

Okay so I've been developing a mod for a while now and I recently added my first mob. It was working perfectly until a few days ago where it suddenly stopped working. I've tried as hard as I can to fix this but it's getting hard. The game doesn't load - it crashes on the loading screen; I'm so confused!

 

Here is my main mod class :

package zomarea225.ZomCraft;
import cpw.mods.fml.common.IWorldGenerator;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraftforge.common.util.EnumHelper;
import zomarea225.ZomCraft.block.BlockBlankOre;
import zomarea225.ZomCraft.block.BlockCompressedZombieStoneBlock;
import zomarea225.ZomCraft.block.BlockZombieStoneBlock;
import zomarea225.ZomCraft.entities.EntityZomarea;
import zomarea225.ZomCraft.item.ItemHeroin;
import zomarea225.ZomCraft.item.ItemHumanSpawner;
import zomarea225.ZomCraft.item.ItemSyringe;
import zomarea225.ZomCraft.item.ItemZombieStone;
import zomarea225.ZomCraft.item.armor.ItemNinjaArmor;
import zomarea225.ZomCraft.item.armor.ItemZombieStoneArmor;
import zomarea225.ZomCraft.item.tools.ItemSamuraiSword;
import zomarea225.ZomCraft.item.tools.ItemZombieStoneAxe;
import zomarea225.ZomCraft.item.tools.ItemZombieStoneHoe;
import zomarea225.ZomCraft.item.tools.ItemZombieStonePickaxe;
import zomarea225.ZomCraft.item.tools.ItemZombieStoneShovel;
import zomarea225.ZomCraft.item.tools.ItemZombieStoneSword;
import zomarea225.ZomCraft.proxy.ClientProxy;
import zomarea225.ZomCraft.proxy.CommonProxy;
import zomarea225.ZomCraft.world.CobblestoneGeneration;
import zomarea225.ZomCraft.world.DiamondBlockGeneration;
import zomarea225.ZomCraft.world.ZombieStoneBlockGeneration;

@Mod(modid = "zomcraft", name = "ZomCraft", version = "5.4.2")
public class ZomCraftMain {

@Mod.Instance
public static ZomCraftMain instance;

@SidedProxy(serverSide="zomarea225.ZomCraft.proxy.CommonProxy",clientSide="zomarea225.ZomCraft.proxy.ClientProxy")
public static CommonProxy proxy;


//Items
public static Item itemNinjaHelmet;
public static Item itemNinjaChestplate;
public static Item itemNinjaLeggings;
public static Item itemNinjaBoots;
public static Item itemZombieStoneHelmet;
public static Item itemZombieStoneChestplate;
public static Item itemZombieStoneLeggings;
public static Item itemZombieStoneBoots;
public static Item itemZombieStonePickaxe;
public static Item itemZombieStoneSword;
public static Item itemZombieStoneShovel;
public static Item itemZombieStoneAxe;
public static Item itemZombieStoneHoe;
public static Item itemZombieStone;
public static Item itemChippedDiamond;
public static Item itemSamuraiSword;
public static Item itemHumanSpawner;
public static Item itemHeroin;
public static Item itemSyringe;

//Blocks
public static Block blockZombieStoneBlock;
public static Block blockCompressedZombieStoneBlock;
public static Block blockBlankOre;

//Foods
public static Item itemFlesh;
public static Item itemStoneSnack;


//Materials
public static final Item.ToolMaterial zombieStoneToolMaterial = EnumHelper.addToolMaterial("zombieStoneToolMaterial", 5, 2000, 50.0F, 10.0F, 30);
public static final ItemArmor.ArmorMaterial zombieStoneArmorMaterial = EnumHelper.addArmorMaterial("zombieStoneArmorMaterial", 7000,new int[]{7,15,20,7}, 30);
    public static final Item.ToolMaterial samuraiSwordMaterial = EnumHelper.addToolMaterial("samuraiSwordMaterial", 10, 100000, 500.0F, 100.0F, 100);
public static final ItemArmor.ArmorMaterial ninjaArmorMaterial = EnumHelper.addArmorMaterial("ninjaArmorMaterial", 4000, new int[]{2,6,7,2}, 30);

@EventHandler
    public void preInit(FMLPreInitializationEvent event) {
	//Render Entities

	proxy.registerRenderers();
	proxy.registerEntities();

	//Armour
	itemZombieStoneHelmet = new ItemZombieStoneArmor(zombieStoneArmorMaterial, 0, 0).setUnlocalizedName("ItemZombiestoneHelmet").setTextureName("zomcraft:itemzombiestonehelmet").setCreativeTab(tabZomCraft);
	itemZombieStoneChestplate = new ItemZombieStoneArmor(zombieStoneArmorMaterial, 0, 1).setUnlocalizedName("ItemZombieStoneChestplate").setTextureName("zomcraft:itemzombiestonechestplate").setCreativeTab(tabZomCraft);
	itemZombieStoneLeggings = new ItemZombieStoneArmor(zombieStoneArmorMaterial, 0, 2).setUnlocalizedName("ItemZombiestoneLeggings").setTextureName("zomcraft:itemzombiestoneleggings").setCreativeTab(tabZomCraft);
	itemZombieStoneBoots = new ItemZombieStoneArmor(zombieStoneArmorMaterial, 0, 3).setUnlocalizedName("ItemZombieStoneBoots").setTextureName("zomcraft:itemzombiestoneboots").setCreativeTab(tabZomCraft);
	itemNinjaHelmet = new ItemNinjaArmor(ninjaArmorMaterial, 0, 0).setUnlocalizedName("ItemNinjaHelmet").setTextureName("zomcraft:ninjahelmet").setCreativeTab(tabZomCraft);
	itemNinjaChestplate= new ItemNinjaArmor(ninjaArmorMaterial, 0, 1).setUnlocalizedName("ItemNinjaChestplate").setTextureName("zomcraft:ninjachestplate").setCreativeTab(tabZomCraft);
	itemNinjaLeggings = new ItemNinjaArmor(ninjaArmorMaterial, 0, 2).setUnlocalizedName("ItemNinjaLeggings").setTextureName("zomcraft:ninjaleggings").setCreativeTab(tabZomCraft);
	itemNinjaBoots = new ItemNinjaArmor(ninjaArmorMaterial, 0, 3).setUnlocalizedName("ItemNinjaBoots").setTextureName("zomcraft:ninjaboots").setCreativeTab(tabZomCraft);
	//Tools
    	itemZombieStonePickaxe = new ItemZombieStonePickaxe(zombieStoneToolMaterial).setUnlocalizedName("ItemZombiestonePickaxe").setTextureName("zomcraft:itemzombiestonepickaxe").setCreativeTab(tabZomCraft);
    	itemZombieStoneAxe = new ItemZombieStoneAxe(zombieStoneToolMaterial).setUnlocalizedName("ItemZombiestoneAxe").setTextureName("zomcraft:itemzombiestoneaxe").setCreativeTab(tabZomCraft);
    	itemZombieStoneSword = new ItemZombieStoneSword(zombieStoneToolMaterial).setUnlocalizedName("ItemZombiestoneSword").setTextureName("zomcraft:itemzombiestonesword").setCreativeTab(tabZomCraft);
    	itemZombieStoneShovel = new ItemZombieStoneShovel(zombieStoneToolMaterial).setUnlocalizedName("ItemZombiestoneShovel").setTextureName("zomcraft:itemzombiestoneshovel").setCreativeTab(tabZomCraft);
    	itemZombieStoneHoe = new ItemZombieStoneHoe(zombieStoneToolMaterial).setUnlocalizedName("ItemZombiestoneHoe").setTextureName("zomcraft:itemzombiestonehoe").setCreativeTab(tabZomCraft);
    	itemSamuraiSword = new ItemSamuraiSword(samuraiSwordMaterial).setUnlocalizedName("ItemSamuraiSword").setTextureName("zomcraft:itemsamuraisword").setCreativeTab(tabZomCraft);
    	
    	//Blocks and Items
    	itemChippedDiamond = new ItemZombieStone().setUnlocalizedName("ItemChippedDiamond").setTextureName("zomcraft:itemchippedDiamond").setCreativeTab(tabZomCraft);
    	itemZombieStone = new ItemZombieStone().setUnlocalizedName("ItemZombieStone").setTextureName("zomcraft:itemZombieStone").setCreativeTab(tabZomCraft);
    	blockZombieStoneBlock = new BlockZombieStoneBlock(Material.rock).setBlockName("BlockZombieStoneBlock").setBlockTextureName("zomcraft:blockZombieStoneBlock").setCreativeTab(tabZomCraft);
    	blockCompressedZombieStoneBlock = new BlockCompressedZombieStoneBlock(Material.rock).setBlockName("BlockCompressedZombieStoneBlock").setBlockTextureName("zomcraft:blockCompressedZombieStoneBlock").setCreativeTab(tabZomCraft);
    	blockBlankOre = new BlockBlankOre(Material.rock).setBlockName("BlockBlankOre").setBlockTextureName("zomcraft:blockBlankOre").setCreativeTab(tabZomCraft);
    	itemHumanSpawner = new ItemHumanSpawner().setUnlocalizedName("ItemHumanPlacer").setCreativeTab(tabZomCraft).setTextureName("zomcraft:itemsummonzomarea");
    	itemHeroin = new ItemHeroin().setUnlocalizedName("ItemHeroin").setCreativeTab(tabZomCraft).setTextureName("zomcraft:itemheroin");
    	itemSyringe = new ItemSyringe().setUnlocalizedName("ItemSyringe").setCreativeTab(tabZomCraft).setTextureName("zomcraft:emptysyringe");
    	//Foods
       itemFlesh = new ItemFood(10, 0.9F, true).setUnlocalizedName("ItemFlesh").setTextureName("zomcraft:itemflesh").setCreativeTab(tabZomCraft);
       itemStoneSnack = new ItemFood(6, 0.9F, false).setUnlocalizedName("ItemStoneSnack").setTextureName("zomcraft:itemstonesnack").setCreativeTab(tabZomCraft);
       
    	//Game Registry
        GameRegistry.registerItem(itemNinjaHelmet, itemNinjaHelmet.getUnlocalizedName().substring(5));
        GameRegistry.registerItem(itemNinjaChestplate, itemNinjaChestplate.getUnlocalizedName().substring(5));
        GameRegistry.registerItem(itemNinjaLeggings, itemNinjaLeggings.getUnlocalizedName().substring(5));
        GameRegistry.registerItem(itemNinjaBoots, itemNinjaBoots.getUnlocalizedName().substring(5));
        GameRegistry.registerItem(itemZombieStoneHelmet, itemZombieStoneHelmet.getUnlocalizedName().substring(5));
    	GameRegistry.registerItem(itemZombieStoneChestplate, itemZombieStoneChestplate.getUnlocalizedName().substring(5));
    	GameRegistry.registerItem(itemZombieStoneLeggings, itemZombieStoneLeggings.getUnlocalizedName().substring(5));
    	GameRegistry.registerItem(itemZombieStoneBoots, itemZombieStoneBoots.getUnlocalizedName().substring(5));
    	GameRegistry.registerItem(itemZombieStonePickaxe, itemZombieStonePickaxe.getUnlocalizedName().substring(5));
    	GameRegistry.registerItem(itemZombieStoneAxe, itemZombieStoneAxe.getUnlocalizedName().substring(5));
    	GameRegistry.registerItem(itemZombieStoneShovel, itemZombieStoneShovel.getUnlocalizedName().substring(5));
    	GameRegistry.registerItem(itemSamuraiSword, itemSamuraiSword.getUnlocalizedName().substring(5));
    	GameRegistry.registerItem(itemZombieStoneHoe, itemZombieStoneHoe.getUnlocalizedName().substring(5));
    	GameRegistry.registerItem(itemZombieStone, itemZombieStone.getUnlocalizedName().substring(5));
        GameRegistry.registerBlock(blockBlankOre, blockBlankOre.getUnlocalizedName().substring(5));
        GameRegistry.registerBlock(blockCompressedZombieStoneBlock, blockCompressedZombieStoneBlock.getUnlocalizedName().substring(5));
        GameRegistry.registerBlock(blockBlankOre, blockBlankOre.getUnlocalizedName().substring(5));
        GameRegistry.registerWorldGenerator(new ZombieStoneBlockGeneration(), 0);
        GameRegistry.registerWorldGenerator(new DiamondBlockGeneration(), 0);
        GameRegistry.registerWorldGenerator(new CobblestoneGeneration(), 0);
        GameRegistry.registerItem(itemFlesh, itemFlesh.getUnlocalizedName().substring(5));
        GameRegistry.registerItem(itemStoneSnack, itemStoneSnack.getUnlocalizedName().substring(5));
        GameRegistry.registerItem(itemChippedDiamond, itemChippedDiamond.getUnlocalizedName().substring(5));
        GameRegistry.registerItem(itemSamuraiSword, itemSamuraiSword.getUnlocalizedName().substring(5));
        GameRegistry.registerItem(itemHumanSpawner, itemHumanSpawner.getUnlocalizedName().substring(5));
        GameRegistry.registerItem(itemHeroin, itemHeroin.getUnlocalizedName().substring(5));
        GameRegistry.registerItem(itemSyringe, itemSyringe.getUnlocalizedName().substring(5));
        System.out.println(blockCompressedZombieStoneBlock);

        }

@EventHandler 
    public void init(FMLInitializationEvent event) {

   	//Crafting Recipes
    GameRegistry.addRecipe(new ItemStack(itemZombieStone), new Object[]{"SSS", "SRS", "SSS",'R', Items.rotten_flesh, 'S', Blocks.stone});
    GameRegistry.addRecipe(new ItemStack(blockBlankOre), new Object []{"ZZZ","ZZZ","ZZZ", 'Z', itemZombieStone});   
    GameRegistry.addRecipe(new ItemStack(blockCompressedZombieStoneBlock), new Object []{"BAB","BAB","BAB", 'B', itemZombieStone, 'A', blockBlankOre});   
    GameRegistry.addRecipe(new ItemStack(itemZombieStone), new Object []{"   "," Z ","   ", 'Z', blockBlankOre}); 
    GameRegistry.addRecipe(new ItemStack(blockBlankOre), new Object []{"   "," ZZ"," ZZ", 'Z', blockCompressedZombieStoneBlock});
    GameRegistry.addRecipe(new ItemStack(Blocks.diamond_ore), new Object []{"   ","ZDZ","   ", 'Z', blockBlankOre, 'D', Items.diamond});
    GameRegistry.addRecipe(new ItemStack(Blocks.gold_ore), new Object []{"   ","ZDZ","   ", 'Z', blockBlankOre, 'D', Items.gold_ingot});
    GameRegistry.addRecipe(new ItemStack(Blocks.iron_ore), new Object []{"   ","ZDZ","   ", 'Z', blockBlankOre, 'D', Items.iron_ingot});
    GameRegistry.addRecipe(new ItemStack(Blocks.coal_ore), new Object []{"   ","ZDZ","   ", 'Z', blockBlankOre, 'D', Items.coal});   
    GameRegistry.addRecipe(new ItemStack(Blocks.emerald_ore), new Object []{"   ","ZDZ","   ", 'Z', blockBlankOre, 'D', Items.emerald});
    GameRegistry.addRecipe(new ItemStack(Blocks.redstone_ore), new Object []{"   ","ZDZ","   ", 'Z', blockBlankOre, 'D', Items.redstone});
    GameRegistry.addRecipe(new ItemStack(Blocks.lapis_ore), new Object []{"   ","ZDZ","   ", 'Z', blockBlankOre, 'D', Blocks.lapis_block});
    GameRegistry.addRecipe(new ItemStack(itemSamuraiSword), new Object [] {"###","#/#","###", '#', itemZombieStone, '/', Items.diamond_sword});
    GameRegistry.addRecipe(new ItemStack(itemZombieStonePickaxe), new Object [] {"###","#/#","###", '#', itemZombieStone, '/', Items.diamond_pickaxe});
    GameRegistry.addRecipe(new ItemStack(itemZombieStoneAxe), new Object [] {"###","#/#","###", '#', itemZombieStone, '/', Items.diamond_axe});
    GameRegistry.addRecipe(new ItemStack(itemZombieStoneShovel), new Object [] {"###","#/#","###", '#', itemZombieStone, '/', Items.diamond_shovel});
    GameRegistry.addRecipe(new ItemStack(itemZombieStoneHoe), new Object [] {"###","#/#","###", '#', itemZombieStone, '/', Items.diamond_hoe});
    GameRegistry.addRecipe(new ItemStack(itemZombieStoneHelmet), new Object []{"###","#/#","###", '#', itemZombieStone, '/', Items.diamond_helmet});
    GameRegistry.addRecipe(new ItemStack(itemZombieStoneChestplate), new Object []{"###","#/#","###", '#', itemZombieStone, '/', Items.diamond_chestplate});
    GameRegistry.addRecipe(new ItemStack(itemZombieStoneLeggings), new Object []{"###","#/#","###", '#', itemZombieStone, '/', Items.diamond_leggings});
    GameRegistry.addRecipe(new ItemStack(itemZombieStoneBoots), new Object []{"###","#/#","###", '#', itemZombieStone, '/', Items.diamond_boots});
    GameRegistry.addRecipe(new ItemStack(Items.diamond), new Object []{"###","###","###", '#', itemChippedDiamond});
    GameRegistry.addRecipe(new ItemStack(itemSamuraiSword), new Object []{"///","#Z#","@#@",'/',Items.diamond,'#',itemZombieStone,'Z',itemSamuraiSword,'@',Blocks.diamond_block});
    GameRegistry.addRecipe(new ItemStack(itemHumanSpawner), new Object []{"ORO","RZR","ORO", 'O', Blocks.obsidian,'R', Items.redstone,'Z', Items.rotten_flesh 	});
    GameRegistry.addRecipe(new ItemStack(itemHeroin), new Object []{"   ","   ","WS/", 'W', Items.water_bucket, 'S', itemSyringe ,'/', Items.sugar });
    GameRegistry.addRecipe(new ItemStack(itemSyringe), new Object []{"GSG","IGI","IGI", 'G', Blocks.glass, 'S', Items.stick, 'I', Items.iron_ingot});
    GameRegistry.addRecipe(new ItemStack(itemNinjaHelmet), new Object[]{"LSL","LHL","SSS",'L', Items.leather,'S', Items.sugar, 'H', Items.leather_helmet});
    GameRegistry.addRecipe(new ItemStack(itemNinjaChestplate), new Object[]{"LSL","LHL","SSS",'L', Items.leather,'S', Items.sugar, 'H', Items.leather_chestplate});
    GameRegistry.addRecipe(new ItemStack(itemNinjaLeggings), new Object[]{"LSL","LHL","SSS",'L', Items.leather,'S', Items.sugar, 'H', Items.leather_leggings});
    GameRegistry.addRecipe(new ItemStack(itemNinjaBoots), new Object[]{"LSL","LHL","SSS",'L', Items.leather,'S', Items.sugar, 'H', Items.leather_boots});
    
    //Smelting Recipes
    GameRegistry.addSmelting(itemZombieStone, new ItemStack(Items.rotten_flesh, 3), 5.0F);
    GameRegistry.addSmelting(blockCompressedZombieStoneBlock, new ItemStack(Items.coal, 16), 5.0F);
    GameRegistry.addSmelting(Items.coal, new ItemStack(Blocks.fire), 2.5F);
    GameRegistry.addSmelting(Items.iron_chestplate, new ItemStack(Items.iron_ingot, , 3.5F);
    GameRegistry.addSmelting(Items.iron_leggings, new ItemStack(Items.iron_ingot, 7), 3.5F);
    GameRegistry.addSmelting(Items.iron_boots, new ItemStack(Items.iron_ingot, 4), 3.5F);
    GameRegistry.addSmelting(Items.iron_helmet, new ItemStack(Items.iron_ingot, 5), 3.5F);
    GameRegistry.addSmelting(Items.iron_door, new ItemStack(Items.iron_ingot, 6), 4.0F);
    GameRegistry.addSmelting(Items.iron_pickaxe, new ItemStack(Items.iron_ingot, 3), 3.0F);
    GameRegistry.addSmelting(Items.iron_axe, new ItemStack(Items.iron_ingot, 3), 3.0F);
    GameRegistry.addSmelting(Items.iron_hoe, new ItemStack(Items.wooden_hoe, 64), 3.0F);
    GameRegistry.addSmelting(Items.iron_shovel, new ItemStack(Items.iron_ingot), 3.0F);
    GameRegistry.addSmelting(Items.iron_sword, new ItemStack(Items.iron_ingot, 2), 3.0F);
    GameRegistry.addSmelting(Items.iron_horse_armor, new ItemStack(Items.iron_ingot, 38), 5.0F);
    GameRegistry.addSmelting(Items.rotten_flesh, new ItemStack(itemFlesh, 3), 2.0F);
    GameRegistry.addSmelting(Blocks.stone, new ItemStack(itemStoneSnack, 4), 2.0F);
    GameRegistry.addSmelting(blockBlankOre, new ItemStack(itemChippedDiamond, 3), 10.0F);
    GameRegistry.addSmelting(Blocks.anvil, new ItemStack(Items.iron_ingot, 31), 5.0F);
    GameRegistry.addSmelting(Items.shears, new ItemStack(Items.iron_ingot, 2), 3.0F);
    GameRegistry.addSmelting(Blocks.cauldron, new ItemStack(Items.iron_ingot, 7), 4.0F);
    GameRegistry.addSmelting(Blocks.hopper, new ItemStack(Items.iron_ingot, 5), 3.0F);
    
    
        
       
       }
        

    @EventHandler 
    public void postInit(FMLPostInitializationEvent event) { 
    }
    	public static CreativeTabs tabZomCraft = new CreativeTabs("tabItems"){
    		@Override
    		public Item getTabIconItem(){
    			
    			return new ItemStack(itemZombieStone).getItem();
    		} 
    		
    	};
    		
    }

    	

 

Here is my CommonProxy class :

package zomarea225.ZomCraft.proxy;

import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import net.minecraft.client.model.ModelBiped;
import zomarea225.ZomCraft.ZomCraftMain;
import zomarea225.ZomCraft.entities.EntityZomarea;
import zomarea225.ZomCraft.rendering.entities.RenderZomarea;

public class CommonProxy  {

int ModEntityID;

public void registerRenderers() {


	RenderingRegistry.registerEntityRenderingHandler(EntityZomarea.class,new RenderZomarea(new ModelBiped(), 2));

}
public void registerEntities(){

	ModEntityID = EntityRegistry.findGlobalUniqueEntityId();

	EntityRegistry.registerModEntity(EntityZomarea.class, "EntityZomarea", ModEntityID++, ZomCraftMain.instance,55,80,true);
   


}

}

 

ClientProxy :

package zomarea225.ZomCraft.proxy;

import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import net.minecraft.client.model.ModelBiped;
import zomarea225.ZomCraft.ZomCraftMain;
import zomarea225.ZomCraft.entities.EntityZomarea;
import zomarea225.ZomCraft.rendering.entities.RenderZomarea;

public class ClientProxy  {

int ModEntityID;

public void registerRenderers() {


	RenderingRegistry.registerEntityRenderingHandler(EntityZomarea.class,new RenderZomarea(new ModelBiped(), 2));

}
public void registerEntities(){

	ModEntityID = EntityRegistry.findGlobalUniqueEntityId();

	EntityRegistry.registerModEntity(EntityZomarea.class, "EntityZomarea", ModEntityID++, ZomCraftMain.instance,55,80,true);
   


}

}

 

 

Here's my crash report :

---- Minecraft Crash Report ----
// This doesn't make any sense!

Time: 3/7/16 8:32 PM
Description: There was a severe problem during mod loading that has caused the game to fail

cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException: Attempted to load a proxy type zomarea225.ZomCraft.ClientProxy into zomarea225.ZomCraft.ZomCraft.proxy, but the types don't match
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:512)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
Caused by: cpw.mods.fml.common.LoaderException: Attempted to load a proxy type zomarea225.ZomCraft.ClientProxy into zomarea225.ZomCraft.ZomCraft.proxy, but the types don't match
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:69)
... 35 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_60, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 800243784 bytes (763 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1492 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UC	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
UC	FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar) 
UC	Forge{10.13.4.1492} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar) 
UE	zomcraft{5.4.2} [ZomCraft] (bin) 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.201.1151.0' Renderer: 'AMD Radeon HD 6380G'

 

Help is very much appreciated!

I'm a real G.

Link to comment
Share on other sites

You are telling FML to load a ClientProxy instance into a field of type CommonProxy. But the ClientProxy class has no connection to CommonProxy, so this will not work.

 

I just went and fixed this - still not working. I tested it with the Client proxy extending the Common proxy and the other way round. Still not working.

I'm a real G.

Link to comment
Share on other sites

Show updated code.

 

Common Proxy :

package zomarea225.ZomCraft.proxy;

import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import net.minecraft.client.model.ModelBiped;
import zomarea225.ZomCraft.ZomCraftMain;
import zomarea225.ZomCraft.entities.EntityZomarea;
import zomarea225.ZomCraft.rendering.entities.RenderZomarea;

public class CommonProxy {

int ModEntityID;

public void registerRenderers() {


	RenderingRegistry.registerEntityRenderingHandler(EntityZomarea.class,new RenderZomarea(new ModelBiped(), 2));

}
public void registerEntities(){

	ModEntityID = EntityRegistry.findGlobalUniqueEntityId();

	EntityRegistry.registerModEntity(EntityZomarea.class, "EntityZomarea", ModEntityID++, ZomCraftMain.instance,55,80,true);
   


}

}

 

Client Proxy :

package zomarea225.ZomCraft.proxy;

import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import net.minecraft.client.model.ModelBiped;
import zomarea225.ZomCraft.ZomCraftMain;
import zomarea225.ZomCraft.entities.EntityZomarea;
import zomarea225.ZomCraft.rendering.entities.RenderZomarea;

public class ClientProxy extends CommonProxy{

int ModEntityID;

public void registerRenderers() {


	RenderingRegistry.registerEntityRenderingHandler(EntityZomarea.class,new RenderZomarea(new ModelBiped(), 2));

}
public void registerEntities(){

	ModEntityID = EntityRegistry.findGlobalUniqueEntityId();

	EntityRegistry.registerModEntity(EntityZomarea.class, "EntityZomarea", ModEntityID++, ZomCraftMain.instance,55,80,true);
   


}

}

 

 

I'm a real G.

Link to comment
Share on other sites

Your common proxy contains client-side code.

Not why the game won't load, but its still a problem.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Your common proxy contains client-side code.

Not why the game won't load, but its still a problem.

 

So should I just get rid of all the code that is in both?

 

 

 

New Crash Report

 

---- Minecraft Crash Report ----
// Who set us up the TNT?

Time: 3/7/16 9:44 PM
Description: There was a severe problem during mod loading that has caused the game to fail

cpw.mods.fml.common.LoaderException: java.lang.IllegalStateException: Can't free registry slot 165 occupied by net.minecraft.item.ItemBlock@49131f57
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:239)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:188)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:177)
at zomarea225.ZomCraft.ZomCraftMain.preInit(ZomCraftMain.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
Caused by: java.lang.IllegalStateException: Can't free registry slot 165 occupied by net.minecraft.item.ItemBlock@49131f57
at cpw.mods.fml.common.registry.GameData.freeSlot(GameData.java:933)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:839)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:808)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:232)
... 42 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_60, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 764841664 bytes (729 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1492 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCH	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
UCH	FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar) 
UCH	Forge{10.13.4.1492} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar) 
UCE	zomcraft{5.4.2} [ZomCraft] (bin) 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.201.1151.0' Renderer: 'AMD Radeon HD 6380G'

I'm a real G.

Link to comment
Share on other sites

You are trying to register blockBlankOre twice. In general your registration code is a mess. For example do not use the unlocalized name to determine the registry name.

 

I just fixed this - thankyou for that. I'll get working on clearing that up. The game still won't load though.

I'm a real G.

Link to comment
Share on other sites

New logs.

---- Minecraft Crash Report ----
// Ouch. That hurt 

Time: 3/7/16 10:10 PM
Description: There was a severe problem during mod loading that has caused the game to fail

cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException: Attempted to load a proxy type zomarea225.ZomCraft.proxy.ClientProxy into zomarea225.ZomCraft.ZomCraftMain.proxy, but the types don't match
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:512)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
Caused by: cpw.mods.fml.common.LoaderException: Attempted to load a proxy type zomarea225.ZomCraft.proxy.ClientProxy into zomarea225.ZomCraft.ZomCraftMain.proxy, but the types don't match
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:69)
... 35 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_60, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 786178512 bytes (749 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1492 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UC	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
UC	FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar) 
UC	Forge{10.13.4.1492} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar) 
UE	zomcraft{5.4.2} [ZomCraft] (bin) 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.201.1151.0' Renderer: 'AMD Radeon HD 6380G'

I'm a real G.

Link to comment
Share on other sites

Your common proxy contains client-side code.

Not why the game won't load, but its still a problem.

 

So should I just get rid of all the code that is in both?

 

If it references a class that only exists on the client, it goes in the client proxy.  If it does not, it goes in the common proxy.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.