code logs -> 2010 -> Sat, 06 Nov 2010< code.20101105.log - code.20101107.log >
--- Log opened Sat Nov 06 00:00:31 2010
00:37 Derakon[AFK] is now known as Derakon
00:51 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed]
00:52 You're now known as TheWatcher[T-2]
00:54 You're now known as TheWatcher[zZzZ]
01:22 Derakon is now known as Derakon[AFK]
01:24 celmin [celticminstre@45386A.F5259F.ED4918.A80E46] has joined #code
01:37 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
02:00 Anno[Laptop] [annodomini@Nightstar-1d2479c0.adsl.tpnet.pl] has quit [[NS] Quit: leaving]
03:54 kwsn [kwsn@Nightstar-1def9d24.dyn.centurytel.net] has joined #code
04:12 cpux is now known as shade_of_cpux
04:17 Kaura [kaura@Nightstar-fd82400d.snfc21.sbcglobal.net] has quit [Client closed the connection]
04:18 Kaura [kaura@Nightstar-fd82400d.snfc21.sbcglobal.net] has joined #code
04:34 celmin [celticminstre@45386A.F5259F.ED4918.A80E46] has quit [[NS] Quit: Clamming up!]
06:16 Stalker [Z@2C3C9C.B2A300.F245DE.859909] has quit [Ping timeout: 121 seconds]
06:34 Stalker [Z@5E691D.FC7C16.F8708C.AE9F29] has joined #code
06:50 Stalker [Z@5E691D.FC7C16.F8708C.AE9F29] has quit [Ping timeout: 121 seconds]
06:55 kwsn [kwsn@Nightstar-1def9d24.dyn.centurytel.net] has quit [[NS] Quit: BEEP BEEP IMMA JEEP]
07:00 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
07:00 Janus [Owner@Nightstar-283cd59d.clmboh.sbcglobal.net] has joined #code
07:02 Derakon[AFK] is now known as Derakon
07:05
< Janus>
Howdy y'all! Long time no see!
07:07 * Janus 's programming skillset has only gone sharply downhill since so long ago!
07:08
<@jerith>
o/
07:09
< Janus>
For instance, in a collision thing for 2D rectangles, I have 5 ?: statements nested inside one another
07:11
<@Derakon>
Two 2D axis-aligned rectangles overlap if each pair of edges (projected onto the relevant axis) overlap. If there is at least one projected edge with no overlap then they do not intersect.
07:11
<@Derakon>
You should be able to do that with four conditional checks, IIRC.
07:11
<@Derakon>
Anyway, I'm for bed. Luck.
07:11 Derakon is now known as Derakon[AFK]
07:12
< Janus>
True! But I probably did it amazingly wrong, haha. I can show if you want, but ... it works somehow. And I have no clue what any of it does. It's become a huge blackbox to me, haha.
07:14
< Janus>
But, um! I'll just rewrite it later if needed. Right now? I'm just trying to cope with the sheer number of header/code files, and classes. Too much code
07:14 Zed_ [Zed@Nightstar-556ea8b5.or.comcast.net] has quit [[NS] Quit: Leaving]
07:16
< Janus>
But actually, I wanted to ask you guys a question!
07:16
<@jerith>
Any code you wrote more than a month ago may as well have been written by someone else. ;-)
07:17
< Janus>
That someone else had it out for me
07:18
<@jerith>
Yeah. jerith-from-the-past is a right lazy bastard.
07:18
<@jerith>
But jerith-from-the-future is smart. He'll know what to do. I don't *really* need to comment this stuff...
07:23
< Janus>
Janus-from-the-future, I can't stand him frankly. I'll leave him a little surprise...
07:24
<@jerith>
Sometimes I discover that jerith-from-the-past was smarter than he looked, and then I document why the obvious refactoring won't work.
07:29
< Janus>
Being in the present is easy when the past and future guys do all the work. This is the life
07:30
<@jerith>
It's boring, though.
07:30
<@jerith>
And sometimes the deadline's too tight to let Future You do it.
07:31
< Janus>
Just wait until the deadline and hope past you did it. If he didn't, that's his fault
07:31
< Rhamphoryncus>
oookay. Ripped a DVD using gddrescue, no errors reported, but now vlc skipped a spot on the ISO o.O
07:32
< Rhamphoryncus>
Yet I ripped the last disk too, and not only did it not skip, playing the disk directly wouldn't skip either
07:38
< Janus>
maybe it's a feature. Skips over the boring parts for you
07:39 * Janus suddenly remembers he had a question! ... oops, wait
07:39
< Janus>
Is it okay if I ask to ask a question?
07:39
< Rhamphoryncus>
Oh no, I can assure you it skips quite interesting parts :P
07:39
< Rhamphoryncus>
of course
07:40
<@jerith>
More efficient to just ask rather than asking to ask to ask. ;-)
07:40
<@jerith>
(There are no stupid questions. Only stupid people.)
07:41
< Janus>
Thank you! Can I as-- okay, if you say so! Hm! A freeware game that has more story added to it, every week or so like a webcomic. Would it be hard to do, if the executable itself needed to be changed every time?
07:42
<@jerith>
Probably. Rather structure it in such a way that you add data rather than code.
07:42
<@jerith>
Or add code in a modular way.
07:42
< Janus>
I've committed myself to a rather unwise practice. Every discrete level is a new inherited class
07:42
<@jerith>
Is this a compiled language?
07:43
< Janus>
C++
07:43
<@jerith>
That makes it tricky.
07:43
<@jerith>
Can you compile each level on its own and load it with dlopen() or whatever?
07:44
< Janus>
... you can compile them on their own?
07:44
<@jerith>
Depends.
07:44
<@jerith>
You'd need the headers, of course.
07:45
<@jerith>
Look up how to compile dynamically-loaded libraries.
07:45
<@jerith>
I do it so seldom myself that I don't actually remember how.
07:45
< Janus>
Huh! If I could do that, I'd only have to send out DLLs every update
07:45
<@jerith>
Also, I do it in C rather than C++. It might be different there.
07:46
<@jerith>
What compiler are you using?
07:47
<@jerith>
What kinds of things to these level classes have in them?
07:47
< Janus>
the microsoft one. Only for convienence right now. Going to research gcc's to see if it's better. ... may use it on principle that I'm not paying for the microsoft one too :P;;
07:47
<@jerith>
*do
07:48
< Janus>
Oh! They're inherited by a base Level class. Has 3 virtual functions they fulfill, which is start(), update(), and end(). Let's me completely change the gameplay if I wanted
07:49
<@jerith>
So probably hard to turn into data rather than code.
07:49
<@jerith>
Do you have the whole thing planned?
07:51
< Janus>
The game, yeah! Code... I'm honing in on something I guess, aha. Right now, the levels are set up that way, and assets like characters and objects are the same way mostly. They have an Update() and a End(). So adding more and more classes for different things is easy
07:52
< Janus>
Everything from GUI elements to enemies inherit from an Asset class, and then they're stuffed in an Asset array that belongs to the level
07:53
<@jerith>
Might not be worth it for this game, but it would be an interesting exercise to see if you can define everything you need in terms of instances of more generic classes rather than more specialised classes.
07:54
< Janus>
No, that's the smart way, I'm finding out, haha
07:54
<@jerith>
That way you could say "Give me a UsableThing that has these properites" rather than "Give me an EnchantedSword".
07:54
<@jerith>
Then you can define your levels as data rather than code.
07:54
<@jerith>
That makes it much harder to add new behaviours later, though.
07:55
<@jerith>
20 minutes of battery left. :-/
07:55
<@jerith>
I was hoping my power would be back by now.
07:55
< Janus>
Eep, power outage?
07:56
<@jerith>
Yeah.
08:21 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
08:26 Netsplit *.net <-> *.split quits: simon_, Rhamphoryncus, SmithKurosaki, kazrikna, @Reiver, kaz_
08:26 Netsplit over, joins: ~Reiver, SmithKurosaki, simon_, kaz_, kazrikna, Rhamphoryncus
08:27 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
08:27 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has joined #code
08:28 mode/#code [+qo Reiver Reiver] by ChanServ
08:29 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
08:31
< Rhamphoryncus>
Janus: Some games these days do issue regular updates, but that's usually bug fixes, only occasionally new content
08:32
< Rhamphoryncus>
But I'd feel much safer using lua or python for that.
08:37 Orthia [orthianz@Nightstar-10953601.xnet.co.nz] has quit [Connection reset by peer]
08:39
< Janus>
Hm!
08:39
< Janus>
Thanks for the input! ... and now I collapse
08:39 Janus [Owner@Nightstar-283cd59d.clmboh.sbcglobal.net] has quit [[NS] Quit: collapse]
09:09 Kaura is now known as Kaura|zzz
09:26 You're now known as TheWatcher
10:54 Vornicus is now known as Vornicus-Latens
11:03 Anno[Laptop] [annodomini@Nightstar-1d2479c0.adsl.tpnet.pl] has joined #code
12:01 Anno[Laptop] [annodomini@Nightstar-1d2479c0.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
12:03 Anno[Laptop] [annodomini@Nightstar-df486dc5.adsl.tpnet.pl] has joined #code
12:10 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
12:30 Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has quit [Client exited]
12:39 Attilla [Some.Dude@Nightstar-05df71b8.threembb.co.uk] has joined #code
12:39 mode/#code [+o Attilla] by Reiver
13:16 You're now known as TheWatcher[afk]
13:35 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
14:05 Orthia [orthianz@Nightstar-9b206526.xnet.co.nz] has joined #code
14:10 shade_of_cpux is now known as cpux
14:44 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
15:15 Orthia [orthianz@Nightstar-9b206526.xnet.co.nz] has quit [Ping timeout: 121 seconds]
15:15 Ortiha [orthianz@Nightstar-6a9fcd95.xnet.co.nz] has joined #code
15:26 toolman [tlmn@Nightstar-bec1add2.dyn.optonline.net] has joined #code
15:27 toolman [tlmn@Nightstar-bec1add2.dyn.optonline.net] has quit [Client closed the connection]
15:38 kwsn [kwsn@Nightstar-ca9721ae.dyn.centurytel.net] has joined #code
15:39 Derakon[AFK] is now known as Derakon
16:08 Ortiha [orthianz@Nightstar-6a9fcd95.xnet.co.nz] has quit [Ping timeout: 121 seconds]
17:05 Taki^ [ikat@Nightstar-0816732d.consolidated.net] has joined #code
17:31 Kaura|zzz is now known as Kaura
18:25
< Anno[Laptop]>
Is it possible to divine what the console output was of an application that didn't have a console window open?
18:25
< Anno[Laptop]>
Like a log of things that get sent to console.
18:26
<@Derakon>
I'm guessing this is Windows.
18:26
< Anno[Laptop]>
Debian.
18:26
<@Derakon>
Ah.
18:26
<@Derakon>
What happens if you run it from a console?
18:26
< Anno[Laptop]>
It runs normally, but I have an extra window to keep track of.
18:27
< Anno[Laptop]>
DF suddenly crashed and exited, and I want to know what it send to console before it did.
18:27
< Anno[Laptop]>
*sent
18:27
<@Derakon>
IIRC doesn't DF generate its own logfiles to capture its output?
18:28
< Anno[Laptop]>
Good idea! I'll check.
18:28
< Anno[Laptop]>
Hmm. 85Mb of text.
18:30
< Anno[Laptop]>
This seems to be the announcements. The error log is also in-game, mostly.
18:34
< Anno[Laptop]>
Just passed a million lines. Still loading.
18:34
<@Derakon>
This is what "tail" is for.
18:35
< Anno[Laptop]>
Tail?
18:36
< Anno[Laptop]>
Oh, I see.
18:36 jeroid [jerith@687AAB.5E3E50.724FA3.9A8B4E] has joined #code
18:36
< Anno[Laptop]>
Anyway. No ideas on how to get console output, then? I know console INPUT is being logged.
18:36
<@Derakon>
Sorry.
18:36
< jeroid>
Context?
18:37
< Anno[Laptop]>
jeroid: I ran DF without a console window. It crashed. I want to know its console output before it did.
18:38
< jeroid>
Ah. OS?
18:39
< Anno[Laptop]>
Debian.
18:39
< jeroid>
I know MacOS has a console log you can look at.
18:40
< jeroid>
I think Linux tosses it into /dev/null.
18:40
< jeroid>
You can run it from a terminal to get the output, though.
18:40
< Anno[Laptop]>
Yeah, I know that.
18:41
< jeroid>
Or write a little wrapper script to pipe it to a file.
19:06
<@ToxicFrog>
For DF specifically, errorlog.txt and gamelog.txt contain the "game" logs; "program" logs (like "loading bindings from X", "resetting textures", "macro format error") are written to stderr/stdout and are lost forever if not captured.
19:06
<@ToxicFrog>
For the general case of "can I get console output from a now-exited program if I ran it without a controlling terminal", at least on linux the answer is "no".
19:07
<@ToxicFrog>
If this is a recurring issue, consider modifying your df script so that it does >stdout.log 2>stderr.log.
19:34 jeroid [jerith@687AAB.5E3E50.724FA3.9A8B4E] has quit [[NS] Quit: Bye]
20:00 You're now known as TheWatcher
20:47 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
21:02 Stalker [Z@5E691D.FC7C16.F8708C.9CBEE0] has joined #code
21:15 cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has quit [[NS] Quit: ChatZilla 0.9.86 [Firefox 3.6.12/20101026210630]]
21:16 Vornicus-Latens is now known as Vornicus
21:18 cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has joined #code
21:22 Orthia [orthianz@Nightstar-bb920418.xnet.co.nz] has joined #code
21:22 Stalker [Z@5E691D.FC7C16.F8708C.9CBEE0] has quit [Ping timeout: 121 seconds]
21:59 celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code
22:00 Stalker [Z@2C3C9C.B2A300.F245DE.859909] has joined #code
--- Log closed Sun Nov 07 00:00:33 2010
code logs -> 2010 -> Sat, 06 Nov 2010< code.20101105.log - code.20101107.log >