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

[1.42] bit.tonumb does not exist

Started by chiloxsan, 03 October 2012 - 09:25 AM
chiloxsan #1
Posted 03 October 2012 - 11:25 AM
It's as simple as that, bit.tonumb is meant to be a valid function of the bit API according to the ComputerCraft wiki, but when trying to call it in game an "attempt to call nil" error is produced.
PixelToast #2
Posted 03 October 2012 - 02:48 PM
are you sure the rest of the bit api is working?, i seem to have bit.tonumb()
jag #3
Posted 03 October 2012 - 02:58 PM
You get "attempt to call nil" when you either are spelling wrong, forgot the brackets () or if the function/command dosent even exist.
What version of computercraft are you using?
And if you are playing on a server, the server may got some bugs
MysticT #4
Posted 03 October 2012 - 03:00 PM
It was removed in CC 1.42, cause the new api is implemented in java.
Cloudy #5
Posted 03 October 2012 - 04:21 PM
Yeah - there is no need to convert to/from the bits now - you can just do the operations on the number directly.