I recently made my first holographic projector and geolyzer and Ive beent ryting to use them to display a 3d map of the area I'm in. Here's what I'm trying to do:
local component = require("component")\
local geolzyer = component.geolzyer
local hologram = component.hologram
hologram.clear()
for x = 1, 32 do
for z = 1, 32 do
local myTable = geolzyer.scan(x,z)
for y = 1,32 do
if myTable[y] > 0 then
hologram.set(x,y,z,1)
end
end
end
end
It runs fine for a while, but about 2/3 of the way it gives the following message:
"Attempt to index local 'myTable' (a nil value)" on line 10 (the if statement). Any idea as to what might be causing this?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I recently made my first holographic projector and geolyzer and Ive beent ryting to use them to display a 3d map of the area I'm in. Here's what I'm trying to do:
It runs fine for a while, but about 2/3 of the way it gives the following message:
"Attempt to index local 'myTable' (a nil value)" on line 10 (the if statement). Any idea as to what might be causing this?
Link to post
Share on other sites