Search found 3 matches

by WesFerr
26 Feb 2018, 05:00
Forum: Bug reports
Topic: about Path and get object handle
Replies: 1
Views: 1165

about Path and get object handle

i have 2 drones to follow the same Path, but in one of then the method sim.getObjectHandle("Path") work as well, in the other its simply return me this error: Lua runtime error: [string "CHILD SCRIPT Quadricopter_target#0"]:1: Object does not exist. (sim.getObjectHandle) stack traceback: [C]: in fun...
by WesFerr
25 Aug 2017, 21:08
Forum: General questions
Topic: how to load Path from file using lua?
Replies: 3
Views: 1157

Re: how to load Path from file using lua?

Hello, the error message says that one of the function's table size is not correct. Have you tried printing them to see if you have the correct size? Cheers Yes I have printed table size and it is 16(and bit 1 set bolf on and off). could you please share some working code snippet using the function...
by WesFerr
25 Aug 2017, 04:11
Forum: General questions
Topic: how to load Path from file using lua?
Replies: 3
Views: 1157

how to load Path from file using lua?

I'm trying to read a path from a file and I have not had successor, can anyone tell me what I'm doing wrong? path = simGetObjectHandle("Path") file = io.open(MyFile, "r") for line in io.lines(MyFile) do temp = {} for match in string.gmatch(line, "([^,]+)") do table.insert(temp, tonumber(match)) end ...