Warrior damage error

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Warrior damage error

Postby Msirbono » Tue Aug 22, 2006 1:17 am

Hi, I couldnt find this in any search I ran on the site so I figured I'd give this a shot.

All the Warriors in my guild are getting the same strange damage rating in the roster:

|cffff2020150

Its not a huge deal but I was wondering if any one else has had this problem and if there was a fix, or possibly something in the next version that will fix this.
Msirbono
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Tue Aug 22, 2006 12:16 am
Location: Blackfoot, ID

Warrior damage error

Postby Lightfeather » Tue Aug 22, 2006 2:58 am

I've noticed the same thing! I posted it up in the data accuracy forum though. And now that you mention it it's NOT thunderfury. It is just all warriors.

http://wowroster.net/Forums/viewtopic/t=829.html
User avatar
Lightfeather
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Thu Aug 17, 2006 7:29 am

Warrior damage error

Postby mrmuskrat » Tue Aug 22, 2006 4:26 am

It's not happening for all warriors because my warrior doesn't have this problem.
User avatar
mrmuskrat
WR.net Journeyman
WR.net Journeyman
 
Posts: 117
Joined: Sat Jul 29, 2006 9:50 pm

Re: Warrior damage error

Postby Msirbono » Tue Aug 22, 2006 6:16 am

yeah I saw that post there but wasnt sure if it ment the same thing. I did searches for warrior damage and the weird number (the number itself not the word weird number,lol) and didnt come up with any thing on either. also didnt know if it would be considered data accuracy or not, which is why I posted it as general.

I figured it wasnt all warriors everywhere having this problem cause I'm sure there would have been more of a fuss on here about it that I would have seen.. But so far the warriors in my guild who have uploaded their proflies have gotten this rating on their profile.
Msirbono
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Tue Aug 22, 2006 12:16 am
Location: Blackfoot, ID

Re: Warrior damage error

Postby inkfreq » Fri Aug 25, 2006 3:31 pm

Its not just warriors.

http://www.voodooreborn.com/modules.php ... %20Council

Its any class which has a +damage weapon that is not being calculated correctly. In my case, my wand is throwing off my ranged damage badly.

On another character:
http://www.voodooreborn.com/modules.php ... %20Council

Things still aren't right.
inkfreq
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Thu Jul 13, 2006 12:26 pm

Warrior damage error

Postby zanix » Fri Aug 25, 2006 4:01 pm

That's WoW coloring code
It's just missing the last part
Code: Select all
|cffff2020TEXT|r
^ ^       ^   ^
| |       |   |_End of coloring
| |       |_____Text
| |_____________Color code  AARRGGBB (Alpha, Red, Green, Blue)
|_______________Begin coloring

I think that calvin isn't striping out this information on this data
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Warrior damage error

Postby Lanfiir » Sat Aug 26, 2006 5:56 pm

Same issue with at least one of the profiles on my site, even after upgrading to CP 1.6.0.

Is there a fix yet?
User avatar
Lanfiir
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Wed Jul 05, 2006 8:48 pm

Warrior damage error

Postby zanix » Sun Aug 27, 2006 5:18 am

This happens if you have a buff to damage

If the buff goes away, then the data will look correct
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Warrior damage error

Postby mrmuskrat » Sun Aug 27, 2006 11:48 am

I tested this with mocked up data based on zanix's post about the color codes.

In lib/wowdb.php, replace the following:
Code: Select all
if( !empty($attack['DamageRange']) )
        
$this->add_value'melee_range'$attack['DamageRange'] ); 


With this:
Code: Select all
if( !empty($attack['DamageRange']) )
{
        
$attack['DamageRange'] = preg_replace('/\|c[0-9a-f]{8}(.*?)\|r/i''\1'$attack['DamageRange']);
        
$this->add_value'melee_range'$attack['DamageRange'] );
}
 


Then replace the following:
Code: Select all
if( !empty($attack['DamageRange']) )
        
$this->add_value'ranged_range'$attack['DamageRange'] ); 


With this:
Code: Select all
if( !empty($attack['DamageRange']) )
{
        
$attack['DamageRange'] = preg_replace('/\|c[0-9a-f]{8}(.*?)\|r/i''\1'$attack['DamageRange']);
        
$this->add_value'ranged_range'$attack['DamageRange'] );
}
 


Updated: changed patterns to be case insensitive.
Last edited by mrmuskrat on Sun Aug 27, 2006 12:06 pm, edited 1 time in total.
User avatar
mrmuskrat
WR.net Journeyman
WR.net Journeyman
 
Posts: 117
Joined: Sat Jul 29, 2006 9:50 pm

Warrior damage error

Postby Msirbono » Sun Aug 27, 2006 12:12 pm

I'm going to see if I can get my guildmates to upload their profiles again unbuffed to test what zanix said about the buffed damage before i go in and alter the php if that works then its no biggie, if not at least i can do the php fix
Msirbono
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Tue Aug 22, 2006 12:16 am
Location: Blackfoot, ID


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 0 guests

cron