Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Amiga/Linux/Windows mail option question

0 views
Skip to first unread message

Robert

unread,
Aug 14, 2002, 8:21:46 AM8/14/02
to
I've been playing NH for a while now. I started when I found it on my SUSE
Linux CD, and soon I was playing it on Windows (at school) too. Now, I have
had an Amiga since I was like 8 years old (A1200 for those of you that
remember) and decided to install it there too, since the Amiga stands in my
bedroom.
Yesterday I was happily wandering around the dungeon with my elven Ranger
when suddenly, a light blue demon came up to me and said "Hello Telperion, I
have some mail for you" or something like that. The point is, my Amiga
doesnt have an internet connection and it turned out the mail scroll I
received read "Welcome to Nethack". These scrolls keep on coming and I like
it, it's like fortune in UNIX systems. Anyway, I want to have this in my
Windows/Linux versions too. Merely setting the 'mail' option to true doesn't
help, so I was wondering if it's something I have to recompile into NH. I
don't want to receive my mail in NH, i just want the funny messages i get in
the Ami version. Help!

--
In his house at R'lyeh dead Robert waits dreaming.


Rast

unread,
Aug 14, 2002, 2:23:11 PM8/14/02
to
Robert wrote on Wed, 14 Aug 2002 14:21:46 +0200 in article
<PLr69.29947$48.29...@zwoll1.home.nl>:

> Yesterday I was happily wandering around the dungeon with my elven Ranger
> when suddenly, a light blue demon came up to me and said "Hello Telperion, I
> have some mail for you" or something like that. The point is, my Amiga
> doesnt have an internet connection and it turned out the mail scroll I
> received read "Welcome to Nethack". These scrolls keep on coming and I like
> it, it's like fortune in UNIX systems.

Before you go out of your way to get this working on another system:


(really mild spoiler)


