Skip to main content
15 events
when toggle format what by license comment
Dec 25, 2019 at 17:13 comment added Unionhawk @EJMak No, that line should be left as args = {...}, and you can send foo by running send foo.
Dec 25, 2019 at 17:07 comment added EJ Mak So, if I have a program on the sending computer called foo.lua, would that line in my code be written like this?: args = {foo}
Dec 25, 2019 at 17:01 comment added Unionhawk @EJMak args = {...} in Lua takes the arguments passed to the command (for instance, in excavate 10, the argument 10) and assigns it to a variable as an array. This line allows the program to take a file name as input (send program) and should be left unmodified. The only spots that should be modified are indicated by angle brackets (<ID> etc)
Dec 25, 2019 at 15:57 comment added EJ Mak Thanks for this explanation. I'm interested in the option to push an entire Lua program, but I'm confused about the args = {...} line in the code. Is this where I specify the program/file that I wish to send over rednet? If so, how exactly do I reference it within the curly braces? If not, how do I specify the program/file that I want to relay?
Jan 30, 2019 at 13:34 history edited Unionhawk CC BY-SA 4.0
fix formatting to un-disappear a word
Apr 4, 2016 at 16:28 history edited Unionhawk CC BY-SA 3.0
plus closing the rednet
Jan 2, 2016 at 21:31 vote accept BRHSM
Jan 2, 2016 at 10:35 history bounty ended CommunityBot
Dec 30, 2015 at 21:38 history edited Unionhawk CC BY-SA 3.0
added 169 characters in body
Dec 30, 2015 at 3:30 comment added Unionhawk This code has been tested and should work in ComputerCraft for Minecraft 1.4.7. The only potential issue I can think of is a buffer overflow or something.
Dec 30, 2015 at 3:29 history edited Unionhawk CC BY-SA 3.0
added 339 characters in body
Dec 29, 2015 at 17:46 history undeleted Unionhawk
Dec 29, 2015 at 17:44 history edited Unionhawk CC BY-SA 3.0
added 1090 characters in body
Dec 29, 2015 at 15:59 history deleted Unionhawk via Vote
Dec 29, 2015 at 15:59 history answered Unionhawk CC BY-SA 3.0