TELOPT_NEW_ENVIRON negotiation issue.
- hezkezl
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
22 Jan 2014 18:03 #1
by hezkezl
TELOPT_NEW_ENVIRON negotiation issue. was created by hezkezl
I don't know if it is on my end, or the client's end, but at the login screen of my MUD, it looks like a portion of my response to IAC WILL TELOPT_NEW_ENVIRON is printed as plaintext to the screen in the mudportal client.
My response is: <IAC> <SB> <TELOPT_NEW_ENVIRON> <ENV_SEND> <ENV_VAR> "SYSTEMTYPE" <IAC> <SE>
and it looks like everything after the <ENV_VAR> is printed to the TTY.
Any ideas?
Thanks!
My response is: <IAC> <SB> <TELOPT_NEW_ENVIRON> <ENV_SEND> <ENV_VAR> "SYSTEMTYPE" <IAC> <SE>
and it looks like everything after the <ENV_VAR> is printed to the TTY.
Any ideas?
Thanks!
Please Log in or Create an account to join the conversation.
- plamzi
-
- Offline
- Administrator
Less
More
- Posts: 285
- Thank you received: 42
22 Jan 2014 18:55 #2
by plamzi
Replied by plamzi on topic TELOPT_NEW_ENVIRON negotiation issue.
Should be fixed.
The following user(s) said Thank You: hezkezl
Please Log in or Create an account to join the conversation.
- hezkezl
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
23 Jan 2014 01:54 #3
by hezkezl
Replied by hezkezl on topic TELOPT_NEW_ENVIRON negotiation issue.
Looks good, thanks!
One more question: for MXP and GMCP, is the client expecting the server to start negotiation with a DO request? We send a WILL for both, and don't seem to be getting a response from the client.
One more question: for MXP and GMCP, is the client expecting the server to start negotiation with a DO request? We send a WILL for both, and don't seem to be getting a response from the client.
Please Log in or Create an account to join the conversation.
- plamzi
-
- Offline
- Administrator
Less
More
- Posts: 285
- Thank you received: 42
23 Jan 2014 12:13 #4
by plamzi
Replied by plamzi on topic TELOPT_NEW_ENVIRON negotiation issue.
The client was assuming the negotiation will start with a DO, but it no longer does. MXP seems to be negotiated now for your game.
Please Log in or Create an account to join the conversation.
- hezkezl
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
23 Jan 2014 12:35 #5
by hezkezl
Replied by hezkezl on topic TELOPT_NEW_ENVIRON negotiation issue.
Thanks for looking into it. This morning I noticed a new issue that started to crop up. I'm not sure if it's related to the fact that I am on my ipad right now, or a result of the mxp negotiation, but after the screen fills up, it starts outputting garbage. The easiest way to repro this is to connect to materiamagica.com:23, create an account, and then type "protocol" to see the negotiated protocols. Usually before this point the screen will have filled up , and random characters appear on the screen (it looks like the same area of memory is being repeated/accessed multiple times)
Please Log in or Create an account to join the conversation.
- plamzi
-
- Offline
- Administrator
Less
More
- Posts: 285
- Thank you received: 42
23 Jan 2014 15:12 #6
by plamzi
Replied by plamzi on topic TELOPT_NEW_ENVIRON negotiation issue.
On first sight, it looks like the MCCP compression stream breaking.
I can't reproduce this on desktop so my guess is it's browser- or platform-specific. Does it happen consistently, and if you think it happens when a certain length of content is reached, does it happen whether or not you type "protocol"? Also, let me know if you see the same issue on desktop.
On a related note, I saw a lot of things under "protocols" that should have been negotiated but showed up as OFF: TTYPE, 256 Colors, GMCP.
I can't reproduce this on desktop so my guess is it's browser- or platform-specific. Does it happen consistently, and if you think it happens when a certain length of content is reached, does it happen whether or not you type "protocol"? Also, let me know if you see the same issue on desktop.
On a related note, I saw a lot of things under "protocols" that should have been negotiated but showed up as OFF: TTYPE, 256 Colors, GMCP.
Please Log in or Create an account to join the conversation.
- hezkezl
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
23 Jan 2014 16:28 - 23 Jan 2014 16:32 #7
by hezkezl
Replied by hezkezl on topic TELOPT_NEW_ENVIRON negotiation issue.
Looks like it's ipad/safari specific. I tried on my PC running Firefox, and everything looks fine. (On the ipad it happens eventually regardless of whether protocol is typed or not - I also disabled the MXP checkbox on the mudportal client, and got the same result, so I think you may be correct about MCCP)
256 color and TTYPE negotiation is currently disabled on the live server, but is working and negotiating fine on the development server with the mudportal client. MXP 0.3 looks to be negotiating okay. (yaay! thanks.)
gmcp still doesn't look to be negotiating correctly (which is actually the out of band protocol I'm most interested in utilizing for custom interface work). I'll have to make another attempt and see what the logs are saying. I've tested GMCP on the server with tintin++ and mushclient and everything is working out with those, but protocol negotiation is such a loose standard, who and how it's initiated can change from client to client.
Thanks again for helping me work through the issues - I think what you are working to do here with the site will really give MUDs a second wind.
256 color and TTYPE negotiation is currently disabled on the live server, but is working and negotiating fine on the development server with the mudportal client. MXP 0.3 looks to be negotiating okay. (yaay! thanks.)
gmcp still doesn't look to be negotiating correctly (which is actually the out of band protocol I'm most interested in utilizing for custom interface work). I'll have to make another attempt and see what the logs are saying. I've tested GMCP on the server with tintin++ and mushclient and everything is working out with those, but protocol negotiation is such a loose standard, who and how it's initiated can change from client to client.
Thanks again for helping me work through the issues - I think what you are working to do here with the site will really give MUDs a second wind.
Last edit: 23 Jan 2014 16:32 by hezkezl. Reason: *wanted to clarify an answer
Please Log in or Create an account to join the conversation.
- plamzi
-
- Offline
- Administrator
Less
More
- Posts: 285
- Thank you received: 42
23 Jan 2014 16:57 #8
by plamzi
It was the same reason as for MXP. I made negotiation on my side more lax, and GMCP is being negotiated fine now.
One other thing I noticed was that we seem to have some character sitting in the input buffer after negotiation. You'll notice that the first time you type a username, the server will say it's invalid, even though it is. I'm not sure when this started happening since I only made a test char today.
Replied by plamzi on topic TELOPT_NEW_ENVIRON negotiation issue.
hezkezl wrote: gmcp still doesn't look to be negotiating correctly (which is actually the out of band protocol I'm most interested in utilizing for custom interface work).
It was the same reason as for MXP. I made negotiation on my side more lax, and GMCP is being negotiated fine now.
One other thing I noticed was that we seem to have some character sitting in the input buffer after negotiation. You'll notice that the first time you type a username, the server will say it's invalid, even though it is. I'm not sure when this started happening since I only made a test char today.
The following user(s) said Thank You: hezkezl
Please Log in or Create an account to join the conversation.
- hezkezl
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
23 Jan 2014 17:23 - 23 Jan 2014 17:25 #9
by hezkezl
Replied by hezkezl on topic TELOPT_NEW_ENVIRON negotiation issue.
Yes, that's another bug that is fixed on the dev server as well (my GMCP hander was only reporting the size of the payload as read to the parser, so a number of bytes equal to the size of the GMCP telopt flags was left in the buffer), but hasn't been pushed to live yet (I've been doing quite a bit of protocol work this past week.)
Everything looks great, now!
Everything looks great, now!
Last edit: 23 Jan 2014 17:25 by hezkezl. Reason: clarification
Please Log in or Create an account to join the conversation.