Jump to content

Can't install my mod.


Alanvcd

Recommended Posts

Help me, please. When I try to recompile/reofb my mod, it says it cannot find the server source files. I searched in forums that say it doesn't matter, that Forge not longer uses separated server/client files, so I can ignore it. Anyways, when I try to install the recompiled mod in my regular Minecraft installation, it crashes after the Mojang logo, splashing this log:

 

 

 

 

  Minecraft has crashed!  

  ----------------------  

 

Minecraft has stopped running because it encountered a problem; Failed to start game

 

A full error report has been saved to C:\Users\Alanvcd-\AppData\Roaming\.minecraft\crash-reports\crash-2013-02-07_13.24.09-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 a7418dc8 --------

Full report at:

C:\Users\Alanvcd-\AppData\Roaming\.minecraft\crash-reports\crash-2013-02-07_13.24.09-client.txt

Please show that file to Mojang, NOT just this screen!

 

Generated 7/02/13 13:24

 

-- System Details --

Details:

Minecraft Version: 1.4.7

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.7.0_13, Oracle Corporation

Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation

Memory: 428071264 bytes (408 MB) / 518979584 bytes (494 MB) up to 1037959168 bytes (989 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.26 FML v4.7.4.520 Minecraft Forge 6.6.0.497 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

mod_nokiamod [Nokia mod] (nokiamod) Unloaded->Errored

LWJGL: 2.4.2

OpenGL: ATI Mobility Radeon HD 4200 Series GL version 3.3.11399 Compatibility Profile Context, ATI Technologies Inc.

Is Modded: Definitely; Client brand changed to 'forge,fml'

Type: Client (map_client.txt)

Texture Pack: Better than Default 1.4.zip

Profiler Position: N/A (disabled)

Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: nokiamod.Nokiamod

at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:485)

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(Unknown Source)

Caused by: java.lang.ClassNotFoundException: nokiamod.Nokiamod

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:185)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:416)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

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(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

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:479)

... 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:228)

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:173)

... 32 more

--- END ERROR REPORT 92e9a2a ----------

 

Opening Minecraft using Eclipse will work and the mod will have the blocks and everything, but in regular Minecraft it just crashes. I have only installed Forge and my mod. I know some Java, so I started with blocks, items, and more things. I tried with a basic mod too, using only 1 block, but it crashed too... Please help me, I don't know what to do D:

The flying banana ate my dog.

Link to comment
Share on other sites

This is the mod class. Items/blocks are in separated classes. I don't know if that's right, anyways.

 

 

package nokiamod;

 

import net.minecraft.block.Block;

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.item.crafting.FurnaceRecipes;

import net.minecraftforge.client.MinecraftForgeClient;

import net.minecraftforge.common.MinecraftForge;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

 

@Mod(modid = "mod_nokiamod", name = "Nokia mod", version = "0.1")

@NetworkMod(clientSideRequired = true, serverSideRequired = true)

public class Nokiamod

