This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
unobtanium's profile picture

Rednet - Sending a multidimensional array

Started by unobtanium, 12 June 2013 - 08:26 AM
unobtanium #1
Posted 12 June 2013 - 10:26 AM
Hello everyone,

i am searching quiet a while now, but i didnt even found an answer if this is even possible or not.
I want to send an array like the following over rednet:


item1 = { 1, 2, {10, 11 }, 4, 5 }

item2 = { {1, 2, 3, 4}, {1, 2, 3, 4}}

I know about un-serialize, but for me this does not work :s
Maybe i am doing something wrong…

Thank you!
unobtanium
Lyqyd #2
Posted 12 June 2013 - 10:30 AM
You would have to serialize the table before you can unserialize it. Check out the textutils API page on the wiki.