Jump to content

Help me, Error when opening server. [SOLVED]


AppliedOnce

Recommended Posts

Hi, Im Xetosphere and I keep getting this error when I'm trying out my mod in SMP. Please Help me.

 

 

[iNFO] Starting minecraft server version 1.4.4

[iNFO] Loading properties

[iNFO] Default game type: SURVIVAL

[iNFO] Generating keypair

[iNFO] Starting Minecraft server on *:25565

[WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!

[WARNING] The server will make no attempt to authenticate usernames. Beware.

[WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.

[WARNING] To change this, set "online-mode" to "true" in the server.properties file.

[sEVERE] Encountered an unexpected exception LoaderException

cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodError: net.minecraft.src.ModLoader.addArmor(Ljava/lang/String;)I

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

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:652)

at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:88)

at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:348)

at net.minecraft.src.DedicatedServer.startServer(DedicatedServer.java:120)

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

at net.minecraft.src.ThreadMinecraftServer.run(ThreadMinecraftServer.java:17)

Caused by: java.lang.NoSuchMethodError: net.minecraft.src.ModLoader.addArmor(Ljava/lang/String;)I

at XetosMod.common.XetosMod.load(XetosMod.java:342)

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

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.initializeMods(Loader.java:651)

... 5 more

[sEVERE] This crash report has been saved to: C:\Users\Mathias\Desktop\Minecraft\MCP\jars\.\crash-reports\crash-2012-11-13_22.54.06-server.txt

 

Link to comment
Share on other sites

I can explain how to do it properly.

I'm assuming you already have a proxy set up, if not, go do that now.

 

In your common proxy, add this:

public int addArmor(String armor)
{
    return 0;
}

And in your client proxy, add this:

@Override
public int addArmor(String armor)
{
    return RenderingRegistry.addNewArmourRendererPrefix(armor);
}

 

Now whenever you call ModLoader.addArmor, call proxy.addArmor instead.

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.