Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
mazz
Beginner


Joined: 27 Oct 2010
Posts: 15

PostPosted: Fri Apr 22, 2011 4:01 am   

Color change 3.34
 
I noticed my triggers utilizing the line color option is no longer working correctly. I am guessing this relates directly to the color upgrades of 3.34 as 3.33a was working perfectly. Is there something I need to change to get to work properly with the color changes?
Reply with quote
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Fri Apr 22, 2011 3:57 pm   
 
Can you give us an example of a trigger? The only way to know if a new bug was introduced is we get an example.
_________________
Run as hard as a wild beast if you will, but you won't get any reward greater than that destined for you.
Source: (Egyptian)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Apr 22, 2011 4:49 pm   
 
As Darmir said, we need to see the exact trigger. Also you need to go into the Script Debugger and turn on the Raw Input/Output message and show us the line from the MUD that is firing the trigger.
Reply with quote
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: Fri Apr 22, 2011 5:25 pm   
 
I'll do one better as I'm having the same issue. Screen shot of the trigger line at the bottom for defenses then a screenshot of the trigger that used to fire off of it no problems

Reply with quote
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: Fri Apr 22, 2011 5:39 pm   
 
0.2525 | a TalonnbS #Telnet 201: Char.Vitals { "hp": "6006", "maxhp": "6006", "mp": "6367", "maxmp": "5720", "ep": "24900", "maxep": "24900", "wp": "24900", "maxwp": "24900", "nl": "13", "xp": "571181", "maxxp": "4211728", "blood": "100", "bleeding": "0", "blind": "1", "deaf": "1", "prone": "0", "cloak": "0", "fangbarrier": "0", "flying": "0", "status": "living", "balance": "1", "equilibrium": "1", "left_arm": "1", "right_arm": "1", "class": "zealot", "spark": "98", "stance": "none", "shortstance": "", "string": "H:6006/6006 M:6367/5720 E:24900/24900 W:24900/24900 NL:13/100 " }
0.0021 | a TalonnbS |H:6006 M:6367 E:100% W:100% B:100% Spark:98% Stance:None XP:13% [db eb lr]
0.0018 | a TalonnbS |You have the following active defences:
0.0015 | a TalonnbS |You are blessed with double experience.
0.0039 | a TalonnbS |You have prepared your Inner Spark to bring about your Rebirth.
0.0018 | a TalonnbS |You walk with the grace of the stars.
0.0016 | a TalonnbS |You are deaf.
0.0016 | a TalonnbS |You are blind.
0.0016 | a TalonnbS |Your senses are magically heightened.
0.0016 | a TalonnbS |You are protected by 6 defences.
0.0040 | a TalonnbS ]H:6006 M:6367 E:100% W:100% B:100% Spark:98% Stance:None XP:13% [db eb lr]
1.9040 | f TalonnbS | Alarm: +30
0.0009 | c TalonnbS | exec : Alarm "_Alarm24" : #if (@programs.idling = 1) {doidle}
Reply with quote
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: Fri Apr 22, 2011 5:46 pm   
 
Oh, and a little bit of a side note, if I uncheck the line color option, the trigger fires fine....so I don't get it
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Fri Apr 22, 2011 6:11 pm   
 
Talonnb, the color in your line color option does not appear to match match the color of the line from the mud. If that is correct, it would explain why your trigger doesn't fire if you with the line color option on.
Reply with quote
mazz
Beginner


Joined: 27 Oct 2010
Posts: 15

PostPosted: Fri Apr 22, 2011 6:30 pm   
 
Rahab wrote:
Talonnb, the color in your line color option does not appear to match match the color of the line from the mud. If that is correct, it would explain why your trigger doesn't fire if you with the line color option on.


Yeah, that's our point. Prior to the update the color was matching, it no longer does with the color update. What Talonnb posted it exactly what I am talking about.
Reply with quote
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: Fri Apr 22, 2011 6:30 pm   
 
But it 'did' prior to the update, so I don't think it's the color I've chosen. I've even messed around with the color, thinking maybe it changed, but it hasn't. And this isn't the only one that isn't firing anymore, I have a lot of color based trigs, off of other colors as well and they aren't firing either
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Apr 22, 2011 6:42 pm   
 
I can confirm that this is a bug.

What is happening here is that the Trigger is requiring a full match of both the foreground and background color. However, the recent bug fix when handling the default background color makes this different.

For example, in the past if the MUD just send the ANSI code to color the foreground red (with a default black background), the trigger would fire. However in 3.34 the background isn't "black" anymore, it is "default" unless the MUD specifically changes it. So your trigger is trying to match foreground red and background black but the color on the screen is foreground red and background default. So it doesn't match anymore.

So I need to change how the trigger Line Color is working and have it convert the default background color into the *actual* color on the screen before it tries to match the trigger. This is a bit tricky to do correctly, but I'll try to release an update in a week or so to fix this. Sorry it screwed up your triggers.

BTW, if you are using ANSI Color triggers that no longer work, simply copy the line you want to match from the MUD and paste it into the Pattern field of the Trigger Editor when the ANSI Color option is checked. This will cause CMUD to properly fill in the needed ANSI color codes into your trigger pattern. The bug fixes in 3.34 might have changed some of this slightly so you might need to re-paste the line from the MUD to get the correct color codes. I won't be able to fix that, but I should be able to fix the simple "Line Color" issue.
Reply with quote
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: Sat Apr 23, 2011 12:20 am   
 
I found a 'temp' fix for this. As you said, it had to do with the default background color so that got me to thinking about a fix.

I went in under Options-General-Ansi Color-Background Color and clicked on the black box below the '0' and clicked on black again. Once I ok'd out of it, it worked fine, hope that helps anyone else having the issue
Reply with quote
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: Sat Apr 23, 2011 10:26 pm   
 
That only apparently worked for me once and now doesn't work again....don't know what I did, but guess that isn't the fix I thought it was
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net