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

Building Sign?

Started by Karinth, 22 July 2012 - 09:41 AM
Karinth #1
Posted 22 July 2012 - 11:41 AM
I do not know LUA and I do not need something hard ( I hope it is not hard) I just need a program or code that writes something on a monitor in full size no matter the monitor size. AKA 6x4, 2x2, 10x10 and the message is in full screen no matter which one it is on. Thank you so much.

​I have tried a few attempts but have gotten nothing working. Nothing even close…
KevinW1998 #2
Posted 22 July 2012 - 12:07 PM

yourmon = peripheral.wrap(youside) -- replace yourside with the side of the monitor!
yourmon.setTextScale(5)
term.redirect(yourmon)
print("TEST")
term.restore()
Karinth #3
Posted 22 July 2012 - 12:20 PM
It will make the size change no matter the size? Also can it be centered.
Karinth #4
Posted 22 July 2012 - 01:21 PM
I tried your code and it keeps giving me errors.
KevinW1998 #5
Posted 22 July 2012 - 01:27 PM
which error?
Karinth #6
Posted 22 July 2012 - 02:09 PM
Lemme run it again

bios:335: bad argument: String expected : got nil
KevinW1998 #7
Posted 22 July 2012 - 02:30 PM
have you changed "yourside" into the side of the monitor?
Karinth #8
Posted 22 July 2012 - 02:32 PM
Aye
Karinth #9
Posted 22 July 2012 - 06:49 PM
Anybody? I have tried for a few hours to troubleshoot this issue with no avail.
KevinW1998 #10
Posted 22 July 2012 - 07:27 PM
whats exactly the error?
Karinth #11
Posted 22 July 2012 - 07:30 PM
bios:335: bad argument: String expected : got nil that is it exactly.
KevinW1998 #12
Posted 22 July 2012 - 07:35 PM
I don't understand.. this error means that you haven't changed yourside with the side of the monitor!
e.g.

yourmon = peripheral.wrap("top")
Dont forget the ""
Karinth #13
Posted 23 July 2012 - 10:57 AM
Now it works but the text, if I write "K Corp." only takes up a 1x3 monitor area. I want a code that makes it center and full screen no matter if it is 1 x 3 or 6 x 20.
Karinth #14
Posted 24 July 2012 - 10:55 AM
So I decided to try it out on a 5x4 monitor but it just is in the upper left and not very big.