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

[PATCH] Messagetype-option

238 views
Skip to first unread message

Pasi Kallinen

unread,
Sep 22, 2010, 4:14:40 AM9/22/10
to
This patch adds a new configuration option MSGTYPE.

This allows the user to configure whether a message always waits for --more--,
or if it's never shown, or if it's never shown more than once in row.

Patch DB: http://bilious.homelinux.org/?397
Direct URL: http://bilious.homelinux.org/~paxed/nethack/nh343-msgtype.diff


The format is
MSGTYPE=foo "string to match"
Where "foo" is one of "hide", "stop" or "norep", and the string to match
is a message to be matched, with '*' and '?' wildcard expansion.

"hide" hides the message, so it's never shown.
"stop" always prompts for --more-- after the message.
"norep" shows the message, but not again if no other message is shown in between.

("noshow" is an alias to "hide", and "more" is an alias to "stop")


For example:

# displacing pets
MSGTYPE=hide "You displaced *"
# items on floor
MSGTYPE=norep "You see here a *"
MSGTYPE=norep "You see here an *"
# delayed instadeaths
MSGTYPE=stop "You are slowing down."
MSGTYPE=stop "You find it hard to breathe."
MSGTYPE=stop "You are turning a little *"

--
Pasi Kallinen
pa...@alt.org
http://bilious.homelinux.org/ -- NetHack Patch Database

JoaoSantos

unread,
Sep 22, 2010, 5:36:39 AM9/22/10
to
> pa...@alt.orghttp://bilious.homelinux.org/  --   NetHack Patch Database

Wow. Awesome! I've always wanted this feature.
I zap a /Wishing and wish for it to be applied to NAO and that the
option doesn't need to be defined before the start of a new game.

solidsnail

TJR

unread,
Sep 22, 2010, 6:53:07 AM9/22/10
to
Wow, thank you very very much! This is better than Christmas.

Looking at the code, it seems you can define exceptions from
exceptions: the specific stuff goes first.

Is it possible to make messages show only in the control-P window? I
like to paste that buffer into grep. Can you enlarge it beyond 60
lines?

What kind of regular expressions are supported? For example, I don't
want to see battle spam, but I do want to know if someone hits my
named cat with a strong weapon (broad pick, silver saber, long
sword ...). Is it possible to configure that?

Pasi Kallinen

unread,
Sep 22, 2010, 11:25:51 AM9/22/10
to
JoaoSantos <joao.s...@gmail.com> wrote:
> On Sep 22, 9:14 am, pa...@alt.org (Pasi Kallinen) wrote:
>> This patch adds a new configuration option MSGTYPE.
>>
>
> Wow. Awesome! I've always wanted this feature.
> I zap a /Wishing and wish for it to be applied to NAO and that the
> option doesn't need to be defined before the start of a new game.
>

It's on NAO, and no, you don't have to start a new game,
just save and reload to continue your game on the new binary.

--
Pasi Kallinen
pa...@alt.org

Pasi Kallinen

unread,
Sep 22, 2010, 11:46:13 AM9/22/10
to
TJR <tilmi...@googlemail.com> wrote:
> Wow, thank you very very much! This is better than Christmas.
>
> Looking at the code, it seems you can define exceptions from
> exceptions: the specific stuff goes first.
>
> Is it possible to make messages show only in the control-P window? I
> like to paste that buffer into grep. Can you enlarge it beyond 60
> lines?
>

I haven't looked at the code how that could be done. Also, the whole
control-P window smells a bit kludgey.

> What kind of regular expressions are supported? For example, I don't
> want to see battle spam, but I do want to know if someone hits my
> named cat with a strong weapon (broad pick, silver saber, long
> sword ...). Is it possible to configure that?

Not regular expressions, just the '?' and '*' globbing.

The patch is now available on NAO.

APLer

unread,
Sep 25, 2010, 11:32:18 AM9/25/10
to
pa...@alt.org (Pasi Kallinen) wrote in
news:ggqom7-...@bilious.homelinux.org:

Do the "*"'s work unix-like or MSdog like? That is a preceeding wild
pattern allowed such as "*there is less" or just following?

Message has been deleted
0 new messages