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

Number bundledcable

Started by OviDiuS, 18 May 2013 - 10:22 AM
OviDiuS #1
Posted 18 May 2013 - 12:22 PM
Title [LUA][API] [Error] Number bundledcable

Hello guys was using computer craft and came over a small odd error. I did look it over allot and did not find the problem. Might bin looking at it to mutch i dont know.

Problem [LUA][API] [Error] Number

The problem accours in the first colors.yellow (line 32)

Its tested in
Decimals and text+color




local oldPull = os.pullEvent;
os.pullEvent = os.pullEventRaw;
term.clear()
term.setCursorPos(1, 1)
redstone.setOutput("right", true)
rs.setBundledOutput("bottom", colors.white)
redstone.setOutput("top", true)
print "Welcome to Umbrella Corporation"
sleep (3)
print "Please insert password"
pass = read()
if pass == "838791358+35+81358+135891359" then
sleep (5)
print "Is a smelly place"
print "Access granted"
sleep (1)
print "Stepp back and wait please"
sleep (1)

redstone.setOutput("top", false)
sleep (2)
rs.setBundledOutput("bottom", 0)
sleep (1)
redstone.setOutput("right", false)
sleep (1)
rs.setBundledOutput("bottom", colors,yellow)
rs.setBundledOutput("bottom", 0)
sleep (1)
rs.setBundledOutput("bottom", colors,yellow)
rs.setBundledOutput("bottom", 0)
sleep (1)
rs.setBundledOutput("bottom", colors,yellow)
rs.setBundledOutput("bottom", 0)
sleep (1)
rs.setBundledOutput("bottom", colors,yellow)
rs.setBundledOutput("bottom", 0)
sleep (1)
rs.setBundledOutput("bottom", colors,yellow)
rs.setBundledOutput("bottom", 0)
sleep (1)
rs.setBundledOutput("bottom", colors.yellow)
rs.setBundledOutput("bottom", 0)

else
print "Access denied"
sleep (5)
shell.run("startup")
end

its strange gona be fun to se if you guys have the same problem.


Edit : Problem found. Sleep (nr) need to be betwene each line of bundledOutput to work.
Lyqyd #2
Posted 20 May 2013 - 12:18 AM
Split into new topic.

Seems you solved this one on your own?
LBPHacker #3
Posted 20 May 2013 - 04:24 AM
I don't thinks so. In the code block, he had a lot of colors,yellow (with commas) - and by the way, that could cause the error message he's mentioned.
He used a dot in the last colors.yellow though…
OviDiuS #4
Posted 21 May 2013 - 10:18 AM
Me and my friend solved it. And the dot was edited out in game after i posted on the forum first time.