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

[Lua][Question] Working on an moveapi, but goto isn't working

Started by robin0van0der0v, 22 December 2012 - 10:44 PM
robin0van0der0v #1
Posted 22 December 2012 - 11:44 PM
Problem solved, instead of an > symbol I used an < symbol.


Hello. :)/>

I am currently working on an move API, the API works fine.
You need to enter the initial X, Y, Z and facing of the turtle, and if the turtles moves, it updates the variables.
But when I tried to create an goto program, it doesn't even moves near the target, it goes to an other location. :(/>
Does somebody see why this happens?


~ Robin.
Edited on 23 December 2012 - 07:20 AM
Doyle3694 #2
Posted 22 December 2012 - 11:50 PM
where are you actually loading your moveAPI?

you need to do something like

os.loadAPI("moveAPI")
robin0van0der0v #3
Posted 22 December 2012 - 11:56 PM
where are you actually loading your moveAPI?

you need to do something like

os.loadAPI("moveAPI")
My startup program already does that, forgot to mention that. ;)/>
remiX #4
Posted 22 December 2012 - 11:57 PM
where are you actually loading your moveAPI?

you need to do something like

os.loadAPI("moveAPI")

If it's in ROM you don't need to load it. He said that it goes to another location so it has to be loaded and 'kinda' working.
robin0van0der0v #5
Posted 23 December 2012 - 12:27 AM
where are you actually loading your moveAPI?

you need to do something like

os.loadAPI("moveAPI")

If it's in ROM you don't need to load it. He said that it goes to another location so it has to be loaded and 'kinda' working.
It isn't in the rom, but it loads already in the startup file.



Problem solved, instead of an > symbol I used an < symbol.
Edited on 23 December 2012 - 07:20 AM