Johni0702 / BetterPortals

A Minecraft Mod which adds see-through portals usable without any loading screen
GNU General Public License v3.0
107 stars 15 forks source link

[Dev] 1.14 port #23

Open Pyrofab opened 5 years ago

Pyrofab commented 5 years ago

There are a few mod developers who would be keen on porting this to 1.14 using the Fabric mod loader (kotlin and mixins are available). What would your stance be on such a port ?

Johni0702 commented 5 years ago

I'm not in principle opposed to a fabric 1.14 port but I'd really like to avoid having two completely separate versions of the mod because that effectively doubles maintenance cost. And I'd rather not already abandon the 1.12 / forge version, especially since we might need the forge compatibility parts again.

For another mod I'm maintaining, I've written a simple pre-processor which supports stuff like

//#if MC>=11400
someFabricThing()
//#else
//$$ howItsDoneOnForge()
//#endif

and can automatically convert source code (and mixin annotations) between the different mappings every time you build. However, because it uses the eclipse java compiler internally, it only works with java, so that won't do unless there are similar tools for kotlin.

Are you aware of any other projects in the modding world which solve the double-the-maintenance-cost problem?

Pyrofab commented 5 years ago

Oh, you are a Replay Mod dev, nice! What I see most people do when maintaining several versions is to simply make several branches and cherry-pick commits from the main one. Apart from that, some people create a big abstraction layer (eg. mcjty's compatlayer), but that would be a very hard task to bridge between fabric and forge.

Redd56 commented 5 years ago

Holy shit he is

Pyrofab commented 5 years ago

Alright so for curiosity's sake I have taken a look at what it would take to port to Fabric 1.14. First and foremost: Good Job, this is an intricate mod, and Good Luck, for it will be some work to port.

As a reference, my sketch of a port can be found here: https://github.com/Pyrofab/BetterPortals/tree/fabric (only the buildscript compiles 😉) Obviously, the mappings are the biggest issue but they can be handled with enough patience. Main notes (apologies if you know all this):

I hope that helps in some way; I don't intend to finish my port, but if you need help I will be glad to provide.