code logs -> 2009 -> Sun, 08 Mar 2009< code.20090307.log - code.20090309.log >
--- Log opened Sun Mar 08 00:00:17 2009
00:00 * TheWatcher tests, confirms this is the case, hrm, leaves the g off anyway
00:07
<@Vornicus>
P:tB needs accelerator keys.
00:08
<@ToxicFrog>
P:tB?
00:09
<@Vornicus>
Populous: The Beginning.
00:10
<@Vornicus>
RTS by Bullfrog from 1998; you control a Shaman and her tribe.
00:10 * AnnoDomini has played that.
00:10
<@AnnoDomini>
Was awesome.
00:11 * TheWatcher vaguely objected to it being called Populous, as it was actually a significant departure from pop1 & 2
00:11
<@Vornicus>
In many ways a lot like SupComm: a world-overview mode, a superunit, transports that use their passengers' powers to defend themselves...
00:13
<@Vornicus>
The terrain is deformable, and a good deal of the tactical interest of the game is using terrain-deforming spells to change the direction of attack.
00:15
<@Vornicus>
In contrast, the unit system is very simple: there's only five types of non-super unit: Braves (workers), Warriors (melee), Firewarriors (missile), Spy (stealth anti-building), and Priests (given enough time uninterrupted, a priest can convert enemy units... but it doesn't work on other priests)
00:17
<@Vornicus>
Oh. In contrast to the spells. There's about 20 of them, mostly corresponding to forces of nature. You can use everything from volcanos to bees on the enemy.
00:19
<@Vornicus>
But there's no hot keys, so there's a lot of frantic clicking (and often mis-clicking) to get the spell or building (there's only nine of those, one for each type of unit, one for ships, one for balloons, a tower, and one that acts as a patrol waypoint)
00:19
<@Vornicus>
that you want.
00:20
<@Vornicus>
It's a pretty good game, but it really shows its age.
00:21 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Quit: <Insert Humorous and/or serious exit message here>]
00:40 You're now known as TheWatcher[T-2]
00:44 You're now known as TheWatcher[zZzZ]
00:49 AnnoDomini [~farkoff@Nightstar-27875.neoplus.adsl.tpnet.pl] has quit [Quit: He who fights with monsters should look to it that he himself does not become a monster. And when you gaze long into an abyss, the abyss gazes also into you.]
00:57
<@gnolam>
Yup.
00:58
<@gnolam>
Games mostly age in their interface design, not in their gameplay.
01:17 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?]
02:20
<@Vornicus>
Though the bloody idiocy that the unit AI has in it is very impressive.
02:23
<@MyCatVerbs>
Populus, The Beginning?
02:25
<@ToxicFrog>
Yes.
02:25
<@Vornicus>
For instance: braves will occasionally upgrade their houses. Sometimes, after finishing the upgrade, they will walk back into the house.
02:25
<@Vornicus>
...Most of the time, however, they will not.
02:27
<@Vornicus>
So you have to go over your village every once in a while and send braves back into houses (where they produce a lot more mana than they would just sitting around.)
02:31 * Derakon facepalms at GameDev.net.
02:31
<@Vornicus>
And then there's rampant wood theft: braves have to collect wood and place it in a pile in front of their house before upgrading - you need three wood for each upgrade level.
02:31
<@Derakon>
I put Spellcast+ (project name: wizwar) up for feedback, and so far I've gotten two suggestions: a) "Oooh, you should make it into an RTS!", and b) "Sounds like MtG."
02:31 * Derakon smacks the Game Design forum around with a large whale.
02:32
<@Vornicus>
Usually they will find nearby trees or nearby unclaimed wood... but sometimes they'll ignore local forestry and instead wander around stealing wood back and forth between house stockpiles.
02:40
<@Vornicus>
Which is hilarious, but very annoying.
02:42
<@Vornicus>
Only critter in the game with sensible AI is the Savage, and that doesn't count.
04:55
<@Reiver>
Say, Derakon
04:55
<@Reiver>
Didn't you start supporting 'paste' in the registration box?
04:55
<@Derakon>
Yo?
04:56
<@Derakon>
Yes, I did.
04:56
<@Reiver>
Oh. Nevermind.
04:56
<@Reiver>
It wasn't in Dvorak~
04:57
<@Derakon>
Heh.
04:57
<@Reiver>
Incidentally
04:57
<@Reiver>
The deflector is hilarious on Rainfall.
04:57
<@Reiver>
Until it kills you~
04:58
<@Derakon>
Heh.
05:59
<@Derakon>
Argh, want to make Jetblade. ;.;
06:02 Syloqs-AFH [Syloq@Admin.Nightstar.Net] has quit [Connection reset by peer]
06:27
<@Doctor_Nick>
whats the best iso mounting program now
06:34
<@Vornicus>
For PC? Daemon Tools.
06:34
<@Vornicus>
rather, for Windows.
06:35
<@Vornicus>
For Linux and Mac your OS can generally mount them natively.
07:55 Vornicus [~vorn@Admin.Nightstar.Net] has quit [Quit: ]
08:01 Derakon is now known as Derakon[AFK]
08:32 You're now known as TheWatcher
08:44 * TheWatcher readsup, notes that there is a very good reason he avoids GameDev.net except for very specific code issues: there are intelligent, helpful, capable people there. But the majority appear to have an impressive knack for getting the wrong end of the stick, egos the size of small planets, and attitudes that make me tempted to introduce them to a wood chipper, feet first.
08:45 AnnoDomini [~farkoff@Nightstar-27875.neoplus.adsl.tpnet.pl] has joined #Code
08:45 mode/#code [+o AnnoDomini] by ChanServ
10:08 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
10:08 mode/#code [+o Attilla] by ChanServ
10:22 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
10:22 * TheWatcher eyes this, O.o
10:22 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
10:22 mode/#code [+o Attilla] by ChanServ
10:23
<@TheWatcher>
$pattern =~ s/\[/\Q[\E/g; is resulting in strings containing \\[ wut
10:26 * TheWatcher is missing something obvious here, knows it...
10:29
<@jerith>
What are \Q and \E?
10:32
<@TheWatcher>
\Q disables normal interpretation of rexexp special symbols (like [ as the open bracket for a character class), \E reenables it
10:33
<@TheWatcher>
I'm trying to convert all the [ and ] in $pattern into \[ and \]
10:33
<@TheWatcher>
or have them treated as literal [ and ] at least
10:34
<@TheWatcher>
but actually managing it is proving... painful.
10:36
<@TheWatcher>
s/\[/\[/ results in [ rather than \[, s/\[/\\[/ results in \\[ rather than \[, and so on... it's driving me nuts.
10:38
<@jerith>
Are you interpreting properly?
10:38
<@TheWatcher>
ie: I want `my $pattern = "[ [ ["; $pattern =~ s/\[/MAGICHERE/g; print $pattern` to print "\[ \[ \["
10:38
<@jerith>
If you're displaying a string, wouldn't the \ be escaped?
10:39
<@jerith>
In other words, "
10:39
<@jerith>
In other words, "\\[" -> \[ when printed.
10:40
<@jerith>
But if you're saying "show me this as data" rather than "print what this represents"...
10:40
<@TheWatcher>
The problem is that I need to pass this into another regexp as the search pattern, so I need literal \ followed by [ in there.
10:41
<@jerith>
Then I think the \\[ is wht you want.
10:41
<@jerith>
+a
10:41
<@jerith>
>> /\[/.to_s
10:41
<@jerith>
=> "(?-mix:\\[)"
10:42
<@jerith>
Ruby, but still.
10:42
<@TheWatcher>
except that when I do that, I get, for example:
10:42
<@jerith>
>> puts /\[/
10:42
<@jerith>
(?-mix:\[)
10:43 Consul [~consul@Nightstar-29739.dsl.sfldmi.ameritech.net] has quit [Client exited]
10:43
<@jerith>
A broken Consul? Perl *is* powerful...
10:43 * jerith hides...
10:43
<@TheWatcher>
$pattern =~ s/\[/\\[/g;
10:44
<@TheWatcher>
warn "Storing '$pattern' => '$replace#\n";
10:44
<@TheWatcher>
results in
10:44
<@TheWatcher>
Storing '\\[i:!uid\\](.*?)\\[/i:!uid\\]' => '<em>$1</em>#
10:44
<@McMartin>
Those quotes don't look like they match...
10:45
<@TheWatcher>
yeah, they don't but that's just a typo inside a string, incidental to the problem
10:46
<@jerith>
I think the \\ is because it's displaying a quoted string.
10:46
<@McMartin>
What happens if you dump it to a file?
10:47 Consul [~consul@Nightstar-29739.dsl.sfldmi.ameritech.net] has joined #code
10:47 mode/#code [+o Consul] by ChanServ
10:48
<@TheWatcher>
die Dumper($self -> {"codecache"}); ends up with things like http://www.starforge.co.uk/index.cgi
10:48
<@TheWatcher>
ie: still showing \\[
10:49 * McMartin was mainly wondering what "print" did, since he's wondering if something like Python's "repr" is happening.
10:49
<@TheWatcher>
thing is, afaict, if the string has \\[ in it, s/$pattern/../ is goign looking for \\[ not \p
10:49
<@TheWatcher>
thing is, afaict, if the string has \\[ in it, s/$pattern/../ is goign looking for \\[ not [
10:49 * McMartin blinks
10:49
<@McMartin>
What happens if you use s/\[/\[/g instead?
10:49 * McMartin forgets if escapes get ignored on the right-hand side.
10:50
<@McMartin>
On the other hand, I really need to crash out.
10:50
<@jerith>
Some of them do.
10:50
<@TheWatcher>
Applying [img:gqeopht9\\](https?://.*?)[/img:gqeopht9\\] => <img src="$1" alt="Image" />
10:50
<@TheWatcher>
Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE img:gqeopht9\\](https?://.*?)[/img:gqeopht9\\]/ at modules/phpBB3.pm line 762.
10:51
<@TheWatcher>
oh, wait, one sec
10:51
<@jerith>
Perhaps you want \\\[ ?
10:52
<@TheWatcher>
... hold on, I think I might have it
10:52
<@TheWatcher>
if so, I shall be pissed.
10:53 * Molgorn provides the booze?
10:53
<@jerith>
It may be seeing \[ as "escaped [", \\[ as "escaped \ [" and thus \\\[ as "escaped \ escaped ["
10:54
<@TheWatcher>
Okay, I've managed to work out that \[ /is/ doign that I need
10:54
<@TheWatcher>
but it's falling over somewhere else now >.<
10:58
<@TheWatcher>
... Wut O.o: `Applying [color=([0-9a-fA-F]{6}):gqeopht9](.*?)[/color:gqeopht9] => <span style="color: $1">$2</span>` ... `Unmatched ) in regex; marked by <-- HERE in m/[color=([0-9a-fA-F]{6}) <-- HERE :gqeopht9](.*?)[/color:gqeopht9]/ at modules/phpBB3.pm line 762`
10:59
<@TheWatcher>
I think the regexp engine hates me ;.;
10:59 * jerith invokes jwz.
11:00 * TheWatcher needs more tea, obviously
11:00
<@jerith>
Is ([ special in pcre?
11:00
<@jerith>
Ooh, tea.
11:00 * jerith goes to make some.
11:03
<@TheWatcher>
No, (?KEY...) is the only special case of grouping (for things like (?#...) = comment, (?:...) = non-capturing clustering, etc)
11:08
<@jerith>
Ah, right.
11:09
<@TheWatcher>
Sod this, I'll try again later, I'm going to go do something else for a bit
11:32 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has quit [Quit: Rhamphoryncus]
11:49
<@jerith>
TheWatcher: That should be \[color=([0-9a-fA-F]{6}):gqeopht9\](.*?)\[/color:gqeopht9\] or whatever.
11:49
<@jerith>
The literal [] seem not to have been escaped.
11:50
<@TheWatcher>
I know >.<
11:50
<@TheWatcher>
I'm just about to chuck the whole thing, and just hard code the damned translations
11:50
<@jerith>
Thus, it's matching a character class containing "color=([0-9a-fA-F" six times and then hitting an unmatched \]
11:50
<@jerith>
Perhaps you need !regexps?
11:51
<@jerith>
Perl's not a great language for writing parsers in, though.
11:51
<@TheWatcher>
It really isn't worth the effort - I /already have/ code to do bbcode to html conversion, but it was written in the pre-phpBB3 days, when the range of tags was limited
11:52
<@TheWatcher>
but, since this stuff isn't really intended for general release anyway, I'm just going to retool the old code and use it, I think - far less headache than trying to allow it all to be templated like this
11:53
<@jerith>
Yeah, probably.
11:57
<@TheWatcher>
If nothing else, I'll just make phpBB3.pm load templates/<name>/bbcodetrans.pm and deal with it that way >.>
12:03
<@jerith>
In entirely unrelated news, OpenOffice has gotten even worse since I last used used it.
12:03
<@jerith>
-used
12:04
<@TheWatcher>
... how?
12:04
<@Reiver>
They no longer provide lube when they bend you over and unzip your pants.
12:04
<@TheWatcher>
(I am tempted to add 'is that possible', but I note that some people appear to find it usable)
12:04
<@Reiver>
Cost saving measure for hard economic times, y'see
12:04
<@jerith>
To discover that there is no keybinding for "insert new slide", I had to wade through five help entries and then several pages of badly organised settings.
12:05
<@jerith>
Then, I wanted to turn off bullets in my text input box thing.
12:05
<@jerith>
I can do this, but clicking on it again to start entering text makes the bloody things come back.
12:05
<@jerith>
If I turn them off /after/ I start adding text, all happy.
12:44 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
12:45 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
12:45 mode/#code [+o Attilla] by ChanServ
12:47 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
12:48 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
12:48 mode/#code [+o Attilla] by ChanServ
13:25 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code
13:25 mode/#code [+o gnolam] by ChanServ
13:38 McMartin [~mcmartin@Nightstar-3361.dsl.pltn13.sbcglobal.net] has quit [Operation timed out]
13:39 McMartin [~mcmartin@Nightstar-3361.dsl.pltn13.sbcglobal.net] has joined #code
13:39 mode/#code [+o McMartin] by ChanServ
13:42 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
14:00 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
14:01 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
14:01 mode/#code [+o Attilla] by ChanServ
14:06 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has quit [Quit: Praise "BOB"!]
14:21 * gnolam hugs the Wayback Machine.
14:28 Gruber [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code
14:29 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Ping Timeout]
14:32 Gruber is now known as gnolam
15:09
<@jerith>
AARGH!
15:10
<@jerith>
I imported some eps files, because I want vector graphics.
15:10
<@jerith>
They display perfectly, right up until I want to either play the slideshow or export to pdf.
15:11
<@jerith>
Then I get a couple of lines of red text instead of my beautiful diagrams.
15:12 KBot [AnnoDomini@Nightstar-29105.neoplus.adsl.tpnet.pl] has joined #Code
15:13 AnnoDomini [~farkoff@Nightstar-27875.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
15:13 KarmaBot [AnnoDomini@Nightstar-27875.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
15:15 KBot is now known as KarmaBot
15:16
<@jerith>
I'm rapidly reaching the point where a whiteboard would be preferable.
15:19 AnnoDomini [~farkoff@Nightstar-29105.neoplus.adsl.tpnet.pl] has joined #Code
15:19 mode/#code [+o AnnoDomini] by ChanServ
15:23
< gnolam>
OpenOffice, right? :P
15:31
<@jerith>
Yes.
15:32
< gnolam>
Just forget about using EPS in it.
15:33
<@jerith>
I just did.
15:33
<@jerith>
But now I need a 300dpi png to get vaguely acceptable quality.
15:33
< gnolam>
If you're really really lucky, you can get it to display the embedded preview, but that's it. Contrary to what OpenOffice itself claims, it _doesn't_ actually support EPS.
15:35
<@jerith>
I also want a "presenter screen" thing.
15:36
<@jerith>
Which I can get, if I install an extension.
15:36
<@jerith>
But then it takes a week and a half to do anything.
15:40
< gnolam>
Welcome to OpenOffice.
15:41
< gnolam>
Land of the free, home of frustration and shite UIs.
15:42 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has joined #code
15:42 mode/#code [+o GeekSoldier] by ChanServ
15:45
<@TheWatcher>
Finally, working bbcode parsing...
16:04 Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code
16:05 Syloqs_AFH is now known as Syloqs-AFH
17:03 You're now known as TheWatcher[afk]
17:35 Derakon[AFK] is now known as Derakon
18:09 You're now known as TheWatcher
18:49 simontwo [~simon@Nightstar-28088.diogenes.hacklab.dk] has quit [Quit: If there's one thing you can say about mankind, there's nothing kind about man.]
19:59
<@McMartin>
What was the final trick?
20:01 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has joined #code
20:03
<@AnnoDomini>
Disappearing.
20:07
< gnolam>
The greatest trick the Devil ever pulled was the Vanishing Penny.
20:37 Vornicus [~vorn@Admin.Nightstar.Net] has joined #code
20:37 mode/#code [+o Vornicus] by ChanServ
20:38 Vornicus is now known as Finerty
20:51 somnolence [~somnolenc@Nightstar-5762.hsd1.ca.comcast.net] has quit [Client exited]
21:30 somnolence [~somnolenc@Nightstar-5762.hsd1.ca.comcast.net] has joined #code
21:36 Finerty is now known as Vornicus
21:51 Consul [~consul@Nightstar-29739.dsl.sfldmi.ameritech.net] has quit [Quit: Leaving]
22:16 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has quit [Quit: Rhamphoryncus]
23:21
<@TheWatcher>
... wtf
23:21
<@TheWatcher>
`index.cgi: \t(in cleanup) Failed to close gzip at /usr/lib/perl5/site_perl/5.8.8/CGI/Compress/Gzip/FileHandle.pm line 206 during global destruction.`
23:29
<@TheWatcher>
I have no blind clue what could cause that. The only google hits are copies of the FileHandle,pm source
23:31
< Molgorn>
...global destruction sounds promising, though >_>
23:32
<@TheWatcher>
¬¬
23:48
<@TheWatcher>
Oh sod this, I'll look at it again tomorrow. It's probably something bleedin obvious
23:56
<@TheWatcher>
... wate. I think I know what could cause it
23:57
<@AnnoDomini>
Sunspots.
23:59
<@TheWatcher>
Actually, it appears to be being caused by circular references
--- Log closed Mon Mar 09 00:00:28 2009
code logs -> 2009 -> Sun, 08 Mar 2009< code.20090307.log - code.20090309.log >