Poll: Should Cuberite implement protocol code in lua?
You do not have permission to vote in this poll.
Yes, using that guy’s code
0%
0 0%
Yes, using C++ raknet code with lua bindings
0%
0 0%
Yes, using luasocket and implementing raknet from scratch
0%
0 0%
Yes, using any
14.29%
1 14.29%
I don’t care
42.86%
3 42.86%
No, What have you been smoking?
42.86%
3 42.86%
Other
0%
0 0%
Total 7 vote(s) 100%
* You voted for this item. [Show Results]

Reimplement Minecraft Java and implement Minecraft PE protocol with luaJIT
#3
The goal would be to do the least modification possible. For instance, cuberite continues to generate worlds and calculate projectiles the way it does now, the difference would be it now exposes those events to luaJIT, which would then “translate” and send these events.
This way, multiple luaJIT vms, light threads or whatever can run simultaneously, serving different protocols, without affecting each other.

Another example: Protocol1_8.lua has a table whitelisting which blocks it “knows” about, any other block_id gets converted to, let’s say 1, before sending the update to the client that is connected to this protocol.

Yeah, there needs to be some kind of routing code so each client gets the right treatment. I think ProtocolSupport (spigot) has implemented something like that.
Reply
Thanks given by:


Messages In This Thread
RE: Reimplement Minecraft Java and implement Minecraft PE protocol with luaJIT - by yangm97 - 06-17-2017, 04:23 PM



Users browsing this thread: 1 Guest(s)