Jump to content

Recommended Posts

Posted

I have just upgraded my mcp to 7.19 (MC 1.4.2) and downloaded the new forge versin for mc 1.4.2.

now i replaced every error i could find. and was error free after a few fixes.

now when i start minecraft it gives me the following error:

2012-10-28 18:24:36 [sEVERE] [ForgeModLoader] Caught exception from ElectricalEngineering
java.lang.IllegalArgumentException: Can not set static mineconomy.common.BaseMineConomy field mineconomy.common.BaseMineConomy.MineConomyInstance to electricalengineering.common.BaseElectricalEngineering
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(UnsafeStaticObjectFieldAccessorImpl.java:61)
at java.lang.reflect.Field.set(Field.java:657)
at cpw.mods.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:398)
at cpw.mods.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:324)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:418)
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)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:150)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:420)
at net.minecraft.client.Minecraft.run(Minecraft.java:752)
at java.lang.Thread.run(Thread.java:662)

and a couple more of these for the same reason.

i am probarly missing something obvious here but does someone knows how to fix this?

Posted

Have you added the mod name to your @Instance annotation? Like this:

@Instance("ModId")
public static BaseMineConomy MineConomyInstance; 

The ModId needs to be the same as the one in the @Mod annotation. Hope this helps!

Posted

Have you added the mod name to your @Instance annotation? Like this:

Code: [select]

@Instance("ModId")

public static BaseMineConomy MineConomyInstance;

The ModId needs to be the same as the one in the @Mod annotation. Hope this helps!

 

I tried that but it didn't work.

 

Do you have a new furnace/machine in your mod?

Because the newest forge has a new way  of handling a container.

 

I do have containers in my mod...

do you know how to handle them now?

Posted

Its your @Instance

Theres no way around it, write your @Instance annotation correct, with your correct ModId

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

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.