Seeing the other GMCP thread, it looks easy to implement GMCP, so i decided to give a try
But it seems like Mushclient don´t want to use GMCP, my Mushclient version is 5.06, and when my Mud send:
IAC WILL MXP
IAC WILL GMCP
IAC WILL NAWSThe response from Mushclient is:
IAC WILL NAWS IAC DO MXP IAC DONT GMCP IAC WILL NAWS IAC SB NAWS 0 80 0 30 IAC SEMuschlient responds with IAC DONT GMCP
Any idea of why this happend?
With Mudlet i get this response:
IAC DO MXP IAC DO GMCP IAC SB GMCP 67 111 114 101 46 72 101 108 108 111 32 123 32 34 99 108 105 101 110 116 34 58 32 34 77 117 100 108 101 116 34 44 32 34 118
101 114 115 105 111 110 34 58 32 34 52 46 56 46 50 34 125 IAC SE IAC SB GMCP 67 111 114 101 46 83 117 112 112 111 114 116 115 46 83 101 116 32 91 32 34 67 104 97
114 32 49 34 44 32 34 67 104 97 114 46 83 107 105 108 108 115 32 49 34 44 32 34 67 104 97 114 46 73 116 101 109 115 32 49 34 44 32 34 82 111 111 109 32 49 34 44 32
34 73 82 69 46 82 105 102 116 32 49 34 44 32 34 73 82 69 46 67 111 109 112 111 115 101 114 32 49 34 44 32 34 69 120 116 101 114 110 97 108 46 68 105 115 99 111 114 100
32 49 34 44 32 34 67 108 105 101 110 116 46 77 101 100 105 97 32 49 34 93 IAC SE IAC SB GMCP 69 120 116 101 114 110 97 108 46 68 105 115 99 111 114 100 46 72 101 108
108 111 IAC SE IAC WILL NAWS IAC SB NAWS 0 100 0 37 IAC SEMudlet send the client name and version and what supports
But i don´t know why Mudlet allow GMCP but Mushclient don´t
EDIT: Forget it, i suppose Mushclient support GMCP by default, but you need to install a plugin, i installed GMCP_handler_NJG, and worked
The problem i have at this moment, is to handle the response from client, the client send the confirmation for all protocols in one line, so any ideas in how to parse each response and process it? some way to separate each protocol like:
Take the string and separate it in an array or something like that:
str[0]:
IAC DO MXP
str[1]:
IAC DO GMCP
str[2]:
IAC SB GMCP 67 111 114 101 46 72 101 108 108 111 32 123 32 34 99 108 105 101 110 116 34 58 32 34 77 117 100 108 101 116 34 44 32 34 118 101 114 115 105 111 110 34 58 32 34
52 46 56 46 50 34 125 IAC SE
str[3]:
IAC SB GMCP 67 111 114 101 46 83 117 112 112 111 114 116 115 46 83 101 116 32 91 32 34 67 104 97 114 32 49 34 44 32 34 67 104 97 114 46 83 107 105 108 108 115 32 49 34 44 32
34 67 104 97 114 46 73 116 101 109 115 32 49 34 44 32 34 82 111 111 109 32 49 34 44 32 34 73 82 69 46 82 105 102 116 32 49 34 44 32 34 73 82 69 46 67 111 109 112 111 115
101 114 32 49 34 44 32 34 69 120 116 101 114 110 97 108 46 68 105 115 99 111 114 100 32 49 34 44 32 34 67 108 105 101 110 116 46 77 101 100 105 97 32 49 34 93 IAC SE
str[4]:
IAC SB GMCP 69 120 116 101 114 110 97 108 46 68 105 115 99 111 114 100 46 72 101 108 108 111 IAC SE
str[5]:
IAC WILL NAWS
str[6]:
IAC SB NAWS 0 100 0 37 IAC SE
So i can evaluate each oneCan anyone help me with the logic to do that?
My mud is LPC based, and already have the code to handle each one, but i don´t know how to do the split
Thanks