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

No ocs folder

Started by FalloutBe, 17 July 2013 - 09:38 AM
FalloutBe #1
Posted 17 July 2013 - 11:38 AM
Hello,

This must be a very stupid question, but how can I get the /ocs folder?

the first line of a tutorial is:
os.loadAPI("ocs/apis/sensor")

but I get the error: File not found.
when I type ls, it also doesn't show the ocs folder.

What am I doing wrong?
resaloli #2
Posted 17 July 2013 - 11:42 AM
Hello,

This must be a very stupid question, but how can I get the /ocs folder?

the first line of a tutorial is:
os.loadAPI("ocs/apis/sensor")

but I get the error: File not found.
when I type ls, it also doesn't show the ocs folder.

What am I doing wrong?

try:

os.loadAPI("/ocs/apis/sensor")

instead of:

os.loadAPI("ocs/apis/sensor")

is missing an / at the start of the directory
theoriginalbit #3
Posted 17 July 2013 - 11:44 AM
try:

os.loadAPI("/ocs/apis/sensor")

instead of:

os.loadAPI("ocs/apis/sensor")

is missing an / at the start of the directory
Shouldn't cause a problem, if the shell is in the root, it will assume the root directory…

@OP try typing "ls" or "dir" into the computer (without quotes of course) and if you do not see "ocs" then you either do not have the ocs sensor attached to the computer, or you have the mod installed incorrectly.
FalloutBe #4
Posted 17 July 2013 - 11:53 AM
It indeed doesn't show the ocs folder.
I'm trying to do this with a turtle, and the sensor is in slot 16.

I just tried it with a computer now, and when adding the sensor peripheral, the ocs folder appears. But I still need to get it working on a turtle now :/


EDIT: problem solved. It turns out I am quite retarded. I didn't see there was also a "sensor turtle" instead of just regular turtles.. Sorry!
theoriginalbit #5
Posted 17 July 2013 - 12:12 PM
Yes, telling us it was a turtle would have been vital info. haha.