G
Guest
Guest
Archived from groups: rec.games.roguelike.nethack (More info?)
All right. I'm a little tired of not having interesting things to
program, so I would like to begin the looong process of writing a
NetHack bot along with some accompanying bot-strategy development
tools.
However, while I'm a decent programmer in general, my home computer
runs Windows, and I know very little about Windows programming. After
several hours I have failed to figure out how to capture Nethack's
screen output and am feeling a little silly.
I don't read enough Perl to see how the Unix pudding-farming bot does
I/O, but it seems to only handle top-line messages. From a quick look
at the NetHack Recorder's syntax, it looks like on Unix one could just
start NetHack through a bot program, collect the standard output, send
to standard input (? Or at worst simulate keypresses), and work from
there. Is this actually true?
Does anyone know if there would be an equivalent for Windows? Does
the Windows NetHack window even know what standard output means? Is
there some other way?
I'm asking here mainly in case anybody else has tried this before or
at least is familiar with the windowing part of the code (Benjamin
Schieder, Mark Johnson, maybe Dylan, I'm looking at you). I'm also
interested to know how simple the I/O problem is on Unix... if all
else fails I've considered putting Linux on my second hard drive,
although this would cause me all sorts of overhead learning problems.
Chris
All right. I'm a little tired of not having interesting things to
program, so I would like to begin the looong process of writing a
NetHack bot along with some accompanying bot-strategy development
tools.
However, while I'm a decent programmer in general, my home computer
runs Windows, and I know very little about Windows programming. After
several hours I have failed to figure out how to capture Nethack's
screen output and am feeling a little silly.
I don't read enough Perl to see how the Unix pudding-farming bot does
I/O, but it seems to only handle top-line messages. From a quick look
at the NetHack Recorder's syntax, it looks like on Unix one could just
start NetHack through a bot program, collect the standard output, send
to standard input (? Or at worst simulate keypresses), and work from
there. Is this actually true?
Does anyone know if there would be an equivalent for Windows? Does
the Windows NetHack window even know what standard output means? Is
there some other way?
I'm asking here mainly in case anybody else has tried this before or
at least is familiar with the windowing part of the code (Benjamin
Schieder, Mark Johnson, maybe Dylan, I'm looking at you). I'm also
interested to know how simple the I/O problem is on Unix... if all
else fails I've considered putting Linux on my second hard drive,
although this would cause me all sorts of overhead learning problems.
Chris