Posted December 29, 201212 yr Yeah, Hi! I'm sorta new to modding, and decided to make a basic mod, which just adds decorative bricks. Now, the mod works fine all in all when I run it in eclipse. I backed the MCP folder up, and then I tried recompiling and reobfuscating the classfiles. Instinctively, I went into the reobf folder. This is what was in it: ReObf/minecraft/net/gemstone/src/CLASSFILES (Don't ask about the mod title ) I try to put the files in a zipfile, and put them in the mods folder. (Please note that I've tried putting the classfiles in the jar aswell, but I got the same error. Here's my error log: (Using MultiMC) Minecraft has crashed! ---------------------- Minecraft has stopped running because it encountered a problem; Failed to start game A full error report has been saved to /Users/Jakob/Desktop/MultiMC.app/Contents/Resources/instances/bloo/minecraft/crash-reports/crash-2012-12-29_18.12.58-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash --- BEGIN ERROR REPORT 702bc5d4 -------- Full report at: /Users/Jakob/Desktop/MultiMC.app/Contents/Resources/instances/bloo/minecraft/crash-reports/crash-2012-12-29_18.12.58-client.txt Please show that file to Mojang, NOT just this screen! Generated 12/29/12 6:12 PM -- System Details -- Details: Minecraft Version: 1.4.6 Operating System: Mac OS X (x86_64) version 10.6.8 Java Version: 1.6.0_37, Apple Inc. Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Apple Inc. Memory: 483605360 bytes (461 MB) / 534708224 bytes (509 MB) up to 1069416448 bytes (1019 MB) JVM Flags: 2 total; -Xms512m -Xmx1024m AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v7.25 FML v4.6.12.511 Minecraft Forge 6.5.0.480 4 mods loaded, 4 mods active mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML [Forge Mod Loader] (coremods) Unloaded->Constructed Forge [Minecraft Forge] (coremods) Unloaded->Constructed testingMod [Fallings Bricks Mod] (falling.zip) Unloaded->Errored LWJGL: 2.4.2 OpenGL: NVIDIA GeForce 9400M OpenGL Engine GL version 2.1 NVIDIA-1.6.36, NVIDIA Corporation Is Modded: Definitely; Client brand changed to 'forge,fml' Type: Client (map_client.txt) Texture Pack: Default Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: net.gemstone.src.modtestbase at cpw.mods.fml.common.LoadController.transition(LoadController.java:117) at cpw.mods.fml.common.Loader.loadMods(Loader.java:484) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161) at net.minecraft.client.Minecraft.a(Minecraft.java:410) at asq.a(SourceFile:56) at net.minecraft.client.Minecraft.run(Minecraft.java:744) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.ClassNotFoundException: net.gemstone.src.modtestbase at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:179) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:414) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83) at cpw.mods.fml.common.Loader.loadMods(Loader.java:478) ... 5 more Caused by: java.lang.NullPointerException at org.objectweb.asm.ClassReader.<init>(Unknown Source) at net.minecraftforge.transformers.EventTransformer.transform(EventTransformer.java:29) at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:222) at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:171) ... 32 more --- END ERROR REPORT e4a33a01 ---------- And here is my code: CORE package net.gemstone.src; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.block.Block; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.PreInit; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod (modid = "testingMod", name = "Fallings Bricks Mod", version = "1.0") public class modtestbase { public static final Block gemstoneBlock = new BlockGemstone(3000, 0).setLightValue(1F).setHardness(3F).setBlockName("gemstoneBlock"); public static final Item gemstone = new ItemGemstone(3300).setItemName("gemstone"); public static final Block gemstonegreenBlock = new BlockGreenbrick(3001, 1).setLightValue(1F).setHardness(3F).setBlockName("greenBlock"); public static final Block gemstoneredBlock = new BlockRedbrick(3002, 2).setLightValue(1F).setHardness(3F).setBlockName("redBlock"); @Init public void load(FMLInitializationEvent event){ GameRegistry.registerBlock(gemstoneBlock); GameRegistry.registerBlock(gemstonegreenBlock); GameRegistry.registerBlock(gemstoneredBlock); LanguageRegistry.addName(gemstoneredBlock, "Fallings Red Brick"); LanguageRegistry.addName(gemstoneBlock, "Fallings Blue Brick"); LanguageRegistry.addName(gemstonegreenBlock, "Fallings Green Brick"); LanguageRegistry.addName(gemstone, "Fallings Edible Gem"); GameRegistry.addRecipe(new ItemStack(gemstoneredBlock, 4), new Object[]{ "#*#","#%#","#*#", Character.valueOf('#'), Block.stoneBrick, Character.valueOf('*'), new ItemStack(Item.dyePowder, 1, 1), Character.valueOf('%'), Item.lightStoneDust }); GameRegistry.addRecipe(new ItemStack(gemstonegreenBlock, 4), new Object[]{ "#*#","#%#","#*#", Character.valueOf('#'), Block.stoneBrick, Character.valueOf('*'), Block.cactus, Character.valueOf('%'), Item.lightStoneDust }); GameRegistry.addRecipe(new ItemStack(gemstoneBlock, 4), new Object[]{ "#*#","#%#","#*#", Character.valueOf('#'), Block.stoneBrick, Character.valueOf('%'), Item.lightStoneDust, Character.valueOf('*'), new ItemStack(Item.dyePowder, 1, 4) }); } @PreInit public void init(FMLPreInitializationEvent preEvent){ } } BLOCK 1/2/3 package net.gemstone.src; import net.minecraft.block.material.Material; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; public class BlockGreenbrick extends Block { public BlockGreenbrick(int par1, int par2) { super(par1, par2, Material.rock); setCreativeTab(CreativeTabs.tabBlock); } public String getTextureFile() { return"/gemstone_mod/Blocks.png"; } } The blocks are all alike, but with different names. The package all the classes are in is called net.gemstone.src Thanks for all help, If there's anything more I need to provide, please feel free to ask. PS. I'm probably just a huge noob, so please, don't be too hard on me, it's my first mod! /Falling
December 30, 201212 yr in the zip you need to put the folder, net/gemstone/src/classfile, not only the class files.
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.