OpenComputers icon indicating copy to clipboard operation
OpenComputers copied to clipboard

pushing signals with subtables returns no subtable

Open Exception0170 opened this issue 1 year ago • 5 comments

when using computer.pushSignal() with valid table, such as: {"b",{"c"}}, event.pull() returns a table without any subtables: {"b"} screenshot: image

is this intended behavior? I checked documentation, and it says thst subtables are supported. tried this on both lua 5.3 & 5.4

Exception0170 avatar Nov 06 '24 21:11 Exception0170

And does pullSignal make the iasue ? If yes its a OC problem, otherwise its openos

ff66theone avatar Nov 06 '24 21:11 ff66theone

And does pullSignal make the iasue ? If yes its a OC problem, otherwise its openos

yes, the issue persists when using computer.pullSignal() image

Exception0170 avatar Nov 06 '24 22:11 Exception0170

Idk, to avoid issues even if this is supported try serializing the table like youre sending it on the network.

ff66theone avatar Nov 06 '24 22:11 ff66theone

Try lua 5.2 also, the page hasn't been updated since 2021

ff66theone avatar Nov 06 '24 22:11 ff66theone

It is "intended", in the sense that the code never allowed for this possibility. I think this might've been initially omitted to avoid having to implement infinite loop detection.

asiekierka avatar Jan 05 '25 13:01 asiekierka