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

Turtle send status

Started by dexter9, 27 February 2013 - 08:59 AM
dexter9 #1
Posted 27 February 2013 - 09:59 AM
How do i get a wireless turtle(of any kind) to send the program that its performing over rednet?
OmegaVest #2
Posted 27 February 2013 - 11:16 AM
Well, your going to have to code a way to do that. The easiest would probably be to convert most if not all of your programs into functions, and use the parallel api to also send/listen to rednet.

And, no, I'm not giving code away. All the tools are out there, and if you get stuck with code you've already written, we'll help.
Bubba #3
Posted 27 February 2013 - 11:27 AM
I don't think the OP is asking us to write out a program for him: just to point him in the right direction.

You want to send the currently running program over rednet? Use something like shell.getRunningProgram() (check it out on the wiki).
ChunLing #4
Posted 28 February 2013 - 03:36 AM


Does this have to be in an API function that might be dealing with different programs?

I mean, couldn't you just put a line in your program that sent a fixed rednet message indicating that the program was running?
dexter9 #5
Posted 28 February 2013 - 06:02 AM
Bubba has got it. Is that all i would need? Do i need over code?