Page 1 of 1

[2.1.12] LuaPlayer::drag_wire(): Returned value described as a boolean, actual return is a table.

Posted: Sun Jul 26, 2026 1:27 am
by MeteorSwarm
07-25-2026, 18-26-47.png
07-25-2026, 18-26-47.png (107.45 KiB) Viewed 491 times
The current description of the output of LuaPlayer::drag_wire() is incorrect. It is described as a boolean in the documentation, but the actual output is a table containing the position dragged from.

Re: [2.1.12] LuaPlayer::drag_wire(): Returned value described as a boolean, actual return is a table.

Posted: Mon Aug 31, 2026 3:44 pm
by Bilka
Moving this to bug reports, it looks like the return value of the C++ wire dragging logic isn't returned to Lua as it should be, despite the method being marked as returning one value. The position value you're seeing is your own input to the method because it's the latest thing on the Lua stack.

Re: [2.1.12] LuaPlayer::drag_wire(): Returned value described as a boolean, actual return is a table.

Posted: Mon Aug 31, 2026 4:25 pm
by boskid
Looks like this was broken since first 2.0 release. This is now fixed for 2.1.18.