Cuberite Forum
Sending custom packets - Fake entity - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Sending custom packets - Fake entity (/thread-1935.html)

Pages: 1 2


Sending custom packets - Fake entity - fhntv24 - 05-10-2015

Can i somehow send from LUA fake entity packets ? They will be diffrent for diffrent players. They are : EntitySpawn, EntityMetadata, and EntityDestroyPackets. All of them i want for my minigame server.
Also i want to send Title(0x45) packets too.

So how can i send custom packets from LUA ?


RE: Sending custom packets - Fake entity - xoft - 05-10-2015

This is currently not possible, and we didn't plan on supporting that.

The Title packets are almost ready, they are being finalized in this PR: https://github.com/mc-server/MCServer/pull/1848


RE: Sending custom packets - Fake entity - fhntv24 - 05-10-2015

Thanks for answer. One more question: can i take you server as core, and rewrite it for my needs ? Beacos implementing all that stuff could take a long time , and i need even more features.

So can i use MCServer as base and rewrite it ?


RE: Sending custom packets - Fake entity - bearbin - 05-10-2015

Yes, MCServer is open source.

As long as you have a notification that your project is based on MCServer you can "fork" it and modify it to your needs.


RE: Sending custom packets - Fake entity - NiLSPACE - 05-10-2015

We might want to allow custom packets if we want to support mods later on. This could be done by exporting the cPacketizer class, with a cClientHandle function to send it.


RE: Sending custom packets - Fake entity - worktycho - 05-10-2015

How many minecraft mods don't use the plugin channels?

Also we would need to rewrite the protocol classes significantly, because just being able to send custom packets is not very useful without being able to receive them. And people would use it to send the official packets, rather than going through the API's that handle those things, preventing cross protocol support.

How about we expose cProtocol, and add a way to register protocols with extension's, though I'm not sure how protocol recognizer can tell a forge connection from a offical one.


RE: Sending custom packets - Fake entity - fhntv24 - 05-10-2015

There was only one mod that wasnt using plugin channels that i know - that is WAILLA. And that is it! So you are alredy supporing mods by supporting plugin channelsTongue


RE: Sending custom packets - Fake entity - worktycho - 05-10-2015

Then we just need to expose cProtocol, and plugins can send additional packets.


RE: Sending custom packets - Fake entity - tonibm19 - 05-10-2015

Would that made posible to make an MCPE plugin for MCServer?


RE: Sending custom packets - Fake entity - worktycho - 05-10-2015

No, because you wouldn't be able to create a cProtocol descendent. Also MCPE connects with UDP, so we would need to modify the server to listen for it.