Highlighted strings not saving in log file

Posted by forral on Tue 12 Oct 2010 01:13 AM — 15 posts, 50,310 views.

USA #0
Hi all,

I've been happily logging in full color for a while now, and recently got into PVP so I've gone through to highlight the various strings for damage done to me/the other player, and spells that land/wear off, etc.

My only problem is they highlight just fine in my output (Usually I have inverted green for land, inverted red for miss) but when I go to read my log file the lines are left blank.

I can upload the .html log file if anyone needs a working example.

Thanks!

Forral
Australia Forum Administrator #1
Can you just paste a snippet here? Like, a line which should be highlighted? When you say "blank" do you mean something that should be, say, red on white is all red? Or all white? Or not shown at all?
USA #2
Nick Gammon said:

Can you just paste a snippet here? Like, a line which should be highlighted? When you say "blank" do you mean something that should be, say, red on white is all red? Or all white? Or not shown at all?


For instance, a line like: You feel relieved as the poison is burned from your body.

That should be a green background, black text. By "blank" I mean it is not shown at all in the log file. I have a command to send to output "no longer poisoned!" and that shows fine in the log file, just not that actual highlighted string.
Australia Forum Administrator #3
Can you show us the trigger that detects "You feel relieved as the poison is burned from your body."?

Template:copying
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.
USA #4
Nick Gammon said:

Can you show us the trigger that detects "You feel relieved as the poison is burned from your body."?

(copying)


Here's a screenshot:

http://i54.tinypic.com/2i8em8w.jpg
Australia Forum Administrator #5
OK, now can you make a copy using the instructions in the link, so I can just paste it into a test copy and try it out?
USA #6
Nick Gammon said:

OK, now can you make a copy using the instructions in the link, so I can just paste it into a test copy and try it out?


<triggers>
<trigger
custom_colour="3"
enabled="y"
group="Combat"
match="You feel relieved as the poison is burned from your body."
send_to="2"
sequence="100"
>
<send>----- NO LONGER POISONED -----</send>
</trigger>
</triggers>
Australia Forum Administrator #7
Well I tried your trigger with the test line and it logged OK - see this screenshot of my web browser opening the log file:



So I am guessing that you have another trigger that is omitting some lines from the log file.
USA #8
Nick Gammon said:

Well I tried your trigger with the test line and it logged OK - see this screenshot of my web browser opening the log file:

(img=logging_issue_screenshot.png)

So I am guessing that you have another trigger that is omitting some lines from the log file.


Hmm, well I have two screenshots here; one is of my output and how its SUPPOSED to look, the other is of my log file (rather ugly, its not capturing colors like its supposed to but I prob messed up the preamble in the logging settings)

Screen output: http://i55.tinypic.com/11vpsv7.jpg

Log file: http://i54.tinypic.com/2qlu52g.jpg


See what the issue is I'm having?
Australia Forum Administrator #9
I see it, but as I said it is possible another trigger is stopping logging. Try turning on Game menu -> Trace and see if another trigger is firing.

Also, which version of MUSHclient are you using?
USA #10
Nick Gammon said:

I see it, but as I said it is possible another trigger is stopping logging. Try turning on Game menu -> Trace and see if another trigger is firing.

Also, which version of MUSHclient are you using?


I'm using the latest version, 4.64

Here is a small tidbit of my setting trace 'on'. It burned my eyes to keep up with all the text, but its still amazing to see just how many things go on behind the scenes.

[*][SAFE]<3087hp 2435sp 1626st> 
TRACE: Trace on
TRACE: Matched trigger Other_Line
TRACE: Executing trigger script "Other_Line"
AUCTION: Existance bids 150,000 gp on a vertebrae from a dwarven battlerager.

TRACE: Matched trigger "^.+\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
TRACE: Matched trigger "^(?:.+|)\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
[*][SAFE]<3087hp 2435sp 1626st> 
TRACE: Executing trigger script "do_prompt"
TRACE: Matched trigger "^AUCTION: (.*): going (?:once|twice) (?:\(no bid received yet\)|for .* gp to .*)\.$"
TRACE: Executing trigger script "item_comment"
AUCTION: A vertebrae from a dwarven battlerager: going once for 150,000 gp to Existance.
[CLAN] Sotano: '??Milk?? he got fged 7 times in a row'
TRACE: Matched trigger "^(.*?)[CLAN] (.*)$"
TRACE: Matched trigger Name_Line
TRACE: Executing trigger script "redirect"
TRACE: Executing trigger script "Name_Line"
TRACE: Matched trigger Other_Line
TRACE: Executing trigger script "Other_Line"
TRACE: Matched trigger "^.+\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
TRACE: Matched trigger "^(?:.+|)\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
TRACE: Matched trigger Other_Line
[*][SAFE]<3087hp 2455sp 1730st> [ 0 * 20 * 104 ]
TRACE: Executing trigger script "do_prompt"
TRACE: Executing trigger script "Other_Line"
[CLAN] Calastion: 'Chris  omg'
TRACE: Matched trigger "^(.*?)[CLAN] (.*)$"
TRACE: Matched trigger Other_Line
TRACE: Executing trigger script "redirect"
TRACE: Executing trigger script "Other_Line"

