If you're not using format_string you can make lines as long as you want - just remember that it's going to start looking bad on people with smaller windows unless you accomodate that.
Let me just say that changing this behaviour is a relatively finicky task and should be fairly low priority.
Some MUD clients do not automatically wrap text, meaning that lines longer than 80 (or 79, I can never remember) characters will simply be cut off on those clients. This is why NM wraps outgoing text at 80 characters.
To address this you could modify mud.format_string() (in C) to simply not wrap text. Alternatively, you could remove every call to mud.format_string(), so that outgoing text simply isn't formatted.
The best solution is to use something called "Negotiate About Window Size" (NAWS). This is a Telnet sub-protocol that allows the server to ask the client how tall/wide it is. You can then use that information to wrap outgoing text to the width of user's client (80 characters by default).
You could also allow users to choose whether they want their text wrapped by the server or not (wrap by default).
NAWS is probably beyond the scope of what Thaolen can implement right now, without meaning to be disrespectful. Barring that: You know you can just do something like LINELENGTH x and then just pass that X to format_string right? It is NOT hard. It is not hard at all. It is in fact probably the easiest of any of the player configuration options I implemented.
Yeah I haven't attempted it yet, but I have thought that my mush client was the culprit or Gnome Mud client. Other muds I have played on have full screen, not all have this. You are right it wouldn't be a very good idea to take the wrap-text off. I would have to make a larger ASCII title too
NAWS is probably beyond the scope of what Thaolen can implement right now, without meaning to be disrespectful. Barring that: You know you can just do something like LINELENGTH x and then just pass that X to format_string right? It is NOT hard. It is not hard at all. It is in fact probably the easiest of any of the player configuration options I implemented.
he best solution is to use something called "Negotiate About Window Size" (NAWS).
NAWS is working on my mud and will be part of the next official release
25 Sep, 2010, David Haley wrote in the 11th comment:
Votes: 0
Quote
You could also allow users to choose whether they want their text wrapped by the server or not (wrap by default).
I think that this is the better interim solution – I find it somewhat rude when the MUD insists that my screen is only 80 characters wide even though I might have 120 (or whatever), and therefore I have to have a taller window than I might like because everything is getting prematurely wrapped.
My mud has CONFIG [LINELENGTH|WRAPWIDTH] [integer] to set the length that things get wrapped to - if you set it to 0, this disables wrapping. I've noticed format_string gets a little buggy with non-wrapped strings, though.
My mud has CONFIG [LINELENGTH|WRAPWIDTH] [integer] to set the length that things get wrapped to - if you set it to 0, this disables wrapping. I've noticed format_string gets a little buggy with non-wrapped strings, though.
thanks
Screen shot