Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ Packet manipulation gone awry

Packet manipulation gone awry

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by tobiassjosten   Sweden  (79 posts)  Bio
Date Tue 29 Sep 2009 07:27 PM (UTC)
Message
I am trying to use the OnPluginPacketReceived callback to route all traffic through my Lua scripts. Since my project is aimed at IRE MUDs, I am also using this to negotiate and extract ATCP data. It works decently apart from one little problem which I have had to implement a hack to work around.

My base logic is that any packet without an ending IAC-GA (\255\249) is an incomplete packet. Any incomplete packet is buffered and prepended to the next incoming packet before that is again checked for ending. Somehow, this seems to either trigger or circumvent MUCHclient's MCCP support. All I'm seeing is garbage data after the first "This is Imperian, enter your name:" message.

Debugging packets in MUSHclient on Wine crashes the client. I have set up a Virtual box installation of Windows but my initial checks haven't yielded any insight at all as to why this is happening.

Could someone please help me figure this out?

The project can be found at http://github.com/tobiassjosten/protea and if you want to see this particular behaviour then download the commit linked below. Check the protea.xml file for the 'pigscanfly' variable and change so that it is assigned true whenever the plugin is loaded instead of, as is now, when the login has been completed.

http://github.com/tobiassjosten/protea/commit/abe583c65cd7aac1cba168a9c8ec67bea6574f53

Any help is greatly appreciated.

Simplicity is Divine | http://nogfx.org/
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 29 Sep 2009 09:36 PM (UTC)
Message
Template:post=8956 Please see the forum thread: http://gammon.com.au/forum/?id=8956.



tobiassjosten said:

Debugging packets in MUSHclient on Wine crashes the client.


Probably because it is opening a notepad window. Try setting the Wine Windows emulation to Windows 98. This doesn't happen normally with recent versions of Wine (ie. version 1 upwards).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by tobiassjosten   Sweden  (79 posts)  Bio
Date Reply #2 on Wed 30 Sep 2009 05:51 AM (UTC)
Message
Setting MUSHclient.exe to use Windows 98 worked like a charm. Thanks Nick!

Now I might be able to delve deeper into this issue. Insights to the actual problem are still very much welcome though.

Simplicity is Divine | http://nogfx.org/
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #3 on Wed 30 Sep 2009 06:43 AM (UTC)
Message
That other thread should help. Try to avoid playing with packets until MCCP is turned on. You can test for that with GetInfo (103).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,710 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.