Posted March 4, 201312 yr Im trying to run my mod outside of mcp on minecraft with forge installed. but when i run minecraft im getting this error. http://pastebin.com/pfHspcZj# does anyone knows how to fix that? http://www.minecraftforum.net/topic/1937703-162smpforge-pet-mastery-hatch-level-battle/
March 4, 201312 yr Author i did reobfuscate my code. and this is my creativeTab code public static CreativeTabs tabBlocks = new CreativeTab("Blocks", 7); public static CreativeTabs tabRecipes = new CreativeTab("Recipe's", 1); public static CreativeTabs tabQuest = new CreativeTab("Quest", ; public static CreativeTabs tabJewelry = new CreativeTab("Jewelry", 2); public static CreativeTabs tabMisc = new CreativeTab("Miscellaneous", 3); public static CreativeTabs tabTools = new CreativeTab("Tools", 6); public static CreativeTabs tabArmor = new CreativeTab("Armor", 4); public static CreativeTabs tabWeapons = new CreativeTab("Weapons", 5); public static CreativeTabs tabConsumables = new CreativeTab("Consumables", 9); public static CreativeTabs tabMaterials = new CreativeTab("Materials", 0); and for example in a item class: public ItemBasicFood(int i, int j, float b) { super(i, j, b, true); res = j; sat = b; this.setCreativeTab(BaseLegendz.tabConsumables); } and my creative tab code: package legendz.common; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemStack; public class CreativeTab extends CreativeTabs{ private int ID; public CreativeTab(String label, int id) { super(label); ID = id; } @Override public ItemStack getIconItemStack() { switch(ID){ default: return null; case 0: return new ItemStack(BaseLegendz.gemItem, 1, 0); case 1: return new ItemStack(BaseLegendz.recipeItem, 1, 0); case 2: return new ItemStack(BaseLegendz.earringItem, 1, 0); case 3: return new ItemStack(BaseLegendz.portalIgniter, 1, 0); case 4: return new ItemStack(BaseLegendz.aquaticChest, 1, 0); case 5: return new ItemStack(BaseLegendz.frozenFlamesBlade); case 6: return new ItemStack(BaseLegendz.energyPickaxe); case 7: return new ItemStack(BaseLegendz.legendzCraftingTable); case 8: return new ItemStack(BaseLegendz.questItem, 1, 0); case 9: return new ItemStack(BaseLegendz.mammothMeatItem); } } } http://www.minecraftforum.net/topic/1937703-162smpforge-pet-mastery-hatch-level-battle/
March 4, 201312 yr Author what do you excactly mean by reobfuscate? i executed the bat file reobfuscate. is that what you meant? and what parts of the code you need? http://www.minecraftforum.net/topic/1937703-162smpforge-pet-mastery-hatch-level-battle/
March 4, 201312 yr did you grab reobfuscated classes (reobf directory)? mnn.getNativeLang() != English If I helped you please click on the "thank you" button.
March 4, 201312 yr Author yes i got the classes from the there. i out my main source file and put them in a zip. i also coppied my textures from my resources and put them in the same zip file. this worked with some of my previous mods but now it doesnt. http://www.minecraftforum.net/topic/1937703-162smpforge-pet-mastery-hatch-level-battle/
March 4, 201312 yr This may not be needed, but for my creative tab I had to also add another method, which is as follows. LanguageRegistry.instance().addStringLocalization("itemGroup.TabName", "en_US", "Name Displayed In-game");
March 4, 201312 yr not setting a title does not cuase a crash (tested). the error java.lang.NoClassDefFoundError: net/minecraft/creativetab/CreativeTabs cannot be interpreted many ways. it surely looks like obfuscation didn't happen... mnn.getNativeLang() != English If I helped you please click on the "thank you" button.
March 4, 201312 yr Author i solved it. some classes weren't obfuscated. dont know how this happens but after a few times recompilen and reobfuscating i finnaly got a working mod maybe a fresh mcp will prevent any future issue's. http://www.minecraftforum.net/topic/1937703-162smpforge-pet-mastery-hatch-level-battle/
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.