Jump to content

Recommended Posts

Posted

Hi! I am having a weird error. When i run client in eclipse all is working, but when I reobfuscate and put into mods directory an error appears.

crash report

 

---- Minecraft Crash Report ----

// Quite honestly, I wouldn't worry myself about that.

 

Time: 21.10.12 09:42

Description: Exception in server tick loop

 

cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: common.KczykuMod.mod_KczykuMod

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

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

at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:80)

at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:340)

at ft.b(DedicatedServer.java:49)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:433)

at ep.run(SourceFile:539)

Caused by: java.lang.ClassNotFoundException: common.KczykuMod.mod_KczykuMod

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

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

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

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

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

... 5 more

Caused by: java.lang.NullPointerException

at org.objectweb.asm.ClassReader.<init>(Unknown Source)

at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:27)

at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:162)

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

... 32 more

 

Relevant Details:

- Minecraft Version: 1.3.2

- Operating System: Windows XP (x86) version 5.1

- Java Version: 1.7.0_07, Oracle Corporation

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

- Memory: 487365048 bytes (464 MB) / 519110656 bytes (495 MB) up to 1037959168 bytes (989 MB)

- JVM Flags: 2 total; -Xms512M -Xmx1G

- FML: ~ERROR~ NullPointerException: null

- Is Modded: Definitely; 'forge,fml'

- Profiler Position: N/A (disabled)

- Type: Dedicated Server

 

 

my main file

 

package common.KczykuMod;

import net.minecraftforge.common.DimensionManager;

import net.minecraftforge.common.MinecraftForge;

import net.minecraft.src.Block;

import net.minecraft.src.EntityItem;

import net.minecraft.src.EntityLiving;

import net.minecraft.src.EntityPlayerMP;

import net.minecraft.src.Item;

import net.minecraft.src.ItemBlock;

import net.minecraft.src.ItemStack;

import net.minecraft.src.ModLoader;

import net.minecraft.src.Teleporter;

import net.minecraft.client.Minecraft;

import net.minecraft.src.*;

import java.util.*;

 

 

import net.minecraft.src.Entity;

import net.minecraft.src.EntityList;

import net.minecraft.src.EntityLiving;

import net.minecraft.src.EntityTracker;

import net.minecraft.src.EnumCreatureType;

import net.minecraft.src.SpawnListEntry;

import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.Mod;

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

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

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;

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

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

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

import net.minecraftforge.client.MinecraftForgeClient;

import net.minecraftforge.common.EnumHelper;

import net.minecraft.src.IChunkProvider;

import net.minecraft.src.World;

import net.minecraft.src.WorldGenMinable;

import cpw.mods.fml.common.IWorldGenerator;

import net.minecraft.src.*;

import net.minecraft.*;

import net.*;

@NetworkMod(clientSideRequired = true, serverSideRequired = true)

@Mod( modid = "mod_KczykuMod", name="mod_KczykuMod", version="0.0.9")

public class mod_KczykuMod{

 

 

@Instance("mod_KczykuModing")

public mod_KczykuMod instance;

 

public static Teleporter teleporterrealkczyku = new TeleporterRealKczyku();

 

@SidedProxy(clientSide = "common.KczykuMod.ClientProxy", serverSide = "common.KczykuMod.CommonProxy")

public static CommonProxy proxy; //This object will be populated with the class that you choose for the environment //The instance of the mod that will be defined, populated, and callable

 

 

private Minecraft minecraft;

private static boolean inPortal;

 

public void setInPortal()

{

    inPortal = true;

}

 

public boolean onTickInGame(float f, Minecraft minecraft1, Entity entity)

{

Teleporter teleporter = new TeleporterRealKczyku();

    EntityPlayerMP playerMP = (EntityPlayerMP)entity;

 

    if (inPortal)

    {

    playerMP.mcServer.getConfigurationManager().transferPlayerToDimension(playerMP, 102, teleporter);

    }

 

    return false;

}

 

"statics"

 

 

"Items"

 

 

"Blocks"

 

 

 

    @Init

    public void myNewLoadMethod(FMLInitializationEvent event)

{

DimensionManager.registerProviderType(102, WorldProviderRealKczyku.class, true);

DimensionManager.registerDimension(102, 102);

 

 

 

EntityRegistry.registerGlobalEntityID(wmEntityWater.class, "wmEntityWater12", 150);

EntityRegistry.registerGlobalEntityID(wmEntityAir.class, "wmEntityAir12", 151);

EntityRegistry.registerGlobalEntityID(wmEntityLight.class, "wmEntityLight12", 152);

EntityRegistry.registerGlobalEntityID(wmEntityFire.class, "wmEntityFire12", 153);

EntityRegistry.registerGlobalEntityID(wmEntityEarth.class, "wmEntityEarth12", 154);

EntityRegistry.registerGlobalEntityID(wmEntityBlackmagic.class, "wmEntityBlackmagic12", 155);

 

        LanguageRegistry.instance().addStringLocalization("entity.GoldGolem.name", "en_US", "GoldGolem");

        EntityRegistry.registerGlobalEntityID(EntityGoldGolem.class, "GoldGolem", ModLoader.getUniqueEntityId());

        LanguageRegistry.instance().addStringLocalization("entity.FZombie.name", "en_US", "FZombie");

        EntityRegistry.registerGlobalEntityID(EntityFZombie.class, "FZombie", ModLoader.getUniqueEntityId());

        LanguageRegistry.instance().addStringLocalization("entity.BloodyGhost.name", "en_US", "BloodyGhost");

        EntityRegistry.registerGlobalEntityID(EntityBloodyGhost.class, "BloodyGhost", ModLoader.getUniqueEntityId());

        LanguageRegistry.instance().addStringLocalization("entity.ForsakenWarrior.name", "en_US", "ForsakenWarrior");

        EntityRegistry.registerGlobalEntityID(EntityForsakenWarrior.class, "ForsakenWarrior", ModLoader.getUniqueEntityId());

  proxy.registerRenderInformation(); //You have to call the methods in your proxy class

 

"World generators register"

 

"Block registers"

 

 

"addnames"

 

"recipes

 

"smeltings"

 

}

}

 

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.