(I can't make that ^L character)

There are only six possible random "mail" messages.

static char *junk[] = {
"Please disregard previous letter.",
"Welcome to NetHack.",
#ifdef AMIGA
"Only Amiga makes it possible.",
"CATS have all the answers.",
#endif
"Report bugs to <dev...@nethack.org>.",
"Invitation: Visit the NetHack web site at http://www.nethack.org!"
};

I imagine they get really, really old after the first 50 times.

> --
^ Good old Outlook Express.

--
"Do you think that they, with their Battles, Famine, Black Death
and Serfdom, were less enlightened than we are, with our Wars,
Blockade, Influenza and Conscription?" -- T. H. White

Sam Dennis

unread,
Aug 14, 2002, 2:37:48 PM8/14/02
to

This would appear to be the relevant change:

Change line 424 in src/mail.c from
#if defined(AMIGA) || defined(MSDOS) || defined(TOS)
to
#if 1 || defined(AMIGA) || defined(MSDOS) || defined(TOS)

--
++acr@,ka"

Robert

unread,
Aug 14, 2002, 2:45:13 PM8/14/02
to

"Rast" <ra...@hotmail.com> schreef in bericht
news:MPG.17c46a1d1...@pnews.dmv.com...

> Robert wrote on Wed, 14 Aug 2002 14:21:46 +0200 in article
> <PLr69.29947$48.29...@zwoll1.home.nl>:
>
[snip]

>
> There are only six possible random "mail" messages.
>

Ah, too bad. I still like the concept so maybe I'll expand the number of
messages with my own and recompile.


Robert

unread,
Aug 14, 2002, 2:45:37 PM8/14/02
to

"Sam Dennis" <s...@malfunction.screaming.net> schreef in bericht
news:3d5aa...@mk-nntp-1.news.uk.worldonline.com...

Thanks anyway.


Sam Dennis

unread,
Aug 14, 2002, 2:58:51 PM8/14/02
to
Robert wrote:
> "Sam Dennis" <s...@malfunction.screaming.net> schreef in bericht
> news:3d5aa...@mk-nntp-1.news.uk.worldonline.com...
>> Change line 424 in src/mail.c from
>> #if defined(AMIGA) || defined(MSDOS) || defined(TOS)
>> to
>> #if 1 || defined(AMIGA) || defined(MSDOS) || defined(TOS)
>
> Thanks anyway.

Sorry? Why `thanks anyway'?

--
++acr@,ka"

Robert

unread,
Aug 14, 2002, 3:46:15 PM8/14/02
to

There are only six of those messages so it'd get pretty boring after a
while.

> --
> ++acr@,ka"


Javis Felagund

unread,
Aug 14, 2002, 3:58:49 PM8/14/02
to
"Robert" <a...@a.com> wrote in message news:<PLr69.29947$48.29...@zwoll1.home.nl>...


I think not... I'm just guessing but I think that just the Amiga and
DOS ports have that 'simulation' of a mail daemon. The other platforms
don't, and just some have a real mail daemon which delivers your mail
when it arrives at your inbox... let's hope someone more experts tell
you about it... and by the way... could it be implemented in future
versions for the other platforms? (the mail daemon simulation or even
the real arriving mail daemon...) I know... it just depends on the
platforms developers, but let's just hope that because I also like
that funny monster (but sometimes it annoys me..)

take care}

--
Javis F F

Sam Dennis

unread,
Aug 14, 2002, 4:09:15 PM8/14/02
to
Robert wrote:
> "Sam Dennis" <s...@malfunction.screaming.net> schreef in bericht
> news:3d5aa...@mk-nntp-1.news.uk.worldonline.com...
>> Robert wrote:
>> > "Sam Dennis" <s...@malfunction.screaming.net> schreef in bericht
>> > news:3d5aa...@mk-nntp-1.news.uk.worldonline.com...
>> >> Change line 424 in src/mail.c from
>> >> #if defined(AMIGA) || defined(MSDOS) || defined(TOS)
>> >> to
>> >> #if 1 || defined(AMIGA) || defined(MSDOS) || defined(TOS)
>> >
>> > Thanks anyway.
>>
>> Sorry? Why `thanks anyway'?
>
> There are only six of those messages so it'd get pretty boring after a
> while.

That's easy enough to solve: write more. Of course, some people might say
that it'd be extremely irritating no matter how varied they are.

--
++acr@,ka"

Sam Dennis

unread,
Aug 14, 2002, 4:09:15 PM8/14/02
to
Robert wrote:
> "Sam Dennis" <s...@malfunction.screaming.net> schreef in bericht
> news:3d5aa...@mk-nntp-1.news.uk.worldonline.com...
>> Robert wrote:
>> > "Sam Dennis" <s...@malfunction.screaming.net> schreef in bericht
>> > news:3d5aa...@mk-nntp-1.news.uk.worldonline.com...
>> >> Change line 424 in src/mail.c from
>> >> #if defined(AMIGA) || defined(MSDOS) || defined(TOS)
>> >> to
>> >> #if 1 || defined(AMIGA) || defined(MSDOS) || defined(TOS)
>> >
>> > Thanks anyway.
>>
>> Sorry? Why `thanks anyway'?
>
> There are only six of those messages so it'd get pretty boring after a
> while.

That's easy enough to solve: write more. Of course, some people might say

Robert

unread,
Aug 14, 2002, 4:41:10 PM8/14/02
to

"Sam Dennis" <s...@malfunction.screaming.net> schreef in bericht
news:3d5ab...@mk-nntp-1.news.uk.worldonline.com...

Yes. I'm planning to.


Dylan O'Donnell

unread,
Aug 14, 2002, 5:37:39 PM8/14/02
to
Sam Dennis <s...@malfunction.screaming.net> writes:
> Robert wrote:

[getting non-real mail on real computers]

> > There are only six of those messages so it'd get pretty boring after a
> > while.
>
> That's easy enough to solve: write more. Of course, some people might say
> that it'd be extremely irritating no matter how varied they are.

Well, the obvious move (taking a cue from the talking Quest Artifacts)
would be to grab the text from the rumours files. That way they'd be
a) varied and b) have some relevance.

Ok, why not. Here's a patch, which seems to work fine after brief
testing. The #if changes are just to persuade a Unix system that it
shouldn't be looking for real mail; tweak them to suit local
conditions. Note that the truth of the rumour depends on the buc
status of the scroll; but who's going to waste holy water on scrolls
of mail just for that? :-)


--- nethack-3.4.0/src/mail.c Wed Mar 20 23:43:07 2002
+++ nethack-3.4.0bis/src/mail.c Wed Aug 14 22:28:29 2002
@@ -40,7 +40,7 @@

#ifdef OVL0

-# if !defined(UNIX) && !defined(VMS) && !defined(LAN_MAIL)
+# if 1 || !defined(UNIX) && !defined(VMS) && !defined(LAN_MAIL)
int mustgetmail = -1;
# endif

@@ -414,14 +414,14 @@
pline("Hark! \"%s.\"", info->display_txt);
}
-# if !defined(UNIX) && !defined(VMS) && !defined(LAN_MAIL)
+# if 1 || !defined(UNIX) && !defined(VMS) && !defined(LAN_MAIL)

void
ckmailstatus()
{
if (u.uswallow || !flags.biff) return;
if (mustgetmail < 0) {
-#if defined(AMIGA) || defined(MSDOS) || defined(TOS)
+#if 1 || defined(AMIGA) || defined(MSDOS) || defined(TOS)
mustgetmail=(moves<2000)?(100+rn2(2000)):(2000+rn2(3000));
#endif
return;
@@ -439,27 +439,21 @@
readmail(otmp)
struct obj *otmp;
{
- static char *junk[] = {
- "Please disregard previous letter.",
- "Welcome to NetHack.",
-#ifdef AMIGA
- "Only Amiga makes it possible.",
- "CATS have all the answers.",
-#endif
- "Invitation: Visit the NetHack web site at http://www.nethack.org!"
- };
-
+ const char *line;
+ char buf[BUFSZ];
+ line = getrumor(bcsign(otmp), buf, TRUE);
+ if (!*line)
+ line = "NetHack rumors file closed for renovation.";
if (Blind) {
pline("Unfortunately you cannot see what it says.");
} else
- pline("It reads: \"%s\"", junk[rn2(SIZE(junk))]);
+ pline("It reads: \"%s\"", line);

}

# endif /* !UNIX && !VMS && !LAN_MAIL */

-# ifdef UNIX
+# ifdef 0

void
ckmailstatus()


--
: Dylan O'Donnell http://www.spod-central.org/~psmith/ :
: "Note that computers turn us into aliens." :
: -- Zarf, out of context :

Andrew Rodland

unread,
Aug 14, 2002, 9:00:37 PM8/14/02
to
> + line = "NetHack rumors file closed for renovation.";

This should say "closed for inventory", shouldn't it?

:)

Robin Johnson

unread,
Aug 14, 2002, 9:14:36 PM8/14/02
to
"Robert" <a...@a.com> hypothesised:

> "Rast" <ra...@hotmail.com> schreef in bericht
> news:MPG.17c46a1d1...@pnews.dmv.com...
> > Robert wrote on Wed, 14 Aug 2002 14:21:46 +0200 in article
> > <PLr69.29947$48.29...@zwoll1.home.nl>:
> >
> > There are only six possible random "mail" messages.
>
> Ah, too bad. I still like the concept so maybe I'll expand the number of
> messages with my own and recompile.

Add inches to your sword! It really works!
Certified intrinsics by post!
Dear Mum, dungeon really quite boring, food awful, monsters frie-
Forward this scroll to ten of your friends for a +5 luck bonus.
Having a hell of a time, my dear; wish you were here.
Introduce Nethack to a friend and get a 10% discount!
Looking for a cheap imitation Amulet of Yendor? Look no further!
Make zorkmids fast!
New legal herbal aternative to hallucination potions!
Police appeal: have you seen this shoplifter? -> @
You're approved for the new Platinum Yendorian Express Card!
You may already have won 10,000 zorkmids!
--
Robin Johnson
rj at robinjohnson dot f9 dot co dot uk
http://www.robinjohnson.f9.co.uk

Uwe Schuerkamp

unread,
Aug 15, 2002, 7:15:49 AM8/15/02
to
On Thu, 15 Aug 2002 01:14:36 GMT, Robin Johnson <r...@NO-SPAM-PLEASE.robinjohnson.f9.co.uk> wrote:
>> messages with my own and recompile.
>
> Add inches to your sword! It really works!
> Certified intrinsics by post!


<snip snip> Thanks, I haven't laughed that hard in quite a while!

[also submitted to a.b.b-o-u :-]

Uwe

--
mail replies to Uwe at schuerkamp dot de ( yahoo address is spambox)
Uwe Schuerkamp //////////////////////////// http://www.schuerkamp.de/
Herford, Germany \\\\\\\\\\\\\\\\\\\\\\\\\\ (52.0N/8.5E)
GPG Fingerprint: 2E 13 20 22 9A 3F 63 7F 67 6F E9 B1 A8 36 A4 61

Martin Read

unread,
Aug 15, 2002, 8:22:47 AM8/15/02
to
In article <20020814210037.2...@noln.com>,

Andrew Rodland <arod...@noln.com> wrote:
>> + line = "NetHack rumors file closed for renovation.";
>
>This should say "closed for inventory", shouldn't it?

You're not familiar with the behaviour of the Colossal Cave on multi-
user systems with site policy regarding game-playing hours, I see :)

m.
--
\_\/_/| Martin Read - my opinions are my own. share them if you wish.
\ / | though the cause is true, cannot quite break through this sign of
\/ | winter world awaits the thaw, melt the ground before they can be
------+ buried --- Manuskript, "No Reprise"

Robert

unread,
Aug 15, 2002, 9:15:59 AM8/15/02
to

"Dylan O'Donnell" <psmit...@spod-central.org> schreef in bericht
news:86lm79w...@strackenz.spod-central.org...

> Sam Dennis <s...@malfunction.screaming.net> writes:
> > Robert wrote:
>
> [getting non-real mail on real computers]
>
> > > There are only six of those messages so it'd get pretty boring after a
> > > while.
> >
> > That's easy enough to solve: write more. Of course, some people might
say
> > that it'd be extremely irritating no matter how varied they are.
>
> Well, the obvious move (taking a cue from the talking Quest Artifacts)
> would be to grab the text from the rumours files. That way they'd be
> a) varied and b) have some relevance.
>

Would that be considered as cheating? Then again, reading spoilers might be
more cheating than this is. Thanks for the code. Though I know my C/C++
quite well I've never looked into the NH source, could you tell me which .c
I have to change here?

Dylan O'Donnell

unread,
Aug 15, 2002, 9:22:51 AM8/15/02
to
"Robert" <a...@a.com> writes:
> "Dylan O'Donnell" <psmit...@spod-central.org> schreef in bericht
> news:86lm79w...@strackenz.spod-central.org...
> > Sam Dennis <s...@malfunction.screaming.net> writes:
> > > Robert wrote:
> >
> > [getting non-real mail on real computers]
> >
> > > > There are only six of those messages so it'd get pretty boring after a
> > > > while.
> > >
> > > That's easy enough to solve: write more. Of course, some people
> > > might say that it'd be extremely irritating no matter how varied
> > > they are.
> >
> > Well, the obvious move (taking a cue from the talking Quest Artifacts)
> > would be to grab the text from the rumours files. That way they'd be
> > a) varied and b) have some relevance.
>
> Would that be considered as cheating?

No more so than stumbling across rumours used as random engravings.
The scroll messages will have a 50/50 chance of coming from either the
false or true rumour files, unless you bless them, so you can't put
particularly much reliance on what they're telling you.

> Then again, reading spoilers might be more cheating than this
> is. Thanks for the code. Though I know my C/C++ quite well I've
> never looked into the NH source, could you tell me which .c I have
> to change here?

src/mail.c, as the patch header says.

Robert

unread,
Aug 15, 2002, 9:33:48 AM8/15/02
to

"Dylan O'Donnell" <psmit...@spod-central.org> schreef in bericht
news:86ofc4d...@strackenz.spod-central.org...

> "Robert" <a...@a.com> writes:
> > "Dylan O'Donnell" <psmit...@spod-central.org> schreef in bericht
> > news:86lm79w...@strackenz.spod-central.org...
> > > Sam Dennis <s...@malfunction.screaming.net> writes:
> > > > Robert wrote:
> > >
[snip]

> > could you tell me which .c I have
> > to change here?
>
> src/mail.c, as the patch header says.

Woops. :D

Dion Nicolaas

unread,
Aug 16, 2002, 4:58:41 AM8/16/02
to
psmit...@spod-central.org (Dylan O'Donnell) wrote in message news:<86lm79w...@strackenz.spod-central.org>...

> Sam Dennis <s...@malfunction.screaming.net> writes:
> > Robert wrote:
>
> [getting non-real mail on real computers]
>
> > > There are only six of those messages so it'd get pretty boring after a
> > > while.
> >
> > That's easy enough to solve: write more. Of course, some people might say
> > that it'd be extremely irritating no matter how varied they are.
>
> Well, the obvious move (taking a cue from the talking Quest Artifacts)
> would be to grab the text from the rumours files. That way they'd be
> a) varied and b) have some relevance.
>
> Ok, why not. Here's a patch, which seems to work fine after brief
> testing.
[... snipped patch]

May I suggest a small improvement there?

Keep the junk, and instead of

if (!*line)


line = "NetHack rumors file closed for renovation.";

do

if (!*line)
line = junk[rn2(SIZE(junk))];

(I wrote a junk-mail patch myself for 3.3.1...)

--
---. /) | http://www.erebus.demon.nl/dion/nethack.html
/ \ / _ _ | _ _ _ The NetHack Index at Erebus
-/ )\ | (_(_ (_) \_ ()\ ()\ \ dnic...@myrealbox.com
_/___/ \| -------------------' Dion Nicolaas

Dylan O'Donnell

unread,
Aug 16, 2002, 5:06:47 AM8/16/02
to
dnic...@myrealbox.com (Dion Nicolaas) writes:
> psmit...@spod-central.org (Dylan O'Donnell) wrote in message
> news:<86lm79w...@strackenz.spod-central.org>...

[being junkmailed rumours rather than the standard non-real mail]

> > Ok, why not. Here's a patch, which seems to work fine after brief
> > testing.
> [... snipped patch]
>
> May I suggest a small improvement there?
>
> Keep the junk, and instead of
>
> if (!*line)
> line = "NetHack rumors file closed for renovation.";
>
> do
>
> if (!*line)
> line = junk[rn2(SIZE(junk))];

To your own taste, of course :-) But this is always something that
Shouldn't Happen in a sound installation; so making it clearer that
something's wrong is preferable, I'd say.

0 new messages