Discussion:
unnethack - configuration file
(too old to reply)
k***@gmail.com
2013-03-22 07:23:08 UTC
Permalink
Hi there,

I have been trying to locate configuration file for unnethack v. 4.0.0 but with no success. I would like to be able to have some options set fixed once and for all, especially num_pad, name, boulder and mail.

Can anyone help me out?
Patric Mueller
2013-03-22 16:21:03 UTC
Permalink
Post by k***@gmail.com
Hi there,
I have been trying to locate configuration file for unnethack v. 4.0.0
but with no success. I would like to be able to have some options set
fixed once and for all, especially num_pad, name, boulder and mail.
Can anyone help me out?
On Windows it looks for a file called "defaults.unh" in the same
directory as the binary is. On Linux or any other Unix system it is
looking in your home directory for ".unnethackrc".

But if those files are not found, it will fall back and try to look
for the vanilla configurations files ("defaults.nh", ".nethackrc").

Bye
Patric
--
NetHack-De: NetHack auf Deutsch - http://nethack-de.sf.net/

UnNetHack: http://apps.sf.net/trac/unnethack/
pope_11
2013-03-22 16:55:48 UTC
Permalink
Post by Patric Mueller
Post by k***@gmail.com
Hi there,
I have been trying to locate configuration file for unnethack v. 4.0.0
but with no success. I would like to be able to have some options set
fixed once and for all, especially num_pad, name, boulder and mail.
Can anyone help me out?
On Windows it looks for a file called "defaults.unh" in the same
directory as the binary is. On Linux or any other Unix system it is
looking in your home directory for ".unnethackrc".
But if those files are not found, it will fall back and try to look
for the vanilla configurations files ("defaults.nh", ".nethackrc").
Bye
Patric
--
NetHack-De: NetHack auf Deutsch - http://nethack-de.sf.net/
UnNetHack: http://apps.sf.net/trac/unnethack/
Thanks for answer Patric,

however I still have problems locating those files. I am running Xubuntu 12.10, and I'm not able to locate .unnethackrc nor defaults.nh nor .nethackrc

I don't have vanilla Nethack installed. I have complicated Unnethack from the source that I downloaded from your project at Sourceforge. The only configuration-like file is "nhdat.txt". Where I can locate this files?

My second question is: how can I play with tiles?
pope_11
2013-03-23 02:15:41 UTC
Permalink
Post by k***@gmail.com
Hi there,
I have been trying to locate configuration file for unnethack v. 4.0.0 but with no success. I would like to be able to have some options set fixed once and for all, especially num_pad, name, boulder and mail.
Can anyone help me out?
I managed to answer my own question as to configuration file. If there's not a configuration file in your home directory, simply create .unnethackrc and edit its contents. I paste some file I found online, which also works for me.

# Sample .unnethackrc file
#

# Window systems
# Options are tty, x11. qt, gtk
# but not all of these are necessarily compiled in
OPTIONS=windowtype:tty
OPTIONS=color
# Backticks are sometimes hard to recognize
OPTIONS=boulder:0

# names for pets
OPTIONS=catname:Fuzzy
OPTIONS=dogname:Rover
OPTIONS=horsename:Trigger

# Autopickup options
# Autopickup all the things you would pick up anyway
# In order: money, potions, spellbooks, rings, amulets,
# scrolls, and wands
OPTIONS=pickup_types:$!+="?/
#OPTIONS=autopickup
# You can always hit `@' to turn on (toggle) autopickup.
OPTIONS=!autopickup

# Autodig
OPTIONS=autodig

# Favorite fruit
OPTIONS=fruit:strawberry

# Turn on numberpad movement
# Be sure to turn on numlock or this won't work
#OPTIONS=number_pad
# Or just use vi-like bindings
OPTIONS=number_pad

# Show experience on the status line
OPTIONS=showexp

# Fix inventory letters
# If you aquire an item, drop it, then pick it up again
# it will retain the same inventory letter
# Sort your pack contents by type when viewing your inventory
OPTIONS=fixinv
OPTIONS=sortpack

# Makes pets more visible
# Don't allow attacking your pet
OPTIONS=hilite_pet
OPTIONS=safe_pet

