Posted May 4, 201312 yr Hello, I've recently created a mod in Eclipse, and inside Eclipse it runs just fine. But when I recompile and reobfuscate it, put it in a zip and run minecraft with it: minecraft crashes. My mod zip looks like this: [map] mods > [Map] DennisMod > [map]client > ClientProxy.class wk.class [map] COMMON > (all my mod classes) wl$1.class wl.class What am I doing wrong? Crash report (My mod's name is Dennis' Mod, if that helps): 2013-05-04 20:33:52 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.43.682 for Minecraft 1.5.1 loading 2013-05-04 20:33:52 [iNFO] [ForgeModLoader] Java is Java HotSpot 64-Bit Server VM, version 1.7.0_21, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7 2013-05-04 20:33:52 [FINE] [ForgeModLoader] Java classpath at launch is C:\Users\Dennis\Downloads\Minecraft\Minecraft.exe 2013-05-04 20:33:52 [FINE] [ForgeModLoader] Java library path at launch is C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;c:\Program Files\Java\jdk1.7.0_21\bin;C:\Program Files\Java\jre7\bin;C:\Program Files\Java\jre7\bin;. 2013-05-04 20:33:52 [FINE] [ForgeModLoader] Enabling runtime deobfuscation 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] All core mods are successfully located 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Discovering coremods 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Found a candidate coremod CodeChickenCore 0.8.6.3.jar 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Loading coremod CodeChickenCore 0.8.6.3.jar 2013-05-04 20:33:52 [WARNING] [ForgeModLoader] The coremod codechicken.core.asm.CodeChickenCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Loaded coremod CodeChickenCore 0.8.6.3.jar 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Found a candidate coremod CoFHCore-1.5.1.5.jar 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Loading coremod CoFHCore-1.5.1.5.jar 2013-05-04 20:33:52 [FINE] [ForgeModLoader] The coremod cofh.asm.CoFHPlugin requested minecraft version 1.5.1 and minecraft is 1.5.1. It will be loaded. 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Loaded coremod CoFHCore-1.5.1.5.jar 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Found a candidate coremod NotEnoughItems 1.5.2.10.jar 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Loading coremod NotEnoughItems 1.5.2.10.jar 2013-05-04 20:33:52 [WARNING] [ForgeModLoader] The coremod codechicken.nei.asm.NEICorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Loaded coremod NotEnoughItems 1.5.2.10.jar 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Found library file argo-small-3.2.jar present and correct in lib dir 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Found library file guava-14.0-rc3.jar present and correct in lib dir 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Found library file asm-all-4.1.jar present and correct in lib dir 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Found library file bcprov-jdk15on-148.jar present and correct in lib dir 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Found library file deobfuscation_data_1.5.1.zip present and correct in lib dir 2013-05-04 20:33:52 [FINEST] [ForgeModLoader] Found library file scala-library.jar present and correct in lib dir 2013-05-04 20:33:53 [FINEST] [ForgeModLoader] Running coremod plugins 2013-05-04 20:33:53 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin 2013-05-04 20:33:54 [sEVERE] [ForgeModLoader] FML appears to be missing any signature data. This is not a good thing 2013-05-04 20:33:54 [FINEST] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully 2013-05-04 20:33:54 [FINEST] [ForgeModLoader] Running coremod plugin FMLForgePlugin 2013-05-04 20:33:54 [FINEST] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully 2013-05-04 20:33:54 [FINEST] [ForgeModLoader] Running coremod plugin CodeChickenCorePlugin 2013-05-04 20:33:55 [iNFO] [sTDOUT] Adding Accesstransformer map: codechickencore_at.cfg 2013-05-04 20:33:55 [FINEST] [ForgeModLoader] Coremod plugin CodeChickenCorePlugin run successfully 2013-05-04 20:33:55 [FINEST] [ForgeModLoader] Running coremod plugin CoFHPlugin 2013-05-04 20:33:55 [FINEST] [ForgeModLoader] Coremod plugin CoFHPlugin run successfully 2013-05-04 20:33:55 [FINEST] [ForgeModLoader] Running coremod plugin NEICorePlugin 2013-05-04 20:33:55 [iNFO] [sTDOUT] Adding Accesstransformer map: nei_at.cfg 2013-05-04 20:33:55 [FINEST] [ForgeModLoader] Coremod plugin NEICorePlugin run successfully 2013-05-04 20:33:55 [FINEST] [ForgeModLoader] Validating minecraft 2013-05-04 20:33:55 [FINEST] [ForgeModLoader] Minecraft validated, launching... 2013-05-04 20:33:56 [iNFO] [sTDOUT] 1 bit stencil buffer added 2013-05-04 20:33:57 [iNFO] [sTDOUT] Inserted super call into azg.c 2013-05-04 20:33:57 [iNFO] [sTDOUT] ayl was overriden from NotEnoughItems 1.5.2.10.jar 2013-05-04 20:33:57 [iNFO] [CoFHCore] RenderGlobal Class Detected 2013-05-04 20:33:57 [iNFO] [CoFHCore] RenderGlobal(Obfuscated) Function Injection Detected 2013-05-04 20:33:57 [iNFO] [CoFHCore] RenderGlobal Injection Point Detected (updateEntityCape(Lmp;)V) 2013-05-04 20:33:59 [iNFO] [sTDOUT] Generated BlockMobSpawner helper method. 2013-05-04 20:34:00 [iNFO] [sTDOUT] 229 recipes 2013-05-04 20:34:00 [iNFO] [sTDOUT] 27 achievements 2013-05-04 20:34:01 [iNFO] [Minecraft-Client] Setting user: Nieue 2013-05-04 20:34:01 [iNFO] [sTDOUT] (Session ID is f7861fd4ad640bfb3dea11f43f06cbdfc86289ba) 2013-05-04 20:34:01 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2 2013-05-04 20:34:03 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization 2013-05-04 20:34:03 [iNFO] [sTDOUT] MinecraftForge v7.7.2.682 Initialized 2013-05-04 20:34:03 [iNFO] [ForgeModLoader] MinecraftForge v7.7.2.682 Initialized 2013-05-04 20:34:03 [iNFO] [sTDOUT] Replaced 85 ore recipies 2013-05-04 20:34:03 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization 2013-05-04 20:34:03 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Dennis\AppData\Roaming\.minecraft\config\logging.properties 2013-05-04 20:34:03 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2013-05-04 20:34:04 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer, codechicken.core.asm.CodeChickenCoreModContainer, cofh.asm.CoFHModContainer, codechicken.nei.asm.NEIModContainer] 2013-05-04 20:34:04 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes 2013-05-04 20:34:04 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\AppData\Roaming\.minecraft\bin\lwjgl.jar 2013-05-04 20:34:04 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\AppData\Roaming\.minecraft\bin\jinput.jar 2013-05-04 20:34:04 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\AppData\Roaming\.minecraft\bin\lwjgl_util.jar 2013-05-04 20:34:04 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\Dennis\AppData\Roaming\.minecraft\bin\minecraft.jar, examining for mod candidates 2013-05-04 20:34:04 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\Dennis\AppData\Roaming\.minecraft\coremods\CodeChickenCore 0.8.6.3.jar, examining for mod candidates 2013-05-04 20:34:04 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\Dennis\AppData\Roaming\.minecraft\coremods\CoFHCore-1.5.1.5.jar, examining for mod candidates 2013-05-04 20:34:04 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\Dennis\AppData\Roaming\.minecraft\coremods\NotEnoughItems 1.5.2.10.jar, examining for mod candidates 2013-05-04 20:34:04 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\AppData\Roaming\.minecraft\lib\argo-small-3.2.jar 2013-05-04 20:34:04 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\AppData\Roaming\.minecraft\lib\guava-14.0-rc3.jar 2013-05-04 20:34:04 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\AppData\Roaming\.minecraft\lib\asm-all-4.1.jar 2013-05-04 20:34:04 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\AppData\Roaming\.minecraft\lib\bcprov-jdk15on-148.jar 2013-05-04 20:34:04 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\AppData\Roaming\.minecraft\lib\deobfuscation_data_1.5.1.zip 2013-05-04 20:34:04 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\AppData\Roaming\.minecraft\lib\scala-library.jar 2013-05-04 20:34:04 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully 2013-05-04 20:34:04 [iNFO] [ForgeModLoader] Searching C:\Users\Dennis\AppData\Roaming\.minecraft\mods for mods 2013-05-04 20:34:04 [FINE] [ForgeModLoader] Found a candidate zip or jar file DennisMod.zip 2013-05-04 20:34:04 [FINE] [ForgeModLoader] Examining file minecraft.jar for potential mods 2013-05-04 20:34:04 [FINE] [ForgeModLoader] The mod container minecraft.jar appears to be missing an mcmod.info file 2013-05-04 20:34:04 [FINE] [ForgeModLoader] Examining file CodeChickenCore 0.8.6.3.jar for potential mods 2013-05-04 20:34:04 [FINER] [ForgeModLoader] Located mcmod.info file in file CodeChickenCore 0.8.6.3.jar 2013-05-04 20:34:04 [FINE] [ForgeModLoader] Examining file CoFHCore-1.5.1.5.jar for potential mods 2013-05-04 20:34:04 [FINER] [ForgeModLoader] Located mcmod.info file in file CoFHCore-1.5.1.5.jar 2013-05-04 20:34:04 [FINE] [ForgeModLoader] Identified an FMLMod type mod cofh.CoFHNetwork 2013-05-04 20:34:05 [FINEST] [CoFHNetwork] Parsed dependency info : [] [] [] 2013-05-04 20:34:05 [FINE] [ForgeModLoader] Identified an FMLMod type mod cofh.CoFHWorld 2013-05-04 20:34:05 [FINEST] [CoFHWorld] Parsed dependency info : [] [] [] 2013-05-04 20:34:05 [FINE] [ForgeModLoader] Examining file NotEnoughItems 1.5.2.10.jar for potential mods 2013-05-04 20:34:05 [FINER] [ForgeModLoader] Located mcmod.info file in file NotEnoughItems 1.5.2.10.jar 2013-05-04 20:34:05 [FINE] [ForgeModLoader] Examining file DennisMod.zip for potential mods 2013-05-04 20:34:05 [FINER] [ForgeModLoader] Located mcmod.info file in file DennisMod.zip 2013-05-04 20:34:05 [sEVERE] [ForgeModLoader] The mcmod.info file in .zip cannot be parsed as valid JSON. It will be ignored argo.saj.InvalidSyntaxException: At line 8, column 11: Expected either , or ] but got [58]. at argo.staj.InvalidSyntaxRuntimeException$1.asInvalidSyntaxException(InvalidSyntaxRuntimeException.java:39) at argo.saj.SajParser.parse(SajParser.java:107) at argo.saj.SajParser.parse(SajParser.java:55) at argo.jdom.JdomParser$1.parse(JdomParser.java:59) at argo.jdom.JdomParser.parse(JdomParser.java:66) at argo.jdom.JdomParser.parse(JdomParser.java:57) at cpw.mods.fml.common.MetadataCollection.from(MetadataCollection.java:44) at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:48) at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:64) at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:115) at cpw.mods.fml.common.Loader.identifyMods(Loader.java:347) at cpw.mods.fml.common.Loader.loadMods(Loader.java:479) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:410) at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56) at net.minecraft.client.Minecraft.run(Minecraft.java:732) at java.lang.Thread.run(Unknown Source) 2013-05-04 20:34:05 [FINE] [ForgeModLoader] Identified an FMLMod type mod mods.DennisMod.COMMON.EmeraldMod 2013-05-04 20:34:05 [FINEST] [DennisMod] Parsed dependency info : [] [] [] 2013-05-04 20:34:05 [FINE] [ForgeModLoader] Identified an FMLMod type mod mods.DennisMod.COMMON.EmeraldMod 2013-05-04 20:34:05 [FINEST] [DennisMod] Parsed dependency info : [] [] [] 2013-05-04 20:34:05 [iNFO] [sTDERR] java.lang.IllegalArgumentException: duplicate key: DennisMod 2013-05-04 20:34:05 [iNFO] [sTDERR] at com.google.common.base.Preconditions.checkArgument(Preconditions.java:119) 2013-05-04 20:34:05 [iNFO] [sTDERR] at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:67) 2013-05-04 20:34:05 [iNFO] [sTDERR] at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:249) 2013-05-04 20:34:05 [iNFO] [sTDERR] at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:235) 2013-05-04 20:34:05 [iNFO] [sTDERR] at com.google.common.collect.Maps.uniqueIndex(Maps.java:1168) 2013-05-04 20:34:05 [iNFO] [sTDERR] at com.google.common.collect.Maps.uniqueIndex(Maps.java:1142) 2013-05-04 20:34:05 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.identifyMods(Loader.java:349) 2013-05-04 20:34:05 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:479) 2013-05-04 20:34:05 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) 2013-05-04 20:34:05 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:410) 2013-05-04 20:34:05 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56) 2013-05-04 20:34:05 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732) 2013-05-04 20:34:05 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) P.S. 1: I did also edit 2 classes from vanilla minecraft (at least I think they are from vanilla): 1. EnumToolMaterial (I added two new ToolMaterials) 2. Item (I added a item from my mod to the item list) P.S. 2: Don't say that I have to delete the wk.class ,wl$1.class & wl.class because I already tried that.
May 4, 201312 yr 1. base-class editing mods can't go into the mods folder as zips, they have to go into the minecraft.jar 2. base-editing is bad, very bad practice since there are a lot of ways to avoid it, like Reflection, ASM (if you're good) or just using hooks already in place. ("One shall not simply edit base classes") 3. Your edits are absolutely unnecessary! Look up basic modding, there is explained how to register items / new tools: http://www.minecraftforge.net/wiki/Tutorials If not, then google it. Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
May 4, 201312 yr Author 1. base-class editing mods can't go into the mods folder as zips, they have to go into the minecraft.jar 2. base-editing is bad, very bad practice since there are a lot of ways to avoid it, like Reflection, ASM (if you're good) or just using hooks already in place. ("One shall not simply edit base classes") 3. Your edits are absolutely unnecessary! Look up basic modding, there is explained how to register items / new tools: http://www.minecraftforge.net/wiki/Tutorials If not, then google it. Thanks, I'll try that
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.