[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Anyone use MUSHclient to update website?
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Anyone use MUSHclient to update website?

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

Posted by RichKK   (33 posts)  [Biography] bio
Date Tue 13 Jan 2009 11:31 AM (UTC)

Amended on Tue 13 Jan 2009 11:33 AM (UTC) by RichKK

I thought it would be a pretty neat idea to have MUSHclient update a website with data from a MUD. For example a ranking table, a players online list, uptime etc. It seems so simple to do but I'm stuck on which way to go.

Would be awesome to have a few plain text fields on a website that could receive input from MUSHclient.

Anybody ever do anything like that or have tips?

Was thinking having MUSHclient open, write and save a local XML or HTML file with data from the MUD but that doesn't seem very elegant relative to MUSHclient's capabilities.
[Go to top] top

Posted by Larkin   (278 posts)  [Biography] bio
Date Reply #1 on Thu 15 Jan 2009 11:34 AM (UTC)
You could use something like LuaSQL to connect to a remote database and update some records.
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Reply #2 on Thu 15 Jan 2009 04:31 PM (UTC)
Alternatively, you could send the data via UDP, as long as you have enough control over the web server to allow it to capture the UDP packets.

I've done something like that a couple of years ago. A Lua script inside Mushclient was capturing output through the OnPluginScreendraw callback and sending it with UDPSend() to the server. The server was running locally, was written in Python, using Twisted, and upon receiving a packet resent it to all connected web clients via an Ajax hack known as "Comet", which was implemented with the Twisted-based Athena library.

All of it took about an hour to put together, most of which time was spent on figuring out the correct way of grabbing screen output in Mushclient. So it's definitely doable.
[Go to top] 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.


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

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]