[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  MUD Defined Fullscreen Mode

MUD Defined Fullscreen Mode

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Panaku   (34 posts)  [Biography] bio
Date Sat 02 Mar 2013 08:30 AM (UTC)
Message
Not really sure how to completely describe the problem so I'll just do what I can and hope we can fix it.

In the mud I play (Blood Dusk: mud.dusk.org port 7000) there is a configuration option called "Fullscreen" which is described as "Use VT-100 codes to split screen" if it is enabled.

What this does in telnet, putty, and at least zMUD is it takes my prompt (which displays my combat information, health and what not) and gives it a static location at the very bottom and just updates it as new information comes into play like taking damage.

If Fullscreen is off a new prompt is displayed every after every bit of output or input just as it does in MUSH.

The problem is when I turn on fullscreen in MUSH, instead of making the static prompt that updates as new information comes, it removes the prompt completely and only provides one when certain information shows up. And in some cases places multiple ones in a line which creates a lot of spam and causes the output to look rather bad.

So! Do we think there is anyway to fix this problem and get it so that I can use Fullscreen mode?
[Go to top] top

Posted by KaVir   Germany  (117 posts)  [Biography] bio
Date Reply #1 on Sat 02 Mar 2013 10:10 PM (UTC)
Message
MUSHclient doesn't support VT100, for a number of reasons - see here: http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=1268

Having said that, it's relatively easy to create or adapt a plugin to display proper graphical energy bars, and VT100 is so crude by comparison that I doubt many people would use it given a choice between the two options.
[Go to top] top

Posted by Nick Gammon   Australia  (23,042 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Sat 02 Mar 2013 11:06 PM (UTC)
Message
If all their full-screen mode does is update a prompt, you could make a plugin that detects the prompt and redirects it to a miniwindow at the bottom of the screen.

Or for that matter, even without their full-screen mode it is simple enough to detect a certain sort of line and display it elsewhere.

For example, here:

http://www.gammon.com.au/forum/?id=9626

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Panaku   (34 posts)  [Biography] bio
Date Reply #3 on Sun 03 Mar 2013 03:48 AM (UTC)
Message
Alright then, I'll check out the links from you guys and try my hand at creating a plugin to simulate the mode. I might be back asking for help though!
[Go to top] top

Posted by Panaku   (34 posts)  [Biography] bio
Date Reply #4 on Mon 04 Mar 2013 04:13 AM (UTC)
Message
Alright so I'm working on developing a plugin that will simulate fullscreen mode for MUSHclient for my mud. I have managed to create a MiniWindow which displays the prompt's information, I then omitted all prompt's from output and set it up so that the MiniWindow prompt updates perfectly on time as opposed to a line late because of a messing \n.

There are two final steps left to this project of mine, having the prompt update automatically and coloring my MiniWindow prompt to match the normal prompt as opposed to having it a single color.

I've tried using a blank timer and a timer with a pointless command to be sent every second with omit from output on, a trigger then catches what the game returns and omits that as well but this didn't work. I got it working with DeleteLines(2) on send-to-script-after-omit but it caused a horrible flicker. The main reason I want the auto-update is that in normal fullscreen mode as I heal my prompt is updated with the new information without me having to walk or enter in any other commands.

Changing the colors are going to be an issue because as numbers displayed on the prompt change they change color.

So, any suggestions on where to start?
[Go to top] top

Posted by Nick Gammon   Australia  (23,042 posts)  [Biography] bio   Forum Administrator
Date Reply #5 on Mon 04 Mar 2013 04:23 AM (UTC)
Message
Template:faq=23 Please read the MUSHclient FAQ - point 23.


That shows the general idea of pulling in colours from the matching line.

As for the omitting, I didn't quite get that bit.

There is a plugin around that adds newlines to prompts, if you can't get the MUD to do that. eg.

Template:faq=11 Please read the MUSHclient FAQ - point 11.



- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Panaku   (34 posts)  [Biography] bio
Date Reply #6 on Mon 04 Mar 2013 04:48 AM (UTC)
Message
When playing in telnet with the native Fullscreen Mode ON
If I am out of combat and start healing from damage my prompt will automatically update with the new health displayed.

This update doesn't happen unless Fullscreen is ON so I attempted to make a timer that fires every second, I don't want to see this timer though as it's point is to just update the prompt once a second so that I can see healing -- so I have it set to omit everything the timer does. The timer was providing a blank line every second though even with omit ON so I switched to using DeleteLines which worked but caused a lot of flicker as the client is deleting two lines every second.

I think I found a way to get it the auto-update on healing working though, if I enable Fullscreen Mode and continue and modify my current triggers I don't see the spam of prompts mushclient normally gets from the VT-100 codes which is great, my MiniWindow is however blocking the very last line of information the MUD output's. I understand TextRectangle can be used to fix this buy creating a buffer at the bottom -- but I couldn't figure out how to use TextRectangle.

I hope that made it a bit more clear and I'll look into the color information now.
[Go to top] top

Posted by KaVir   Germany  (117 posts)  [Biography] bio
Date Reply #7 on Mon 04 Mar 2013 01:45 PM (UTC)
Message
Quote:
The main reason I want the auto-update is that in normal fullscreen mode as I heal my prompt is updated with the new information without me having to walk or enter in any other commands.

That sort of thing is a pain to do in-band, particularly with such frequent updates. If you could convince the owner of Blood Dusk to add support for one of the out-of-band mud protocols, you'd find it much easier.

Perhaps point him to this thread: http://www.topmudsites.com/forums/mud-coding/6418-gui-snippet.html

Can't hurt to ask.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


26,438 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]