Posted 31 January 2018 - 01:50 AM
Hello,
I tried to create a pathfinding script for my turtle, so he can find his way back "home"
its a long time for me since I coded in LUA and especially within Computercraft, so I'm a little bit rusty.
Now… when I execute the program, I get the EXACT following errormessage:
==============================
sort.lua:190: attempt to compare string
with number expected, got string
==============================
I created a GPS tower and I already created 3 files with Coordinate locations.
he can read it out fine, but since I tried to write a file and read the file and assign it to a variable, I get this message.
I think the code is correct, but hey…. I didn't code LUA in about 6 years. Again… I am rusty :)/>
Could somebody please help me with the code?
The help would be appreciated :)/>
PS: don't mind the messy code, I will fix that later.
Link to code: https://pastebin.com/Jhy5Uu08
I tried to create a pathfinding script for my turtle, so he can find his way back "home"
its a long time for me since I coded in LUA and especially within Computercraft, so I'm a little bit rusty.
Now… when I execute the program, I get the EXACT following errormessage:
==============================
sort.lua:190: attempt to compare string
with number expected, got string
==============================
I created a GPS tower and I already created 3 files with Coordinate locations.
he can read it out fine, but since I tried to write a file and read the file and assign it to a variable, I get this message.
I think the code is correct, but hey…. I didn't code LUA in about 6 years. Again… I am rusty :)/>
Could somebody please help me with the code?
The help would be appreciated :)/>
PS: don't mind the messy code, I will fix that later.
Link to code: https://pastebin.com/Jhy5Uu08