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

Monitor API

Started by vectoro_O, 19 July 2012 - 06:03 PM
vectoro_O #1
Posted 19 July 2012 - 08:03 PM
Hi there,
I've got here a simple api (probably simplest ever) for drawing text on Monitor
Little backstory
I just've installed this mod (as part of Tekkit), and first problem occurred was "omg how do i write text on monitor?!"
So i started to search forums, and i didn't find anything
so i tried to create an API as simple as possible for this purpose and voila
i made 2 versions, one that automatically finds monitor(mon), and another that needs specifying direction(dmon) (call dmon.setSide(str))
put them in mods/ComputerCraft/lua/rom/api

Notice: mon and dmon have all the functions that term has (write, scroll clear etc.)

EDIT: fixed nil pointer error in mon
dcleondc #2
Posted 02 August 2012 - 02:35 AM
there is a MUCH easyer way to put txt on a monitor. just make a program that has the text you want the do monitor (side monitor is on) (name of program)
Mtdj2 #3
Posted 03 August 2012 - 01:33 PM
Well, it would be very cool if you could upload the api's to pastebin.com. I would be able to look through the api's without downloading a zip, and i would be able to download from minecraft, if i wanted to. (If i were on a server, for example.)
Oh yea, btw, on line 3 of mon you specify a variable you dont even need to specify.
And i dont see the point of dmon.
Hope you can use this critisizm (dunno how its spelled.) in future programs, api's and programming generally.
Zudo #4
Posted 08 December 2012 - 09:25 AM
Well, it would be very cool if you could upload the api's to pastebin.com. I would be able to look through the api's without downloading a zip, and i would be able to download from minecraft, if i wanted to. (If i were on a server, for example.)
Oh yea, btw, on line 3 of mon you specify a variable you dont even need to specify.
And i dont see the point of dmon.
Hope you can use this critisizm (dunno how its spelled.) in future programs, api's and programming generally.
It's spelt criticism
Cranium #5
Posted 08 December 2012 - 09:44 AM
It's spelt criticism
"Spelt" is not the proper word to use here… It is a past participle of "spell", however the word "spelled" is the proper usage of the term you are looking for.
veiIeddraconis #6
Posted 19 December 2012 - 12:11 AM
It's spelt criticism
"Spelt" is not the proper word to use here… It is a past participle of "spell", however the word "spelled" is the proper usage of the term you are looking for.

ROFL I love trolls getting trolled trolololol