You are not logged in.

#1 2010-08-18 06:06:02

ptmkenny
Member
From: Tokyo
Registered: 2010-06-11
Posts: 14

Nethack NETHACKDIR variable in .nethackrc (SOLVED)

Greetings,

I use several different computers and they are all linked through Dropbox.  I thought it would be nice to use the same save data from Nethack on all the different computers, and I discovered that you can set the variable NETHACKDIR in .nethackrc to designate the directory of the save files.

Unfortunately, I created a .nethackrc in my home directory with the following line:
NETHACKDIR=/home/username/Dropbox/nethack

but when I execute Nethack I receive the following error: Bad option line: "NETHACKDIR=/home/username/Dropbox/nethack"

Any thoughts on how to get this to work?  I poked around Google but all I could find were examples of using .nethackrc to change colors.

Patrick

Last edited by ptmkenny (2010-08-19 00:49:53)

Offline

#2 2010-08-18 15:44:31

Cyrusm
Member
From: Bozeman, MT
Registered: 2007-11-15
Posts: 1,053

Re: Nethack NETHACKDIR variable in .nethackrc (SOLVED)

what happens when you try it with

nethack -d /home/username/Dropbox/nethack


this should over ride the NETHACKDIR environment variable, might give some clues for troubleshooting.


Hofstadter's Law:
           It always takes longer than you expect, even when you take into account Hofstadter's Law.

Offline

#3 2010-08-19 00:49:36

ptmkenny
Member
From: Tokyo
Registered: 2010-06-11
Posts: 14

Re: Nethack NETHACKDIR variable in .nethackrc (SOLVED)

That worked, so I just made a bash alias and decided to give up on the NETHACKDIR variable.

Thank you!

Offline

Board footer

Powered by FluxBB