term.clear()
term.setCursorPos(1,1)
term.setTextColor(1024)
print("AppleOS V1")
os.run("turtledoor")
Impossibly confused.
#1
Posted 13 January 2014 - 01:17 AM
#2
Posted 13 January 2014 - 01:24 AM
EDIT: I tried running turtledoor itself not the actual line of code.
Edited by applesauce10189, 13 January 2014 - 01:35 AM.
#3
Posted 13 January 2014 - 01:34 AM
#4
Posted 13 January 2014 - 01:40 AM
Also changed term.setTextColor(1024) to term.setTextColor(colors.purple)
It wrote the "AppleOS" part but still didn't run the program.
EDIT: changed os.run(turtledoor) to use shell instead of os and now it ignores that line of code entirely, it literally printed AppleOS and didn't run the program. Also no error other than the fact it's ignoring the last line of code.
Edited by applesauce10189, 13 January 2014 - 01:43 AM.
#5
Posted 13 January 2014 - 01:45 AM
#6
Posted 13 January 2014 - 02:36 AM
Edited by CometWolf, 13 January 2014 - 02:36 AM.
#7
Posted 13 January 2014 - 02:54 AM
Edited by Kingdaro, 13 January 2014 - 02:55 AM.
#8
Posted 13 January 2014 - 12:03 PM
Applesauce: a debugging tip: put error("X") or some other string after the first line. If the first line runs and you just get "X", then move it to under the 2nd line and repeat.
Alternatively, in your case, comment out all the lines except the first. Run. If all is fine, uncomment the second. Repeat.
#9
Posted 13 January 2014 - 12:18 PM
#10
Posted 13 January 2014 - 12:33 PM
#11
Posted 13 January 2014 - 12:57 PM
at
term.setCursorPos(1,1)it should be
term.setCursorPos(1, 1)and change os.run to shell.run
it should be something like this
term.clear()
term.setCursorPos(1, 1)
term.setTextColor(1024)
print("AppleOS V1")
shell.run("turtledoor")
#12
Posted 13 January 2014 - 02:32 PM
#13
Posted 13 January 2014 - 10:30 PM
#14
Posted 13 January 2014 - 10:36 PM
#15
Posted 14 January 2014 - 12:56 AM
#17
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


This topic is locked










