Re: lyntin control
will guaraldi <[email protected]> Thu, 15 Jul 2004 08:40:24 -0500 (CDT)
| Newsgroups | gmane.comp.games.mud.client.lyntin |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 15 Jul 2004, Bartosz wrote: > Is there any posibility 2 take contrlol over lyntin when it is run on > anather machine > > ex1: I start mud sesion with lyntin on computer A then log in into A > from computer B ant i am taking control over lyntin > > ex2: I start lyntin and connect to my mud on comp A then i open my web > browser and enter my webpage written in php and i type a command in > specially prepered form which result are sent by php script to lyntin > and than command is execiuted > > is that possible and if so how can I do this? It's definitely possible--Lyntin textui just uses stdin and stdout. It's the same sort of solution that you'd use for any other program that uses stdout and stdin. However, there's a better way. Notadragon wrote an HTTP plugin for Lyntin (which should be in the Lyntin module registry) that gives Lyntin an HTTP server that has access to Lyntin's internals. He used it to write his automapper which would query the map data and generate this huge map thing "live". You could write a plugin that adds a handler to the http plugin that handles some kind of form post for issuing commands and then executes those commands and returns all the data its seen from the mud so far (and whatever other stats you want to see). Then, you can actually skip the whole PHP thing. /will ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click