Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

How to make a mod multiplayer?


  • Please log in to reply
12 replies to this topic

#1

Enotho
    Enotho

    Obsidian Miner

  • Members
  • 1392 posts
  • Location: Canada
  • Minecraft: Enotho

Posted 10 December 2011 - 04:10 PM

I made a petroleum mod for singleplayer.

I would like to transform it into a server mod too, but I couldn't find any tutorials anywhere.

Could some help me / redirect me to a tutorial? Thanks :)

Register or log in to remove.

#2

artturi98

Posted 10 December 2011 - 04:13 PM

Just add files to server.jar (or bukkit jar) like in minecraft.jar
Posted Image

#3

Enotho
    Enotho

    Obsidian Miner

  • Members
  • 1392 posts
  • Location: Canada
  • Minecraft: Enotho

Posted 10 December 2011 - 04:15 PM

View Postartturi98, on 10 December 2011 - 04:13 PM, said:

Just add files to server.jar (or bukkit jar) like in minecraft.jar
You mean just installing it on the server and on all the players' singleplayer? Didn't know that would work. Let me try.

#4

Enotho
    Enotho

    Obsidian Miner

  • Members
  • 1392 posts
  • Location: Canada
  • Minecraft: Enotho

Posted 10 December 2011 - 04:29 PM

When I did what you said, the server crashed and closed. With ModLoaderMP Server, it gave this error and crashed:
2011-12-10 11:27:13 [INFO] ModLoader Server 1.0.0 Initializing...
2011-12-10 11:27:13 [SEVERE] Unexpected exception
java.lang.RuntimeException: ModLoader has failed to initialize.
	at ModLoader.ThrowException(ModLoader.java:1206)
	at ModLoader.init(ModLoader.java:627)
	at ModLoader.Init(ModLoader.java:1269)
	at net.minecraft.server.MinecraftServer.s(MinecraftServer.java:106)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:323)
	at cu.run(SourceFile:457)
Caused by: java.lang.RuntimeException: Exception occured in ModLoader
	at ModLoader.ThrowException(ModLoader.java:1206)
	at ModLoader.ThrowException(ModLoader.java:1211)
	at ModLoader.addMod(ModLoader.java:118)
	at ModLoader.readFromClassPath(ModLoader.java:903)
	at ModLoader.init(ModLoader.java:604)
	... 4 more
Caused by: java.lang.NoClassDefFoundError: Lyy;
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Unknown Source)
	at java.lang.Class.privateGetPublicFields(Unknown Source)
	at java.lang.Class.getFields(Unknown Source)
	at ModLoader.setupProperties(ModLoader.java:133)
	at ModLoader.addMod(ModLoader.java:103)
	... 6 more
Caused by: java.lang.ClassNotFoundException: yy
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 12 more

What's wrong with this?

#5

Shiganaru

Posted 10 December 2011 - 08:52 PM

You'll need to create two versions of the mod, one to run client-side, and another to run server-side.

This post helps a lot:
http://www.minecraft...ocks-and-items/

Also, if you are using ModLoader, you should NEVER need to install a mod into the JAR file itself, unless you are modifying Minecraft's base classes.

Just zip the CLASS files and put them into both the client's and the server's "mods" directory.

#6

Enotho
    Enotho

    Obsidian Miner

  • Members
  • 1392 posts
  • Location: Canada
  • Minecraft: Enotho

Posted 12 December 2011 - 01:04 AM

View PostShiganaru, on 10 December 2011 - 08:52 PM, said:

You'll need to create two versions of the mod, one to run client-side, and another to run server-side.

This post helps a lot:
http://www.minecraft...ocks-and-items/

Also, if you are using ModLoader, you should NEVER need to install a mod into the JAR file itself, unless you are modifying Minecraft's base classes.

Just zip the CLASS files and put them into both the client's and the server's "mods" directory.
Thank you so much! :D

#7

lild1243
    lild1243

    Tree Puncher

  • Members
  • 29 posts
  • Minecraft: lild1243

Posted 24 February 2012 - 07:15 AM

View Postmatt_minouf, on 12 December 2011 - 01:04 AM, said:

Thank you so much! :D
still didnt help cant u edit it to multiplayer?

#8

Mini Micro2
  • Minecraft: MiniMicro2

Posted 24 February 2012 - 12:01 PM

People that join the server need this mod in order to play and it may be hard to transfer some of the things over, you may have to recode it or something along the lines of that but it probably wont be as hard because you know what your doing
I scored 100% on the Minecraft Trivia Quiz. How much do you know about Minecraft? WELL I DONT CARE Loljks
Posted Image

#9

Dudemister1999
  • Location: FPS Mountain, The Video Game Planet
  • Minecraft: Dudemister1999
  • Xbox:Dudemister1999

Posted 17 April 2012 - 03:03 PM

I have an amazing mod(Not to brag, its HUGE!) and I really want it ported to Bukkit. If anyone could help me do it, I would be very grateful :3
How to be a java coder in three steps:
1. Post EVERY SINGLE error in a separate thread. Also, never post code in a code tag, just paste it, it's easy to read!
2. Ignore helpful posts and ask for code snippets. No exceptions. Always ask for a code snippet.
3. When you make a post, use this template: MY MOD DOESN'T WORK PLZ HELP!! You will get help immediately.

#10

ChrsMiner

Posted 09 September 2012 - 03:19 PM

I know I'm reviving an old thread :P

I don't really know how to do it either but I remember reading this somewhere :)

Set up MCP with a multiplayer jar (bukkit or MinecraftMP)
Add ModLoaderMP to jar
Decompile
Transfer all modded files over
change anything needed to be changed in Eclipse (EX: instead of BaseMod it's... something else I think)

Hope I was able to help :D
Much signature. Wow.
:3

#11

Enotho
    Enotho

    Obsidian Miner

  • Members
  • 1392 posts
  • Location: Canada
  • Minecraft: Enotho

Posted 14 September 2012 - 04:42 PM

View PostChrsMiner, on 09 September 2012 - 03:19 PM, said:

I know I'm reviving an old thread Posted Image

I don't really know how to do it either but I remember reading this somewhere Posted Image

Set up MCP with a multiplayer jar (bukkit or MinecraftMP)
Add ModLoaderMP to jar
Decompile
Transfer all modded files over
change anything needed to be changed in Eclipse (EX: instead of BaseMod it's... something else I think)

Hope I was able to help Posted Image
Thanks, like you said, this is an old thread. Modding compability between singleplayer/multiplayer has changed since then, so right now it's almost as simple as a drag-and-drop into the multiplayer jar. So this thread has been resolved and pointless since 1.3.

The 1.4 update will make it even easier, since now they will act similar to bukkit plugins.
Try not to revive old threads, since they normally are already fixed or abandonned by the time you post.

#12

Nekine
    Nekine

    Out of the Water

  • Members
  • 4 posts

Posted 19 October 2012 - 03:21 PM

People,i have a similar problem.

Know the "Dragon mounts" Mod? Well,i wanna play it multiplayer.Yes,i know others will need it.But,it is possible?

#13

MidnightMC101

Posted 19 October 2012 - 03:29 PM

How to make a mod multiplayer  is not such a big deal all you need to do is lets say post your mod on bukkit and download it bukkit will turn it multiplayer for you to play on your server i can help just tell me your server IP and make a me a admin and from there i can do the whole thing.