Protocol Negotiation Issues

More
02 Oct 2013 21:05 - 05 Nov 2013 15:11 #1 by Ornir
Protocol Negotiation Issues was created by Ornir
On the wilderness map of Luminari MUD, we currently use background colors in some areas. While this may change, I did notice that the mud client shows TWO characters, a 'm' and the character I expect to see. This sends the whole map out of alignment, screwing up navigation and pretty much everything.

Thanks!

- Ornir Elunari
Last edit: 05 Nov 2013 15:11 by plamzi.

Please Log in or Create an account to join the conversation.

More
03 Oct 2013 01:24 #2 by plamzi
Replied by plamzi on topic Background colors not displaying properly
Hi,

What's the quickest way to reproduce this issue? I tried creating a character and roaming around but couldn't get to a place where background colors were used.

Luminari will now show in the app Game Center. it won't show up in listings until you add a description and image.

Please Log in or Create an account to join the conversation.

More
03 Oct 2013 04:45 #3 by Ornir
Replied by Ornir on topic Background colors not displaying properly
The quickest way to reproduce the issue is to log in when I am around! :)

The wilderness is still in development and there is no easy way to get there from the mud proper.

- Ornir Elunari

Please Log in or Create an account to join the conversation.

More
03 Oct 2013 16:04 #4 by hawgpadre
Replied by hawgpadre on topic Background colors not displaying properly
Seeing the same issue on Wayfar - quickest way to the map is to create character, head east after leaving the shuttle, set gender, choose background, then CHOOSE DISPATCH, pick a planet, and you'll be landed in the wilderness.

Please Log in or Create an account to join the conversation.

More
05 Oct 2013 18:52 #5 by plamzi
Replied by plamzi on topic Background colors not displaying properly
Should work better now, though probably not perfect yet.

Luminari is doing <ANSI Foreground Color><ANSI Invert> instead of setting the background color directly.

I wasn't able to reach a wilderness on Wayfar but it looks like it could be the same issue.

Please Log in or Create an account to join the conversation.

More
07 Oct 2013 15:51 #6 by hawgpadre
Replied by hawgpadre on topic Background colors not displaying properly
That might be how Wayfar specifies background ANSI as well, I'll have to check. Map display is improved by a lot, although it's not coming through exactly as displayed in MushClient:



One other thing I've noticed:

#-5457 from (mudportal websocket proxy) > client mudportal.comclient_version 1.0client_ip 63.233.133.4E[**Vco swampdog ******

This first line sent by the web client is not terminated with a newline, so the first time you try to login (co swampdog *****) the client identifier line is all jumbled up with your login and the login fails.

Please Log in or Create an account to join the conversation.

More
10 Oct 2013 13:44 #7 by plamzi
Replied by plamzi on topic Background colors not displaying properly
The second issue had to do with the proxy sending identification info via GMCP even if the server doesn't support it. This should be fixed now.

For the ANSI background map, try setting the background colors without using the invert code (7). Invert doesn't make it clear what you want the foreground color to be. This may have the result you expect on some clients, but not on others.

You can set background colors by sending codes #40-47, as per: en.wikipedia.org/wiki/ANSI_escape_code

The Portal app also supports 256-color codes, including background colors. The wiki link above covers those as well.

Please Log in or Create an account to join the conversation.

More
10 Oct 2013 20:29 #8 by Tijer
Replied by Tijer on topic Background colors not displaying properly
that change has made the 256 colors stop working entirely on my test mud!! And my main mud also!!!

Please Log in or Create an account to join the conversation.

More
10 Oct 2013 20:40 #9 by plamzi
Replied by plamzi on topic Background colors not displaying properly

Tijer wrote: that change has made the 256 colors stop working entirely on my test mud!! And my main mud also!!!


When you're reporting issues, please remember to share the quickest way to reproduce.

Please Log in or Create an account to join the conversation.

More
11 Oct 2013 17:38 #10 by Tijer
Replied by Tijer on topic Background colors not displaying properly
connect to godwars.net 2770, and type help extended colours....
using the portal app...

Please Log in or Create an account to join the conversation.

