Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Log session started at Tue May 21 21:20:48 2013 ###
- [21:20:48] Common channels for fireguy1000 [[email protected]]: #computercraft
- [21:20:48] <fireguy1000> Cranium
- [21:20:53] <fireguy1000> I have a question.
- [21:20:58] <Cranium> yes?
- [21:21:05] <fireguy1000> What does Ymon mean?
- [21:21:14] <fireguy1000> In programming language?
- [21:21:25] <Cranium> sounds like a variable
- [21:21:32] <Cranium> could be anything
- [21:21:45] <fireguy1000> Im trying to have eastern time.
- [21:21:53] <fireguy1000> On minecraft
- [21:22:16] <Cranium> okay
- [21:22:25] <Cranium> i recommend usint timeapi.org
- [21:22:28] <Cranium> using*
- [21:22:47] <fireguy1000> ymon = peripheral.wrap("right") ymon.setTextScale(6) term.redirect(ymon) while true do sleep(1) term.setCursorPos(1,1) write(http.get("http://www.timeapi.org/est/now?format=%20%25I:%25M:%25S").readAll()) end term.restore()
- [21:23:09] <Cranium> yes
- [21:23:27] <Cranium> ymon is the variable that peripheral.wrap is written to in this case
- [21:23:55] <Cranium> take a look at the peripheral api on the wiki to learn how to write to monitors
- [21:24:02] <fireguy1000> um
- [21:24:05] <fireguy1000> Cranium
- [21:24:08] <fireguy1000> It says
- [21:24:15] <fireguy1000> Attempt to index
- [21:24:26] <fireguy1000> a (a nil value)?
- [21:25:12] <fireguy1000> It says that when I put the full code it
- [21:25:13] <fireguy1000> in
- [21:25:14] <Cranium> you should just do ymon.write, or ymon.setCursorPos
- [21:25:25] <Cranium> rather than term.redirect
- [21:25:34] <Cranium> easier that way imo
- [21:26:01] <fireguy1000> so replace term.redirect with ymon.write
- [21:26:09] <fireguy1000> or ymon.setCursorPs?
- [21:26:13] <fireguy1000> Pos?
- [21:26:29] <Cranium> ymon = periphera.wrap("right")
- [21:26:40] <fireguy1000> Replace that?
- [21:26:41] <Cranium> ymon.setTextScale(6)
- [21:26:46] <Cranium> hang on...
- [21:28:25] <Cranium> local ymon = peripheral.wrap("right")
- [21:28:25] <Cranium> ymon.setTextScale(6)
- [21:28:25] <Cranium> while true do
- [21:28:25] <Cranium> sleep(1)
- [21:28:25] <Cranium> ymon.setCursorPos(1,1)
- [21:28:25] <Cranium> ymon.write(http.get("http://www.timeapi.org/est/now?format=%20%25I:%25M:%25S").readAll())
- [21:28:25] <Cranium> end
- [21:28:30] <Cranium> there
- [21:29:00] <Cranium> although, you might want a ymon.clear() before setCursorPos()
- [21:29:22] <fireguy1000> I have a stupid question
- [21:29:33] <fireguy1000> Can I put pictures on Computer Craft?
- [21:29:34] <fireguy1000> xD
- [21:29:43] <Cranium> yes and no
- [21:29:53] <Cranium> you would ahve to encode it to somethign CC can read
- [21:29:58] <fireguy1000> local ymon = peripheral.wrap("right") ymon.setTextScale(6) while true do sleep(1) ymon.setCursorPos(1,1) ymon.write(http.get("http://www.timeapi.org/est/now?format=%20%25I:%25M:%25S").readAll()) end
- [21:29:58] <Cranium> then display it on a monitor
- [21:30:04] <fireguy1000> is that the whole code?
- [21:30:22] <Cranium> yeah, but before ymon.setCursorPos(), i would use ymon.clear()
- [21:30:44] <fireguy1000> btw.
- [21:30:57] <fireguy1000> If I wanted to put a chicken on my computer
- [21:31:01] <fireguy1000> would I be able to xD
- [21:31:02] <fireguy1000> Lol
- [21:31:08] <Cranium> huh?
- [21:31:16] <Cranium> wtf are you talking about?
- [21:31:20] <fireguy1000> I wanted to put a picture of a chicken
- [21:31:23] <fireguy1000> on my computer
- [21:31:24] <Cranium> you can
- [21:31:27] <fireguy1000> How?
- [21:31:28] <Cranium> with the paintutils api
- [21:31:35] <Cranium> use paint
- [21:31:40] <Cranium> not ms paint
- [21:31:48] <fireguy1000> just paint?
- [21:31:59] <Cranium> yes
- [21:32:10] <Cranium> it creates a file you can load with the paintutils api
- [21:32:11] <fireguy1000> so how do I get this api?
- [21:32:52] <Cranium> it's....built in
- [21:33:05] <fireguy1000> oh o-o
- [21:33:09] <fireguy1000> So if I went on paint
- [21:33:19] <fireguy1000> and put a .pdf in my computer
- [21:33:27] <fireguy1000> I would be able to put it up on my computer
- [21:33:28] <fireguy1000> xD
- [21:33:32] <Cranium> uhh...
- [21:33:33] <Cranium> no
- [21:33:36] <Cranium> not even close
- [21:33:44] <Cranium> you have to CREATE the picture
- [21:34:00] <fireguy1000> What if I go in paint and put a pdf in paint
- [21:34:03] <fireguy1000> then edit it.
- [21:34:07] <fireguy1000> Then can I do it?
- [21:34:13] <Cranium> then you get a bunch of errors
- [21:34:17] <Cranium> it WILL NOT WORK
- [21:34:24] <Cranium> you need to draw it yourself
- [21:34:26] <fireguy1000> Then how do I do it?
- [21:34:33] <fireguy1000> ugh
- [21:34:35] <fireguy1000> xD
- [21:34:36] <Cranium> you got MC up right now?
- [21:34:42] <fireguy1000> Nope
- [21:34:47] <fireguy1000> Im just about to get off bro
- [21:34:47] <Cranium> then come back when you do
- [21:34:53] <Cranium> seriously
- [21:34:56] <Cranium> use paint
- [21:34:59] <Cranium> BUILT IN
- [21:35:06] <Cranium> it makes more sense if you use it
- [21:35:24] <fireguy1000> I got a create idea
- [21:35:25] <fireguy1000> xD
- [21:35:28] <fireguy1000> great
- [21:35:28] <fireguy1000> xd
- [21:36:09] <fireguy1000> Go in paint put a picture in paint trace it then take the picture away then save the picture that I had made by tracing over the picture
- [21:36:28] <Cranium> ....
- [21:36:36] <Cranium> you have not listened to anything i said
- [21:36:37] <fireguy1000> That will work!
- [21:36:44] <fireguy1000> Don't tell me that it will not work!
- [21:36:55] <fireguy1000> Because thats just like drawing the thing manually!
- [21:37:07] <Cranium> try using CC paint
- [21:37:13] <Cranium> then you will see why that does not work
- [21:37:15] <Cranium> until then
- [21:37:21] <Cranium> don't ask me
- [21:37:26] [KVS] Warning: Missing channel list
- [21:37:26] [KVS] in script context "commandline::kvs", line 1, near character 1
- ### Log session terminated at Tue May 21 21:37:29 2013 ###
- ### Log session started at Tue May 21 21:37:47 2013 ###
- [21:37:47] Common channels for fireguy1000 [[email protected]]: #computercraft
- [21:37:47] <fireguy1000> I will find a way to bypass the system
- [21:37:58] <fireguy1000> Then I will be able to put my images from paint into CC
- [21:37:59] <fireguy1000> xD
- [21:38:04] <Cranium> right
- [21:38:10] <Cranium> let me know how that works for you
- [21:38:24] fireguy1000 [[email protected]] has quit IRC: Quit: Web client closed
- ### Log session terminated at Tue May 21 21:38:58 2013 ###
Advertisement
Add Comment
Please, Sign In to add comment