craniumkid22

Fireguy101

May 21st, 2013
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.30 KB | None | 0 0
  1. ### Log session started at Tue May 21 21:20:48 2013 ###
  2. [21:20:48] Common channels for fireguy1000 [[email protected]]: #computercraft
  3. [21:20:48] <fireguy1000> Cranium
  4. [21:20:53] <fireguy1000> I have a question.
  5. [21:20:58] <Cranium> yes?
  6. [21:21:05] <fireguy1000> What does Ymon mean?
  7. [21:21:14] <fireguy1000> In programming language?
  8. [21:21:25] <Cranium> sounds like a variable
  9. [21:21:32] <Cranium> could be anything
  10. [21:21:45] <fireguy1000> Im trying to have eastern time.
  11. [21:21:53] <fireguy1000> On minecraft
  12. [21:22:16] <Cranium> okay
  13. [21:22:25] <Cranium> i recommend usint timeapi.org
  14. [21:22:28] <Cranium> using*
  15. [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()
  16. [21:23:09] <Cranium> yes
  17. [21:23:27] <Cranium> ymon is the variable that peripheral.wrap is written to in this case
  18. [21:23:55] <Cranium> take a look at the peripheral api on the wiki to learn how to write to monitors
  19. [21:24:02] <fireguy1000> um
  20. [21:24:05] <fireguy1000> Cranium
  21. [21:24:08] <fireguy1000> It says
  22. [21:24:15] <fireguy1000> Attempt to index
  23. [21:24:26] <fireguy1000> a (a nil value)?
  24. [21:25:12] <fireguy1000> It says that when I put the full code it
  25. [21:25:13] <fireguy1000> in
  26. [21:25:14] <Cranium> you should just do ymon.write, or ymon.setCursorPos
  27. [21:25:25] <Cranium> rather than term.redirect
  28. [21:25:34] <Cranium> easier that way imo
  29. [21:26:01] <fireguy1000> so replace term.redirect with ymon.write
  30. [21:26:09] <fireguy1000> or ymon.setCursorPs?
  31. [21:26:13] <fireguy1000> Pos?
  32. [21:26:29] <Cranium> ymon = periphera.wrap("right")
  33. [21:26:40] <fireguy1000> Replace that?
  34. [21:26:41] <Cranium> ymon.setTextScale(6)
  35. [21:26:46] <Cranium> hang on...
  36. [21:28:25] <Cranium> local ymon = peripheral.wrap("right")
  37. [21:28:25] <Cranium> ymon.setTextScale(6)
  38. [21:28:25] <Cranium> while true do
  39. [21:28:25] <Cranium> sleep(1)
  40. [21:28:25] <Cranium> ymon.setCursorPos(1,1)
  41. [21:28:25] <Cranium> ymon.write(http.get("http://www.timeapi.org/est/now?format=%20%25I:%25M:%25S").readAll())
  42. [21:28:25] <Cranium> end
  43. [21:28:30] <Cranium> there
  44. [21:29:00] <Cranium> although, you might want a ymon.clear() before setCursorPos()
  45. [21:29:22] <fireguy1000> I have a stupid question
  46. [21:29:33] <fireguy1000> Can I put pictures on Computer Craft?
  47. [21:29:34] <fireguy1000> xD
  48. [21:29:43] <Cranium> yes and no
  49. [21:29:53] <Cranium> you would ahve to encode it to somethign CC can read
  50. [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
  51. [21:29:58] <Cranium> then display it on a monitor
  52. [21:30:04] <fireguy1000> is that the whole code?
  53. [21:30:22] <Cranium> yeah, but before ymon.setCursorPos(), i would use ymon.clear()
  54. [21:30:44] <fireguy1000> btw.
  55. [21:30:57] <fireguy1000> If I wanted to put a chicken on my computer
  56. [21:31:01] <fireguy1000> would I be able to xD
  57. [21:31:02] <fireguy1000> Lol
  58. [21:31:08] <Cranium> huh?
  59. [21:31:16] <Cranium> wtf are you talking about?
  60. [21:31:20] <fireguy1000> I wanted to put a picture of a chicken
  61. [21:31:23] <fireguy1000> on my computer
  62. [21:31:24] <Cranium> you can
  63. [21:31:27] <fireguy1000> How?
  64. [21:31:28] <Cranium> with the paintutils api
  65. [21:31:35] <Cranium> use paint
  66. [21:31:40] <Cranium> not ms paint
  67. [21:31:48] <fireguy1000> just paint?
  68. [21:31:59] <Cranium> yes
  69. [21:32:10] <Cranium> it creates a file you can load with the paintutils api
  70. [21:32:11] <fireguy1000> so how do I get this api?
  71. [21:32:52] <Cranium> it's....built in
  72. [21:33:05] <fireguy1000> oh o-o
  73. [21:33:09] <fireguy1000> So if I went on paint
  74. [21:33:19] <fireguy1000> and put a .pdf in my computer
  75. [21:33:27] <fireguy1000> I would be able to put it up on my computer
  76. [21:33:28] <fireguy1000> xD
  77. [21:33:32] <Cranium> uhh...
  78. [21:33:33] <Cranium> no
  79. [21:33:36] <Cranium> not even close
  80. [21:33:44] <Cranium> you have to CREATE the picture
  81. [21:34:00] <fireguy1000> What if I go in paint and put a pdf in paint
  82. [21:34:03] <fireguy1000> then edit it.
  83. [21:34:07] <fireguy1000> Then can I do it?
  84. [21:34:13] <Cranium> then you get a bunch of errors
  85. [21:34:17] <Cranium> it WILL NOT WORK
  86. [21:34:24] <Cranium> you need to draw it yourself
  87. [21:34:26] <fireguy1000> Then how do I do it?
  88. [21:34:33] <fireguy1000> ugh
  89. [21:34:35] <fireguy1000> xD
  90. [21:34:36] <Cranium> you got MC up right now?
  91. [21:34:42] <fireguy1000> Nope
  92. [21:34:47] <fireguy1000> Im just about to get off bro
  93. [21:34:47] <Cranium> then come back when you do
  94. [21:34:53] <Cranium> seriously
  95. [21:34:56] <Cranium> use paint
  96. [21:34:59] <Cranium> BUILT IN
  97. [21:35:06] <Cranium> it makes more sense if you use it
  98. [21:35:24] <fireguy1000> I got a create idea
  99. [21:35:25] <fireguy1000> xD
  100. [21:35:28] <fireguy1000> great
  101. [21:35:28] <fireguy1000> xd
  102. [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
  103. [21:36:28] <Cranium> ....
  104. [21:36:36] <Cranium> you have not listened to anything i said
  105. [21:36:37] <fireguy1000> That will work!
  106. [21:36:44] <fireguy1000> Don't tell me that it will not work!
  107. [21:36:55] <fireguy1000> Because thats just like drawing the thing manually!
  108. [21:37:07] <Cranium> try using CC paint
  109. [21:37:13] <Cranium> then you will see why that does not work
  110. [21:37:15] <Cranium> until then
  111. [21:37:21] <Cranium> don't ask me
  112. [21:37:26] [KVS] Warning: Missing channel list
  113. [21:37:26] [KVS] in script context "commandline::kvs", line 1, near character 1
  114. ### Log session terminated at Tue May 21 21:37:29 2013 ###
  115. ### Log session started at Tue May 21 21:37:47 2013 ###
  116. [21:37:47] Common channels for fireguy1000 [[email protected]]: #computercraft
  117. [21:37:47] <fireguy1000> I will find a way to bypass the system
  118. [21:37:58] <fireguy1000> Then I will be able to put my images from paint into CC
  119. [21:37:59] <fireguy1000> xD
  120. [21:38:04] <Cranium> right
  121. [21:38:10] <Cranium> let me know how that works for you
  122. [21:38:24] fireguy1000 [[email protected]] has quit IRC: Quit: Web client closed
  123. ### Log session terminated at Tue May 21 21:38:58 2013 ###
Advertisement
Add Comment
Please, Sign In to add comment