yariplus / nodebb-plugin-minecraft-integration

NodeBB plugin to integrate your forum with your Minecraft Server.
Other
15 stars 4 forks source link

Is there a way to use a forge mod instead of a plugin? #104

Open Telokis opened 7 years ago

Telokis commented 7 years ago

Hello,

I'd really like to use your nodebb plugin but I can't use bukkit/cauldron/thermos/anything that allows both mods and plugins, I have to stick on forge only. Is there a way to make it work even though I can't use plugins?

yariplus commented 7 years ago

Sure thing!

The "plugin" is universal, so it should work in the forge mods folder as well. Although, I have not updated it in quite a while. What version of forge are you using?

Telokis commented 7 years ago

Thanks for the quick answer! I'm using the forge version 1614 for 1.7.10 (rather old) so I think it'll be fine!

Telokis commented 7 years ago

[Server thread/INFO] [FML]: FML has found a non-mod file nodebb-integration-universal-0.8.0-alpha.10.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. Is that intentional?

yariplus commented 7 years ago

Hmm, definitely not. I'll see what I can do.

Telokis commented 7 years ago

Thanks a lot! By the way there were a donation button somewhere, can I have it back, please?

Telokis commented 7 years ago

Nevermind, I found it!

yariplus commented 7 years ago

Thank you kindly. I'll get this updated asap. Looks like I got it working with Thermos/KCauldron, but never finished vanilla forge yet.

Telokis commented 7 years ago

Yeah, I browsed the code a bit and you seem to have only put the skeleton right there. If you want I'm also a programmer, if you take a little bit of time to tell me where to start, I'd probably be able to help you.

yariplus commented 7 years ago

Sure! It would be mostly busy work. Copy the file structure from the bukkit folder, rename the files, and change the functions to call forge methods instead of bukkit ones.

It already compiles and loads in mc, just remove any commented out forge sections from build.gradle in the universal section, and run gradle package.

One problem is the shadow plugin copies the forge libraries to the completed jar. I need to add all of the forge libraries to the exclusion list in forge's build.gradle. Not sure how to do that without naming all the libraries individually.

Telokis commented 7 years ago

Sorry but I think I won't have enough spare time to help you. I work full time and I have a youtube channel to manage when I come back after work.

yariplus commented 7 years ago

No problem! I'm about in the same boat, but I'll manage it!

yariplus commented 7 years ago

Okay, I think I got it building correctly now. Won't be much longer.

Telokis commented 7 years ago

Alright I'm glad to hear that! Good luck!