OpenComputers

OpenComputers

49M Downloads

pushing signals with subtables returns no subtable

Exception0170 opened this issue ยท 5 comments

commented

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

commented

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

commented

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

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

commented

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

commented

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

commented

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.