code logs -> 2009 -> Tue, 16 Jun 2009< code.20090615.log - code.20090617.log >
--- Log opened Tue Jun 16 00:00:02 2009
00:08 ASCII [~none@Nightstar-27052.dyn.optonline.net] has quit [Ping Timeout]
00:16 ASCII [~none@Nightstar-27052.dyn.optonline.net] has joined #code
02:18 SmithKurosaki [~Smith@Nightstar-7213.cpe.net.cable.rogers.com] has quit [Operation timed out]
02:19 SmithKurosaki [~Smith@Nightstar-7213.cpe.net.cable.rogers.com] has joined #code
02:19 mode/#code [+o SmithKurosaki] by ChanServ
02:44 Finale [c0cb88fd@Nightstar-14595.mibbit.com] has joined #code
02:44
< Finale>
http://bash.org/?643876
02:50 * Derakon reimplements the ability for creatures to hang from ledges in the new TerrestrialObject code.
02:50
<@Derakon>
It involves some messiness with turning gravity off, though. :\
03:05 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?]
05:32 McMartin [~mcmartin@Nightstar-19418.dsl.pltn13.sbcglobal.net] has quit [Operation timed out]
05:41 McMartin [~mcmartin@Nightstar-19418.dsl.pltn13.sbcglobal.net] has joined #code
05:41 mode/#code [+o McMartin] by ChanServ
05:42
<@SmithKurosaki>
evenin all
05:42
< Consul>
Hey
05:44 * Vornicus greets all involved with a cheese.
05:44
<@SmithKurosaki>
Yay
05:44
<@SmithKurosaki>
So, Vornicus, what's with all the cheese lately?
05:45
< Vornicus>
lately?
05:45 * Vornicus has greeted with cheese for years.
05:46 * Reiver even has a Vintage 2007 Vornbrie.
05:46
<@SmithKurosaki>
Well, I don't know your previous IRC history, so...
05:47
<@McMartin>
The power of cheese compels you!
05:48
<@McMartin>
... that would make the best Chick Tract ever.
05:48
< Vornicus>
I don't think God hates cheese.
05:48
< Vornicus>
shrimp yes. Cheese? Not so much.
05:49
<@McMartin>
Chick, not Phelps.
05:49
<@McMartin>
You must accept the power of cheese into your soul, or you will be cast out into the depths and forced to eat spam and velveeta for all eternity
05:50
<@SmithKurosaki>
I'm not dissing the cheese
05:51 * McMartin bends ghostscript to his will, goes off to play more Sword of the Stars.
05:55
< Reiver>
McM: Issit shiny and good?
05:55
< Reiver>
I've been tempted by it, but my runins with a lot of the 4X genre of late have put me off a lot.
05:56
< Reiver>
Largely 'cuz they all turn into woeful microfests in late game and I never actually win before I run out of patience. >_>
05:57 SmithKurosaki [~Smith@Nightstar-7213.cpe.net.cable.rogers.com] has quit [Client exited]
05:58 SmithKurosaki [~Smith@Nightstar-6508.dsl.teksavvy.com] has joined #code
05:58 mode/#code [+o SmithKurosaki] by ChanServ
06:00
<@McMartin>
Reiver: I'm... not sure.
06:00
<@McMartin>
It's got less micro than most of the 4X games I've played.
06:00 Finale [c0cb88fd@Nightstar-14595.mibbit.com] has quit [Quit: http://www.mibbit.com ajax IRC Client]
06:00
<@McMartin>
I'm *terrible* at 4X games.
06:02
<@McMartin>
The operative bit here was "it was eight bucks, with both expansions, so what the Hell"
06:04 Syloqs-AFH [~Syloq@ServicesAdmin.Nightstar.Net] has quit [Connection reset by peer]
06:06
< Reiver>
... it was eight bucks?
06:06 * Reiver must have missed that special ;_;
06:08
< Vornicus>
Arg. hate writing event loops
06:16 UndeadAnno [AnnoDomini@Nightstar-29221.neoplus.adsl.tpnet.pl] has joined #Code
06:16 mode/#code [+o UndeadAnno] by ChanServ
07:12 You're now known as TheWatcher
07:27 Derakon is now known as Derakon[AFK]
08:06 You're now known as TheWatcher[afk]
09:09 Rhamphoryncus [~rhamph@Nightstar-7168.ed.shawcable.net] has quit [Quit: Rhamphoryncus]
09:53 Vornicus is now known as Vornicus-Latens
09:57 You're now known as TheWatcher
09:57 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has quit [Ping Timeout]
10:18 Thaqui [~Thaqui@121.98.166.ns-22683] has joined #code
10:18 mode/#code [+o Thaqui] by ChanServ
10:46 You're now known as TheWatcher[d00m]
10:50 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
11:29 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code
11:29 mode/#code [+o gnolam] by ChanServ
12:22
< simontwo>
what's a 4X game?
12:23
<@Thaqui>
It's an empire strategy game.
12:23
<@Thaqui>
Live Civilisation or MOO
12:23
<@Thaqui>
*Like
12:24
<@gnolam>
"eXplore, eXpand, eXploit, eXterminate"
12:29
< simontwo>
ah.
12:30
<@Thaqui>
I generally figure them as having far more complex management options than an RTS.
12:31
<@Namegduf>
Everyone neglects my peaceful civilisation building for war. :(
12:33
<@Thaqui>
peace is no fun
12:34 You're now known as TheWatcher
12:46
< Alek>
sure is.
13:50 Thaqui [~Thaqui@121.98.166.ns-22683] has quit [Client exited]
14:12 EvilDarkLord [~jjlehto3@Nightstar-9591.cs.hut.fi] has quit [Client exited]
14:19 EvilDarkLord [~jjlehto3@Nightstar-9591.cs.hut.fi] has joined #code
14:19 mode/#code [+o EvilDarkLord] by ChanServ
14:46 AbuDhabi [AnnoDomini@Nightstar-29629.neoplus.adsl.tpnet.pl] has joined #Code
14:47 UndeadAnno [AnnoDomini@Nightstar-29221.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
15:26 You're now known as TheWatcher[afk]
15:41 * gnolam headdesks.
15:48 * AbuDhabi deskheads.
16:06 Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code
16:07 Syloqs_AFH is now known as Syloqs-AFH
16:14
<@gnolam>
Measurements become so much accurate when you actually start using meters instead of source units.
16:29
<@gnolam>
Sweet. I can keep mooching off chrols's SVN server.
16:52 Derakon[AFK] is now known as Derakon
17:01 Orthia [~Orthianz@Nightstar-8852.xdsl.xnet.co.nz] has quit [Ping Timeout]
17:13 Rhamphoryncus [~rhamph@Nightstar-7168.ed.shawcable.net] has joined #code
17:22 You're now known as TheWatcher
18:10
<@gnolam>
Ok, this is weird.
18:10
<@gnolam>
I'm getting a constant 10% error in my readings... but I have no idea why.
18:11
< AbuDhabi>
Gibbs' Effect.
18:46 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Quit: <Insert Humorous and/or serious exit message here>]
19:20
<@gnolam>
Huh. It actually might be. Thanks. :)
19:39 * Derakon ponders.
19:39
<@Derakon>
I need to lock a Y location to the closest point on a grid.
19:39
<@Derakon>
I'm using this:
19:39
<@Derakon>
self.loc[1] = int((self.loc[1] + constants.blockSize/2.0) / constants.blockSize) * constants.blockSize
19:39
<@Derakon>
It seems...inefficient, somehow.
19:40
<@Derakon>
If I wanted to lock to integers, I'd do "int(self.loc[1] + .5)", but this grid is larger than an integer, so I have to rescale it to the integers to get the int() function to round properly, and then rescale it again to get back to the grid. :\
19:51
<@ToxicFrog>
constants.blockSize is the size of a single gridsquare, in world units?
19:53
<@Derakon>
Yes.
20:01
< Vornicus-Latens>
self.loc[1] = int(self.loc[1] / constants.blockSize + 0.5) * constants.blockSize
20:02
< Vornicus-Latens>
A little cleaner.
20:02 * Derakon nods.
20:02
<@Derakon>
It is.
20:02
<@Derakon>
Thanks.
20:41 * Vornicus-Latens just uses a block size of 1 in vornball, so does not expect to have this sort of problem.
20:42
<@Derakon>
My world units are in pixels, to make polygons easier to deal with.
--- Log closed Tue Jun 16 21:08:23 2009
--- Log opened Tue Jun 16 21:14:08 2009
21:14 TheWatcher [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code
21:14 Irssi: #code: Total of 25 nicks [10 ops, 0 halfops, 0 voices, 15 normal]
21:14 mode/#code [+o TheWatcher] by ChanServ
21:15 Irssi: Join to #code was synced in 60 secs
21:17 Myst [~Myst@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code
21:17 mode/#code [+o Myst] by ChanServ
21:20 AbuDhabi [AnnoDomini@Nightstar-29629.neoplus.adsl.tpnet.pl] has quit [Connection reset by peer]
21:21 UndeadAnno [AnnoDomini@Nightstar-29629.neoplus.adsl.tpnet.pl] has joined #Code
21:21 mode/#code [+o UndeadAnno] by ChanServ
21:25 Derakon is now known as Derakon[AFK]
21:52 Derakon[AFK] is now known as Derakon
22:42 UndeadAnno [AnnoDomini@Nightstar-29629.neoplus.adsl.tpnet.pl] has quit [Quit: "I just want you to know... I faked all the orgasms." "So? Mine were real." "...asshole."]
23:25
<@ToxicFrog>
I have lemonade!
23:25
<@ToxicFrog>
And, additionally, I win at dialogue transcription forever.
23:26 * Derakon reverse-engineers the lemons from the lemonade.
23:26
<@ToxicFrog>
ben@orias:~/Documents/Let's Play Septerra Core/016/raw
23:26
<@ToxicFrog>
$ gocr -d 0 -a 99 -f ASCII -m $((256+128+2)) -p ../../ocr/ -i <(convert -crop 640x96+0+384 -negate -level 60%,61% 0017.png pnm:-)
23:26
<@ToxicFrog>
Bartender: "He betrayed his buddies on a job. The Duke don't take too kindly to
23:26
<@ToxicFrog>
that. If you see him, let him know I've got his stuff."
23:26
<@Derakon>
Awesome.
23:26
<@Derakon>
How well does gocr work on more scriptlike fonts, though?
23:27
<@ToxicFrog>
If I can seperate the script into individual letters, quite well, and even if it can't you might get word-level recognition using the database feature
23:27
<@ToxicFrog>
I've actually disabled the "character recognition" part entirely.
23:27
<@McMartin>
That is fantastic.
23:27
<@ToxicFrog>
What it does is, it tries to separate the text into character bitmaps, and then looks each bitmap up in a database.
23:27
<@McMartin>
You should totally brag about that in thread.
23:28
<@ToxicFrog>
If it can't find it in the DB, it asks me what it is.
23:28
<@ToxicFrog>
...and stores my answer in the DB.
23:29
<@ToxicFrog>
Occasionally it gets a bit confused - for example, it'll often treat x' or 'x as one character, for any x - but then you just enter the whole string it corresponds to and it Just Works.
23:29
<@ToxicFrog>
I suspect that with a heavily connected script, it wouldn't be able to pull out individual characters, but would be able to assemble a database of complete words fairly easily.
23:29
<@ToxicFrog>
McMartin: I was actually going to post a HOWTO in the Tech Support Fort
23:30
<@Derakon>
Well, you should link to that in the thread, then~
23:30
<@ToxicFrog>
I just need to touch up imagegrep slightly first, so that I can do things like:
23:31
<@ToxicFrog>
for ss in current/raw/*.png; do (imagegrep portrait-left.png $ss || imagegrep portrait-right.png $ss) && transcribe $ss >> current/dialogue.txt; done
23:39
<@ToxicFrog>
function imagegrep() {
23:39
<@ToxicFrog>
local basis="$1"
23:39
<@ToxicFrog>
local orig="$2"
23:39
<@ToxicFrog>
composite -compose darken "$orig" <(convert -level 0,1 "$basis" bmp:-) bmp:- \
23:39
<@ToxicFrog>
| compare bmp:- "$basis" -metric AE bmp:/dev/null 2>&1 \
23:39
<@ToxicFrog>
| egrep -q '^0$' && return 0
23:39
<@ToxicFrog>
return 1
23:39
<@ToxicFrog>
}
23:44 Vornicus-Latens is now known as Vornicus
23:49 * SmithKurosaki is amazed
23:49
<@SmithKurosaki>
That is amazing, tf
23:50
<@ToxicFrog>
Hmm. It still gets a few things wrong:
23:50
<@ToxicFrog>
Loch: "That,s it! We,ll take care of this outside...."
23:52
<@SmithKurosaki>
Still, it removes most of the typing you have to do for your SC LP
23:53
<@ToxicFrog>
Yeah
23:53
<@ToxicFrog>
And a simple sed-expression turns it into Lua code that I can just paste into the post file
23:53
<@SmithKurosaki>
Yay, optimization
--- Log closed Wed Jun 17 00:00:06 2009
code logs -> 2009 -> Tue, 16 Jun 2009< code.20090615.log - code.20090617.log >