MightyPirates / OpenComputers

Home of the OpenComputers mod for Minecraft.
https://oc.cil.li
Other
1.59k stars 431 forks source link

Lua Error #2834

Closed neumanfe closed 6 years ago

neumanfe commented 6 years ago

If i program a drone and test the program in a Computer,it works,if i run it in a drohe,i'll get the error:attempt to Fall a nil value(global 'require') for my first line,which is :component = require("component")

payonel commented 6 years ago

openos provides the require global method, and it loads libraries in openos' /lib folder in your drone you have neither of those things programming a drone is essentially programming a custom os, read this wiki page: https://ocdoc.cil.li/tutorial:custom_oses