Oh I’m sorry for the mistake, I don’t have that much experience in Lua. I got the same error as u/SenpaiKai. For some reason it worked when I try to change the scan variable to table. I don’t remember the other changes I made, but I think that your code doesn’t work, at least in my version.
Can you explain how it doesn't work for you? I have used this code for multiple years now in Dog, I don't think the geoscanner has ever changed its lua-facing API.
In any case, the attempt to index nil value is likely because geoscanner.scan() is returning nil, which is exactly what my code fixes -- or at least, patches.
View all comments
Show parent comment
1
u/Zealousideal_Age9847 Sep 02 '24
Oh I’m sorry for the mistake, I don’t have that much experience in Lua. I got the same error as u/SenpaiKai. For some reason it worked when I try to change the scan variable to table. I don’t remember the other changes I made, but I think that your code doesn’t work, at least in my version.