mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 23:33:12 +09:00
Require Factorio 2.1.12 for Lua UDP
Factorio 2.0.59 through 2.1.11 crash with "Trying to add invalid input action to the closure" when helpers.recv_udp dispatches a received packet, whether polled from on_tick or called from a command and whether or not the server is paused. Reproduced on headless 2.0.77 and 2.1.8, works from 2.1.12 on. FactorioServer now refuses to start with Lua UDP enabled on older versions, the docs say 2.1.12, and the integration tests only enable it on 2.1.12 or later. The to-game integration test polls recv_udp from on_tick like the clusterio module does and sends commands to make the empty server tick. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
7a64706c82
commit
1f37905be0
8 files changed
+37
-10
No files matched your search
@@ -255,7 +255,7 @@ Parameters:
|
||||
|
||||
Send data to Clusterio over the given channel using UDP instead of stdout.
|
||||
Clusterio plugins receive it as `udp-channel_name` events, see the [Communicating over UDP section](writing-plugins.md#communicating-over-udp) in the Writing Plugins document.
|
||||
Requires `factorio.enable_lua_udp` to be enabled on the instance and Factorio 2.0.59 or later, otherwise the data is silently dropped.
|
||||
Requires `factorio.enable_lua_udp` to be enabled on the instance and Factorio 2.1.12 or later, otherwise the data is silently dropped.
|
||||
The port to send to is passed to the module with a script command on startup, so `factorio.enable_script_commands` must be enabled as well.
|
||||
|
||||
**Note**: Delivery is not guaranteed and payloads should be kept well below 32 kB.
|
||||
|
||||
Reference in new issue
Block a user