This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Korfay's profile picture

Need help by a Pro | bios:190

Started by Korfay, 17 May 2014 - 03:53 PM
Korfay #1
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

Zudo #2
Posted 17 May 2014 - 08:01 PM
Can I have the whole error please?
MKlegoman357 #3
Posted 17 May 2014 - 08:31 PM
Can I have the whole error please?

It's 'bios: 190', pretty self explanatory.

The only question I have is what ComputerCraft version are you using?

Also, put code in code tags:

[code]
print("Code here")
[/code]

Would make this:


print("Code here")

EDIT: the start of the code is cutoff.

EDIT2: You can pass an event-filter parameter to os.pullEvent and os.pullEventRaw:


local event, key = os.pullEvent("key") --// Will only wait for 'key' event
Edited on 17 May 2014 - 06:37 PM