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

I don't know if this is a bug or not.

Started by FNCPro, 23 June 2013 - 08:51 PM
FNCPro #1
Posted 23 June 2013 - 10:51 PM
I was testing a program, but it supplied an error(I used some sort of error handler) and it showed
"0_o How'd you do that?". I didn't type that anywhere in the code.
Here is the code

tArgs = {...}
bridge = peripheral.wrap("right")
mybox = bridge.addBox(0, 0, 100, 100, 0x000000, 0.7)
bridge.clear()
mytext = bridge.addText(10, 10, "Right click the BioLock", 0xCC0000)
mytext.setColor(colors.green)
bio = peripheral.wrap("bottom")
_,prnt = os.pullEvent("biolock")
succ,err=bio.learn(tArgs[1],prnt,tArgs[2])
if succ then
print("Bioprint learned!")
speaker = peripheral.wrap("left")
speaker.speak("Bioprint learned!",1)
bridge.clear()
mytext.setColor(colors.green)
mytext.setText("Bioprint learned!")
else
print("Error learning bioprint!")
speaker = peripheral.wrap("left")
speaker.speak("Error!",1)
sleep(2)
speaker.speak(err,1)
bridge.clear()
mytext.setText("Experienced an error!")
sleep(2)
mytext.setText(err)
sleep(5)
bridge.clear()
print(err)
end
The peripherals/addons I used are
  • MiscPeripherals 3.3
  • BioLock 2.0
  • OpenPeripheral 0.1.8
It would be nice if someone could help…
Thanks!
FNCPro #2
Posted 23 June 2013 - 10:56 PM
Also, It didn't display the error text on the HUD with the terminal glasses on and correctly functioning.
The biolock is on the bottom.
The speaker is on the left.
The Terminal Glasses Bridge is on the right.
FNCPro #3
Posted 23 June 2013 - 10:59 PM
I fixed it.
Forgot the
tArgs[2] = tonumber(tArgs[2])
FNCPro #4
Posted 23 June 2013 - 11:06 PM
DELETE IT FOR ME! PLEASE!