Re: Logging, keeping highlights while playing

will guaraldi <[email protected]>
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
On Mon, 3 May 2004 [email protected] wrote:
> >
> > If you want highlights to show, you'll have to bump where logger attaches
> > itself to the mud_filter_hook.  Change it from 30 to 100 (which is after
> > highlights).  That's a change in the lyntin/modules/loggier.py code at the
> > bottom.
>
> The priority thing is what I needed to know I bet, thanks.

Ok.  One thing to keep in mind is that because the logger is logging so
late in the mud_filter_hook cycle, it's logging after changes in the data
due to gags, highlights, and substitutes.

So any data that's gagged won't show up in your log.  The logger was at
priority 30 (which is before all the data transforming functions) because
we were logging the raw data from the mud as opposed to the filtered data
that you see in your terminal.  Some muds require logs for arbitration
between player characters when something happens like corpse-stealing and
such.  I'm not sure they'd want a filtered log and if there are enough
changes, they might think the filtered log was "doctored".

Anyhow, things to keep in mind.

Also, when you start the logger, you can dump everything in the databuffer
to the log.  That gives you the last 1000 lines of log text.  That's saved
me a few times in these arbitration issues.

Also, you might want to grab my hacker module.  It has commands like
printhooks which show you which functions have which priority in a given
hook at the time it's called.  It helps when you're trying to debug things
and need to know what Lyntin looks like internally in terms of what's
kicking off when.

/will

-- 
whatever it is, you can find it at http://www.bluesock.org/~willg/
except Will--you can only see him in real life.


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.