Posted 29 March 2014 - 10:10 PM
Howdy! So, I've been fiddling with a startup program to lock the computer to users unless they have a password, right? Well…it's created an issue. Whenever I reboot a computer, I get the following error:
When I place a computer, it works fine. But if I reboot that same, brand new computer…I get that error. I'm not too sure how to fix this. If someone could help, that'd be fantastic.
If for some reason you're interested in the startup program I created in case it broke something, here it is:
Thanks in advance!
"bios:377: Too long without yielding"
When I place a computer, it works fine. But if I reboot that same, brand new computer…I get that error. I'm not too sure how to fix this. If someone could help, that'd be fantastic.
If for some reason you're interested in the startup program I created in case it broke something, here it is:
shell.run("monitor","left","title")
os.pullEvent = os.pullEventRaw
local w,h = term.getSize()
local function printCentered(str, ypos)
term.setCursorPos(w/2-#str/2,ypos)
term.write(str)
end
local function clsTerm()
term.clear()
term.setCursorPos(1,1)
end
local function drawHeader()
printCentered(string.rep("-",w), 2)
printCentered("GateLock", 4)
printCentered("What is the Password?", 6)
printCentered(string.rep("-",w), 8)
end
clsTerm()
drawHeader()
term.setCursorPos(1,10)
write("PASSWORD: ")
pass = read("*")
cpass = "xxxxxx"
if pass == (cpass) then
clsTerm()
printCentered("Welcome Admin", 4)
sleep(1.5)
clsTerm()
else
clsTerm()
printCentered("Incorrect Password!", 4)
sleep(1.5)
os.reboot()
end
Thanks in advance!