code logs -> 2008 -> Tue, 23 Dec 2008< code.20081222.log - code.20081224.log >
--- Log opened Tue Dec 23 00:00:14 2008
00:10 You're now known as TheWatcher[T-2]
00:17
<@McMartin>
Mm. Timer looks fine, he says, while waiting for other stuff to compile
00:19
<@AnnoDomini>
Whut?
00:20
<@McMartin>
I had a silly idea as to why it might freak out based on an old problem I had in UQM. Not present here, though, so.
00:23 You're now known as TheWatcher[zZzZ]
00:24
<@AnnoDomini>
Do real programs take forever to compile? :P
00:26
<@McMartin>
When written in C++? Yes~
00:26
<@McMartin>
That said, your sample program only took me a couple seconds.
00:27
<@ToxicFrog>
I've worked on systems that took upwards of an hour to do a cold build.
00:28
<@MyCatVerbs>
AnnoDomini: yes, but try an Athlon. =)
00:32
<@AnnoDomini>
How do you set the title of the window, where it says 'SDL_app'?
00:33
<@McMartin>
It's something like SDL_SetWMCaption or something; check the docs.
00:34
<@AnnoDomini>
Ah, I just put it too early.
00:34
<@McMartin>
Changing the icon is trickier, and both OS- and Compiler-specific. I don't know how to do it for MinGW.
00:40
<@AnnoDomini>
I managed it just fine, somehow.
00:46
<@ToxicFrog>
McMartin: window icon SDL has something for.
00:46
<@ToxicFrog>
(as opposed to executable icon)
00:46 * AnnoDomini has realization why there's a screwed up amount of apples.
00:47
<@AnnoDomini>
If an apple spawns under the snake, it's overwritten later as part of the snake rather than an apple, and then into nothing.
00:58
<@AnnoDomini>
Well, I think that's it. Not sure.
01:23
<@AnnoDomini>
The problem doesn't seem to be recurring now.
01:35 * AnnoDomini adds collisions with self and walls, a visible boundary around the edges, a score counter (albeit only outputting to stdout.txt) and a bitmap for apples.
01:40
<@ToxicFrog>
For the score counter, look at the SDL_gfx text functions
01:41
<@ToxicFrog>
stringColor(surface, x, y, const char * text, uint32_t colour)
01:41
<@ToxicFrog>
Not as pretty as SDL_ttf, but easy to use.
01:47
<@McMartin>
Also has a pleasing retro ambiance.
01:50
<@AnnoDomini>
Do I need to include something to get access to this?
01:58
<@AnnoDomini>
Hmm, no. I do not.
01:59
<@AnnoDomini>
Now the problem arises how to convert my score int into something compatible with 'char *c'.
02:04
<@McMartin>
snprintf.
02:04
<@McMartin>
Or, for C++, strstream.
02:04
<@McMartin>
C style:
02:05
<@McMartin>
char buf[81];
02:05
<@McMartin>
buf[80] = 0;
02:05
<@McMartin>
snprintf(80, "Score: %d", score);
02:05
<@McMartin>
Er
02:05
<@McMartin>
snprintf(buf, 80, "Score: %d", score);
02:05
<@McMartin>
C++ style:
02:05
<@McMartin>
std::strstream ss;
02:05
<@McMartin>
ss << score;
02:05
<@McMartin>
const char *chars = ss.c_str();
02:06
<@McMartin>
buf[81] is compatible with char *c
02:06
<@AnnoDomini>
Mm'kay. What do I have to include here?
02:06
<@McMartin>
snprintf should be part of stdio.h, which you've already included, IIRC.
02:08
<@AnnoDomini>
Thank you.
02:08
<@McMartin>
(Also, you're being kind of inconsistent about mixing C and C++; what's your intended language here?)
02:11
<@AnnoDomini>
('Whatever works' would be my guess. I haven't been going out of my way to use OOP.)
02:17
<@AnnoDomini>
Right. I'm going to sleep. http://pastie.org/345301 <- Source. http://www.sendspace.pl/file/puREWs1I/ <- Source, executable and bitmaps.
02:17 AnnoDomini [~farkoff@Nightstar-29289.neoplus.adsl.tpnet.pl] has quit [Quit: My life fades. The vision dims. All that remains are memories. I remember a time of chaos. Ruined dreams. This wasted land. But most of all, I remember the Road Warrior. The man we called "Max".]
02:37
<@McMartin>
AD's a fast study.
02:39
<@McMartin>
The code is pretty terrifying, but this is easily at "sharp but unschooled".
02:40
<@McMartin>
I think our next task is to urge him to break this stuff into functions. >_<
02:42
<@McMartin>
The actual functionality is almost all there.
02:43
<@Consul>
At least he actually makes something. I have a serious case of "paralysis by analysis."
02:43
<@McMartin>
Yeah, pretty much - and this is why we keep urging everyone to Just Write, Dammit.
02:44
<@McMartin>
The only thing that's kind of messed up is that hitting X or Alt-F4 displays the Game Over screen for five seconds before quitting.
02:44
<@McMartin>
Everything else looks pretty good.
02:46
<@McMartin>
From a user standpoint, that is. It could stand to have a Play Again? sequence or some such but dealing with that should wait until this has been refactored more thoroughly.
02:46
<@McMartin>
I'd say his priorities should be, in this order:
02:47
<@McMartin>
(a) Making the four lines or so of code changes that let it be valid C99;
02:47
<@McMartin>
(b) Refactoring so that most of the game code lives in side functions to make the code clearer;
02:48
<@McMartin>
(c) Using these enhancements to make it check input more frequently (say, 50Hz) and then only act on it at the appointed times (2Hz).
02:48
<@McMartin>
(d) More interactive Game Over sequence that lets you play again or quit as desired.
02:48
<@McMartin>
(d) requires (c) requires (b).
02:49
<@McMartin>
I suppose I should write this up somewhere where he'll actually be able to see it tomorrow morning. =P
03:19
<@McMartin>
http://www.stanford.edu/~mcmartin/misc/snake-comments.txt Comments on the comments?
03:56 * Vornicus reads the comments.
03:57 * Vornicus thinks the comments are good.
04:03
< Vornicus>
Oh, McM: I'm looking around in the Inform Standard Library and trying to figure out what actions you can't do in the dark - the docs don't say.
04:28
<@ToxicFrog>
The I7 manual has serious navigational difficulties.
04:33
<@McMartin>
Generally speaking, nothing is touchable or visible in the dark unless it is also held.
04:34
<@McMartin>
Thus, basically anything requiring a noun.
04:37
<@McMartin>
(Also, it is thus not a matter of actions; TURN ON FLASHLIGHT is fine if you're carrying it, doomed if you aren't, in the dark.)
04:38
<@McMartin>
(Also thus, TURN ON LIGHT SWITCH is doomed, to the considerable annoyance of many an implementor, unless you do scope hacking.)
04:38
<@ToxicFrog>
Jesus, i7gnome has lots of dependencies.
04:38
<@McMartin>
Be glad the version that was written in Haskell didn't become the official one.
04:38
<@McMartin>
(TADS 3 solves this by letting you make the light switch 'glow' just enough to be scopable but not enough to illumine anything else.)
04:40
<@ToxicFrog>
And configure finally succeeds
04:40
<@ToxicFrog>
You know what would be awesome? If configure reported all missing dependencies rather than just the first one it finds.
04:40
<@ToxicFrog>
What would be even better? If autoconf didn't suck.
04:41
<@ToxicFrog>
Oh hey, it missed one
04:41
<@ToxicFrog>
Also: why the fuck does GNOME-I7 require SDL_mixer
04:42
<@McMartin>
The integrated Glulx terp, most likely.
04:42
<@McMartin>
I should pack
04:42
<@McMartin>
But first:
04:42
<@McMartin>
DODGESQUARE
04:42
<@ToxicFrog>
KATBAL
04:44
<@McMartin>
I still can't get over how earwormy the Dodgesquare theme is.
04:44
<@McMartin>
Killing Bahamut in the face will wait until after I pack.
04:45
<@ToxicFrog>
Dodgesquare theme?
04:45
<@McMartin>
Dodgesquare is one of the bonus games in Within a Deep Forest.
04:45 * McMartin tends to get killed because he keeps making his dude dance to the music instead of not getting horribly slaughtered.
04:47
<@ToxicFrog>
Aah.
04:48
<@ToxicFrog>
I never unlocked the bonus games, so
04:48
<@ToxicFrog>
Whee, it still doesn't build
04:48
<@ToxicFrog>
Says that I need "ni", "inform-6.31-biplatform", and "cBlorb"
04:49
<@McMartin>
Those are the closed-source tools that are the core of the actual thing.
04:49
<@McMartin>
Maybe you also need the cmdline i7 installed?
04:50 * McMartin dunno
04:50
<@McMartin>
5109!
04:50
<@McMartin>
Personal best.
04:54
<@ToxicFrog>
Hmm. Ok. So I need to find those rools.
04:54
<@ToxicFrog>
*tools.
04:54
<@McMartin>
inform-fiction.com
04:58
<@ToxicFrog>
Yeah. But where?
04:58
<@ToxicFrog>
Oh, wait
04:58
<@ToxicFrog>
.com?
04:58
<@McMartin>
Whatever the normal site is.
04:58
<@McMartin>
Under download, with everything else.
04:59
<@McMartin>
.org
04:59
<@McMartin>
"CLI Linux built for i386 Linux Architectures."
04:59
<@McMartin>
I'm assuming here that you can't just use the rpms and debs that prebuild the IDE already.
05:01
<@ToxicFrog>
I'm atually having another go at getting the FC10 package to install
05:02
<@ToxicFrog>
Zypper is being annoying about dependencies
05:13
<@ToxicFrog>
Wow.
05:13
<@ToxicFrog>
5U92 is much nicer than the last one I used.
05:13
<@ToxicFrog>
It doesn't fold, but it has a headings menu, which is fine.
05:13
<@ToxicFrog>
Although the headings button doesn't seem to do anything.
05:25
<@McMartin>
(Mac version folds/cuts)
05:26
<@ToxicFrog>
This just has a little dropdown listing all the sections, and I can frob one to jump to it.
05:27
<@McMartin>
That works too
05:28
<@ToxicFrog>
"A kitten is a kind of animal.
05:28
<@ToxicFrog>
A kitten can be drugged. A kitten is usually not drugged.
05:28
<@ToxicFrog>
"
05:28
< Vornicus>
NO DRUGGING KITTENS
05:28
< Vornicus>
KITTENS GET TENS, NOT E
05:29
<@ToxicFrog>
It's necessary to get the power back online!
05:32
<@ToxicFrog>
Oh hey, here's the preprocessor:
05:32
<@ToxicFrog>
awk '/^!include/ { $$1=""; system("echo [ include: " $$0 " ]"); system("cat " $$0); next; } { print $$0; }'
05:32
< Vornicus>
Sweet.
05:34
<@ToxicFrog>
On the other hand, my nanolathe implementation seems to be missing
05:45 * ToxicFrog does find his old notes about the > CREATE BEES ending
08:11 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has quit [Ping Timeout]
08:11 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has joined #code
08:11 mode/#code [+o GeekSoldier] by ChanServ
09:00 Vornicus is now known as Vornicus-Latens
09:45 You're now known as TheWatcher
10:15 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has quit [Ping Timeout]
10:17 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has joined #code
10:17 mode/#code [+o GeekSoldier] by ChanServ
10:49 AnnoDomini [~farkoff@Nightstar-29222.neoplus.adsl.tpnet.pl] has joined #Code
10:49 mode/#code [+o AnnoDomini] by ChanServ
11:20 You're now known as TheWatcher[afk]
12:48 Serah [~Z@87.72.35.ns-26506] has joined #Code
12:48 mode/#code [+o Serah] by ChanServ
12:59 Reiver [~reaverta@Nightstar-7117.xdsl.xnet.co.nz] has quit [Quit: I ATENT'T DEAD]
13:31 You're now known as TheWatcher
14:02 Reiver [~reaverta@Admin.Nightstar.Net] has joined #Code
14:02 mode/#code [+o Reiver] by ChanServ
14:59 crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Connection reset by peer]
14:59 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
17:06 You're now known as TheWatcher[afk]
17:19 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has quit [Ping Timeout]
18:47 You're now known as TheWatcher
19:08 Alek [~omegaboot@Nightstar-25985.dsl.emhril.sbcglobal.net] has quit [Quit: ]
19:31 * Vornicus-Latens ....discovers a hole in Blingtanium Caverns that makes it unwinnable. Fixes it with 'Instead of dropping something when in darkness (this is the now I'll never find it rule), say "You'd better not."'
19:41
<@Consul>
Blingtanium?
19:43
< Vornicus-Latens>
That emperor of metals!
19:43 * Vornicus-Latens has a very small IF.
19:43
<@Consul>
Is it radioactive?
19:43
< Vornicus-Latens>
No. But it is extremely shineh.
19:51 * Vornicus-Latens rereleases, now that he's fixed an actual bug.
19:52 mode/#code [+oo crem Vornicus-Latens] by Vornicus-Latens
19:52
<@Vornicus-Latens>
http://vorn.dyndns.org/~vorn/blingtanium.z5
19:59
<@jerith>
Yayrelease!
20:00
<@Vornicus-Latens>
yay!
20:01
<@Vornicus-Latens>
So yeah. If you've played it before there's nothing actually new - I capitalized Blingtanium everywhere, though, and I fixed a bug hat made the game unwinnable - you can no longer drop your lantern in the dark.
20:02 * ToxicFrog starts the chant: Source! Source! Source! Source!
20:03
<@ToxicFrog>
>x cave mouth.
20:03
<@ToxicFrog>
You can't see any such thing.
20:03
<@ToxicFrog>
>x canyon wall
20:03
<@ToxicFrog>
You can't see any such thing.
20:03
<@McMartin>
In other news, http://failblog.files.wordpress.com/2008/11/fail-owned-stolen-credit-card-scam-f ail.jpg
20:03
<@Vornicus-Latens>
;_;
20:03
<@ToxicFrog>
I like the reponse to >W though
20:04
<@ToxicFrog>
And > X CRATES
20:04 Syloqs_AFH [~Syloq@Admin.Nightstar.Net] has joined #code
20:05
<@ToxicFrog>
Incidentally, McM, it looks like something in my home network is futzing with my ifmud connection
20:05
<@ToxicFrog>
Since it's working fine from here.
20:05 Syloqs_AFH is now known as Syloqs-AFH
20:07
<@McMartin>
That's wildly bizarre. It's just telnet, it shouldn't be hurting anything
20:12 * Vornicus-Latens asks his dad about rocks.
20:12
<@Vornicus-Latens>
Heh.
20:13
<@Vornicus-Latens>
So, I ask him "I'm looking for a yellowish-tanish rock that breaks vaguely cubically" because I'm thinking about the canyon wall.
20:13
<@Vornicus-Latens>
And he says "...well... pyrite does that..."
20:13
<@Vornicus-Latens>
(pyrite is better known as "fool's gold")
20:17
<@ToxicFrog>
McMartin: what I am wondering is if one or both of the NAT gateways (don't ask. topology is fucked.) is deciding that the connection is dead and dropping it.
20:18
<@Vornicus-Latens>
And yet /another/ item of interest to McM: I have just been handed a book named "Commodore 64 Sight & Sound"
20:24
<@Vornicus-Latens>
Though from looking at it I don't think anyone here would need it - it's very introductory.
20:28
<@Vornicus-Latens>
Okay. Three new sceneries added to the cave entrance.
20:32
<@ToxicFrog>
Yay :P
20:32
<+Pink>
did you ever add a response to xyzzy?
20:32
<@Vornicus-Latens>
No.
20:32
<@Vornicus-Latens>
Also, released, same place.
20:39
<@Vornicus-Latens>
(two of them were mentioned by TF; the other is a follow-on from there.)
20:50 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has joined #code
20:50 mode/#code [+o GeekSoldier] by ChanServ
21:13
<@Vornicus-Latens>
http://vorn.dyndns.org/~vorn/blingtanium.inform.zip
21:21
<@Vornicus-Latens>
(source)
22:06 Vornicus-Latens is now known as Vornicus
22:09 * Vornicus wanders through the rest of his game to see if there's anything else he needs to implement
22:21 * jerith glares at DivMod.
22:21
<@jerith>
2008/12/24 00:20 +0200 [-] /usr/lib/python2.4/site-packages/twisted/manhole/telnet.py:8: exceptions.DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
22:22
<@jerith>
One of their libraries uses a deprecated version of one of their other libraries.
22:22 * Vornicus adds one more bit of scenery. Thinks that should be it.
22:59 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out]
23:16 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
23:16 mode/#code [+o ToxicFrog] by ChanServ
--- Log closed Wed Dec 24 00:00:26 2008
code logs -> 2008 -> Tue, 23 Dec 2008< code.20081222.log - code.20081224.log >