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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Anyone use MUSHclient to update website?
Anyone use MUSHclient to update website?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| RichKK
(33 posts) Bio
|
Date
| Tue 13 Jan 2009 11:31 AM (UTC) Amended on Tue 13 Jan 2009 11:33 AM (UTC) by RichKK
|
Message
| 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. | Top |
|
Posted by
| Larkin
(278 posts) Bio
|
Date
| Reply #1 on Thu 15 Jan 2009 11:34 AM (UTC) |
Message
| You could use something like LuaSQL to connect to a remote database and update some records. | Top |
|
Posted by
| Ked
Russia (524 posts) Bio
|
Date
| Reply #2 on Thu 15 Jan 2009 04:31 PM (UTC) |
Message
| 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. | 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.
14,021 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top