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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Honestly just want to play with my brother but LAN won't work for us so we have to try this.. Anyone?
    • Got modded, shit ton custom pack. Tried making a world, and it kicked me out saying that. Singelplayer. https://pastesio.com/crash-3317
    • I received an unexpected email claiming that a long-lost relative had left me a substantial inheritance $140,000 in cryptocurrency At first I was skeptical The message came with a lot of convincing documents legal jargon and even a supposed lawyer’s contact information They insisted everything was legitimate and the funds were waiting to be transferred All I needed to do they said was cover a few minor processing and transfer fees It seemed like a small price to pay for such a large windfall Against my better judgment I paid the fees Then more fees followed They kept assuring me the payout was right around the corner Weeks went by and the excuses kept coming Eventually it became clear this was a sophisticated scam The $140K inheritance was never real and I had been tricked into sending thousands of dollars to fraudsters embarrassed I started researching online and came across Byte phantom cyber services I was hesitant at first after all I had just been scammed But their website had positive reviews and they specialized in cryptocurrency fraud I reached out not expecting much To my surprise they responded quickly and professionally They were incredibly understanding and didn't make me feel foolish Their team walked me through the process step by step They used digital forensics and blockchain tracing techniques to track down the wallet addresses involved in the scam Within weeks they identified the fraudsters and began recovery efforts To my amazement Byte phantom cyber services recovered 100% of my lost funds Every cent I honestly couldn’t believe it They taught me how to recognize red flags avoid similar traps in the future and protect my digital identity I now feel empowered and informed not just lucky If you've been scammed or even suspect it don't stay silent Reach out to Byte phantom cyber services I got my money back
    • abro el juego pero al tocar un solo jugador me tira la de   [02:23:30] [Render thread/FATAL] [ne.mi.co.ForgeMod/]: Preparing crash report with UUID c3ff08d5-d285-458d-a3b5-fbba17743dff #@!@# Game crashed! Crash report saved to: #@!@# C:\juegos\Minecraft\instances\1.20.1 forge\.minecraft\crash-reports\crash-2025-05-02_02.23.30-client.txt Process exited with code -1 (0xffffffffffffffff). ¡Por favor, ten en cuenta que normalmente ni el código de salida ni su descripción son suficientes para diagnosticar problemas! Sube siempre el registro entero y no solo el código de salida.
    • So, First of I am new to modding so bare with me I am creating a 1.20.1 forge mod that needs Oculus/Embeddium as a dependancy because later on I need to add custom shaders in for lights and such. I am using ParchmentMC as I've heard its better because of namings of things but that doesn't seem to like it when I run it alongside Oculus (Its a very barebones script adding two blocks and an item, and tested it before I did this) The 4 errors I get when I run 'runClient' is Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [mixins.oculus.json:texture.MixinAbstractTexture] from phase [DEFAULT] in config [mixins.oculus.json] FAILED during APPLY Caused by: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @Inject annotation on iris$afterGenerateId could not find any targets matching 'Lnet/minecraft/client/renderer/texture/AbstractTexture;m_117963_()I' in net.minecraft.client.renderer.texture.AbstractTexture. Using refmap oculus-mixins-refmap.json [PREINJECT Applicator Phase -> mixins.oculus.json:texture.MixinAbstractTexture -> Prepare Injections ->  -> handler$zgm000$iris$afterGenerateId(Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;)V -> Parse] And then a "Execution failed for task ':runClient'." error My dependancies are just these with latest forge for 1.20.1 implementation fg.deobf('curse.maven:oculus-581495:6020952') // Oculus for 1.20.1 - 1.8.0  implementation fg.deobf('curse.maven:embeddium-908741:5681725') // Embeddium for 1.20.1 - 0.3.31 I have tested these mods & forge in a different modpack alone and it works fine Any help is much appreciated!
  • Topics

×
×
  • Create New...

Important Information

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