[Rseding91] [16.0] Remote calls mangle tables
Posted: Wed Dec 13, 2017 3:19 pm
Table arguments to remote calls get mangled e.g. {a = 1, b = 2} -> {a = 2}.
To reproduce:
Actual output: {a = 2}
Note that this works as expected if is run in the console, the bug only occurs when the interface is declared in a mod (calling from a mod also causes this bug to appear).
To reproduce:
- Mod with a 1 line control.lua
Code: Select all
remote.add_interface("test", {test = function(x) game.print(serpent.block(x)) end})
- In game run
Code: Select all
/c remote.call("test", "test", {a = 1, b = 2})
Actual output: {a = 2}
Note that this works as expected if
Code: Select all
/c remote.add_interface("test", {test = function(x) game.print(serpent.block(x)) end})
/c remote.call("test", "test", {a = 1, b = 2})