Joining the packet sources
#23
(08-18-2012, 06:54 PM)xoft Wrote: Another side-effect detected:
Some cPacket descendants were exported to Lua and plugins were using them, both to send packets and to handle hooks (BlockDig, BlockPlace). These will be removed, so Lua hooks' signatures will change and the plugins will not be able to invoke default behavior with a modified input data. I don't think this matters much, since it was a very under-documented feature anyway and I don't think anyone would be using that in a plugin anyway.
The interface change, though, is not so great. We'll have a new round of plugin incompatibility Sad

I saw that. Unfortunately this breaks even more than just Lua functions, this breaks functionality.

Before your change you could alter the packets in Lua before sending it back to MCServer. I'm not sure why anyone would do this, but it was possible!

How about wrapping such hooks in a struct? Like before, but this time for ONLY storing the data and not for parsing etc. This should also make it easier to make protocol changes, because you can simply edit the struct and you don't have to change function signatures.
Reply
Thanks given by:


Messages In This Thread
Joining the packet sources - by xoft - 08-01-2012, 08:24 AM
RE: Joining the packet sources - by xoft - 08-08-2012, 10:42 PM
RE: Joining the packet sources - by xoft - 08-09-2012, 07:57 PM
RE: Joining the packet sources - by NiLSPACE - 08-09-2012, 08:09 PM
RE: Joining the packet sources - by xoft - 08-09-2012, 08:27 PM
RE: Joining the packet sources - by Luksor - 08-09-2012, 11:08 PM
RE: Joining the packet sources - by xoft - 08-10-2012, 12:01 AM
RE: Joining the packet sources - by xoft - 08-10-2012, 02:03 AM
RE: Joining the packet sources - by l0udPL - 08-11-2012, 05:29 AM
RE: Joining the packet sources - by xoft - 08-11-2012, 06:14 AM
RE: Joining the packet sources - by l0udPL - 08-11-2012, 06:32 AM
RE: Joining the packet sources - by xoft - 08-11-2012, 06:45 AM
RE: Joining the packet sources - by l0udPL - 08-11-2012, 07:10 AM
RE: Joining the packet sources - by FakeTruth - 08-14-2012, 10:15 PM
RE: Joining the packet sources - by xoft - 08-15-2012, 12:11 AM
RE: Joining the packet sources - by xoft - 08-16-2012, 05:54 AM
RE: Joining the packet sources - by xoft - 08-17-2012, 09:00 PM
RE: Joining the packet sources - by FakeTruth - 08-17-2012, 09:02 PM
RE: Joining the packet sources - by xoft - 08-17-2012, 10:10 PM
RE: Joining the packet sources - by xoft - 08-18-2012, 06:54 PM
RE: Joining the packet sources - by FakeTruth - 08-18-2012, 09:08 PM
RE: Joining the packet sources - by NiLSPACE - 08-18-2012, 08:06 PM
RE: Joining the packet sources - by xoft - 08-18-2012, 08:41 PM
RE: Joining the packet sources - by xoft - 08-18-2012, 09:38 PM
RE: Joining the packet sources - by FakeTruth - 08-18-2012, 09:53 PM
RE: Joining the packet sources - by xoft - 08-18-2012, 10:43 PM
RE: Joining the packet sources - by NiLSPACE - 08-24-2012, 10:40 PM
RE: Joining the packet sources - by FakeTruth - 08-24-2012, 11:27 PM
RE: Joining the packet sources - by xoft - 08-25-2012, 12:14 AM
RE: Joining the packet sources - by xoft - 08-26-2012, 07:49 AM
RE: Joining the packet sources - by FakeTruth - 08-26-2012, 08:04 AM
RE: Joining the packet sources - by xoft - 08-26-2012, 08:27 AM
RE: Joining the packet sources - by xoft - 08-27-2012, 07:05 AM
RE: Joining the packet sources - by NiLSPACE - 08-27-2012, 07:12 AM
RE: Joining the packet sources - by xoft - 08-27-2012, 07:16 AM
RE: Joining the packet sources - by NiLSPACE - 08-27-2012, 07:17 AM
RE: Joining the packet sources - by xoft - 08-29-2012, 08:05 AM
RE: Joining the packet sources - by FakeTruth - 08-30-2012, 12:20 AM
RE: Joining the packet sources - by xoft - 08-30-2012, 07:07 AM
RE: Joining the packet sources - by Taugeshtu - 08-30-2012, 08:04 PM
RE: Joining the packet sources - by xoft - 08-30-2012, 10:29 PM
RE: Joining the packet sources - by Taugeshtu - 08-30-2012, 10:33 PM
RE: Joining the packet sources - by xoft - 08-30-2012, 10:43 PM
RE: Joining the packet sources - by FakeTruth - 08-31-2012, 12:39 AM
RE: Joining the packet sources - by NiLSPACE - 09-24-2012, 03:02 AM
RE: Joining the packet sources - by xoft - 09-24-2012, 03:07 AM
RE: Joining the packet sources - by NiLSPACE - 09-24-2012, 03:10 AM
RE: Joining the packet sources - by FakeTruth - 09-24-2012, 03:41 AM
RE: Joining the packet sources - by xoft - 09-24-2012, 05:21 AM
RE: Joining the packet sources - by NiLSPACE - 11-10-2012, 06:21 AM
RE: Joining the packet sources - by FakeTruth - 11-10-2012, 07:37 AM
RE: Joining the packet sources - by Luksor - 11-10-2012, 07:41 AM
RE: Joining the packet sources - by FakeTruth - 11-10-2012, 08:47 AM
RE: Joining the packet sources - by NiLSPACE - 11-12-2012, 02:23 AM
RE: Joining the packet sources - by xoft - 11-12-2012, 02:25 AM
RE: Joining the packet sources - by NiLSPACE - 11-12-2012, 02:29 AM
RE: Joining the packet sources - by xoft - 11-12-2012, 03:46 AM
RE: Joining the packet sources - by NiLSPACE - 11-12-2012, 04:08 AM
RE: Joining the packet sources - by NiLSPACE - 10-26-2013, 11:46 PM
RE: Joining the packet sources - by xoft - 10-27-2013, 01:09 AM
RE: Joining the packet sources - by NiLSPACE - 12-15-2013, 10:33 PM
RE: Joining the packet sources - by xoft - 12-15-2013, 10:54 PM
RE: Joining the packet sources - by NiLSPACE - 12-15-2013, 11:26 PM
RE: Joining the packet sources - by tonibm19 - 12-15-2013, 11:29 PM
RE: Joining the packet sources - by NiLSPACE - 12-15-2013, 11:33 PM
RE: Joining the packet sources - by tigerw - 12-15-2013, 11:38 PM
RE: Joining the packet sources - by NiLSPACE - 12-15-2013, 11:50 PM
RE: Joining the packet sources - by xoft - 12-16-2013, 12:00 AM



Users browsing this thread: 3 Guest(s)