Jump to content

Multiplayer Mod Error


FrancescoTG

Recommended Posts

Hi guys!

 

I'm creating a mod called "DreamCraft", and I would like to port it to multiplayer.

Some days ago I used to develop with two separate MCP IDEs: one for singleplayer and one for multiplayer.

Since using two separate MCPs is annoying, I noticed that Forge mods are both singleplayer/multiplayer compatible, thanks to the SidedProxies.

So, in my "SinglePlayer MCP" I modified the Sided proxies to make them works in a single package.

This is the package structure:

src:

    - net.dreamcraft

          - DreamCraft.java

          - CommonProxy.java (Server proxy)

    - net.dreamcraft.client

          - ClientProxy.java (Client Proxy)

 

The client works well.

The server instead crashes at start.

It says:

2013-01-28 14:50:26 [sEVERE] [ForgeModLoader] An error occured trying to load a proxy into {clientSide=net.dreamcraft.client.ClientProxy, serverSide=net.dreamcraft.CommonProxy}.net.dreamcraft.DreamCraft
cpw.mods.fml.common.LoaderException
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:62)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:462)
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.loadMods(Loader.java:479)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:86)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:345)
at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:64)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

 

These are the codes:

DreamCraft.java: http://pastebin.com/JTE5TMdt

CommonProxy.java: http://pastebin.com/BbdCgwD2

ClientProxy.java: http://pastebin.com/eifJ4Jv6

 

What's wrong?

 

Thanks in advance for your help.

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.