Open Yarillo4 opened 4 years ago
Obvious disclaimer that I'm not super well-versed in OC internals, so may be misreading things...
Looking at RelayPeripheral, it appears that the result of Component.invoke
is returned immediately without any intermediate conversion:
However, some methods like getItemsInNetwork
return an array of values, rather than a map. CC does not support this, and so it is skipped and null
/nil
is returned.
I'll have a look at expanding the conversion logic on CC:T's side - it's something I've been meaning to do for a while. That said, it's probably worth adding further conversions on the OC side, so that all versions of MC/CC are supported.
@SquidDev you mean you'd like to see us convert an array response from that invoke and convert it to a map before returning from callRemote?
@payonel I'm afraid yes. I suspect you'll need to handle all of the cases in ScalaClosure.toLuaValue
, as you'll also have arrays inside maps. Sorry!
Any updates on this?
OpenComputers 1.7.5.192 CC-Tweaked 1.85.2 AppliedEnergistics2 rv6-stable-7
Here's a ME Controller with a single item in its drives
It's being invoked fine on OC
But here's on ComputerCraft
It seems like tables do not make it through the relay.
For what it's worth, the relay is fully upgraded with a tier 3 disk, tier 3 CPU and a tier 3.5 ram stick so the serialized data should have room ?
The whole setup is like so (yes it's powered)