Thread: GUI snippet
View Single Post
Old 04-02-2011, 08:45 AM   #9
KaVir
Legend
 
KaVir's Avatar
 
Join Date: Apr 2002
Name: Richard
Home MUD: God Wars II
Posts: 2,052
KaVir will become famous soon enoughKaVir will become famous soon enough
Re: GUI snippet

Well you can gag the text, but you'll still get blank lines in most clients. In my mud you regenerate every second, so handling that in-band would be really spammy - it'd be like hitting enter once per second.

The only way you can really avoid that without going out-of-band is to send the data with something that should be displayed, like your prompt (this is also how MXP handles it). But then you've got the problem that the energy bars won't refresh unless the text window updates, and that feels pretty clunky - particularly when you're regenerating every second, and are waiting for your energy bars to refill before you carry on exploring an area.

This is an issue I struggled with for a while before settling on MSDP - if you're interested. The snippet (which took lothoemas 15 minutes to add to Ansalon) allows other muds to use the same features I've spent the last year working on.
KaVir is offline   Reply With Quote