 |
NitroGlycerine Beginner
Joined: 26 Apr 2007 Posts: 29
|
Posted: Fri Jun 13, 2008 5:23 pm
[2.27] commands resulting from prompt trigger not logged |
I've been able to narrow down a previous issue I had and posted about to the following bug:
When logging to a file, commands send to the MUD that are a result of a prompt trigger are not logged to the file. Also the promptline that is supposed to trigger them does not get logged.
Commands which are a result of a newline trigger however do get logged correctly.
Commands which are directly inputted (or through a macro) are logged correctly.
I've reproduced this in a clean session of Achaea. |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jun 13, 2008 8:45 pm |
The line should get logged when the newline is finally received from the MUD. If CMUD logged the prompt text, then it would get duplicated in the log when CMUD logged the full line when the newline was received.
In other words, when the MUD sends:
<100/100hp 100/100mana>
it doesn't get logged. But it fires your prompt trigger and your prompt trigger sends the "look" command to the MUD. When the "look" command is echoed to the screen, a newline is added and now the line:
<100/100hp 100/100mana> look
is sent to the trigger system to see if a normal trigger matches the line. The full line then gets logged at this time, rather than logging it back when it was just a MUD prompt.
Now, it's possible that the IAC EOR and ATCP stuff on Achaea is interfering with this in some case. So I'll look at that MUD specifically. But when I tested on Aardwolf it all seemed to be working just fine. |
|
|
 |
NitroGlycerine Beginner
Joined: 26 Apr 2007 Posts: 29
|
Posted: Sat Jun 14, 2008 6:49 pm |
Clean session of Achaea. I made a prompt trigger that executes the command "jump".
Some logs that could perhaps clarify:
As seen in the logfile:
Code: |
You jump into the air and land with a bump.
You jump into the air and land with a bump.
You jump into the air and land with a bump.
You jump into the air and land with a bump.
|
As seen in the mud output:
Code: |
You jump into the air and land with a bump.
485h, 530m ex-jump
You jump into the air and land with a bump.
485h, 530m ex-jump
You jump into the air and land with a bump.
485h, 530m ex-jump
You jump into the air and land with a bump.
485h, 530m ex-jump
|
As seen in the debugger:
Code: |
a Achaea |You jump into the air and land with a bump.
a Achaea ]485h, 530m ex-
f Achaea | Pattern: %dh, %dm
c Achaea | exec : Pattern "%dh, %dm" : jump
a Achaea |485h, 530m ex-jump
j Achaea >jump
a Achaea #Telnet 200: Char.Vitals<LF>H:485/485 M:530/530 E:1325/1325 W:1550/1550 NL:0/100
a Achaea |
a Achaea |You jump into the air and land with a bump.
a Achaea ]485h, 530m ex-
f Achaea | Pattern: %dh, %dm
c Achaea | exec : Pattern "%dh, %dm" : jump
a Achaea |485h, 530m ex-jump
j Achaea >jump
a Achaea #Telnet 200: Char.Vitals<LF>H:485/485 M:530/530 E:1325/1325 W:1550/1550 NL:0/100
a Achaea |
|
|
|
|
 |
NitroGlycerine Beginner
Joined: 26 Apr 2007 Posts: 29
|
Posted: Sat Jun 14, 2008 7:24 pm |
Oooh, if you disable "Log after triggers are executed" it seems to work fine. I'm confused now.
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Jun 14, 2008 10:31 pm |
Possibly it's something to do with CMUD's internal ATCP handling, then? Try turning that off and seeing if it works.
|
|
|
 |
NitroGlycerine Beginner
Joined: 26 Apr 2007 Posts: 29
|
Posted: Sat Jun 14, 2008 10:55 pm |
Fang Xianfu wrote: |
Possibly it's something to do with CMUD's internal ATCP handling, then? Try turning that off and seeing if it works. |
You mean ATCP emulation?
That did not solve the problem. |
|
|
 |
|
|