Hey nethackit, I've been working on a program to help you play nethack for awhile and I think it's about ready for other people to check out. Let me know what you think.
github.com/samfoo/noobhackPosted Nov 24, 2010, 6:37 PM UTC
Posted Nov 24, 2010, 6:37 PM UTC
Be gentle, I haven't done too much to make the release friendly for your average user. It only works in *nix and it only works in text mode.
If you download it, you might be able to install it with sudo python setup.py install, but I haven't tested on machines other than my own. Otherwise you can run it without installing like this: PYTHONPATH=pwd:$PYTHONPATH scripts/noobhack.
EDIT: You'll have to install one dependency too, I forgot. sudo easy_install vt102
There's still some bugs with the mapping and it doesn't do price identification or spell turn counting yet, but it's easy to add and will probably happen in the next couple weeks when I have time.
Let me know what you think!
Probably a stupid question, but why can it only work in *nix? Isn't python cross-platform?
It only works on *nix for several reasons:
Essentially, noobhack runs and forks nethack (creating a new running copy of the nethack program in memory) into a "pty" (a pipe terminal). This points all the input and output of nethack to a file that noobhack can then read and write to as if it were a user. Windows doesn't support pipes or pty's.
Above and beyond that, noobhack uses a terminal emulator to determine what's going on in the game at any given time. In *nix I can get away with using a vt1xx terminal emulator that I wrote, but I don't think I can do that in windows (I'm not actually sure about this).
It also uses ncurses -- a library that's used for input/output in console based applications -- to display to the console. There's not native support for the ncurses module on windows (that I'm aware of).
With that having been said... It may work in cygwin under windows, but I don't have a windows computer that I can check on. Let me know if you get it to work.
(tl;dr -- Only parts of python are fully cross-platform, and I used some that aren't)
I like the last section of the description. :P
I'd give feedback but I don't have a unix system handy at the moment. But from the description, sounds awesome!
Sounds neat. Booted into win7 right now, maybe later this weekend I'll download your script.
I've got a Valk with about half of an ascension kit going right now, but once she dies (surely any minute now), I'll give it a go.
Can this software keep track on what tiles my white @ stepped on? Traps are a leading cause of death in certain multi-conduct scenarios, so I'd like to minimize my exposure.
Yes, it could do bread crumming like that and then recolor to show the tiles you've walked on or something?
I'll pencil this in for the next release. I'm still working on how price identify is going to work, but I'll do this after that.
I just implemented and pushed breadcrumbs. There's a couple limitations:
noobhack --crumbstab. I might change this so they just always display.multiple save files? SACRILEGE!
This is great. And it's totally separate from nethack? So I can plug in the output from NAO? That's amazing. I'll have to try this out. The map view part is probably the most interesting thing about it.
Fellow redditors may also be interested in Interhack…
Awesome! I didn't know about that! Damn, I probably would have contributed if I'd known. Thanks.