Posted 17 May 2014 - 05:53 PM
Hi, there can somebody help me with this Error bios:190,
i created the basic of a program with a minimalistic ;D menu design.
[quote
function Menu()
local l=1
while true do
term.setCursorPos(1,4)
if l==1 then write(" [Farm] Build ")
else write(" Farm [Build] ")
end
end
a, b=os.pullEvent()
while a~="key" do a, b=os.pullEvent() end
if b==203 and l==2 then l=1 end
if b==205 and l==1 then l=2 end
if b==28 then print("") end
end
–Function no. 1…
if l==1 then
print("Starting up farming programm…")
os.sleep(5)
–Function no. 2…
else if l==2 then
print("10%")
os.sleep(0.5)
print("20%")
os.sleep(0.5)
print("30%")
os.sleep(0.5)
print("40%")
os.sleep(0.5)
print("50%")
os.sleep(0.5)
print("60%")
os.sleep(0.5)
print("70%")
os.sleep(0.5)
print("80%")
os.sleep(0.5)
print("90%")
os.sleep(0.5)
print("100%")
os.sleep(0.5)
print("Completed… Wait")
os.sleep(1.5)
shell.run("Clear")
print("Do you wish to Continune | Type YES")
x=io.read()
if x==YES then
–This function starts the buiding process…
function Build()
–Paste the function No. 2 in here…
end
else
print("ERROR | Going back to Main Menu")
os.sleep(1.5)
shell.run("Clear")
Menu()
end
end
term.clear()
term.setCursorPos(1,1)
print("Select a program [<-] [->]")
local selection={}
local l=Menu(selection)
print(l)
end
i created the basic of a program with a minimalistic ;D menu design.
[quote
function Menu()
local l=1
while true do
term.setCursorPos(1,4)
if l==1 then write(" [Farm] Build ")
else write(" Farm [Build] ")
end
end
a, b=os.pullEvent()
while a~="key" do a, b=os.pullEvent() end
if b==203 and l==2 then l=1 end
if b==205 and l==1 then l=2 end
if b==28 then print("") end
end
–Function no. 1…
if l==1 then
print("Starting up farming programm…")
os.sleep(5)
–Function no. 2…
else if l==2 then
print("10%")
os.sleep(0.5)
print("20%")
os.sleep(0.5)
print("30%")
os.sleep(0.5)
print("40%")
os.sleep(0.5)
print("50%")
os.sleep(0.5)
print("60%")
os.sleep(0.5)
print("70%")
os.sleep(0.5)
print("80%")
os.sleep(0.5)
print("90%")
os.sleep(0.5)
print("100%")
os.sleep(0.5)
print("Completed… Wait")
os.sleep(1.5)
shell.run("Clear")
print("Do you wish to Continune | Type YES")
x=io.read()
if x==YES then
–This function starts the buiding process…
function Build()
–Paste the function No. 2 in here…
end
else
print("ERROR | Going back to Main Menu")
os.sleep(1.5)
shell.run("Clear")
Menu()
end
end
term.clear()
term.setCursorPos(1,1)
print("Select a program [<-] [->]")
local selection={}
local l=Menu(selection)
print(l)
end