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


This is a discussion on "Accesing mud functions from outside" in the Top Mud Sites MUD and RPG Webmasters forum :

Does any one have any suggestions on how to expose certain lpcmud scripts so that they can be run from web based script? I want to give the website real time stats on the mud and access to some functions without having to resort to doing the usual wholist thing - storing the results of these funcs in temp files... Thanks in advance for your help...



You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our MUD community today!

If you have any problems with the registration process or your account login, please contact us.

If you are a registered member of the old TMS forums, please click here
Reply
 
LinkBack Thread Tools
Old 06-10-2004, 11:20 AM   #1
snowfruit
New Member
 
Join Date: Jun 2002
Posts: 12
snowfruit is on a distinguished road
Post

Does any one have any suggestions on how to expose certain lpcmud scripts so that they can be run from web based script?

I want to give the website real time stats on the mud and access to some functions without having to resort to doing the usual wholist thing - storing the results of these funcs in temp files...

Thanks in advance for your help
snowfruit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2004, 12:55 PM   #2
Amnon
Member
 
Join Date: May 2002
Posts: 140
Amnon is on a distinguished road
You could have the script create a file that the MUD will check for every minute or so and process, then output the results into HTML.
Amnon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2004, 02:31 PM   #3
erdos
 
Posts: n/a
You could set your mud to respond to http requests on some port other than playport; that's no doubt the most professional way to go about it.

Amnon, buddy, friend... whatever has happened to assault? :(
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2004, 05:48 PM   #4
Angie
Member
 
Angie's Avatar
 
Join Date: Dec 2003
Location: Prague
Home MUD: God Wars II
Posts: 131
Angie is on a distinguished road
Make a webserver that can process strings generated by functions.
Angie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2004, 05:49 PM   #5
Yui Unifex
Senior Member
 
Join Date: Apr 2002
Location: Florida
Posts: 323
Yui Unifex is on a distinguished road
Send a message via ICQ to Yui Unifex Send a message via AIM to Yui Unifex
Question

Writing out temp files is nasty. RPC is the way to go.
Yui Unifex is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2004, 06:15 PM   #6
Ogma
Member
 
Ogma's Avatar
 
Join Date: Apr 2002
Home MUD: DartMUD
Posts: 86
Ogma is on a distinguished road
We accomplish this by using the erq, which allows certain LPC objects to open up ports. It's how the ftpd for your mud communicates with the mud for verifying login. Half of the erq stuff is compiled into the driver, the other half is certain LPC objects. I don't know if your mudlib has these though.

We've used it for our intermud channels (between our live mud and test installation), for sending email from within the mud for registration and one of our guys setup some web pages that called lpc objects this way. I'm not entirely familiar with how to do it, but it is possible.
Ogma is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools


Accesing mud functions from outside - Similar Threads
Thread Thread Starter Forum Replies Last Post
Macros Vs inline functions karlan MUD Coding 4 05-01-2003 10:19 PM

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
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -4. The time now is 05:17 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Style based on a design by Essilor
Copyright Top Mud Sites.com 2007