Posted 23 September 2012 - 06:32 AM
Bug: program prints out multiple points then exits without doing anything else i have seen this in a few other programs usually fixes itself this time it hasn't
here is code that is being bad:
if position == "nil" then
local x,y = term.getSize()
pos = "1,1,"..x-1..","..y
else
pos = position
end
position is a string passed into the function this is in that is later turned into a table of numbers used for positioning and i have this setup so that if u give it nil it will do the max possible way is erring is the pos = "1,1"..x-1..","..y bit if i take out the x and y variables and substitute them for numbers it won't error but if i change it back it starts crashing again. Also I've found that around when I've fixed the bug (then change back i think) the computer stops realizing the code has been changed (editing outside of mc). Last two points are that there is no error msg just multiple points then finishes as if the program had finished and two that in the other lua environment I've used i have never encounter this problem. Sorry if i made post too long if u need more info let me know.
-Sariaz
here is code that is being bad:
if position == "nil" then
local x,y = term.getSize()
pos = "1,1,"..x-1..","..y
else
pos = position
end
position is a string passed into the function this is in that is later turned into a table of numbers used for positioning and i have this setup so that if u give it nil it will do the max possible way is erring is the pos = "1,1"..x-1..","..y bit if i take out the x and y variables and substitute them for numbers it won't error but if i change it back it starts crashing again. Also I've found that around when I've fixed the bug (then change back i think) the computer stops realizing the code has been changed (editing outside of mc). Last two points are that there is no error msg just multiple points then finishes as if the program had finished and two that in the other lua environment I've used i have never encounter this problem. Sorry if i made post too long if u need more info let me know.
-Sariaz