Jump to content

cammygames

Forge Modder
  • Posts

    114
  • Joined

  • Last visited

Posts posted by cammygames

  1. Get me links, I still cant reporduce this at all.

    Make sure the users who are connecting that do get this error are using the latest forge.

     

    This error is caused by The server using a block with ID > 256

    And the client not knowing how to handle the data properly.

    its a fairly straight forward error that I have fixed. And can no longer reproduce in the slightest.

    So im not sure how you guys are still getting it if you are, as you say, using the latest BUILD of forge.

    And I mean LATEST not the RECOMENDED

    http://jenkins.minecraftforge.net:7070/job/forge/213/

    Grab #213

    http://calclavia.com/icbm/?page=downloads

    Grab ICBM v0.5.1

    http://www.minecraftforge.net/forum/index.php/topic,61.0.html

    Grab UE 0.5.1

     

    Put UE & ICBM in the mods folder and Forge in the .jar

    By the way, this only happens on a server so DL and install those onto a quick server and join, then basically rapidly break/place blocks and jump around, I find that going into creative and flying is what usually trips it.

    thankz for the help boo

  2. The pokeball mod is in the jar?  It should not be in the jar.  Except for a very specific set of mods (like optifine), nothing should be in the jar or it pretty much *will* break things.

     

    beet me to it :)

     

    Edit : try putting the pokeball mod in to the .minecraft/mods folder

  3. ok i have had a look and changed it to what i think is correct but it gives an error in the Compactor manager this is my code

     

    package net.minecraft.src;
    
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.List;
    
    public class CompactorManager
    {
        /** The static instance of this class */
        private static final CompactorManager instance = new CompactorManager();
    
        /** A list of all the recipes added */
        private List recipes = new ArrayList();
    
        /**
         * Returns the static instance of this class
         */
        public static final CompactorManager getInstance()
        {
            return instance;
        }
    
        private CompactorManager()
        {
            this.addRecipe(new ItemStack(mod_Blastcraft.blastwall), new Object[]{"@#@","@#@","@#@",Character.valueOf('#'),mod_Blastcraft.rebarmesh,Character.valueOf('@'),Block.brick});       
            System.out.println(this.recipes.size() + " recipes");
        }
    
        /**
         * Adds a recipe. See spreadsheet on first page for details.
         */
        void addRecipe(ItemStack par1ItemStack, Object ... par2ArrayOfObj)
        {
            String var3 = "";
            int var4 = 0;
            int var5 = 0;
            int var6 = 0;
    
            if (par2ArrayOfObj[var4] instanceof String[])
            {
                String[] var7 = (String[])((String[])par2ArrayOfObj[var4++]);
    
                for (int var8 = 0; var8 < var7.length; ++var8)
                {
                    String var9 = var7[var8];
                    ++var6;
                    var5 = var9.length();
                    var3 = var3 + var9;
                }
            }
            else
            {
                while (par2ArrayOfObj[var4] instanceof String)
                {
                    String var11 = (String)par2ArrayOfObj[var4++];
                    ++var6;
                    var5 = var11.length();
                    var3 = var3 + var11;
                }
            }
    
            HashMap var12;
    
            for (var12 = new HashMap(); var4 < par2ArrayOfObj.length; var4 += 2)
            {
                Character var13 = (Character)par2ArrayOfObj[var4];
                ItemStack var14 = null;
    
                if (par2ArrayOfObj[var4 + 1] instanceof Item)
                {
                    var14 = new ItemStack((Item)par2ArrayOfObj[var4 + 1]);
                }
                else if (par2ArrayOfObj[var4 + 1] instanceof Block)
                {
                    var14 = new ItemStack((Block)par2ArrayOfObj[var4 + 1], 1, -1);
                }
                else if (par2ArrayOfObj[var4 + 1] instanceof ItemStack)
                {
                    var14 = (ItemStack)par2ArrayOfObj[var4 + 1];
                }
    
                var12.put(var13, var14);
            }
    
            ItemStack[] var15 = new ItemStack[var5 * var6];
    
            for (int var16 = 0; var16 < var5 * var6; ++var16)
            {
                char var10 = var3.charAt(var16);
    
                if (var12.containsKey(Character.valueOf(var10)))
                {
                    var15[var16] = ((ItemStack)var12.get(Character.valueOf(var10))).copy();
                }
                else
                {
                    var15[var16] = null;
                }
            }
    
            this.recipes.add(new ShapedRecipes(var5, var6, var15, par1ItemStack));
        }
    
        public ItemStack findMatchingRecipe(Inventorycompactor par1InventoryCrafting)
        {
            int var2 = 0;
            ItemStack var3 = null;
            ItemStack var4 = null;
            int var5;
    
            for (var5 = 0; var5 < par1InventoryCrafting.getSizeInventory(); ++var5)
            {
                ItemStack var6 = par1InventoryCrafting.getStackInSlot(var5);
    
                if (var6 != null)
                {
                    if (var2 == 0)
                    {
                        var3 = var6;
                    }
    
                    if (var2 == 1)
                    {
                        var4 = var6;
                    }
    
                    ++var2;
                }
            }
    
            if (var2 == 2 && var3.itemID == var4.itemID && var3.stackSize == 1 && var4.stackSize == 1 && Item.itemsList[var3.itemID].isRepairable())
            {
                Item var11 = Item.itemsList[var3.itemID];
                int var10 = var11.getMaxDamage() - var3.getItemDamageForDisplay();
                int var7 = var11.getMaxDamage() - var4.getItemDamageForDisplay();
                int var8 = var10 + var7 + var11.getMaxDamage() * 10 / 100;
                int var9 = var11.getMaxDamage() - var8;
    
                if (var9 < 0)
                {
                    var9 = 0;
                }
    
                return new ItemStack(var3.itemID, 1, var9);
            }
            else
            {
                for (var5 = 0; var5 < this.recipes.size(); ++var5)
                {
                    IRecipe var12 = (IRecipe)this.recipes.get(var5);
    
                    if (var12.matches(par1InventoryCrafting))
                    {
                        return var12.getCraftingResult(par1InventoryCrafting);
                    }
                }
    
                return null;
            }
        }
    
        /**
         * returns the List<> of all recipes
         */
        public List getRecipeList()
        {
            return this.recipes;
        }
    }
    

     

    it give the error at this section of code

                    if (var12.matches(par1InventoryCrafting))
                    {
                        return var12.getCraftingResult(par1InventoryCrafting);
                    }

    do i need to make my own IRecipe?

  4. i have all ready got this code for client but cant find/make a version for server side

     

    ModLoader.setInGameHook(this, true, false);
            ModLoader.setInGUIHook(this, true, false);
    public boolean onTickInGame(float f, Minecraft minecraft)
    {
      if(minecraft.currentScreen == null)
      {
       creativeInventory = null;
      }
      return true;
    }
    public boolean onTickInGUI(float f, Minecraft minecraft, GuiScreen guiscreen)
    {
      if((guiscreen instanceof GuiContainerCreative) && !(creativeInventory instanceof GuiContainerCreative) && !minecraft.theWorld.isRemote)
      {
       Container container = ((GuiContainer)guiscreen).inventorySlots;
       List list = ((ContainerCreative)container).itemList;
       int i = 0;
       list.add(new ItemStack(sandbag, 1, i));
       list.add(new ItemStack(blastglass, 1, i));
       list.add(new ItemStack(barbedwire, 1, i));
       list.add(new ItemStack(blastwall, 1, i));
       list.add(new ItemStack(blaststairs, 1, i));
       list.add(new ItemStack(blastslab, 1, i));
       list.add(new ItemStack(lamp, 1, i));
      }
      creativeInventory = guiscreen;
      return true;
    }
    private static GuiScreen creativeInventory;

  5. recompile then run getchangedsrc then copy and paste it in to the repo folder on your pc and then use then use git gui and then Stage Changed then commit and then go under the remote tag and push it to origin or use ctrl p

     

    if it syas the repo is behind go under the remote tab and Fetch From origin then do the above

×
×
  • Create New...

Important Information

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