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

How to use monitors

Started by EpicKid1999, 15 July 2012 - 12:20 PM
EpicKid1999 #1
Posted 15 July 2012 - 02:20 PM
Hi!
How do i add text to a monitor + Change its text size.
I know that if i do "Monitor right label set (Text i want)" it will display this:



But then how do i get it to display Just the text?

Like this:


And how do i change the text size?
————Im a noob to computercraft ATM————-
Orwell #2
Posted 15 July 2012 - 03:36 PM
What you did was running the monitor program, it works as follows:
monitor

In your case the side was 'right' and the program was the label program with some parameters.

In order to display text your best bet is a lua script. I'm not sure you know lua so I'll give you all the steps:
1) run 'edit display' to create a program called display.
2) in the editor, type following lines:

mon = peripheral.wrap('right')
mon.setTextScale(2)
mon.write('Hello World!')
3) hit CTRL then ENTER to save it
4) CTRL, Right Arrow, ENTER to exit
5) run 'display' to run the script : )

I know I probably just could've given you the code, but this way I'm sure you're helped.
Text scale can be any number from 1 to 5. If you look up the 'term API' on the wiki you will find other functions you can use on the 'mon' object (the variable you got from wrapping the peripheral)
EpicKid1999 #3
Posted 15 July 2012 - 04:24 PM
THANK YOU DUDE! :P/>/> and yes i did not know any understanding of lua scripts so also thanx again :)/>/>
EpicKid1999 #4
Posted 16 July 2012 - 02:13 AM
Ok it worked first now i get:

display:2:
attempt to call nil
MysticT #5
Posted 16 July 2012 - 02:17 AM
Check that the monitor is on the right side, maybe there's other peripheral (like a disk drive or a modem), so it can't find the method in that peripheral.
EpicKid1999 #6
Posted 16 July 2012 - 02:26 AM
ok so i fixed that problem now. thanks!
EpicKid1999 #7
Posted 16 July 2012 - 10:15 PM
OK
How do I use the monitor so like I can be in 1 room. and the monitor is say like at spawn. How would i still display stuff on there?
Darky_Alan #8
Posted 17 July 2012 - 08:50 PM
OK
How do I use the monitor so like I can be in 1 room. and the monitor is say like at spawn. How would i still display stuff on there?

#1 why don't you request to have this moved to "Ask a pro"

#2 use rednet, set up a modem link between a computer at spawn and your personal computer.
EpicKid1999 #9
Posted 18 July 2012 - 04:37 PM
#1 Because it is kinda in general. im asking questions all about monitors not just asking pro's

#2 how do i setup a modem & monitor
Darky_Alan #10
Posted 19 July 2012 - 11:22 PM
#1 Because it is kinda in general. im asking questions all about monitors not just asking pro's

#2 how do i setup a modem & monitor

Well for one, Computers need to be RIGHT NEXT TO monitors, and modems need to be RIGHT NEXT to computers aswell, doesn't really matter where you place it aslong as it's next to it.

Second, Why not try googleing basic uses for monitors and modems, I'm pretty new to ComputerCraft so there's still a lot for me to learn, but google is your best bet to answer your questions, or atleast further your udnerstanding on how some of the things in-game work.
Scoutdrago3 #11
Posted 06 March 2013 - 01:41 PM
Whenever I put:

mon = peripheral.wrap("top")
monitor.setTextScale(3)
monitor.setCrusorPos(3, 3)
monitor.write("Rules")

in a advanced computers under a 3x3 grid of advanced monitors it gives me a error:

bios:338:[string "startup"]:3: '=' expected

please help i tried everything!
UP844 #12
Posted 06 March 2013 - 02:00 PM
Whenever I put:

mon = peripheral.wrap("top")
monitor.setTextScale(3)
monitor.setCrusorPos(3, 3)
monitor.write("Rules")

in a advanced computers under a 3x3 grid of advanced monitors it gives me a error:

bios:338:[string "startup"]:3: '=' expected

please help i tried everything!
Well first off Cursor is spelled wrong, I don't know if that's in your coding or you just messed that up when you posted it. And second off I usually type out monitor on the first line I don't know if that actually affects it try that and if it doesn't work, sorry.
DarkenedEvil #13
Posted 06 March 2013 - 02:44 PM
Whenever I put:

mon = peripheral.wrap("top")
monitor.setTextScale(3)
monitor.setCrusorPos(3, 3)
monitor.write("Rules")

in a advanced computers under a 3x3 grid of advanced monitors it gives me a error:

bios:338:[string "startup"]:3: '=' expected

please help i tried everything!
Well first off Cursor is spelled wrong, I don't know if that's in your coding or you just messed that up when you posted it. And second off I usually type out monitor on the first line I don't know if that actually affects it try that and if it doesn't work, sorry.
like UP844 said Cursor is spelt wrong and you have mon = peripheral.wrap("top") but then you use monitor.write etc. when it should be mon.write because you set the variable to mon not monitor.