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

Running program on startup [Solved]

Started by wakafanykai123, 31 March 2013 - 11:03 AM
wakafanykai123 #1
Posted 31 March 2013 - 01:03 PM
I'm trying to run a program on my turtle from startup. shell.run freezes up my turtle and i have to destroy it the code that destroys it is below. Any help?

while true do
shell.run(UMD)
end
JokerRH #2
Posted 31 March 2013 - 01:25 PM
#1 shell.run("UMD")
#2 What does UMD do? Does it yield? (That means do you have a sleep, os.pullEvent()/pullEventRaw or read in your program)
That might be your problem. If not, try to add a sleep(0) to your program. That is not that perfect, but it should work.
wakafanykai123 #3
Posted 31 March 2013 - 01:51 PM
#1 shell.run("UMD")
#2 What does UMD do? Does it yield? (That means do you have a sleep, os.pullEvent()/pullEventRaw or read in your program)
That might be your problem. If not, try to add a sleep(0) to your program. That is not that perfect, but it should work.
Yea it does have a sleep. What do i do if it yields?
Edit: Solved i needed the quotes