{

public static Block nokiaBlock;

public static Block nokiaOre;

public static Item nokiaItem;

public static Item nokiaPlate;

public static Item nokiaChip;

public static Item nokiaHelmet;

public static Item nokiaChestplate;

public static Item nokiaLeggings;

public static Item nokiaBoots;

public static Item nokiaPickaxe;

public static Item nokiaAxe;

 

 

@SidedProxy(clientSide = "nokiamod.ClientProxyNokiamod", serverSide = "nokiamod.CommonProxyNokiamod")

public static CommonProxyNokiamod proxy;

@Init

public void load(FMLInitializationEvent event)

{

 

  GameRegistry.registerWorldGenerator(new NokiamodWorldGen());

 

  proxy.registerRenderThings();

  nokiaBlock = new NokiaBlock(255, 0).setBlockName("Nokiablock");

  nokiaOre = new NokiaOre(254, 1).setBlockName("Nokiaore");

  nokiaItem = new NokiaItem(3853).setItemName("Nokiaitem");

  nokiaPlate = new NokiaPlate(3854).setItemName("Nokiaplate");

  nokiaChip = new NokiaChip(3855).setItemName("Nokiachip");

  nokiaHelmet = new NokiaHelmet(3856).setItemName("Nokiahelmet");

  nokiaChestplate = new NokiaChestplate(3857).setItemName("NokiaChestplate");

  nokiaLeggings = new NokiaLeggings(3858).setItemName("NokiaLeggings");

  nokiaBoots = new NokiaBoots(3859).setItemName("NokiaBoots");

  nokiaPickaxe = new NokiaPickaxe(3860).setItemName("NokiaPickaxe");

  nokiaAxe = new NokiaAxe(3861).setItemName("NokiaAxe");

 

  GameRegistry.registerBlock(nokiaBlock);

  GameRegistry.registerBlock(nokiaOre);

 

  LanguageRegistry.addName(nokiaBlock, "Nokia block");

  LanguageRegistry.addName(nokiaOre, "Iron plate ore");

  LanguageRegistry.addName(nokiaItem, "Nokia");

  LanguageRegistry.addName(nokiaPlate, "Iron plate");

  LanguageRegistry.addName(nokiaChip, "Nokia chip");

  LanguageRegistry.addName(nokiaHelmet, "Nokia helmet");

  LanguageRegistry.addName(nokiaChestplate, "Nokia chestplate");

  LanguageRegistry.addName(nokiaLeggings, "Nokia leggings");

  LanguageRegistry.addName(nokiaBoots, "Nokia boots");

  LanguageRegistry.addName(nokiaPickaxe, "Nokia pickaxe");

  LanguageRegistry.addName(nokiaAxe, "Nokia axe");

 

  MinecraftForgeClient.preloadTexture("/nokiamod/nokiablocks.png");

  MinecraftForgeClient.preloadTexture("/nokiamod/nokiaitems.png");

 

  MinecraftForge.setBlockHarvestLevel(nokiaBlock, "pickaxe", 3);

 

 

  ItemStack nokiapStack = new ItemStack(Nokiamod.nokiaPlate);

  ItemStack nokiacStack = new ItemStack(Nokiamod.nokiaChip);

  ItemStack nokiaiStack = new ItemStack(Nokiamod.nokiaItem);

  ItemStack nokiabStack = new ItemStack(Nokiamod.nokiaBlock);

  ItemStack nokiaoStack = new ItemStack(Nokiamod.nokiaOre);

   

  ItemStack ironStack = new ItemStack(Item.ingotIron);

  ItemStack stoneStack = new ItemStack(Block.stone);

  ItemStack redstoneStack = new ItemStack(Item.redstone);

  ItemStack glasspStack = new ItemStack(Block.thinGlass);

  ItemStack obsidianStack = new ItemStack(Block.obsidian);

  ItemStack stickStack = new ItemStack(Item.stick);

 

  GameRegistry.addRecipe(new ItemStack(Nokiamod.nokiaPlate), "xxx", "xyx", "xxx",

          'x', ironStack, 'y', stoneStack);

  GameRegistry.addRecipe(new ItemStack(Nokiamod.nokiaChip), "xxx", "xyx", "xxx",

          'x', redstoneStack, 'y', nokiapStack);

  GameRegistry.addRecipe(new ItemStack(Nokiamod.nokiaItem), "xzx", "xyx", "xxx",

          'x', obsidianStack, 'y', nokiacStack, 'z', glasspStack);

  GameRegistry.addRecipe(new ItemStack(Nokiamod.nokiaBlock), "xxx", "xxx", "xxx",

          'x', nokiaiStack);

  GameRegistry.addRecipe(new ItemStack(Nokiamod.nokiaHelmet), "xxx", "x x",

          'x', nokiabStack);

  GameRegistry.addRecipe(new ItemStack(Nokiamod.nokiaChestplate), "x x", "xxx", "xxx",

          'x', nokiabStack);

  GameRegistry.addRecipe(new ItemStack(Nokiamod.nokiaLeggings), "xxx", "x x", "x x",

          'x', nokiabStack);

  GameRegistry.addRecipe(new ItemStack(Nokiamod.nokiaBoots), "x x", "x x",

          'x', nokiabStack);

  GameRegistry.addRecipe(new ItemStack(Nokiamod.nokiaPickaxe), "xxx", " y ", " y ",

  'x', nokiabStack, 'y', stickStack);

  GameRegistry.addRecipe(new ItemStack(Nokiamod.nokiaAxe), "xx ", "xy ", " y ",

  'x', nokiabStack, 'y', stickStack);

  GameRegistry.addRecipe(new ItemStack(Nokiamod.nokiaAxe), " xx", " yx", " y ",

  'x', nokiabStack, 'y', stickStack);

  GameRegistry.addShapelessRecipe(new ItemStack(Nokiamod.nokiaItem, 9), nokiabStack);

  GameRegistry.addSmelting(254, new ItemStack(Nokiamod.nokiaPlate), 0.1f);

 

}

}

 

The flying banana ate my dog.

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.

Announcements



×
×
  • Create New...

Important Information

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