Archived from groups: rec.games.roguelike.nethack (More info?)
How can I retrieve the name of the character I was playing a few days
ago?
Maybe it is a bit of a dumb question, but I really don't know how to do
it. I usually make up my characters' names on the go, so after saving
my last Valkyrie's game I noticed I did not quite remember her name.
Now I need to retrieve it, so that I can continue that game. How do I
do it?
Archived from groups: rec.games.roguelike.nethack (More info?)
On 2005-02-27, Manuel <manuel.matias@gmail.com> wrote:
> How can I retrieve the name of the character I was playing a few days
> ago?
>
> Maybe it is a bit of a dumb question, but I really don't know how to do
> it. I usually make up my characters' names on the go, so after saving
> my last Valkyrie's game I noticed I did not quite remember her name.
> Now I need to retrieve it, so that I can continue that game. How do I
> do it?
Well, under unix, you could read the shell history, or simply look
in the directory where the game is saved (i.e. /var/games/nethack/save,
or simply do 'locate nethack |grep save' cause it may be somewhere else
on a different flavor/distro)- the name of the save file has the character
name in it.
If you use Windoze- then the save should still have the character
name in it- if you dont know where nethack saves things, Id imagine
you can search for nethack and look for the saves..
Archived from groups: rec.games.roguelike.nethack (More info?)
Manuel wrote:
> Manuel wrote:
>
>>How can I retrieve the name of the character I was playing a few days
>>ago?
>
> I forgot to point out that I'm using Linux. Thanks for your answers,
> I'll go try them right away.
Archived from groups: rec.games.roguelike.nethack (More info?)
On Mon, 28 Feb 2005, Janis Papanagnou wrote:
> Manuel wrote:
> > Manuel wrote:
> >
> >>How can I retrieve the name of the character I was playing a few days
> >>ago?
> >
> > I forgot to point out that I'm using Linux. Thanks for your answers,
> > I'll go try them right away.
>
> Have a look at the files in the directory
>
> /usr/games/lib/nethackdir/save/
Archived from groups: rec.games.roguelike.nethack (More info?)
Jym wrote:
> On Mon, 28 Feb 2005, Janis Papanagnou wrote:
>>Manuel wrote:
>>>Manuel wrote:
>>>
>>>>How can I retrieve the name of the character I was playing a few days
>>>>ago?
>>>
>>>I forgot to point out that I'm using Linux. Thanks for your answers,
>>>I'll go try them right away.
>>
>>Have a look at the files in the directory
>>
>>/usr/games/lib/nethackdir/save/
>
> My save is in /var/games/nethack/save/
If you search the Nethack source directory tree for the string /var/games
and /usr/games only /usr/games is shown; you'll find comments and #defines
stating /usr/games/lib/nethackdir as "usual" location for the playground.
If it's not in the standard path with the OP's linux distribution he has
to issue a find command, like...
Archived from groups: rec.games.roguelike.nethack (More info?)
On 2005-02-28, Janis Papanagnou <Janis_Papanagnou@hotmail.com> wrote:
> If it's not in the standard path with the OP's linux distribution he has
> to issue a find command, like...
>
> find /usr /var /whatever -type f | grep nethack
>
well, you want to find a directory for one thing- so you would really
want -type d, but you may as well have find filter the names instead
of using grep, with -name
but.. you could instead use locate, which is faster, since it searches
a database rather than the entire filesystem
(and since the OP has obv had nethack on his system for a non-trivial
ammount of time, the locatedb should be up to date on where it is)
Archived from groups: rec.games.roguelike.nethack (More info?)
fOn Mon, 28 Feb 2005, Janis Papanagnou wrote:
> Jym wrote:
> > On Mon, 28 Feb 2005, Janis Papanagnou wrote:
> >>Manuel wrote:
> >>>Manuel wrote:
> >>>
> >>>>How can I retrieve the name of the character I was playing a few days
> >>>>ago?
> >>>
> >>>I forgot to point out that I'm using Linux. Thanks for your answers,
> >>>I'll go try them right away.
> >>
> >>Have a look at the files in the directory
> >>
> >>/usr/games/lib/nethackdir/save/
> >
> > My save is in /var/games/nethack/save/
>
> If you search the Nethack source directory tree for the string /var/games
> and /usr/games only /usr/games is shown; you'll find comments and #defines
> stating /usr/games/lib/nethackdir as "usual" location for the playground.
the /var/nethack maybe a debianism. My nethack is the debian paquet, I did
not build it from sources.
> If it's not in the standard path with the OP's linux distribution he has
> to issue a find command, like...
>
> find /usr /var /whatever -type f | grep nethack
Archived from groups: rec.games.roguelike.nethack (More info?)
On Mon, 28 Feb 2005, Janis Papanagnou wrote:
> If it's not in the standard path with the OP's linux distribution he has
> to issue a find command, like...
>
> find /usr /var /whatever -type f | grep nethack
Or just
grep "HACKDIR=" `which nethack`
to get NetHack's base directory.
Archived from groups: rec.games.roguelike.nethack (More info?)
Andrew D. Hilton wrote:
> On 2005-02-28, Janis Papanagnou <Janis_Papanagnou@hotmail.com> wrote:
>
>>If it's not in the standard path with the OP's linux distribution he has
>>to issue a find command, like...
>>
>>find /usr /var /whatever -type f | grep nethack
>
> well, you want to find a directory for one thing- so you would really
> want -type d, but you may as well have find filter the names instead
> of using grep, with -name
No, I wanted to search nethack _files_, not directories. I'd use -type d
_if_ I would know the directory name. E.g. on some Suse distribution you
could find "/usr/games/nethack340-suse/" as directory name.
> but.. you could instead use locate, which is faster, since it searches
> a database rather than the entire filesystem
> (and since the OP has obv had nethack on his system for a non-trivial
> ammount of time, the locatedb should be up to date on where it is)
No, you can't expect locate to be active on a linux system:
"locate: not found [No such file or directory]".
The most likely result you get, IMO, to look for a _file_ with a name
containing the substring 'nethack'.
Archived from groups: rec.games.roguelike.nethack (More info?)
Philipp Lucas wrote:
> On Mon, 28 Feb 2005, Janis Papanagnou wrote:
>
>>If it's not in the standard path with the OP's linux distribution he has
>>to issue a find command, like...
>>
>>find /usr /var /whatever -type f | grep nethack
>
> Or just
> grep "HACKDIR=" `which nethack`
> to get NetHack's base directory.
Only if there is a relation between the location of the executable and
the playground which must not be the case. The "debian's" might tell us
where the nethack executable (or start-script) is located when the data
is beneath /var/... (maybe /usr/bin, /usr/local/bin, /usr/games/bin ?)
Archived from groups: rec.games.roguelike.nethack (More info?)
On Mon, 28 Feb 2005, Janis Papanagnou wrote:
> Philipp Lucas wrote:
> > On Mon, 28 Feb 2005, Janis Papanagnou wrote:
> >
> >>If it's not in the standard path with the OP's linux distribution he has
> >>to issue a find command, like...
> >>
> >>find /usr /var /whatever -type f | grep nethack
> >
> > Or just
> > grep "HACKDIR=" `which nethack`
> > to get NetHack's base directory.
>
> Only if there is a relation between the location of the executable and
> the playground which must not be the case. The "debian's" might tell us
> where the nethack executable (or start-script) is located when the data
> is beneath /var/... (maybe /usr/bin, /usr/local/bin, /usr/games/bin ?)
Archived from groups: rec.games.roguelike.nethack (More info?)
begin quoting Janis Papanagnou <Janis_Papanagnou@hotmail.com>:
>Jym wrote:
>>locate nethack | grep save
>>should work fine.
>Unfortunately you can't expect locate to be active on any Unix-like
>system including Linux.
Locate should be present with a recent updatedb on any Debian system that
hasn't been deliberately screwed up.
--
David Damerell <damerell@chiark.greenend.org.uk> Distortion Field!
Today is Teleute, March.
Archived from groups: rec.games.roguelike.nethack (More info?)
David Damerell <damerell@chiark.greenend.org.uk> wrote:
> begin quoting Janis Papanagnou <Janis_Papanagnou@hotmail.com>:
>>Jym wrote:
>>>locate nethack | grep save
>>>should work fine.
>>Unfortunately you can't expect locate to be active on any Unix-like
>>system including Linux.
>
> Locate should be present with a recent updatedb on any Debian system that
> hasn't been deliberately screwed up.
I believe that 'locate' is available in the base system on all 3 of the
free BSDs and in most base systems of the major linux distros. It also
seems to be included with Solaris. Its not _S_tandard, but it tends to
be _s_tandard.
If you want _S_tandard, the 'find' command should be on any decent
*n[ui]x system that tries to conform to any reasonable standard:
--
With sufficient thrust, pigs fly just fine. However, this is
not necessarily a good idea. It is hard to be sure where they
are going to land, and it could be dangerous sitting under them
as they fly overhead. -- RFC 1925
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.