sm64coopdx/docs/lua
djoslin0 bf3127b3df
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows-opengl (push) Waiting to run
Build coop / build-windows-directx (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
Add bytestring packets for mods to use (#866)
Adds network_send_bytestring(), network_send_bytestring_to(), and
HOOK_ON_PACKET_BYTESTRING_RECEIVE

This is as close to raw bytes as you can get in lua. It allows you
to efficiently pack as much data as possible into each packet.

The existing network_send() was built for ease of use, but is quite
inefficient when you want to send a lot of data. Each number or int
field in the table amounts to 9 bytes for the key and 9 bytes for the
value. (amounting to 18 bytes per value). Whereas with the new method
you can pack that information into 1, 2, 4, or 8 bytes depending on
your type's size.

---------

Co-authored-by: MysterD <myster@d>
2025-06-30 11:24:39 +10:00
..
examples Add bytestring packets for mods to use (#866) 2025-06-30 11:24:39 +10:00
guides smlua event hooks refactor (#826) 2025-06-09 07:40:48 +10:00
constants.md Add bytestring packets for mods to use (#866) 2025-06-30 11:24:39 +10:00
functions-2.md Fix vec3f bugs (#837) 2025-06-05 19:44:09 +10:00
functions-3.md Lighting engine improvements (#870) 2025-06-29 17:46:35 +02:00
functions-4.md Lighting engine improvements (#870) 2025-06-29 17:46:35 +02:00
functions-5.md Fix vec3f bugs (#837) 2025-06-05 19:44:09 +10:00
functions-6.md Add smlua_text_utils_dialog_get_text and some other dialog functions (#860) 2025-06-28 14:28:28 +02:00
functions.md Lighting engine improvements (#870) 2025-06-29 17:46:35 +02:00
globals.md Final touches for geo hooks (#588) 2024-12-28 08:44:36 -05:00
lua.md Add bytestring packets for mods to use (#866) 2025-06-30 11:24:39 +10:00
structs.md Add smlua_text_utils_dialog_get_text and some other dialog functions (#860) 2025-06-28 14:28:28 +02:00