Not Parsing Item Colors and Names

Sync Blizzards' Armory data with WoWRoster (addon depreciated no longer works see ApiSync)

Moderators: Ulminia, poetter

Not Parsing Item Colors and Names

Postby Lopez79 » Fri Jun 08, 2007 9:45 pm

I ran the sync and now all data is messed up
When i look in the database i have no item names and all the colors are grey.
Any reason for this or have a fix for it?
Lopez79
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Thu May 17, 2007 7:36 am

Re: Not Parsing Item Colors and Names

Postby spy0012 » Sat Jun 09, 2007 2:17 am

I have also managed to get an update from EU armory and as lopez said everything is grey and mouseovers are alot longer as all text is spaced more than before.

Any fix for this please.
spy0012
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Mon Dec 04, 2006 3:42 am

Not Parsing Item Colors and Names

Postby blackice » Sun Jun 17, 2007 8:55 pm

same here
User avatar
blackice
WR.net Apprentice
WR.net Apprentice
 
Posts: 34
Joined: Tue Jul 25, 2006 4:15 pm

Re: Not Parsing Item Colors and Names

Postby LionelW » Mon Jun 18, 2007 4:29 am

Agreed; I'm experiencing the same thing.
LionelW
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Sun Jun 17, 2007 7:06 pm

Not Parsing Item Colors and Names

Postby Kristoff22 » Tue Jun 19, 2007 2:52 am

Not sure why this happened, but I suspect an update/change was made to Armory. I'll look into it shortly.
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

Not Parsing Item Colors and Names

Postby LionelW » Tue Jun 19, 2007 8:17 am

Thank you Kristoff.
LionelW
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Sun Jun 17, 2007 7:06 pm

Re: Not Parsing Item Colors and Names

Postby Lopez79 » Sat Jun 23, 2007 12:00 am

Welcome back ....
Thanx for looking into this as well.
Lopez79
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Thu May 17, 2007 7:36 am

Not Parsing Item Colors and Names

Postby gaslag » Mon Jun 25, 2007 2:08 pm

Hello,

any news ?

thanks for your great work ^^
gaslag
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Sat Feb 03, 2007 8:03 am
Location: Belgium

Not Parsing Item Colors and Names

Postby Lopez79 » Thu Jun 28, 2007 1:08 am

any luck on this?
Lopez79
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Thu May 17, 2007 7:36 am

Not Parsing Item Colors and Names

Postby Hurz » Thu Jun 28, 2007 3:51 am

I think i found out why the colors and link are broken. The item name and id are not parsed into the db. If you have a look at the roster_items table you will find, that the item_name is empty and item_id ist only one number (as 28570). Normaly the item_name should be filled and the id should be complete (as 28112:0:0:0:0:0:0:1413965654).

This happens in the german/multilanguage version for me. Also after sync with the armory (EU armory), the german special letters as ä, ö and ü are messed up. That is why instead of "Männlich" (male) there is a M[]nnlich ([] is a square here) in the description of the characters. That is why e.g. siggen does not recognize the gender correct.
Hurz
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Mon Jun 18, 2007 12:01 am

Re: Not Parsing Item Colors and Names

Postby delirium » Thu Jun 28, 2007 8:47 pm

Well it goes wrong searching in the item-tooltip.xml.. the only difference between the 2 armory sites are:

<page globalSearch="1" lang="en_gb" requestUrl="/item-tooltip.xml">
and
<page globalSearch="1" lang="en_us" requestUrl="/item-tooltip.xml">

The rest of the xml files are identical.
I'm no coder so I wish goodluck to Kristoff22
delirium
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Sat Jul 08, 2006 9:58 pm

Re: Not Parsing Item Colors and Names

Postby Darkmages » Thu Jun 28, 2007 9:52 pm

Try this:

Open functions.parsing.php

Find:
Code: Select all
if (!empty($content)) {
    
$armoryItem $xml_parser->parse($content);
    
$item["Color"] = getItemColor($armoryItem->itemTooltip->overallQualityId->_CDATA);
    
$item["Name"] = $armoryItem->itemTooltip->name->_CDATA;


Change to:
Code: Select all
if (!empty($content)) {
    
$armoryItem $xml_parser->parse($content);
    
$item["Color"] = getItemColor($armoryItem->itemTooltips->itemTooltip->overallQualityId->_CDATA);
    
$item["Name"] = $armoryItem->itemTooltips->itemTooltip->name->_CDATA;


Find:
Code: Select all
if (!empty($content)) {
    
$item["Tooltip"] = trim(str_replace("\n\n""\n"str_replace("<br />""\n"strip_tags(nl2br($content), "<br>"))));


Change to:
Code: Select all
if (!empty($content)) {
    
$item["Tooltip"] = trim(str_replace("\n\n""\n"str_replace("<br />""\n"strip_tags(nl2br($content)))));



This worked for me :)
User avatar
Darkmages
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu May 31, 2007 8:37 pm

Not Parsing Item Colors and Names

Postby Hurz » Thu Jun 28, 2007 10:47 pm

I have no idea what you did - but it worked for me as well. The only problem still is, that my php runs into a timeout - even when only syncing the 23 lvl 70 characters. Has to be the curl=false I have to use (no idea how to make a own php.ini, where to but it and what to upload on my server to make it work).
Hurz
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Mon Jun 18, 2007 12:01 am

Not Parsing Item Colors and Names

Postby Pugro » Fri Jun 29, 2007 12:41 am

Worked perfectly for me too :-) With the timeout, I've posted a modified version that does on char at a time, I'll update it with this change when I get a chance if you want?
--------------------------------
Pugro_
Ice and Trinity Guilds, Nordrassil, EU PvE
www.iceguild.org.uk, www.trinityguild.net
Image
Pugro
WR.net Journeyman
WR.net Journeyman
 
Posts: 79
Joined: Fri Jul 07, 2006 2:14 pm
Location: London, UK

Not Parsing Item Colors and Names

Postby Lopez79 » Fri Jun 29, 2007 3:39 am

Works great now Thanx amillion.
Lopez79
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Thu May 17, 2007 7:36 am

Next

Return to ArmorySync - Depreciated

Who is online

Users browsing this forum: No registered users and 0 guests

cron