Jump to content




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


  • You cannot reply to this topic
3 replies to this topic

#1 FNCPro

  • Members
  • 64 posts

Posted 23 June 2013 - 09: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!

#2 FNCPro

  • Members
  • 64 posts

Posted 23 June 2013 - 09: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.

#3 FNCPro

  • Members
  • 64 posts

Posted 23 June 2013 - 09:59 PM

I fixed it.
Forgot the
tArgs[2] = tonumber(tArgs[2])


#4 FNCPro

  • Members
  • 64 posts

Posted 23 June 2013 - 10:06 PM

DELETE IT FOR ME! PLEASE!





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users