More
12 Oct 2013 00:23 #11 by plamzi
Replied by plamzi on topic Background colors not displaying properly
Says there is no help on that word.
Attachments:

Please Log in or Create an account to join the conversation.

More
13 Oct 2013 10:11 #12 by Tijer
Replied by Tijer on topic Background colors not displaying properly
or just type colorlist ( i think thats the command.... not really been working on that code) the greeting should be in orange... and if you check "finger" it no longer displays the Protocols you are supporting... nor the client you are using to connect (but this all works when connecting via mushclient)

Please Log in or Create an account to join the conversation.

More
03 Nov 2013 11:05 #13 by Tijer
Replied by Tijer on topic Background colors not displaying properly
still not working...

looks as if the actual protocols are not being negotiated by the mudportal plugin, used to work... :( Issues affecting my test mud.. AND Legends of Hatred....

Please Log in or Create an account to join the conversation.

More
03 Nov 2013 13:19 #14 by plamzi
Replied by plamzi on topic Background colors not displaying properly
Thanks for narrowing it down to negotiation.

Here's what you should be getting as TTYPE on connect:

"mudportal.com", "ANSI-256COLOR", "MTTS 141", <user IP>

The second and the third entry both should declare 256-color support. Let me know if you think the issue is on my end.

Please Log in or Create an account to join the conversation.

More
03 Nov 2013 15:07 #15 by Tijer
Replied by Tijer on topic Background colors not displaying properly
its not showing any protocols... nor is it showing the name of the client...

will point out that the negotiation works on zMUD, cMUD and Mushclient... just hasnt since the first response on this thread by me (if that gives you a little idea as to when the issue started)

if you connect to my mud.. and type finger (on your own character) it should show the following if protocols are supported:

Client: MUSHclient (Version: 4.91).
Protocols: NAWS, TTYPE, 256 Colours, MXP (0.5), MCCP.
Screen Size: 271 characters wide and 60 characters high.

Please Log in or Create an account to join the conversation.

More
03 Nov 2013 15:14 #16 by Tijer
Replied by Tijer on topic Background colors not displaying properly
LoH and the test mud use a modified version of KaVir's MUD protocol snippet, just attempted to connect to a MUD that uses an unmodified version of that code, and it hangs on connection.. so my guess is its something your end... not on the MUD's concerned...

never get past password entry screen...

Please Log in or Create an account to join the conversation.

More
03 Nov 2013 17:26 #17 by RahjIII
Replied by RahjIII on topic Background colors not displaying properly
I don't see the mudp client doing any linemode, naws, ttype or env negotiation when it connects. LO sends these modes to the client:

IAC WILL TELOPT_ECHO,
IAC WILL TELOPT_SGA,
IAC DO TELOPT_TTYPE,
IAC DO TELOPT_NAWS,
IAC DO TELOPT_NEW_ENVIRON,
IAC WILL TELOPT_MSSP,

And all it gets back from the client is:

IAC WILL 201
IAC DO 69
IAC DO 86

(LO doesn't support those protos and they aren't in arpa/telnet.h so I don't have a decode for what they are.)

The Last Outpost
last-outpost.com:23

Please Log in or Create an account to join the conversation.

More
03 Nov 2013 20:05 #18 by plamzi
Replied by plamzi on topic Background colors not displaying properly
Try now, both of you. I made a number of adjustments to the negotiations and I believe at least the TTYPE and 256-color negotiation should be sorted out.

Also, now it should be sending client info via MSDP as well on connect, including the user IP.

Please Log in or Create an account to join the conversation.

More
04 Nov 2013 08:10 #19 by Tijer
Replied by Tijer on topic Background colors not displaying properly
Works now... BUT no longer displays the client name.. displays it as "unknown" used to (before all the changes back at the start of the thread) display "Mudportal Client" or something along those lines... doesnt also appear to be negotiating 256 colours at al now!!

Please Log in or Create an account to join the conversation.

More
04 Nov 2013 14:07 #20 by plamzi
Replied by plamzi on topic Background colors not displaying properly
Try now. I used Legends of Hatred's finger command to verify.
The following user(s) said Thank You: RahjIII

Please Log in or Create an account to join the conversation.