--- Log opened Sat Feb 28 00:00:16 2009 |
00:02 | | AnnoDomini [~farkoff@Nightstar-29159.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
00:22 | | Vornicus [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout] |
00:27 | | Vornicus [~vorn@Admin.Nightstar.Net] has joined #code |
00:27 | | mode/#code [+o Vornicus] by ChanServ |
00:41 | | C_tiger [~cheng@Nightstar-5625.hsd1.ca.comcast.net] has quit [Operation timed out] |
00:48 | | C_tiger [~cheng@Nightstar-5625.hsd1.ca.comcast.net] has joined #code |
00:48 | | mode/#code [+o C_tiger] by ChanServ |
01:25 | | You're now known as TheWatcher[t-2] |
01:30 | | You're now known as TheWatcher[zZzZ] |
02:12 | | * Derakon adds a loading bar to Fusillade. |
02:12 | <@Derakon> | I guess loading 30MB of image data takes a while. :\ |
02:13 | <@Derakon> | The loading bar has no border, so it's a bit hard to tell how close you are to the end...but it works just fine as a display of activity. |
02:14 | <@Derakon> | Only problem being that I have to update a constant every time I change my image assets so the bar knows how much progress it's made. |
02:49 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?] |
03:02 | <@Vornicus> | Der: stat them. |
03:02 | <@Derakon> | No, the thing is I don't want to have to do two passes through the images. |
03:02 | <@Derakon> | My entire image management's pretty hosed-up, though. I'm trying to avoid having to refactor it. |
03:03 | <@Vornicus> | If you're trying to avoid having to refactor something, that means that it is probably a prime target for refactoring. |
03:03 | <@Derakon> | It is. |
03:03 | <@Derakon> | That doesn't mean I want to do it. |
06:03 | | Syloqs-AFH [Syloq@ServicesAdmin.Nightstar.Net] has quit [Connection reset by peer] |
06:06 | | Serah [~Z@Nightstar-21302.atm2-0-1041217.boanxx12.customer.tele.dk] has quit [Quit: ] |
06:37 | | Derakon is now known as Derakon[AFK] |
07:04 | | somnolence [~somnolenc@Nightstar-5762.hsd1.ca.comcast.net] has quit [Client exited] |
07:34 | | * jerith contemplates string literals. |
07:35 | <@jerith> | This is going to make my lexing hard. :-/ |
07:35 | <@jerith> | Because I can't really do it in the parser. |
07:39 | <@McMartin> | No |
07:39 | <@McMartin> | Comments and strings are the Things The Lexer Has To Work For. |
07:40 | <@jerith> | Yeah. |
07:40 | <@jerith> | Hmm, I should add comments. |
07:40 | <@jerith> | What's a good comment character? |
07:41 | <@jerith> | # is fairly standard, but Erlang uses %. |
07:41 | <@Vornicus> | # is mostly traditional |
07:41 | <@Vornicus> | I prefer # |
07:41 | <@jerith> | And I haven't really decided on syntax yet. |
07:41 | <@Vornicus> | ps uses %, VB ', SQL --, I7 []... |
07:42 | <@McMartin> | # is the most traditional for line comments. |
07:42 | <@McMartin> | The second most being the /* and // C++ comments. |
07:42 | <@Vornicus> | ini uses ; |
07:42 | <@jerith> | I only want line comments for now. |
07:42 | <@McMartin> | # |
07:42 | <@jerith> | ; is an expression separator. |
07:42 | <@McMartin> | P65 also uses ; |
07:42 | <@McMartin> | Er |
07:43 | <@Vornicus> | Ini is kinda weird though |
07:43 | <@McMartin> | Ophis |
07:43 | <@jerith> | Well, ; and \n |
07:43 | <@McMartin> | I need to remind myself what it's called. |
07:43 | <@Vornicus> | Pffff. |
07:43 | <@jerith> | I would like to use % as rem/mod, though. |
07:44 | <@jerith> | I'm currently using Ruby/Python-ish syntax, but I haven't done pattern matching or function clauses yet. |
07:44 | <@jerith> | Or conditionals. |
07:45 | <@jerith> | Ugh. Conditionals may be Hard. |
07:45 | <@jerith> | Or not, actually. |
07:46 | | * Vornicus built conditional expressions and flow control into Schlockian and it was /captain horrible/ |
07:46 | | * jerith is "compiling" to an Erlang parse tree. |
07:48 | < EvilDarkLord> | What is this for, jerith? |
07:48 | <@jerith> | I'm writing a language. |
07:48 | <@jerith> | Well, an alternate syntax for Erlang at the moment. |
07:49 | <@jerith> | I can write and call functions so far. |
07:50 | <@jerith> | But I don't have string literals yet, so Hello World is still a wrapper around io:fwrite. |
07:51 | | * jerith dives into basic strings for now. |
07:52 | < EvilDarkLord> | I got that much, I was more wondering about the expected use case for said language. |
07:53 | | Vornicus [~vorn@Admin.Nightstar.Net] has quit [Quit: ] |
07:54 | <@jerith> | EvilDarkLord: Mostly so I can play with writing a language. |
07:55 | <@jerith> | I've never done it before, except in an ad-hoc way for small, simple stuff. |
08:05 | | AnnoDomini [~farkoff@Nightstar-29159.neoplus.adsl.tpnet.pl] has joined #Code |
08:05 | | mode/#code [+o AnnoDomini] by ChanServ |
08:06 | <@ToxicFrog> | To the Dragon Book? |
08:09 | <@jerith> | Yay! I have (basic) string literals. |
08:10 | <@jerith> | I don't have the Dragon Book. |
08:11 | <@ToxicFrog> | :( |
08:12 | <@ToxicFrog> | Hmm. "(\.|.)*"? |
08:15 | <@jerith> | I'm working from what I remember from reading a couple of books about parsers a few years ago. |
08:15 | <@jerith> | Anyways, I'm still at very early stages here. |
08:16 | <@ToxicFrog> | Nod |
08:16 | <@ToxicFrog> | Writing your frontend by hand, or using existing compiler generators? |
08:16 | <@ToxicFrog> | (or writing a compiler generator yourself?) |
08:17 | <@jerith> | Writing the lexer by hand. |
08:17 | <@jerith> | Using yecc for the parser. |
08:17 | <@jerith> | Also, my GPRS is suddenly very high latency. |
08:20 | <@ToxicFrog> | yecc? Like yacc/bison but for erlang? |
08:21 | <@jerith> | Yes. |
08:21 | <@jerith> | It's what Erlang's parser is written in. |
08:21 | <@jerith> | There's also leex, which is like lex, but that's new and not built in yet. |
08:22 | | Serah [~Z@87.72.35.ns-26506] has joined #code |
08:22 | | mode/#code [+o Serah] by ChanServ |
08:22 | <@jerith> | Anyways, the lexer's pretty simple. |
09:15 | | You're now known as TheWatcher |
10:39 | | Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has quit [Quit: Rhamphoryncus] |
12:08 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code |
12:08 | | mode/#code [+o Attilla] by ChanServ |
12:20 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout] |
12:25 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code |
12:25 | | mode/#code [+o Attilla] by ChanServ |
12:56 | | Reiver [~reaverta@Admin.Nightstar.Net] has quit [Ping Timeout] |
13:02 | | Reiver [~reaverta@Admin.Nightstar.Net] has joined #Code |
13:02 | | mode/#code [+o Reiver] by ChanServ |
13:38 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code |
13:38 | | mode/#code [+o gnolam] by ChanServ |
15:11 | | KBot [AnnoDomini@Nightstar-29757.neoplus.adsl.tpnet.pl] has joined #Code |
15:11 | | AnnoDomini [~farkoff@Nightstar-29159.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
15:12 | | KarmaBot [AnnoDomini@Nightstar-29159.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
15:14 | | KBot is now known as KarmaBot |
15:17 | | AnnoDomini [~farkoff@Nightstar-29757.neoplus.adsl.tpnet.pl] has joined #Code |
15:17 | | mode/#code [+o AnnoDomini] by ChanServ |
16:03 | | Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code |
16:04 | | Syloqs_AFH is now known as Syloqs-AFH |
16:32 | | HotLady [~ok@212.233.212.ns-2288] has joined #code |
16:35 | | HotLady [~ok@212.233.212.ns-2288] has left #code [] |
16:47 | <@Consul> | ... HotLady? |
16:47 | <@Consul> | Spambot? |
16:54 | <@ToxicFrog> | Ok, JEdit is extra awesome |
16:55 | <@ToxicFrog> | PROBLEM: My source files for LP Septerra Core are effectively Lua source; however, I want them to soft wrap at window boundaries (rather than my default behaviour for source code of not wrapping, but showing me the 80col margin). |
16:55 | <@ToxicFrog> | I've been handling this by going Buffer Options->Wrap->Soft every time I open one. |
16:55 | <@ToxicFrog> | Turns out that I can just do: |
16:55 | <@ToxicFrog> | -- :wrap=soft:maxLineLen=0: |
16:56 | <@ToxicFrog> | Anywhere in the first or last ten lines of the file and it'll apply those settings to that buffer when loaded. |
17:01 | | Vornicus [~vorn@Admin.Nightstar.Net] has joined #code |
17:01 | | mode/#code [+o Vornicus] by ChanServ |
17:03 | <@ToxicFrog> | (actually, just the :: part is significant, but since it doesn't care what else is on the line you can comment it out) |
17:03 | <@jerith> | ToxicFrog: Both emacs and vim will do this also. ;-) |
17:04 | <@ToxicFrog> | Handy. I don't like emacs or vim, though :P |
17:11 | | You're now known as TheWatcher[afk] |
17:17 | | Derakon[AFK] is now known as Derakon |
17:35 | | Serah [~Z@87.72.35.ns-26506] has quit [Quit: ] |
17:51 | <@Derakon> | TF: so what do you use to edit text? |
18:15 | <@ToxicFrog> | JEdit. |
18:15 | <@ToxicFrog> | See above. |
18:15 | <@ToxicFrog> | If I'm without X, nano, but that rarely happens. |
18:52 | | You're now known as TheWatcher |
19:07 | | Syloqs-AFH [Syloq@ServicesAdmin.Nightstar.Net] has quit [Ping Timeout] |
19:09 | | Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code |
19:10 | | Syloqs_AFH is now known as Syloqs-AFH |
19:26 | <@AnnoDomini> | ToxicFrog: You are doing an LP of Septerra Core? |
19:49 | | GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has joined #code |
19:49 | | mode/#code [+o GeekSoldier] by ChanServ |
19:56 | <@ToxicFrog> | AnnoDomini: yep. |
19:56 | <@ToxicFrog> | And writing a general LP scaffolding as I go, which can export to either bbcode or HTML. |
19:58 | <@ToxicFrog> | Once I'm done hammering out the bugs I plan to publish it. |
19:58 | <@Doctor_Nick> | ell pee |
20:00 | <@ToxicFrog> | Let's Play: we play it so you don't have to |
20:01 | <@Vornicus> | Though some play games that you probably want to, to show them off. |
20:01 | <@Derakon> | Someone plays through a videogame and posts video / screenshots with commentary, altering the content to a greater or lesser degree. |
20:01 | <@Vornicus> | See for instance DC's plays of Cave Story and Iji. |
20:01 | <@Derakon> | And generally giving the Something Awful goons some amount of say in where the game goes next, if it's at all nonlinear. |
20:02 | <@AnnoDomini> | ToxicFrog: Cool. I've heard SC is a nice game. |
20:02 | <@ToxicFrog> | It is, although the combat system is...glacial. |
20:02 | | * AnnoDomini manually hacked at the HTML stuffs for his Colonization LP. |
20:03 | <@ToxicFrog> | Yeah, I find this much easier to deal with |
20:03 | <@ToxicFrog> | Sample: |
20:03 | <@ToxicFrog> | ss(196) |
20:03 | <@ToxicFrog> | Maya [[How about your power generator?]] |
20:03 | <@ToxicFrog> | Grubb [[Perhaps if we had something to connect it to the panel.]] |
20:03 | <@ToxicFrog> | text [[Something to connect it? Sounds like a job for those wires we just picked up.]] |
20:03 | <@ToxicFrog> | ss(202, 203, 204) |
20:03 | <@ToxicFrog> | text [[With the control panel all wired up, we add the generator to the mix...]] |
20:03 | <@AnnoDomini> | I see. |
20:04 | <@ToxicFrog> | This way, it's much easier to write than straight bbcode or html, and I can change the typesetting or output format for the entire LP by changing one file and typing "make". |
20:05 | | * AnnoDomini nods. |
20:06 | | * AnnoDomini idly frowns at Homeworld 2. |
20:06 | <@AnnoDomini> | Man, did they ever nerf frigates and capital ships. |
20:08 | <@AnnoDomini> | In the first game and Cataclysm, sending squad of bombers against a frigate would only result in a two-hour long fight that the bombers weren't guaranteed to win, due occassional one-hit-kill potshots. |
20:09 | <@AnnoDomini> | Now it takes but a few minutes to get rid of most any ship. |
20:10 | <@AnnoDomini> | I was quite surprised when three carriers appeared on top of me, and I was told to DESTROY THEM. With fighters. |
20:13 | <@AnnoDomini> | Earlier, having a fleet of twenty capital ships meant you could waltz in just about anywhere and nuke everything short of the endboss. Now it just means that a force equal to half of yours will leave you with crippling casualties. |
20:15 | | * AnnoDomini ceases ranting and gets back to the VHDL mines. |
20:19 | | * gnolam feeds some trolls. |
20:20 | <@AnnoDomini> | I wish the writers of these files understood that indentation is helpful. |
20:20 | <@gnolam> | (Weighing in on a GCC vs MSVC flamewar seems like a better use of my time than writing this bloody superflous documentation) |
20:32 | <@AnnoDomini> | I take it someone requires said documentation, even though nobody will read it. |
20:34 | <@gnolam> | Yes. |
20:35 | <@gnolam> | We also have to document a whole lot of procedures we don't actually have or intend to implement. |
20:36 | <@gnolam> | Essentially, this is all going to be one big /lie/. |
20:36 | <@TheWatcher> | ... you don't work for microsoft of something, do you? |
20:38 | <@gnolam> | Hah. |
20:45 | <@AnnoDomini> | gnolam: Try to sneak in funny bits in there. |
20:46 | <@AnnoDomini> | Or maybe include chapters from that novel you've been working on for the last ten years... :P |
20:51 | | somnolence [~somnolenc@Nightstar-5762.hsd1.ca.comcast.net] has joined #code |
20:53 | <@AnnoDomini> | I've played too much DF. |
20:53 | | somnolence [~somnolenc@Nightstar-5762.hsd1.ca.comcast.net] has quit [Client exited] |
20:53 | <@gnolam> | Haven't been working on a novel, and if I sneak something too funny in, someone will notice. |
20:53 | <@AnnoDomini> | I made a typo, [ instead of 0, the editor highlighted that in blue, and here I went "is that a dimple-dyed shirt?" |
20:54 | <@gnolam> | ... yeah, you should probably take a break from DF. |
20:55 | <@gnolam> | I still haven't been able to keep up interest in that game for long enough for a proper economy to be established. |
20:55 | | somnolence [~somnolenc@Nightstar-5762.hsd1.ca.comcast.net] has joined #code |
20:56 | <@AnnoDomini> | I am taking a break... Until I buy a better computer, so it doesn't go 2 FPS on me when I reach 50 dorfs. |
20:56 | <@AnnoDomini> | I hope the new version will fix the population cap. |
20:58 | <@AnnoDomini> | So far, I've been unable to make proper deathtraps, sadly. |
20:58 | <@gnolam> | My last fortress had a Doomsday Switch. |
20:59 | <@gnolam> | Pull the right lever and the entire fortress would be pumped full of magma. :) |
20:59 | <@AnnoDomini> | Always nice. |
21:00 | <@AnnoDomini> | Next time I'll try to brave a location with sourced water (carps have killed more than one attempt to start a fortress for me) and build a deathtrap for invaders. |
21:01 | <@AnnoDomini> | Without the ability to set up inside/outside custom zones, I'll have to build it outside, so that when I order dorfs inside, THEY'LL FUCKING GO INSIDE. |
21:02 | <@AnnoDomini> | In any case, a large reservoir of water above, filled from a brook/river by windmill-powered pumps and some sort of shut-off mechanism for when to stop pumping (I'm thinking pressure plates set to water depth). |
21:03 | <@AnnoDomini> | That reservoir would drain directly into a small labyrinth that the invaders would have to cross to get to the fortress. And the entrances would shut, too, when the flood would come. |
21:04 | <@gnolam> | Anyway, the three times I've tried DF have all ended by me either losing interest because everything was already "done" or me getting frustrated by the AI. |
21:04 | <@AnnoDomini> | If only chained/caged dorfs could be fed, I'd chain a dorf alone with a lever in a small room - his only job would be to pull the lever in case of ambush. |
21:04 | <@AnnoDomini> | gnolam: What? What was "done"? |
21:05 | <@gnolam> | Fortress running itself, basically. |
21:05 | <@gnolam> | Nothing really left to build. |
21:06 | <@AnnoDomini> | You set up adamantine processing? Glassmaking? |
21:06 | <@AnnoDomini> | The soap industry? o_O |
21:15 | <@gnolam> | Can't remember. |
21:15 | <@gnolam> | Don't think I ever had adamantine or sand. |
21:16 | <@AnnoDomini> | I only found adamantine once. Then I discovered a magma pipe and got my core metalworking crew eradicated by fire imps. |
21:17 | <@AnnoDomini> | I decided it would be for the best if I flooded the entire thing with magma. And I did. |
21:17 | <@McMartin> | Adamantine processing ends the game. |
21:17 | <@AnnoDomini> | Not anymore. |
21:18 | <@AnnoDomini> | Never found any demons, even. |
21:20 | <@AnnoDomini> | When Erik found them, half his dorfs got killed by balrogs, before he managed to seal off the Deeps. |
21:22 | <@gnolam> | Why do you keep referring to them as German villages BTW? |
21:22 | <@AnnoDomini> | Memetic mutation. |
21:23 | | * McMartin menaces with spikes of bread. |
21:24 | <@AnnoDomini> | I once had an artifact loincloth that menaced with spikes of clear glass. |
21:29 | <@gnolam> | Kinky. |
21:29 | <@AnnoDomini> | http://i41.tinypic.com/2m7ae1j.gif |
21:30 | <@McMartin> | "The Pregnancy of Rights"? |
21:30 | <@AnnoDomini> | Yes. |
21:31 | <@McMartin> | green glass, incidentally, not clear |
21:31 | <@McMartin> | Also wolf bone. |
21:31 | <@AnnoDomini> | Hey, I pulled this out of archived logs. It didn't happen yesterday. |
21:31 | <@McMartin> | Merely for the clarity of the record. |
21:31 | <@McMartin> | (insert baculus and/or codpiece joke here) |
21:32 | <@Derakon> | http://derakon.dyndns.org/~chriswei/temp2/df/tubeofdoom.png |
21:33 | <@Vornicus> | Okay, DF gets 2fps on the /developer credits page/ |
21:33 | <@AnnoDomini> | Mother Of God. |
21:33 | | * Vornicus has slow computar! |
21:34 | <@Derakon> | Anno: embark on a world that's at least medium-sized, then order every type of gem from the dwarves. |
21:34 | <@Derakon> | Then lock a jeweler in with one decoratable object and all of the gems. |
21:34 | <@Derakon> | Then install the 80k-dwarfbuck result into the communal barracks that every dwarf uses~ |
21:35 | <@Derakon> | Anyway, thinking about approaches to an online leaderboard for Fusillade. |
21:36 | <@Derakon> | I asked the folks at GameDev.net about making a secure, verifiable system, and they basically said it's not feasible without recording gameplay. So for a first pass let's just keep honest people honest, like with the reg codes. |
21:36 | <@AnnoDomini> | I remember a thread on the Bay 12 forums that had a guy present his 30+ page artifact statue. It had every notable event from the world related on it. |
21:37 | <@AnnoDomini> | An awesome bug. :D |
21:37 | <@Derakon> | Heh. |
21:37 | <@AnnoDomini> | http://www.bay12games.com/forum/index.php?topic=28232.0 |
21:38 | <@Derakon> | So what I'm thinking is that the same code that saves your score to your local scorefile also sends it to the leaderboard. I don't want it to be as trivial as simply POSTing unencrypted data to a CGI script on the Aegis website...suggestions? |
21:39 | <@TheWatcher> | Make the game log in using the player's forum account over ssl to get a session, send the score using that session? |
21:40 | <@Derakon> | That would require the game to know the user's forum credentials. |
21:40 | <@TheWatcher> | Indeed. |
21:40 | <@Derakon> | But granted it would also tie the scores to a specific user. |
21:40 | <@TheWatcher> | I'm thinking of something along similar lines to audiosurf's saves, but tied into your forums |
21:40 | <@Vornicus> | what TW said; game and forum credentials can be safely joined unless you're planning on hooking up with Steam. |
21:41 | <@Derakon> | Heh. |
21:41 | | somnolence [~somnolenc@Nightstar-5762.hsd1.ca.comcast.net] has quit [Client exited] |
21:41 | <@Derakon> | Is there more to sending passwords to a form than just making the form itself secure? |
21:41 | <@Derakon> | (And not echoing the password when the user types it in, of course) |
21:41 | <@Vornicus> | Not really, no. |
21:42 | <@Derakon> | Hrm. |
21:42 | <@Derakon> | Okay, so user checks the "upload scores to leaderboard" box in the options page. |
21:42 | <@Derakon> | A dialog box pops up prompting the user for their forum credentials. |
21:43 | <@Derakon> | Ideally this would be cached...but I'd rather not have the forum password in plaintext in .fusilladeconfig. |
21:43 | <@Derakon> | Er, .fusilladeconfig.txt. |
21:43 | <@TheWatcher> | Hm. |
21:43 | <@Derakon> | Anyway, handwaving that, the writeScores function is then extended to check if the user wants to upload scores, and if so, sends them to the server. |
21:44 | <@Derakon> | Ideally leaderboard scores would also show up ingame...igh. |
21:44 | <@Derakon> | There is not a lot of room to work with on the main menu. :\ |
21:44 | <@Vornicus> | Gah. |
21:44 | <@Vornicus> | Toady apparently still hasn't unhooked certain worldgen stuff from the display loop. |
21:45 | | * Vornicus watches "unloading units" go at 4/s for 5000 records. |
21:45 | <@TheWatcher> | Dera: you /might/ be able to use phpBB3's autologin cookie facility |
21:45 | <@gnolam> | Derakon: note that even recording gameplay is not a foolproof cheat detection/prevention method. :) |
21:45 | <@AnnoDomini> | Vornicus: I feel your pain. |
21:45 | <@AnnoDomini> | Vornicus: Have you tried the 40d9 version? |
21:45 | <@Derakon> | Gnolam: granted, but if your cheaters have to write a bot / fake a recorded session to get their scores, more power to them. |
21:45 | <@gnolam> | (It's pretty darned good though) |
21:45 | <@Vornicus> | This is the very latest download... |
21:46 | <@gnolam> | Derakon: the easiest way is usually to futz with the timing. |
21:46 | <@AnnoDomini> | Vornicus: Well, there's the official version, 40d, and there's the slightly unofficial SDL version, 40d9. |
21:46 | <@AnnoDomini> | The latter is faster. |
21:47 | | * Derakon eyes his main menu. |
21:47 | <@Derakon> | I could chop some off the bottom of the highscores table to add another button to the left of the Start button. It'd ruin the symmetry though. |
21:48 | <@Derakon> | Though I could similarly chop some off the bottom of the course info display. |
21:49 | <@Vornicus> | Where can I find this |
21:50 | <@AnnoDomini> | http://www.bay12games.com/forum/index.php?topic=28841.0 |
21:54 | | somnolence [~somnolenc@Nightstar-5762.hsd1.ca.comcast.net] has joined #code |
21:54 | <@Derakon> | Well, forget that for the moment. Assume I go with the "use forum account to post scores approach". Highscores MySQL table schema: auto-increment id, course key (MD5 of course data + course settings), user forum ID, total score, survival time, loop, pattern killed on, date uploaded. |
21:55 | <@Derakon> | What am I missing? |
21:56 | <@AnnoDomini> | User-inputted three-letter nick. :P |
21:56 | <@Derakon> | :p |
21:56 | <@Derakon> | Use the forum nicks. |
21:57 | <@AnnoDomini> | But that way people won't be able to put things like "ACE" or "BUM" in the highscores. |
21:58 | <@TheWatcher> | hah |
21:59 | <@TheWatcher> | Derakon: hm, I can't see anything missing there. |
22:00 | <@TheWatcher> | (you might want to make total score an index too, for sorting speed) |
22:00 | <@Derakon> | Good thinking. |
22:01 | | * Derakon scores three times better on his second attempt at the Beginner course, lasting only 48 seconds longer (3:52 vs. 3:04). |
22:01 | <@Derakon> | Go go tactical use of the deflector~ |
22:01 | <@AnnoDomini> | Is there a way to win at your game, or is it like Dwarf Fortress? |
22:01 | <@Derakon> | Using the deflector at the right time can bump your multiplier up by, uh, 15. Since deflected bullets create sparks. |
22:01 | <@Derakon> | It's more like Tetris. |
22:02 | <@Derakon> | The game should always be technically survivable but should eventually reach the limits of your skill. |
22:02 | | * TheWatcher ...s |
22:02 | | * Derakon looks up. "s/uh/oh/" |
22:03 | <@AnnoDomini> | How will your highscores handle it if some crazyarse Korean actually beats it? |
22:03 | <@Derakon> | Um... |
22:03 | <@Derakon> | There is no win condition. |
22:03 | <@ToxicFrog> | It's not beatable. |
22:03 | <@ToxicFrog> | It just continues. |
22:03 | <@TheWatcher> | I just spent the last 5 minutes trying to work out why something wasn't appearing on my site. Before I realised I hadn't actuallly saved the file... |
22:03 | | * Derakon snerks at TW. |
22:03 | <@ToxicFrog> | Like, as you said, DF; or like Derakon said, Tetris. |
22:03 | <@ToxicFrog> | The best a theoretical perfect player can do is keep playing it forever. |
22:03 | <@AnnoDomini> | I see. |
22:04 | <@Derakon> | Now, bung this onto the "aegis" database or the "forum" database? |
22:04 | <@AnnoDomini> | Anyway. I have a reunion with Abe's Oddysee. Let's see if it actually runs. |
22:04 | <@Derakon> | It needs forum data, so it should really be in the forum database, I guess... |
22:04 | <@Derakon> | ('aegis' has orders data and mods at the moment) |
22:05 | <@AnnoDomini> | It doesn't. |
22:05 | | * AnnoDomini wanders off to Google. |
22:05 | <@TheWatcher> | Derakon: life will be easier if you put it in with the forum, yeah |
22:06 | <@Vornicus> | I never found the 99th mudokon in Oddysee. |
22:07 | <@TheWatcher> | you'd be able to do SELECT u.username,h.totalscore FROM phpbb_users AS u, fus_highscore as h WHERE u.user_id = h.forumid ORDER BY h.totalscore LIMIT 10 then, rather than having to have two connections and query the username seperately |
22:08 | <@Derakon> | Right. |
22:09 | <@Derakon> | Good thinking on the forum tie-in, actually, since that makes it easier to moderate things. |
22:09 | <@Derakon> | Just ban the cheating feckers. |
22:11 | <@AnnoDomini> | Ha! It works in compatibility with WinNT, but curiously rejects Win95 and Win98/Me. |
22:12 | <@Vornicus> | I do agree with the "three letter abbreviation" for users. |
22:12 | <@Derakon> | Ahh, Perl. |
22:12 | <@Derakon> | die "Missing required parameter $key" unless ($query->param($key)); |
22:13 | <@Derakon> | Vorn: whyso? |
22:13 | <@Vornicus> | because three-letter names are a long-honored high score table tradition. |
22:13 | <@Derakon> | They also have a rather small namespace. |
22:13 | <@Vornicus> | true |
22:14 | <@Derakon> | Assuming case-insensitive, but a smattering of symbols to get 40 characters, that's only 64000 possible users. |
22:15 | <@Vornicus> | I wonder if the DF world file format is documented anywhere. |
22:15 | <@TheWatcher> | Derakon: that sort of thing is one of the things I miss most when using c/c++ |
22:16 | <@Derakon> | It's not. |
22:16 | <@Derakon> | Awhile back I tried making my own Regional Prospector and the only docs I could find were out of date. |
22:16 | <@Derakon> | Unless something's changed in the last six months or so. |
22:18 | <@Derakon> | TW: does phpBB3.pm have support for "check these credentials and get me the user ID if they pass?" |
22:18 | <@Derakon> | Or just "check these credentials"; I could do the rest myself. |
22:19 | <@Derakon> | The version I have seems to be largely concerned with cookies. I don't want to muck with trying to guess the user's cookie storage location. |
22:19 | <@Vornicus> | So what you do is |
22:20 | <@Vornicus> | You use the user's uname/pass and use that to log in, and then grab the cookie. |
22:20 | <@Derakon> | ...no, sorry. |
22:20 | <@Derakon> | I'm not getting involved in the kinds of web frameworks that requires. |
22:20 | <@Derakon> | I've seen what it takes to automate web access that way, and it's not pretty. |
22:20 | <@Vornicus> | point |
22:21 | <@TheWatcher> | Derakon: I have the code to do password checking in there, I can easily add code to do a full check for you |
22:21 | <@Derakon> | That would be quite awesome. |
22:21 | <@TheWatcher> | Give me a few :) |
22:21 | <@Derakon> | And BTW, if I ever try to charge you for a reg code, smack me around a bit, would you? |
22:21 | <@TheWatcher> | heh |
22:24 | <@AnnoDomini> | Vornicus: Maybe the 99th was the one you get to kill by pulling the lever just after you start? :P |
22:24 | <@Vornicus> | Anno: no, I didn't kill any. |
22:26 | <@TheWatcher> | Derakon: nearly done, just testing it |
22:27 | <@Derakon> | That was quick. :) |
22:27 | <@Vornicus> | ITW is a crazy webservices guy |
22:35 | <@TheWatcher> | Derakon: http://www.starforge.co.uk/modules/phpBB3.pm.txt my $phpbb = phpBB3 -> new(...); my $user = $phpbb -> valid_user($username, $password); |
22:36 | <@TheWatcher> | if the username and password are valid, $user will be a hashref containing the user's row in phpbb_users, if the username is not a valid user, or the password is wrong, $user will be undef and $phpBB3::errstr will contain the reason. |
22:36 | <@Derakon> | Awesome. |
22:36 | <@Derakon> | Thanks! |
22:37 | <@TheWatcher> | Happy to help |
22:38 | <@TheWatcher> | (I really should set that thing up to allow for message templating) |
22:43 | <@Derakon> | And that was straightforward. |
22:43 | <@Derakon> | http://derakon.dyndns.org/cgi-bin/record-score.cgi?username=test&password=testte st&score=1&pattern=foo&course=aoeu&time=42&loop=1 |
22:43 | <@Derakon> | Next step: check the course key against recognized courses. How I'm going to work that...hrmph. |
22:46 | | * TheWatcher eyes something, hrms |
23:04 | | You're now known as TheWatcher[T-2] |
23:09 | | You're now known as TheWatcher[zZzZ] |
23:10 | | Serah [~Z@Nightstar-21302.atm2-0-1041217.boanxx12.customer.tele.dk] has joined #code |
23:10 | | mode/#code [+o Serah] by ChanServ |
23:13 | | * AnnoDomini tries to remember how to get to Zulag 2, 'cause he's only rescued a dozen of the twenty-eight mudokons. |
--- Log closed Sun Mar 01 00:00:28 2009 |