Jump to content

Recommended Posts

Posted

I finally fixed a big error and my mod finally loaded on the client, then i put it in the mods folder in my server and I got this error:

 

 

  Reveal hidden contents

 

Posted

You can see where the problem is in the stack trace

 

  Quote
at ThorMod.<clinit>(ThorMod.java:57)

 

So in ThorMod.java line 57 is where the error occurs, Give us all of ThorMod.java and point out as a comment in the code which line is line 57.

Posted

Ok, there is a lot in this file but i will post it nonetheless

 

it says: public static final Block UltraniteOre = new ThorMod_UltraOre(170,

0).setBlockName("ThorUltraniteOre").setHardness(13F).setResistance(5F).setCreativeTab(CreativeTabs.tabBlock);

 

also I put a thing specifying exactly where it is in code aswell

 

 

  Reveal hidden contents

 

Posted

Can you post the constructor for ThorMod_UltraOre(int, int) and any static variables that have initializers it has (anything that is declared static and has a = on the same line.

 

public static SomeClass SomeVariable = new SomeClass();

 

Edit: If the class has a super class the static variables from the super class too.

 

Edit2: Let me explain what I think is going on:

 

"ThorMod.<clinit>" means while it was trying to create the class (before even the constructor was called, but I am not 100% sure) one of the static field variables thew a NoClassDefFoundError when trying to find the obfuscated class apn. apn is net/minecraft/src/GuiScreen, so likely the bad line is similar to

static final GuiScreen someGuiScreen = new GuiScreen();

 

change the code to

@SideOnly(Side.CLIENT)
static final GuiScreen someGuiScreen = new GuiScreen();

and that may fix your problem, it will no longer initialize the GuiScreen on the server side.

Posted

ThorMod_UltraOre

 

  Reveal hidden contents

 

Posted

You DO realise bumping posts here is an absolute no-no?

And yeah, you must be attempting to call a client class on the server.

Read the EAQ before posting! OR ELSE!

 

  Quote
This isn't building better software, its trying to grab a place in the commit list of a highly visible github project.

 

www.forgeessentials.com

 

Don't PM me, I don't check this account unless I have to.

Posted
  On 9/5/2012 at 2:47 PM, luacs1998 said:

Someone get cpw!

We need a log.

 

---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3

Time: 05.09.12 16:31
Description: Exception in server tick loop

cpw.mods.fml.common.LoaderException: java.lang.reflect.InvocationTargetException
at cpw.mods.fml.common.LoadController.transition(LoadController.java:102)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:591)
at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:83)
at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:330)
at ft.b(DedicatedServer.java:111)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:415)
at ep.run(SourceFile:539)
Caused by: java.lang.reflect.InvocationTargetException
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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:297)
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:123)
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.initializeMods(Loader.java:590)
... 5 more
Caused by: java.lang.NoSuchMethodError: hk.i()Ljava/lang/String;
at ModLoader.addAchievementDesc(ModLoader.java:63)
at ThorMod.load(ThorMod.java:582)
... 31 more

Relevant Details:
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0, Oracle Corporation
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 1832537152 bytes (1747 MB) / 2058027008 bytes (1962 MB) up to 2058027008 bytes (1962 MB)
- JVM Flags: 2 total; -Xmx2G -Xms2G
- Is Modded: Definitely; 'forge,fml'
- Profiler Position: N/A (disabled)
- Type: Dedicated Server

Posted

Thanks for the log, seems like the hook in vMC for that to work is failing.

Well, we still need cpw, I honestly don't know.

Read the EAQ before posting! OR ELSE!

 

  Quote
This isn't building better software, its trying to grab a place in the commit list of a highly visible github project.

 

www.forgeessentials.com

 

Don't PM me, I don't check this account unless I have to.

Posted
  On 9/6/2012 at 1:51 PM, Thor597 said:

Oh, It was me derping. ModLoader.getMinecraftInstance is client only. but how do i make an instance of:

 

player.getCurrentEquippedItem()

 

in my block file in my onBlockDestroyedByPlayer?

 

Also Im still getting an error on ModLoader.addAchievementDesc

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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