forgot character name

Manuel

Distinguished
May 6, 2004
97
0
18,630
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?

--
Manuel.
 
G

Guest

Guest
Archived from groups: rec.games.roguelike.nethack (More info?)

Typically you would have a file called %charactername%.sav if under
windows. I believe *nix is the same though it may not use the .sav at
the end.

tiny k
 

Manuel

Distinguished
May 6, 2004
97
0
18,630
Archived from groups: rec.games.roguelike.nethack (More info?)

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.
 
G

Guest

Guest
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..


--
Andrew D. Hilton
UPenn Phd Student
 
G

Guest

Guest
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.

Have a look at the files in the directory

/usr/games/lib/nethackdir/save/


Janis
 
G

Guest

Guest
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/

My save is in /var/games/nethack/save/

Hypocoristiquement,
Jym.
 
G

Guest

Guest
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...

find /usr /var /whatever -type f | grep nethack

or similar.

Janis
 
G

Guest

Guest
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)

--
Andrew D. Hilton
UPenn Phd Student
 
G

Guest

Guest
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

locate nethack | grep save
should work fine.

Hypocoristiquement,
Jym.
 
G

Guest

Guest
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.

--
Philipp Lucas
phlucas@online-club.de
 
G

Guest

Guest
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'.

Janis
 
G

Guest

Guest
Archived from groups: rec.games.roguelike.nethack (More info?)

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.

Janis
 
G

Guest

Guest
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 ?)

Janis
 
G

Guest

Guest
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 ?)

/usr/games/nethack
/usr/lib/games/nethack
/usr/share/doc/nethack|nethack-common|nethack-x11
/var/games/nethack

Hypocoristiquement,
Jym.
 
G

Guest

Guest
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.
 
G

Guest

Guest
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:

http://www.unix.org/version3/apis/cu.html


--
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
 
G

Guest

Guest
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.

Did you succeed in restarting your character?

--
Boudewijn Waijers (kroisos at home.nl).

The garden of happiness is surrounded by a wall so low only children
can look over it. - "the Orphanage of Hits", former Dutch radio show.