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

Certain known commands won't work in my computer

Started by sora117117, 21 November 2012 - 04:12 AM
sora117117 #1
Posted 21 November 2012 - 05:12 AM
these include
rs.setOutput
rs.getInput
redstone.setOutput
redstone.getInput

it simply says that the program doesn't exist.

Also when ever i use the redset <side> <T/F> in the startup it won't work ([string "startup"]:1: '=' expected) the only command i have in startup is "redset left true"
so i've tried to use the above coomands in place of it to no avail… However the print command functions fine and i can create password locks as well
sora117117 #2
Posted 21 November 2012 - 05:13 AM
also i am running Craft os 1.3
PixelToast #3
Posted 21 November 2012 - 05:23 AM
common mistake, these are LUA commands
run the program "lua" to run commands like that

the startup file is also for lua commands only
if you want to run a shell program from lua just do:
shell.run("programname","arg1","arg2","etc")
not suggested for redset with shell.run because you can use rs.setOutput("side",true)
sora117117 #4
Posted 21 November 2012 - 05:32 AM
thank you
i was loooking through some other topics and i understand now
dunkee #5
Posted 16 December 2012 - 10:10 PM
Honest mistake my friend.
Cloudy #6
Posted 16 December 2012 - 10:10 PM
Stop bumping old topics for no reason.