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

Simple test program not working

Started by briarknit, 06 July 2012 - 02:50 AM
briarknit #1
Posted 06 July 2012 - 04:50 AM
Hey, Im trying to get a simple test program with my turtle to work with no luck

I have it set up like this


function test()
print("test")
end

all saved in a text file named "test" in my rom/apis folder.

If i go into minecraft and try to run test.test() It doesnt work with the "tried to reference nil" error at lua :1:

if I try to os.loadAPI("rom/apis/test") I get "No such file" errors .

I've looked over the stickies as well as some tutorial videos, but I keep getting the same error =/
Lyqyd #2
Posted 06 July 2012 - 05:55 AM
Did you restart the turtle after placing the file in the folder?