# verbose messages in the game
OPTIONS=verbose

# Ask for confirmation before attacking peaceful creatures
OPTIONS=confirm
Patric Mueller
2013-03-23 20:08:03 UTC
Permalink
Post by pope_11
I managed to answer my own question as to configuration file. If there's
not a configuration file in your home directory, simply create
.unnethackrc and edit its contents. I paste some file I found online,
which also works for me.
Ah, that was the problem. There is also the default config file of
un.nethack.nu that you can have a look at:
http://un.nethack.nu/default-unnethackrc

Now a build with tiles on Linux is a bit tricky. There is only the X11
interface that might work but it isn't really tested. Also, the tiles
aren't currently updated with the newest monsters, so it isn't
probably useful at all.

In 4.0.0 the configure script has it disabled so you need to checkout
the development code (you need to have the "subversion" package
installed:

svn co https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk unnethack-dev

Then you can run the configure script with the additional parameter
--enable-x11-graphics and you will get an X11 version when compiling.

Bye
Patric
--
NetHack-De: NetHack auf Deutsch - http://nethack-de.sf.net/

UnNetHack: http://apps.sf.net/trac/unnethack/
pope_11
2013-03-24 00:13:44 UTC
Permalink
Thanks a lot Patric!

As far as I know you are the developer of Unnethack. Since the game is great I have couple of questions I would like to ask you about:

1) Could you include this sample configuration file in new release along with some description, how to set it up? I myself don't like posting questions on forums and I have spend couple of hours trying to figure out what I am doing wrong.

2) How can I disable mail daemon in options? I guess I have tried every combination that came to my mind, with no result.

3) When are you planning next release? You have included new level on Unnethack server but there's no info on downloadable version.

4) What is a reason for a delay while playing on server? I use telnet via linux console to play and the gameplay seems rather slow compared to version played locally.

Anyway, thanks a lot for a great continuation of the game!
Patric Mueller
2013-03-24 11:41:58 UTC
Permalink
As far as I know you are the developer of Unnethack. [...]
Yes, that's correct.
1) Could you include this sample configuration file in new release along
with some description, how to set it up? I myself don't like posting
questions on forums and I have spend couple of hours trying to figure
out what I am doing wrong.
The curse of Unix. You have to learn how things work. With the win32
version there is a default config file in the same directory as the
binary. But at least you've learned something that might you need in
future as well. Many programs on Linux use config files in your home
directory with filenames that start with a ".".

It's the same as the config file for vanilla, so NetHackWiki could
have helped. In general you can always try doing it as in vanilla.
Most of the times this will also work in UnNetHack.

I might look into setting up a default config file when you start the
game for the first time.
2) How can I disable mail daemon in options? I guess I have tried every
combination that came to my mind, with no result.
OPTIONS=!mail
3) When are you planning next release? You have included new level on
Unnethack server but there's no info on downloadable version.
The current plans are to have a release candidate ready for junethack
and after the tournament has finished doing a proper release.
4) What is a reason for a delay while playing on server? I use telnet
via linux console to play and the gameplay seems rather slow compared to
version played locally.
This depends on where you are located on this planet. un.nethack.nu is
in Germany and if you are for example in the USA it takes about 200
milliseconds for your key presses to reach the server and then the
game reactions back to you to display on your monitor.

You can measure the delay by issuing this command:
ping un.nethack.nu

The way our mind works, as long as the delay is below 100
milliseconds, we don't notice this delay and it feels instantaneous
and it should feel like playing locally. For longer delays you will
get a noticeable lag.

Bye
Patric
--
NetHack-De: NetHack auf Deutsch - http://nethack-de.sf.net/

UnNetHack: http://apps.sf.net/trac/unnethack/
pope_11
2013-03-24 20:52:57 UTC
Permalink
Post by k***@gmail.com
Hi there,
I have been trying to locate configuration file for unnethack v. 4.0.0 but with no success. I would like to be able to have some options set fixed once and for all, especially num_pad, name, boulder and mail.
Can anyone help me out?
Thanks a lot for the info!

As for the delay, that's true, I'm in Canada now so the measured ping time was ~180ms. Mystery solved.

Keep up the good work!

Loading...