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

Digital Clock for Monitors

Started by Cranium, 04 September 2012 - 03:15 AM
Cranium #1
Posted 04 September 2012 - 05:15 AM
Here is a simple, easy to read clock for your Minecraft world, or server. This clock will display the current Minecraft time in large numbers on the screen.
Hope you like it!
Pastebin link
Screenshot
chiloxsan #2
Posted 04 September 2012 - 08:45 AM
It seems that you have posted a link to 'Master Control' by yourself, is this the clock or did you give the wrong link?
Cranium #3
Posted 04 September 2012 - 03:40 PM
Haha, you're right. Fixed the link. Wasn't thinking when I pasted.
Mmmmmmmm #4
Posted 04 September 2012 - 05:52 PM
Couldn't you, instead of
local colon = {
"   ",
" _ ",
"(_)",
"   ",
" _ ",
"(_)"
}
do
local colon = [["   "
" _ "
"(_)"
"   "
" _ "
"(_)"]]
though? Haven't tested it, but that should do the same.
Cranium #5
Posted 04 September 2012 - 08:24 PM
I tried that, but it didn't like it for some reason…
Cormonde #6
Posted 06 September 2012 - 07:24 PM
I keep getting the error "attempt to get length of nil" when I try to run the clock any advice on how to fix it.
sjele #7
Posted 06 September 2012 - 07:27 PM
Does it say a number before "Attemted to get lenght of nil" The number means line number.

On-Topic I love this. So nice display of time
Cormonde #8
Posted 06 September 2012 - 07:30 PM
Does it say a number before "Attemted to get lenght of nil" The number means line number.

On-Topic I love this. So nice display of time
Yeah it say's line 11
On-topic I also like the clock design.
sjele #9
Posted 06 September 2012 - 07:41 PM
Make sure sSide is written like that. And that you used the right brackets after it

Lua is case sensitive, therefor sSide is not equal too sside
Cormonde #10
Posted 06 September 2012 - 07:59 PM
Make sure sSide is written like that. And that you used the right brackets after it

Lua is case sensitive, therefor sSide is not equal too sside
I have everything the exact same way it is in the pastebin file but i still get the error.
Everything is in the right casing.
Cranium #11
Posted 06 September 2012 - 08:49 PM
I tested the code again, but received no error. How did you copy the program?
Cormonde #12
Posted 07 September 2012 - 06:53 PM
I just copy pasted it.
Cranium #13
Posted 07 September 2012 - 07:22 PM
I just copy pasted it.
Where did you copy it to? If you edited a program to copy it to your terminal through notepad, it should work. Otherwise, it will give you problems trying to paste directly to Computercraft.
Cormonde #14
Posted 07 September 2012 - 07:48 PM
I just copy pasted it.
Where did you copy it to? If you edited a program to copy it to your terminal through notepad, it should work. Otherwise, it will give you problems trying to paste directly to Computercraft.
Well that would explain it, i copied it directly
maximouli #15
Posted 26 February 2013 - 09:47 AM
Could you make a version of your code but with the time of the "reality" ? Tanks so much if you do that
Cranium #16
Posted 26 February 2013 - 10:13 AM
Could you make a version of your code but with the time of the "reality" ? Tanks so much if you do that
Meh. Not super interested in doing so, considering I would have to make some sort of support for each of the 24 timezones. Not really interested in delving into the code again.
Goof #17
Posted 26 February 2013 - 10:17 AM
Could you make a version of your code but with the time of the "reality" ? Tanks so much if you do that
Meh. Not super interested in doing so, considering I would have to make some sort of support for each of the 24 timezones. Not really interested in delving into the code again.

and RemiX, did already make a Clock program… so there is no need for that.