Re: Newbie help with commandresponse #prompt
David Clymer <david-LEGOU7lN1jbY0TyS/[email protected]> Tue, 14 Sep 2004 17:15:47 -0400
| Newsgroups | gmane.comp.games.mud.client.lyntin |
|---|---|
| Message-ID | <1095196547.9923.30.camel@localhost> |
On Tue, 2004-09-14 at 16:52, jb test wrote: > Hi! I just started using lyntin a week ago - great stuff thanks! But, I'm > running into a problem getting started with the commandresponse/wbgmapper - > what the heck does it want for the #prompt?? I tried all kinds of stuff, it > looks like it will eventually eval to an re? But nothing I tried seems to > work :( > > Anyway, the mud will give a simple prompt, its like <10P 10M> or so, so > please give me a hint of what I should type in for #prompt :) It also looks > like it sets it on the mud side too? I guess I really just don't get it. > To set the above on the mud, the command is > prompt <@pP @mM> this looks as if you are using metacharacters of some sort when setting your prompt. As i read it (and i didnt read it real carefully, so take this with a grain of salt), commandresponse uses the string that you provide it to set the mud prompt (using: "prompt your_string"), as well as the string that it considers to be your prompt & that it looks for in the data coming from the mud. If you pass it <@pP @mM> to commandresponse, it will look for just that, while what your mud is really sending back is <10hp 20m> or whatever. It doesnt look as if commandresponse compiles the prompt string that you give it as a regular expression, so may need to change your mud prompt to some string that wont change or modify commandresponse so that it doesnt try to set your prompt, and pass it a string which you emote before doing the command whose output you want to capture. -davidc ps. I think i'm right about this, but if i'm not, I would appreciate if those with real experience with this module would correct my misinformation. ------------------------------------------------------- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m