TRACE: Matched trigger "^.+\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
TRACE: Matched trigger "^(?:.+|)\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
[*][SAFE]<3087hp 2455sp 1730st> 
TRACE: Executing trigger script "do_prompt"
[CLAN] Example: ''E'x'O by what/azzy?'
TRACE: Matched trigger "^(.*?)[CLAN] (.*)$"
TRACE: Matched trigger Name_Line
TRACE: Executing trigger script "redirect"
TRACE: Executing trigger script "Name_Line"
TRACE: Matched trigger Other_Line
TRACE: Executing trigger script "Other_Line"
TRACE: Matched trigger "^.+\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
TRACE: Matched trigger "^(?:.+|)\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
TRACE: Matched trigger Other_Line
[*][SAFE]<3087hp 2455sp 1730st> 
TRACE: Executing trigger script "do_prompt"
TRACE: Executing trigger script "Other_Line"
[CLAN] Sotano: '??Milk?? he lost his eye of trigael'
TRACE: Matched trigger "^(.*?)[CLAN] (.*)$"
TRACE: Matched trigger Other_Line
TRACE: Executing trigger script "redirect"
TRACE: Executing trigger script "Other_Line"

TRACE: Matched trigger "^.+\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
TRACE: Matched trigger "^(?:.+|)\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
[*][SAFE]<3087hp 2500sp 1730st> 
TRACE: Executing trigger script "do_prompt"
TRACE: Trace off


Had to cut it short due to the 6000 character post limit.
Australia Forum Administrator #11
I don't see anything about "You feel relieved as the poison is burned from your body.".

You need to do it (disable the mapper to reduce output) and get that line to appear (or one of the other problem ones) so we can see if another trigger is firing.

Just a few lines around that spot, we don't need thousands of them.
USA #12
Nick Gammon said:

I don't see anything about "You feel relieved as the poison is burned from your body.".

You need to do it (disable the mapper to reduce output) and get that line to appear (or one of the other problem ones) so we can see if another trigger is firing.

Just a few lines around that spot, we don't need thousands of them.


Here ya go:


TRACE: Matched trigger "^.+\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
TRACE: Matched trigger "^(?:.+|)\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
[AWAY][*]<2778hp 2351sp 1711st> 
TRACE: Executing trigger script "do_prompt"
You have completed your casting.
A pinch of sulfur flares brightly and vanishes!
Exhopec is outlined by a faint pink glow.
TRACE: Matched trigger "* is outlined by a faint pink glow."
----- Exhopec IS FAERIE FIRED'D -----
Your spellcasting charges the glowing tourmaline gloves of well-being up to 30 units!    
Exhopec nimbly backflips out of the way of your first attack.
Exhopec is cut on the leg with your slash causing moderate damage.
TRACE: Matched trigger "* is * on the * with your * causing *."
Exhopec is cut on the wing with your slash causing middling damage.
TRACE: Matched trigger "* is * on the * with your * causing *."
Exhopec is cut on the arm with your slash causing moderate damage.
TRACE: Matched trigger "* is * on the * with your * causing *."
Exhopec fails to hit you with his first attack.
Exhopec fails to hit you with his second attack.
Exhopec fails to hit you with his third attack.
You dodge out of the way of Exhopec's fourth attack.
Exhopec looks pretty beaten up.
TRACE: Matched trigger "^(?P<enemy_name>.+) looks pretty beaten up\.$"
TRACE: Executing trigger script "enemy50"

TRACE: Matched trigger "^.+\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
TRACE: Matched trigger "^(?:.+|)\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
[AWAY][*]<2778hp 2331sp 1704st> [ 0 * -20 * -7 ]
TRACE: Executing trigger script "do_prompt"
TRACE: Matched alias "fn"
flee north
You panic, and attempt to flee.


TRACE: Matched trigger "^.+\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
TRACE: Matched trigger "^(?:.+|)\<(?P<hp>[0-9]{1,4})hp (?P<sp>(?1))sp (?P<st>(?1))st\>"
[AWAY][*]<2778hp 2331sp 1703st> 
TRACE: Executing trigger script "do_prompt"
TRACE: Trace off


In this case, the higlighted section is the string: * is outlined by a faint pink glow.
USA #13
Err, I quickly saved my log file after fixing my preamble and I think I might have figured it out?

For some reason, the text is THERE but the colors are incorrectly inverted. The text is black, and the background is also black so it makes it seem as if it is omitted from output/log file (neither of which options is selected), so it seems to be a color issue then.
Australia Forum Administrator #14
Your screenshot above of the HTML log however does not show any blank lines. Also when I tested it with green on black, with logging, it logged OK.