Page 1 of 1

Forced scroll option?

Posted: Tue Jul 09, 2024 11:20 am
by Ancient
Hi,

I've been using Mudlet for a while now, it is a very versatile client, but one thing is missing that's making it hard to keep up with what's happening while playing: scrolling text.

As it is now, no matter how much text comes in from the mud, the whole block of text just appears at once after the previous prompt, so it sometimes is very hard to notice that something actually happened, as the eyes did not register any movement (at least this old geezer's eyes), and I just keep staring at the screen waiting for a response from the mud. This is true with rooms with similar/same descriptions, e.g. when moving down a road or something, but following combat rounds can be challenging as well, as the number of lines vary round by round and I lose track of where the previous prompt "jumped".

In light of this, would it be possible to add a forced scroll option to Mudlet, where the user could specify a wait time after each (new)line from the mud in milliseconds (ms), before actually outputting the next line of text from the mud? I.e. the desired result would be scrolling (upwards moving) lines of text, by which I mean it would scroll up line by line (not smoothly pixel by pixel, that would be weird).

I have no idea how long the pause would have to be for the result to look like scrolling text, but say e.g. 10ms/line would mean 200ms = 0.2s for 20 lines of text, which doesn't seem that bad given normal reading / reaction times. I realize professional PKers shudder at the thought of adding artificial lag to a mud, but that's why the default forced scroll setting would be 0ms (with a recommended value mentioned to achieve the scrolling effect).

I guess if technically possible, the wait time should only apply when more than 1 line of text comes in (i.e. no wait time added for pressing enter to just get an updated prompt) - though this is likely negligible, if we are talking about a few (?) milliseconds.

Thanks for consideration!

Re: Forced scroll option?

Posted: Wed Jul 10, 2024 11:43 am
by Zooka
Hey Ancient, I'd enjoy working on something with you for this.

But perhaps in the mean time you could try turning on the timestamps (lower right hand corner, "I" symbol), at least then you be able to discern changes in the incoming text?

Talk soon.

Re: Forced scroll option?

Posted: Wed Jul 10, 2024 1:22 pm
by Zooka
Hey Ancient,

I've got a version available at https://zookaongit.github.io/mudlet-pac ... g.mpackage

Download it and install using the Package Manager under Toolbox (Alt+O).

You can change the delay/timer in the script editor timers window to a value that you're comfortable with (default to 0.1 seconds) and turn it on or off by issuing;

Code: Select all

> delay on
> delay off
Let me know how you go!

Re: Forced scroll option?

Posted: Wed Jul 10, 2024 2:25 pm
by Ancient
Hi,

Thanks, though I was thinking this as a built-in option in the client, so that all the basic stuff such as triggers would work normally (which is essential, really). But I hope to be able to at least test the package some time (when I make a new character) to see what might be a suitable delay for the scrolling effect.

The timestamps might help a bit, though not really what I'm looking for with this, but I'll try that too and see how it looks/feels.

Re: Forced scroll option?

Posted: Wed Jul 10, 2024 4:25 pm
by Zooka
It's all fixed now and works with triggers. You can get the latest at the above link.

Optional packages like this are designed for extending core functionality, because not everyone wants or needs all those features so it's best not to bloat the core program.

Hope this helps.

Re: Forced scroll option?

Posted: Thu Jul 11, 2024 5:43 pm
by Ancient
Ok, I played around with it a bit, but it seems buggy, as pretty soon an error message appears "ERROR: invalid line numbe" and no more prompts come in from the mud.

Also the default 0.1s seems way too slow =), I tried a setting of 0.01s, but unsure if it actually took effect before the error messages started appearing.

Here's a log snippet of setting the delay and then setting it on (seemed that maybe the delay has to be off, when you try to set it?):
[Exits: down]
The Academy Prefect is here, welcoming and directing new students.
civilized <100%hp 100%m 100%mv 1750tnl (50.00%) 8 AM>
delay 0.01
Queue delay set to 0.01 seconds.

l
The Great Portal
You have decided to become a hero of Thera. A legend, as it were. You will
become one of the greats, one of the adventurers. Warrior, shadow, cleric,
musician or mage, you know the world has more to offer you than the average
life you lived before this. You cast away your old life and embrace a new
destiny of greatness. Bags packed and ready for the destiny before you, the
first step is to learn how to do it. You arrive at the Great Academy of
Thera. Every legend, every great mortal of both good and evil made their
start here, and you could be the next one emblazoned on the history books.
A portal swirls beneath your feet, leading into the fabled Academy.

[Exits: down]
The Academy Prefect is here, welcoming and directing new students.
civilized <100%hp 100%m 100%mv 1750tnl (50.00%) 8 AM>
delay on
Syntax: delay <seconds>

Recommended values:
0.1 - notes, descriptions and roles
1 - pen
5+ - storytelling

Bear in mind there is no stopping a queue once it begins. Use with caution.

Delayed scrolling ON.
l
civilized <100%hp 100%m 100%mv 1750tnl (50.00%) 9 AM>
The Great Portal
You have decided to become a hero of Thera. A legend, as it were. You will
become one of the greats, one of the adventurers. Warrior, shadow, cleric,
musician or mage, you know the world has more to offer you than the average
life you lived before this. You cast away your old life and embrace a new
destiny of greatness. Bags packed and ready for the destiny before you, the
first step is to learn how to do it. You arrive at the Great Academy of
Thera. Every legend, every great mortal of both good and evil made their
start here, and you could be the next one emblazoned on the history books.
A portal swirls beneath your feet, leading into the fabled Academy.

[Exits: down]
The Academy Prefect is here, welcoming and directing new students.
ERROR: invalid line numbe