Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD and RPG Webmasters
Click here to Register

Reply
 
Thread Tools
Old 02-02-2012, 11:23 PM   #1
ww_crimson
Member
 
Join Date: Sep 2011
Home MUD: Aarchon
Posts: 62
ww_crimson is on a distinguished road
Pulling information from MUD to website

What's the easiest / most efficient way to pull information from the MUD and put it on the website.

For example : Current list of online players

Would also like to get all of our helpfiles online in the near future as well.

I'm pretty sure this should be done with a PHP/mysql database, but am kind of at a loss of where to look. Anyone have some references they can point me to?
ww_crimson is offline   Reply With Quote
Old 02-03-2012, 12:22 AM   #2
Zeno
Member
 
Zeno's Avatar
 
Join Date: Jan 2005
Location: Saratoga, NY
Home MUD: Bleached InuYasha Galaxy
Posts: 188
Zeno is on a distinguished road
Send a message via AIM to Zeno Send a message via MSN to Zeno Send a message via Yahoo to Zeno
Re: Pulling information from MUD to website

Easiest? Probably having code regularly dumping that info to a txt file and having a symbolic link to it in public_html.
Zeno is offline   Reply With Quote
Old 02-06-2012, 10:01 AM   #3
Gatz
New Member
 
Join Date: Aug 2009
Posts: 10
Gatz is on a distinguished road
Re: Pulling information from MUD to website

What Zeno said basically. NarutoMUD does just that. If you go to NarutoMUD :: Resources we do a couple of techniques. Firstly, dumping that data to a text file and parsing it on the fly, second is just opening a socket via PHP and using a home rolled protocol I called MRP (MUD Request Protocol) which works a bit like MSSP. The helpfile/skills section works like that and the Bingo Book section uses MRP.

If you store your helpfiles in a database (like MySQL) then obviously you'll want to do a query against it and use something like PHP (or JSTL or whatever) to parse it and send it to the user, but if you store your helpfiles like 99% of MUD engines do in files then you might just want to write out that file in a special folder viewable by your website (somewhere in the public_html). Then do some research on REGEX and be able to use one to troll your data file and rip out what you want.

The last bit I did, as a party bonus, was to convert the SMAUG style color tags to HTML color tags, but that is done on the fly and I did that as a last step of polish.

I hope some of that helps, and good luck! I think adding content to your website dynamically like that adds a lot of extra value for players.
Gatz is offline   Reply With Quote
Old 02-06-2012, 11:42 AM   #4
Markov_AU
Member
 
Join Date: Jun 2004
Name: Ben
Location: Zelienople, PA
Home MUD: Adventures Unlimited
Posts: 68
Markov_AU is on a distinguished road
Re: Pulling information from MUD to website

Text dump, or if you used a database (sql etc) you may be able to pull straight form that database for the site.
Markov_AU is offline   Reply With Quote
Old 02-06-2012, 03:23 PM   #5
ww_crimson
Member
 
Join Date: Sep 2011
Home MUD: Aarchon
Posts: 62
ww_crimson is on a distinguished road
Re: Pulling information from MUD to website

Thanks for all the replies everyone. Coding is unfortunately not a strong suit of mine (still learning) but after posting this thread I remembered that one of our long time players does web development stuff for a living. He was able to put together some basic stuff for me that works well enough for now. It's not beautiful and it's not flawless, but it works.

Aarchon Help Files


A lot of the help files are being rewritten and cleaned up as they've been neglected for a few years. I've got another .php page with a searchable function.. just not sure which one I want to use. Maybe both. We'll have an "online players" page soon enough too. Nice to see the forum being so helpful
ww_crimson is offline   Reply With Quote
Old 02-07-2012, 03:14 AM   #6
Ghostcat
Member
 
Join Date: Mar 2010
Home MUD: Unwritten Legends
Posts: 135
Ghostcat is on a distinguished road
Re: Pulling information from MUD to website

Quote:
Originally Posted by ww_crimson View Post

A lot of the help files are being rewritten and cleaned up as they've been neglected for a few years.
Gee, where have I heard that before? xD
Ghostcat is offline   Reply With Quote
Old 02-07-2012, 10:37 AM   #7
dentin
Member
 
Join Date: Apr 2008
Home MUD: Alter Aeon
Posts: 245
dentin is on a distinguished road
Re: Pulling information from MUD to website

I don't know about the easiest, but the most efficient (if you're going for generated pages) is definitely to serve them directly out of the mud server on a second http port. That's what we do on Alter Aeon, and it guarantees that whatever is exported out of the http interface is current and synced with the actual server state:

http://alteraeon.com:8080/
http://alteraeon.com:8080/wholist
http://alteraeon.com:8080/changelog
http://alteraeon.com:8080/spells

-dentin

Alter Aeon MUD
http://www.alteraeon.com
dentin is offline   Reply With Quote
Old 02-07-2012, 03:24 PM   #8
ww_crimson
Member
 
Join Date: Sep 2011
Home MUD: Aarchon
Posts: 62
ww_crimson is on a distinguished road
Re: Pulling information from MUD to website

Quote:
Originally Posted by Ghostcat View Post
Gee, where have I heard that before? xD
? .. is that a common thing around here? We were down for about 10 months and prior to that the IMPs were basically missing for a year. I was able to get in touch with one of them again and we've really started turning things around.



Dentin -- I love the way that looks but have no idea how to do it . I'll stick with what we have for now but might look into that more later. Love your guys' website in general btw. I read your article on gold/mud economy. Absolutely fascinating work.
ww_crimson is offline   Reply With Quote
Old 02-07-2012, 09:01 PM   #9
Ghostcat
Member
 
Join Date: Mar 2010
Home MUD: Unwritten Legends
Posts: 135
Ghostcat is on a distinguished road
Re: Pulling information from MUD to website

Quote:
Originally Posted by ww_crimson View Post
? .. is that a common thing around here? We were down for about 10 months and prior to that the IMPs were basically missing for a year. I was able to get in touch with one of them again and we've really started turning things around.



Dentin -- I love the way that looks but have no idea how to do it . I'll stick with what we have for now but might look into that more later. Love your guys' website in general btw. I read your article on gold/mud economy. Absolutely fascinating work.

It's at least been true for just about every MUD, ever.
Ghostcat is offline   Reply With Quote
Reply


Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 03:58 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2014