Famous5000 0 Posted January 9, 2016 Share Posted January 9, 2016 I decided to work on the drones, and I tried to run this command in my processor for the DRONE: L = component.leash (RETURNED NOTHING) L.leash(5) [string "L.leash(5)"]:1: attempt to index a nil value (global 'L') And I tried the same thing with just the component: component.leash.leash(5) [string "component.leash.leash(5)]:1: attempt to index a nil value (field leash) And yes, I've tried both restarting the drone AND the computer, and even replacing it. Before you even ask: YES I HAVE THE LEASH UPGRADE. Quote Link to post Share on other sites
0 Lizzian 46 Posted January 11, 2016 Share Posted January 11, 2016 Drones don't have the OpenOS libraries, while component.leash would work on a computer running OpenOS it only does so because it creates "primary components" (i.e. adding the ability to do component.blah), on the drone you will need to use the basic component library functions ( see http://ocd.cil.li/tutorial:custom_oses for what you have available ) like component.get and component.proxy to get the leash component. Quote Link to post Share on other sites
I decided to work on the drones, and I tried to run this command in my processor for the DRONE:
L = component.leash
(RETURNED NOTHING)
L.leash(5)
[string "L.leash(5)"]:1: attempt to index a nil value (global 'L')
And I tried the same thing with just the component:
component.leash.leash(5)
[string "component.leash.leash(5)]:1: attempt to index a nil value (field leash)
And yes, I've tried both restarting the drone AND the computer, and even replacing it.
Before you even ask: YES I HAVE THE LEASH UPGRADE.
Link to post
Share on other sites