jopebot

JOPEBUSTER

Jun 10th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.55 KB | None | 0 0
  1. [06/10/13 14:09:47] *** JOPEBUSTER joined the channel
  2. [14:09:47] *** DogFaceZ joined the channel
  3. [14:09:50] *** DemoXin joined the channel
  4. [14:09:51] *** doicm joined the channel
  5. [14:09:52] *** Ryguy2499 joined the channel
  6. [14:09:55] DemoXin: WOW
  7. [14:09:58] doicm: so, just a brief overview
  8. [14:10:02] doicm: .setgame oot
  9. [14:10:02] RaceBot: Game Set: The Legend of Zelda: Ocarina of Time
  10. [14:10:02] *** Topic changed by RaceBot: Status: Entry Open | Game: The Legend of Zelda: Ocarina of Time | Goal:
  11. [14:10:08] doicm: .setgoal test
  12. [14:10:08] RaceBot: Goal Set: test
  13. [14:10:08] *** Topic changed by RaceBot: Status: Entry Open | Game: The Legend of Zelda: Ocarina of Time | Goal: test
  14. [14:10:09] *** EverAlert joined the channel
  15. [14:10:09] *** paradoxkarl joined the channel
  16. [14:10:10] *** EverBot joined the channel
  17. [14:10:10] *** bangerra joined the channel
  18. [14:10:14] bangerra: .enter
  19. [14:10:14] RaceBot: bangerra enters the race! 1 entrant.
  20. [14:10:15] *** Kerchemer joined the channel
  21. [14:10:15] doicm: <RaceBot> Goal Set: The Legend of Zelda: Ocarina of Time - test | #srl-gcamx
  22. [14:10:19] DemoXin: holy hell.
  23. [14:10:21] doicm: .time
  24. [14:10:22] bangerra: .unenter
  25. [14:10:22] RaceBot: bangerra has been removed from the race.
  26. [14:10:24] *** Dome5tar joined the channel
  27. [14:10:24] *** Lulz joined the channel
  28. [14:10:28] Dome5tar: team test ?
  29. [14:10:29] doicm: .setgames m64
  30. [14:10:33] doicm: .setgame sm64
  31. [14:10:33] RaceBot: Game Set: Super Mario 64
  32. [14:10:33] *** Topic changed by RaceBot: Status: Entry Open | Game: Super Mario 64 | Goal: test
  33. [14:10:36] Dome5tar: ah...^^
  34. [14:10:39] DemoXin: No, we're doing some prep work
  35. [14:10:51] *** Dome5tar left the channel
  36. [14:10:58] doicm: DemoXin is working on a bot and wants to see how RaceBot works in a race channel
  37. [14:11:01] doicm: .enter
  38. [14:11:01] RaceBot: doicm enters the race! 1 entrant.
  39. [14:11:09] doicm: .ready
  40. [14:11:09] RaceBot: doicm is ready! Need more entrants!
  41. [14:11:10] bangerra: .enter
  42. [14:11:10] RaceBot: bangerra enters the race! 2 entrants.
  43. [14:11:12] doicm: .entrants
  44. [14:11:12] RaceBot: doicm (Ready) | bangerra
  45. [14:11:15] doicm: .unenter
  46. [14:11:15] RaceBot: doicm has been removed from the race.
  47. [14:11:16] doicm: .entrants
  48. [14:11:17] RaceBot: bangerra
  49. [14:11:18] doicm: .enter
  50. [14:11:18] RaceBot: doicm enters the race! 2 entrants.
  51. [14:11:19] doicm: .entrants
  52. [14:11:19] RaceBot: doicm | bangerra
  53. [14:11:21] doicm: .ready
  54. [14:11:21] RaceBot: doicm is ready! 1 remaining.
  55. [14:11:24] bangerra: .ready
  56. [14:11:24] RaceBot: bangerra is ready! 0 remaining.
  57. [14:11:26] RaceBot: 4The race will begin in 10 seconds!
  58. [14:11:28] doicm: .time
  59. [14:11:30] doicm: .unenter
  60. [14:11:31] doicm: .unready
  61. [14:11:31] RaceBot: 45
  62. [14:11:32] RaceBot: 44
  63. [14:11:33] DemoXin: Okay, hold on.
  64. [14:11:33] RaceBot: 43
  65. [14:11:34] RaceBot: 42
  66. [14:11:35] RaceBot: 41
  67. [14:11:36] RaceBot: 4GO!
  68. [14:11:37] *** Topic changed by RaceBot: Status: IN PROGRESS | Game: Super Mario 64 | Goal: test
  69. [14:11:40] doicm: .time
  70. [14:11:40] RaceBot: 00:00:03
  71. [14:11:41] bangerra: .quit
  72. [14:11:41] RaceBot: bangerra has forfeited from the race.
  73. [14:11:44] *** Kerchemer left the channel
  74. [14:11:45] DemoXin: I'm trying to take all of this in.
  75. [14:11:53] Ryguy2499: lol
  76. [14:11:56] doicm: i'll make sure to log this so you can look it over, if needs be
  77. [14:12:03] doicm: .done
  78. [14:12:03] RaceBot: doicm has finished in 1st place with a time of 00:00:27.
  79. [14:12:04] *** Topic changed by RaceBot: Status: Complete | Game: Super Mario 64 | Goal: test
  80. [14:12:05] doicm: .undone
  81. [14:12:05] RaceBot: doicm has been undone from the race.
  82. [14:12:07] doicm: .time
  83. [14:12:07] RaceBot: 00:00:30
  84. [14:12:09] doicm: .entrants
  85. [14:12:09] RaceBot: doicm (Ready) | - bangerra (Forfeit)
  86. [14:12:26] doicm: .quit
  87. [14:12:26] RaceBot: doicm has forfeited from the race.
  88. [14:12:26] RaceBot: Race terminated.
  89. [14:12:26] RaceBot: Race over! The channel will be cleared in 10 minutes!
  90. [14:12:26] RaceBot: Race terminated.
  91. [14:12:26] RaceBot: Race over! The channel will be cleared in 10 minutes!
  92. [14:12:27] *** EverBot left the channel
  93. [14:12:33] doicm: curious...
  94. [14:12:34] doicm: .undone
  95. [14:12:38] doicm: okay, that doesn't work then
  96. [14:12:41] doicm: .comment stuff?
  97. [14:12:48] doicm: .rematch
  98. [14:12:48] bangerra: too late
  99. [14:12:49] RaceBot: Rematch!
  100. [14:12:49] *** Topic changed by RaceBot: Status: ENTRY OPEN | Game: Super Mario 64 | Goal: test
  101. [14:12:50] *** EverBot joined the channel
  102. [14:12:54] doicm: .enter
  103. [14:12:55] RaceBot: doicm enters the race! 1 entrant.
  104. [14:13:01] DemoXin: change the game to something not recognized.
  105. [14:13:01] bangerra: .enter
  106. [14:13:01] RaceBot: bangerra enters the race! 2 entrants.
  107. [14:13:02] doicm: .ready
  108. [14:13:02] RaceBot: doicm is ready! 1 remaining.
  109. [14:13:03] *** mariogohan joined the channel
  110. [14:13:04] bangerra: .ready
  111. [14:13:04] RaceBot: bangerra is ready! 0 remaining.
  112. [14:13:06] RaceBot: 4The race will begin in 10 seconds!
  113. [14:13:09] doicm: .setgame jfjf
  114. [14:13:09] RaceBot: Game Set: New Game
  115. [14:13:09] *** Topic changed by RaceBot: Status: Entry Closed | Game: New Game | Goal: test
  116. [14:13:11] RaceBot: 45
  117. [14:13:12] RaceBot: 44
  118. [14:13:13] RaceBot: 43
  119. [14:13:14] RaceBot: 42
  120. [14:13:15] RaceBot: 41
  121. [14:13:16] RaceBot: 4GO!
  122. [14:13:16] *** Topic changed by RaceBot: Status: IN PROGRESS | Game: Super Mario 64 | Goal: test
  123. [14:13:22] doicm: right...can't do it during countdown
  124. [14:13:22] bangerra: .done
  125. [14:13:23] RaceBot: bangerra has finished in 1st place with a time of 00:00:07.
  126. [14:13:24] doicm: .setgame jjfff
  127. [14:13:24] RaceBot: Game Set: New Game
  128. [14:13:25] *** Topic changed by RaceBot: Status: In Progress | Game: New Game | Goal: test
  129. [14:13:29] doicm: .quit
  130. [14:13:30] RaceBot: doicm has forfeited from the race.
  131. [14:13:30] *** Topic changed by RaceBot: Status: Complete | Game: New Game | Goal: test
  132. [14:13:32] bangerra: .comment i win
  133. [14:13:32] RaceBot: Comment added.
  134. [14:13:34] doicm: .coment i lost
  135. [14:13:40] doicm: .comment i lost
  136. [14:13:40] RaceBot: Comment added.
  137. [14:13:44] doicm: .entrants
  138. [14:13:44] RaceBot: 1. bangerra (00:00:07) (i win) | - doicm (Forfeit) (i lost)
  139. [14:13:46] doicm: .undone
  140. [14:13:46] RaceBot: doicm has been undone from the race.
  141. [14:13:48] doicm: .entrants
  142. [14:13:48] RaceBot: 1. bangerra (00:00:07) (i win) | doicm (Ready)
  143. [14:13:50] doicm: .quit
  144. [14:13:50] RaceBot: doicm has forfeited from the race.
  145. [14:13:50] *** Topic changed by RaceBot: Status: Complete | Game: New Game | Goal: test
  146. [14:13:54] doicm: .comment i still lost
  147. [14:13:54] RaceBot: Comment added.
  148. [14:14:07] DemoXin: Okay, so the race starts itself once everyone is ready?
  149. [14:14:09] Ryguy2499: rip
  150. [14:14:11] doicm: yes
  151. [14:14:13] DemoXin: No command needed.
  152. [14:14:19] doicm: correct
  153. [14:14:25] doicm: that's how TRLBot is currently operating
  154. [14:14:32] DemoXin: Okay, game and goal are set once the channel is created?
  155. [14:14:37] doicm: game is set
  156. [14:14:40] doicm: goal is something you have to set yourself
  157. [14:14:40] *** kristo joined the channel
  158. [14:14:49] *** kristo left the channel
  159. [14:14:55] DemoXin: Okay, so the goal isn't anything that can be looked up through the API?
  160. [14:15:06] DemoXin: It's just text, right?
  161. [14:15:39] doicm: i'm not sure about that. i'll check really quick
  162. [14:16:03] doicm: http://api.speedrunslive.com:81/goals/smw
  163. [14:16:13] doicm: replace smw with whatever the game code is, and you get the list of goals
  164. [14:16:47] DemoXin: That's a weird API function... Why does it list off every entry under a goal like that?
  165. [14:16:51] DemoXin: WTB: XML API
  166. [14:17:16] doicm: no idea
  167. [14:17:26] DemoXin: Can you set an arbitrary goal?
  168. [14:17:42] DemoXin: for instance: .setgoal Reach 50 Lives
  169. [14:17:51] bangerra: .setgoal 63 stars
  170. [14:17:51] RaceBot: Goal Set: 63 stars
  171. [14:17:51] *** Topic changed by RaceBot: Status: Complete | Game: New Game | Goal: 63 stars
  172. [14:18:02] doicm: yes
  173. [14:18:14] doicm: but it just means that it isn't recognized as a race goal on SRL yet
  174. [14:18:19] doicm: once it's recorded, it recognizes it as such
  175. [14:18:26] doicm: ie, adds it to the goals list
  176. [14:18:28] DemoXin: So it'll record based on the text?
  177. [14:18:38] DemoXin: assuming a voice .records the race?
  178. [14:18:43] doicm: i believe so, yeah
  179. [14:18:48] Ryguy2499: im so confused have fun
  180. [14:18:52] *** Ryguy2499 left the channel
  181. [14:19:17] DemoXin: Okay, so I can store it in the bot as a string, and it'll only need to find a goal ID if we get to implement record functionality.
  182. [14:19:47] doicm: sure
  183. [14:19:51] doicm: that could work
  184. [14:20:19] DemoXin: But the .record function itself would be responsible for that, no need to be bothered with if the purpose of getting races going.
  185. [14:20:32] DemoXin: It'll actually save me a look-up if the race isn't recorded.
  186. [14:21:00] DemoXin: .entrants
  187. [14:21:00] RaceBot: 1. bangerra (00:00:07) (i win) | - doicm (Forfeit) (i still lost)
  188. [14:21:14] bangerra: .results
  189. [14:21:14] RaceBot: 1. bangerra (00:00:07) (i win) | - doicm (Forfeit) (i still lost)
  190. [14:21:37] DemoXin: Are .entrants and .results the same commands? Or do they work differently while the race is in progress?
  191. [14:21:44] doicm: yes
  192. [14:21:50] doicm: also, .quit and .forfeit are the same commands
  193. [14:21:53] doicm: and .enter and .join
  194. [14:22:03] DemoXin: okay, that's simple enough to implement.
  195. [14:22:11] DemoXin: .unenter and .unjoin as well?
  196. [14:22:28] bangerra: no idea if .unjoin is a thing
  197. [14:22:29] doicm: i don't think .unjoin works
  198. [14:22:32] doicm: .end
  199. [14:22:32] RaceBot: Race terminated.
  200. [14:22:32] RaceBot: Race over! The channel will be cleared in 10 minutes!
  201. [14:22:33] *** EverBot left the channel
  202. [14:22:34] doicm: .rematch
  203. [14:22:35] RaceBot: Rematch!
  204. [14:22:35] *** Topic changed by RaceBot: Status: ENTRY OPEN | Game: New Game | Goal: 63 stars
  205. [14:22:36] doicm: .enter
  206. [14:22:37] RaceBot: doicm enters the race! 1 entrant.
  207. [14:22:38] doicm: .unjoin
  208. [14:22:42] bangerra: nop
  209. [14:22:42] doicm: yeah, .unjoin isn't a thing
  210. [14:22:54] *** bluebomber285 joined the channel
  211. [14:22:56] DemoXin: Is there a functional purpose to voicing people? Or is it purely cosmetic?
  212. [14:23:11] DemoXin: Because I'm actually currently planning on tracking based on nick internally.
  213. [14:23:28] bangerra: it's easier to track who's in the race
  214. [14:23:37] DemoXin: So it's just a cosmetic thing
  215. [14:23:41] DemoXin: easy enough.
  216. [14:23:45] bangerra: idk if there's actual functionality in it
  217. [14:23:46] bluebomber285: All I saw was new game....
  218. [14:24:05] DemoXin: We're doing some development bluebomber, I'm learning how RaceBot works
  219. [14:24:19] bluebomber285: Alright...
  220. [14:25:03] *** bluebomber285 left the channel
  221. [14:25:33] DemoXin: .setgame does a look up from the db I assume, and defaults to "New Game" if the abbreviation isn't known, right?
  222. [14:25:42] RaceBot: Game Set: New Game
  223. [14:25:42] *** Topic changed by RaceBot: Status: Entry Open | Game: New Game | Goal: 63 stars
  224. [14:26:08] doicm: yeah
  225. [14:26:59] DemoXin: I think this JSON deciphering is actually going to be the hardest part of this...
  226. [14:27:55] *** C13 joined the channel
  227. [14:27:58] doicm: it's not too bad. just a little...slow, i guess?
  228. [14:28:25] DemoXin: Well truthfully, PHP's JSON functionality is lax at best as far as I can tell... and secondly, I've never really worked with it.
  229. [14:28:54] doicm: i can pull up some old work i've done with JSON so that you have an idea of how to do it
  230. [14:29:10] DemoXin: I get how it works, I'm just not familiar with it with PHP
  231. [14:29:32] DemoXin: My preference for XML comes from the fact that I've actually written a CMS in PHP/XML/XSL
  232. [14:29:57] doicm: i haven't played with XML much myself, but based on what i've seen, it's likely easier to work with than JSON
  233. [14:31:57] DemoXin: I could technically process the games and goals list into MySQL...
  234. [14:32:14] DemoXin: So many people watching me, I feel so pressured to not say anything stupid.
  235. [14:32:55] doicm: lol
  236. [14:33:05] DemoXin: The disadvantage to this of course being that my bot will lock down any time I go to reload the list...
  237. [14:33:43] doicm: yeah...but i don't think it's gonna be that huge of an issue, tbh (new games are created rather infrequently, and the ones that haven't been created are the least-likely to be raced)
  238. [14:33:47] DemoXin: Even using an external script to process, I'll still have to lock the table to empty and reload it... and select statements would block until the update was finished.
  239. [14:35:19] DemoXin: Can you grab that log for me and pastebin it over? We can go ahead and close this for now, so that it's not listed on the .races
  240. [14:35:21] doicm: it might not be a bad idea to collaborate with other programmers that know more about optimal setups...(i'm not in that category, btw)
  241. [14:35:24] doicm: sure
  242. [14:35:25] doicm: .end
  243. [14:35:25] RaceBot: Race terminated.
  244. [14:35:25] RaceBot: Race over! The channel will be cleared in 10 minutes!
  245. [14:35:27] doicm: .log
Advertisement
Add Comment
Please, Sign In to add comment