Re: prompt_hook

Brazen <odbrazen-/[email protected]>
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
--- will guaraldi <[email protected]> wrote:
> On Tue, 20 Apr 2004, Chris Heilman wrote:
> >
> > I'm not remembering what the issue is, but it still seems strange to
> > remove existing functionality from the client.  I refuse to believe that
> > calling an empty hook is hurting performance.
> >
> > How would you implement something like the Portal MIP, or MXP?
> >
> In regards to MXP and MIP, both of those are just markup languages and I
> think they can both be implemented at the mud_filter_hook level.  I'm not
> sure why they would need to be implemented at the network level.

MCCP needs to be done very low down, even the telnet negotations come after
MCCP decompression.  What Will refers to as 'markup languages' are what
most mud 'protocols' are, and can be done with a text filter. Check out
ANSIStream in sandbox/leantin/ansi.py as an example of a filtering 'protocol'
handler.  It takes text in and returns marked up (color, text) pairs while
keeping a little state about the current color and unfinished sequences.
An MXP stream object could similarly just filter the text before it hits
the UI window and keep some internal state (like room exits).  So this
is easy to do in the mud_filter_hook like Will mentioned.

In regards to MIP/Portal, the cryosphere link[1] sums up my feelings nicely.
 "This closed spec has an obnoxious licence that forbids technical commentary of it.
  Only one client (portal) supports it"

Here is some non-technical commentary.  MIP is terrible, the protocol isn't
any more useful that a good set of regexps and it is designed so they can sue 
anyone that tries to implement it without giving them money.  They no longer
charge muds for implementing it because they would like to sell more clients.
And still no one cares enough to implement it.

-Brazen

[1] http://cryosphere.net/mud-protocol.html



	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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.