Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [06/10/13 14:09:47] *** JOPEBUSTER joined the channel
- [14:09:47] *** DogFaceZ joined the channel
- [14:09:50] *** DemoXin joined the channel
- [14:09:51] *** doicm joined the channel
- [14:09:52] *** Ryguy2499 joined the channel
- [14:09:55] DemoXin: WOW
- [14:09:58] doicm: so, just a brief overview
- [14:10:02] doicm: .setgame oot
- [14:10:02] RaceBot: Game Set: The Legend of Zelda: Ocarina of Time
- [14:10:02] *** Topic changed by RaceBot: Status: Entry Open | Game: The Legend of Zelda: Ocarina of Time | Goal:
- [14:10:08] doicm: .setgoal test
- [14:10:08] RaceBot: Goal Set: test
- [14:10:08] *** Topic changed by RaceBot: Status: Entry Open | Game: The Legend of Zelda: Ocarina of Time | Goal: test
- [14:10:09] *** EverAlert joined the channel
- [14:10:09] *** paradoxkarl joined the channel
- [14:10:10] *** EverBot joined the channel
- [14:10:10] *** bangerra joined the channel
- [14:10:14] bangerra: .enter
- [14:10:14] RaceBot: bangerra enters the race! 1 entrant.
- [14:10:15] *** Kerchemer joined the channel
- [14:10:15] doicm: <RaceBot> Goal Set: The Legend of Zelda: Ocarina of Time - test | #srl-gcamx
- [14:10:19] DemoXin: holy hell.
- [14:10:21] doicm: .time
- [14:10:22] bangerra: .unenter
- [14:10:22] RaceBot: bangerra has been removed from the race.
- [14:10:24] *** Dome5tar joined the channel
- [14:10:24] *** Lulz joined the channel
- [14:10:28] Dome5tar: team test ?
- [14:10:29] doicm: .setgames m64
- [14:10:33] doicm: .setgame sm64
- [14:10:33] RaceBot: Game Set: Super Mario 64
- [14:10:33] *** Topic changed by RaceBot: Status: Entry Open | Game: Super Mario 64 | Goal: test
- [14:10:36] Dome5tar: ah...^^
- [14:10:39] DemoXin: No, we're doing some prep work
- [14:10:51] *** Dome5tar left the channel
- [14:10:58] doicm: DemoXin is working on a bot and wants to see how RaceBot works in a race channel
- [14:11:01] doicm: .enter
- [14:11:01] RaceBot: doicm enters the race! 1 entrant.
- [14:11:09] doicm: .ready
- [14:11:09] RaceBot: doicm is ready! Need more entrants!
- [14:11:10] bangerra: .enter
- [14:11:10] RaceBot: bangerra enters the race! 2 entrants.
- [14:11:12] doicm: .entrants
- [14:11:12] RaceBot: doicm (Ready) | bangerra
- [14:11:15] doicm: .unenter
- [14:11:15] RaceBot: doicm has been removed from the race.
- [14:11:16] doicm: .entrants
- [14:11:17] RaceBot: bangerra
- [14:11:18] doicm: .enter
- [14:11:18] RaceBot: doicm enters the race! 2 entrants.
- [14:11:19] doicm: .entrants
- [14:11:19] RaceBot: doicm | bangerra
- [14:11:21] doicm: .ready
- [14:11:21] RaceBot: doicm is ready! 1 remaining.
- [14:11:24] bangerra: .ready
- [14:11:24] RaceBot: bangerra is ready! 0 remaining.
- [14:11:26] RaceBot: 4The race will begin in 10 seconds!
- [14:11:28] doicm: .time
- [14:11:30] doicm: .unenter
- [14:11:31] doicm: .unready
- [14:11:31] RaceBot: 45
- [14:11:32] RaceBot: 44
- [14:11:33] DemoXin: Okay, hold on.
- [14:11:33] RaceBot: 43
- [14:11:34] RaceBot: 42
- [14:11:35] RaceBot: 41
- [14:11:36] RaceBot: 4GO!
- [14:11:37] *** Topic changed by RaceBot: Status: IN PROGRESS | Game: Super Mario 64 | Goal: test
- [14:11:40] doicm: .time
- [14:11:40] RaceBot: 00:00:03
- [14:11:41] bangerra: .quit
- [14:11:41] RaceBot: bangerra has forfeited from the race.
- [14:11:44] *** Kerchemer left the channel
- [14:11:45] DemoXin: I'm trying to take all of this in.
- [14:11:53] Ryguy2499: lol
- [14:11:56] doicm: i'll make sure to log this so you can look it over, if needs be
- [14:12:03] doicm: .done
- [14:12:03] RaceBot: doicm has finished in 1st place with a time of 00:00:27.
- [14:12:04] *** Topic changed by RaceBot: Status: Complete | Game: Super Mario 64 | Goal: test
- [14:12:05] doicm: .undone
- [14:12:05] RaceBot: doicm has been undone from the race.
- [14:12:07] doicm: .time
- [14:12:07] RaceBot: 00:00:30
- [14:12:09] doicm: .entrants
- [14:12:09] RaceBot: doicm (Ready) | - bangerra (Forfeit)
- [14:12:26] doicm: .quit
- [14:12:26] RaceBot: doicm has forfeited from the race.
- [14:12:26] RaceBot: Race terminated.
- [14:12:26] RaceBot: Race over! The channel will be cleared in 10 minutes!
- [14:12:26] RaceBot: Race terminated.
- [14:12:26] RaceBot: Race over! The channel will be cleared in 10 minutes!
- [14:12:27] *** EverBot left the channel
- [14:12:33] doicm: curious...
- [14:12:34] doicm: .undone
- [14:12:38] doicm: okay, that doesn't work then
- [14:12:41] doicm: .comment stuff?
- [14:12:48] doicm: .rematch
- [14:12:48] bangerra: too late
- [14:12:49] RaceBot: Rematch!
- [14:12:49] *** Topic changed by RaceBot: Status: ENTRY OPEN | Game: Super Mario 64 | Goal: test
- [14:12:50] *** EverBot joined the channel
- [14:12:54] doicm: .enter
- [14:12:55] RaceBot: doicm enters the race! 1 entrant.
- [14:13:01] DemoXin: change the game to something not recognized.
- [14:13:01] bangerra: .enter
- [14:13:01] RaceBot: bangerra enters the race! 2 entrants.
- [14:13:02] doicm: .ready
- [14:13:02] RaceBot: doicm is ready! 1 remaining.
- [14:13:03] *** mariogohan joined the channel
- [14:13:04] bangerra: .ready
- [14:13:04] RaceBot: bangerra is ready! 0 remaining.
- [14:13:06] RaceBot: 4The race will begin in 10 seconds!
- [14:13:09] doicm: .setgame jfjf
- [14:13:09] RaceBot: Game Set: New Game
- [14:13:09] *** Topic changed by RaceBot: Status: Entry Closed | Game: New Game | Goal: test
- [14:13:11] RaceBot: 45
- [14:13:12] RaceBot: 44
- [14:13:13] RaceBot: 43
- [14:13:14] RaceBot: 42
- [14:13:15] RaceBot: 41
- [14:13:16] RaceBot: 4GO!
- [14:13:16] *** Topic changed by RaceBot: Status: IN PROGRESS | Game: Super Mario 64 | Goal: test
- [14:13:22] doicm: right...can't do it during countdown
- [14:13:22] bangerra: .done
- [14:13:23] RaceBot: bangerra has finished in 1st place with a time of 00:00:07.
- [14:13:24] doicm: .setgame jjfff
- [14:13:24] RaceBot: Game Set: New Game
- [14:13:25] *** Topic changed by RaceBot: Status: In Progress | Game: New Game | Goal: test
- [14:13:29] doicm: .quit
- [14:13:30] RaceBot: doicm has forfeited from the race.
- [14:13:30] *** Topic changed by RaceBot: Status: Complete | Game: New Game | Goal: test
- [14:13:32] bangerra: .comment i win
- [14:13:32] RaceBot: Comment added.
- [14:13:34] doicm: .coment i lost
- [14:13:40] doicm: .comment i lost
- [14:13:40] RaceBot: Comment added.
- [14:13:44] doicm: .entrants
- [14:13:44] RaceBot: 1. bangerra (00:00:07) (i win) | - doicm (Forfeit) (i lost)
- [14:13:46] doicm: .undone
- [14:13:46] RaceBot: doicm has been undone from the race.
- [14:13:48] doicm: .entrants
- [14:13:48] RaceBot: 1. bangerra (00:00:07) (i win) | doicm (Ready)
- [14:13:50] doicm: .quit
- [14:13:50] RaceBot: doicm has forfeited from the race.
- [14:13:50] *** Topic changed by RaceBot: Status: Complete | Game: New Game | Goal: test
- [14:13:54] doicm: .comment i still lost
- [14:13:54] RaceBot: Comment added.
- [14:14:07] DemoXin: Okay, so the race starts itself once everyone is ready?
- [14:14:09] Ryguy2499: rip
- [14:14:11] doicm: yes
- [14:14:13] DemoXin: No command needed.
- [14:14:19] doicm: correct
- [14:14:25] doicm: that's how TRLBot is currently operating
- [14:14:32] DemoXin: Okay, game and goal are set once the channel is created?
- [14:14:37] doicm: game is set
- [14:14:40] doicm: goal is something you have to set yourself
- [14:14:40] *** kristo joined the channel
- [14:14:49] *** kristo left the channel
- [14:14:55] DemoXin: Okay, so the goal isn't anything that can be looked up through the API?
- [14:15:06] DemoXin: It's just text, right?
- [14:15:39] doicm: i'm not sure about that. i'll check really quick
- [14:16:03] doicm: http://api.speedrunslive.com:81/goals/smw
- [14:16:13] doicm: replace smw with whatever the game code is, and you get the list of goals
- [14:16:47] DemoXin: That's a weird API function... Why does it list off every entry under a goal like that?
- [14:16:51] DemoXin: WTB: XML API
- [14:17:16] doicm: no idea
- [14:17:26] DemoXin: Can you set an arbitrary goal?
- [14:17:42] DemoXin: for instance: .setgoal Reach 50 Lives
- [14:17:51] bangerra: .setgoal 63 stars
- [14:17:51] RaceBot: Goal Set: 63 stars
- [14:17:51] *** Topic changed by RaceBot: Status: Complete | Game: New Game | Goal: 63 stars
- [14:18:02] doicm: yes
- [14:18:14] doicm: but it just means that it isn't recognized as a race goal on SRL yet
- [14:18:19] doicm: once it's recorded, it recognizes it as such
- [14:18:26] doicm: ie, adds it to the goals list
- [14:18:28] DemoXin: So it'll record based on the text?
- [14:18:38] DemoXin: assuming a voice .records the race?
- [14:18:43] doicm: i believe so, yeah
- [14:18:48] Ryguy2499: im so confused have fun
- [14:18:52] *** Ryguy2499 left the channel
- [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.
- [14:19:47] doicm: sure
- [14:19:51] doicm: that could work
- [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.
- [14:20:32] DemoXin: It'll actually save me a look-up if the race isn't recorded.
- [14:21:00] DemoXin: .entrants
- [14:21:00] RaceBot: 1. bangerra (00:00:07) (i win) | - doicm (Forfeit) (i still lost)
- [14:21:14] bangerra: .results
- [14:21:14] RaceBot: 1. bangerra (00:00:07) (i win) | - doicm (Forfeit) (i still lost)
- [14:21:37] DemoXin: Are .entrants and .results the same commands? Or do they work differently while the race is in progress?
- [14:21:44] doicm: yes
- [14:21:50] doicm: also, .quit and .forfeit are the same commands
- [14:21:53] doicm: and .enter and .join
- [14:22:03] DemoXin: okay, that's simple enough to implement.
- [14:22:11] DemoXin: .unenter and .unjoin as well?
- [14:22:28] bangerra: no idea if .unjoin is a thing
- [14:22:29] doicm: i don't think .unjoin works
- [14:22:32] doicm: .end
- [14:22:32] RaceBot: Race terminated.
- [14:22:32] RaceBot: Race over! The channel will be cleared in 10 minutes!
- [14:22:33] *** EverBot left the channel
- [14:22:34] doicm: .rematch
- [14:22:35] RaceBot: Rematch!
- [14:22:35] *** Topic changed by RaceBot: Status: ENTRY OPEN | Game: New Game | Goal: 63 stars
- [14:22:36] doicm: .enter
- [14:22:37] RaceBot: doicm enters the race! 1 entrant.
- [14:22:38] doicm: .unjoin
- [14:22:42] bangerra: nop
- [14:22:42] doicm: yeah, .unjoin isn't a thing
- [14:22:54] *** bluebomber285 joined the channel
- [14:22:56] DemoXin: Is there a functional purpose to voicing people? Or is it purely cosmetic?
- [14:23:11] DemoXin: Because I'm actually currently planning on tracking based on nick internally.
- [14:23:28] bangerra: it's easier to track who's in the race
- [14:23:37] DemoXin: So it's just a cosmetic thing
- [14:23:41] DemoXin: easy enough.
- [14:23:45] bangerra: idk if there's actual functionality in it
- [14:23:46] bluebomber285: All I saw was new game....
- [14:24:05] DemoXin: We're doing some development bluebomber, I'm learning how RaceBot works
- [14:24:19] bluebomber285: Alright...
- [14:25:03] *** bluebomber285 left the channel
- [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?
- [14:25:42] RaceBot: Game Set: New Game
- [14:25:42] *** Topic changed by RaceBot: Status: Entry Open | Game: New Game | Goal: 63 stars
- [14:26:08] doicm: yeah
- [14:26:59] DemoXin: I think this JSON deciphering is actually going to be the hardest part of this...
- [14:27:55] *** C13 joined the channel
- [14:27:58] doicm: it's not too bad. just a little...slow, i guess?
- [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.
- [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
- [14:29:10] DemoXin: I get how it works, I'm just not familiar with it with PHP
- [14:29:32] DemoXin: My preference for XML comes from the fact that I've actually written a CMS in PHP/XML/XSL
- [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
- [14:31:57] DemoXin: I could technically process the games and goals list into MySQL...
- [14:32:14] DemoXin: So many people watching me, I feel so pressured to not say anything stupid.
- [14:32:55] doicm: lol
- [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...
- [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)
- [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.
- [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
- [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)
- [14:35:24] doicm: sure
- [14:35:25] doicm: .end
- [14:35:25] RaceBot: Race terminated.
- [14:35:25] RaceBot: Race over! The channel will be cleared in 10 minutes!
- [14:35:27] doicm: .log
Advertisement
Add Comment
Please, Sign In to add comment