Computercraft?

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Syrxen

New Member
Jul 29, 2019
14
0
0
Hey so i have been trying to mess around a little bit with the basics of computercraft. I have looked up over 10 videos of how to just write some simple text on the monitor screen. But it doesn't seem to work, whatever i do. I keep editing and it just stays the same, things don't even come up on the screen and i can't seem to find what i am doing wrong. The monitor is 6x5.
http://prntscr.com/6e9wby
http://prntscr.com/6e9wot

Hope someone will be able to help ;).
 

rhn

Too Much Free Time
Nov 11, 2013
5,706
4,420
333
Hey so i have been trying to mess around a little bit with the basics of computercraft. I have looked up over 10 videos of how to just write some simple text on the monitor screen. But it doesn't seem to work, whatever i do. I keep editing and it just stays the same, things don't even come up on the screen and i can't seem to find what i am doing wrong. The monitor is 6x5.
http://prntscr.com/6e9wby
http://prntscr.com/6e9wot

Hope someone will be able to help ;).
I think you need to do:
Code:
mon = peripheral.wrap("back")
At least that is what I have always done. Your way may also work, dunno.

But you cannot have several different scales of text at the same time. The script might get confused when you try to define the scale twice.

Btw: If you are purely going for static information on a screen, try "(Advanced) Industrial Information panel"s with "Text Card"s from Nuclear Control if you have it. Much easier and far more customizable.
 
  • Like
Reactions: Syrxen

Syrxen

New Member
Jul 29, 2019
14
0
0
I think you need to do:
Code:
mon = peripheral.wrap("back")
At least that is what I have always done. Your way may also work, dunno.

But you cannot have several different scales of text at the same time. The script might get confused when you try to define the scale twice.

Btw: If you are purely going for static information on a screen, try "(Advanced) Industrial Information panel"s with "Text Card"s from Nuclear Control if you have it. Much easier and far more customizable.
Yeah i have tried everything. I put in mon=peripheral.wrap("back"), monitor=peripheral.wrap("back"), mon = peripheral.wrap("back") and monitor = peripheral.wrap("back"). None seem to work.

Yeah at first i only put it once, but that didn't seem to work, so i just tried something else.

Oh thanks for that. I will for sure try that out ;).
 

Kaikaku

New Member
Jul 29, 2019
33
0
1
Yeah i have tried everything. I put in mon=peripheral.wrap("back"), monitor=peripheral.wrap("back"), mon = peripheral.wrap("back") and monitor = peripheral.wrap("back"). None seem to work.

Yeah at first i only put it once, but that didn't seem to work, so i just tried something else.

Oh thanks for that. I will for sure try that out ;).

Well, the "mon" is the name of a variable, so it's not important if you call it mon, monitor, or whatever you like. Important is the side you have attached the monitor. I often put my monitor on top, with this you can try:
Code:
local mon=peripherial.wrap("top")   -- defines the peripheral in a local variable
mon.write("hello world!")   -- tells the program to write to the peripharial mon
If you are very new to Lua/ComputerCraft you could start programming and testing without the additional monitor, then most things are easier. Or you try out turtles ;)
 
Last edited: