lib/item.php error WoWRoster v1.9.9.1555

Posts from previous Beta sessions

lib/item.php error WoWRoster v1.9.9.1555

Postby knappster » Fri Jan 25, 2008 12:11 am

In somebody's character profile, this error pops up. The error message that I get is quite long, so I will enter it in a code field:
Code: Select all
  Roster Notice line 1233: Failed to Parse "Gladiator's Silk Cowl": [25855:0:2827:2692:0:0:0:0] (enUS) colorToolTip() used
Requires at least 2 Red gems
Requires at least 2 Blue gems
Requires at least 2 Yellow gems
  Roster Notice line 559: Item parser data
Requires at least 2 Red gems
Requires at least 2 Blue gems
Requires at least 2 Yellow gems Gladiator's Silk Cowl
Soulbound
Head Cloth
168 Armor
+54 Stamina
+15 Intellect
|cff808080+14 Spell Crit Rating and 1% Spell Reflect|r
|cffffffffRequires at least 2 Red gems|r
|cff808080Requires at least 2 Blue gems|r
|cffffffffRequires at least 2 Yellow gems|r
|cffffffff+7 Spell Damage|r
Socket Bonus: +4 Resilience Rating
Durability 60 / 60
Classes: Mage
Requires Level 70
Equip: Improves spell critical strike rating by 18.
Equip: Improves your resilience rating by 30.
Equip: Increases damage and healing done by magical spells and effects by up to 37.

Gladiator's Regalia (4/5)
Gladiator's Silk Amice
Gladiator's Silk Cowl
Gladiator's Silk Handguards
Gladiator's Silk Raiment
Vengeful Gladiator's Silk Trousers

Set: +35 Resilience Rating.
Set: Reduces the cooldown of your Blink spell by 2 sec.

 Array(
   'Attributes' =>  Array(
      'SocketBonus' => 'Socket Bonus: +4 Resilience Rating
',
      'Gems' =>  Array(
         1 =>  Array(
            'GemId' => 25890,
            'Name' => 'Destructive Skyfire Diamond',
            'Color' => 'meta',
            'Tooltip' => 'Destructive Skyfire Diamond<br>+14 Spell Crit Rating and 1% Spell Reflect<br>  |cffffffffRequires at least 2 Red gems|r<br>  |cff808080Requires at least 2 Blue gems|r<br>  |cffffffffRequires at least 2 Yellow gems|r<br>\"Only fits in a meta gem slot.\"',
            'Icon' => 'inv_misc_gem_diamond_07',
            'Bonus' => '+14 Spell Crit Rating and 1% Spell Reflect',
            'SocketId' => 2827,
            'locale' => 'enUS'
            ),
         2 =>  Array(
            'GemId' => 23096,
            'Name' => 'Runed Blood Garnet',
            'Color' => 'red',
            'Tooltip' => 'Runed Blood Garnet<br>+7 Spell Damage<br>\"Matches a Red Socket.\"',
            'Icon' => 'inv_misc_gem_bloodgem_02',
            'Bonus' => '+7 Spell Damage',
            'SocketId' => 2692,
            'locale' => 'enUS'
            )
         ),
      'Quality' =>  Array(
         'Id' => 5,
         'Name' => 'epic'
         ),
      'Quantity' => 1,
      'BindType' => 'Soulbound',
      'ArmorType' => 'Cloth',
      'ArmorSlot' => 'Head',
      'ArmorClass' =>  Array(
         'Line' => '168 Armor',
         'Rating' => 168
         ),
      'BaseStats' =>  Array(
         'Stamina' => '+54 Stamina',
         'Intellect' => '+15 Intellect'
         ),
      'Durability' =>  Array(
         'Line' => 'Durability 60 / 60',
         'Current' => 60,
         'Max' => 60
         ),
      'Class' =>  Array(
         0 => 'Mage'
         ),
      'ClassText' => 'Classes:',
      'Requires' =>  Array(
         0 => 'Requires Level 70'
         ),
      'Set' =>  Array(
         'ArmorSet' =>  Array(
            'Name' => 'Gladiator's Regalia',
            'Piece' =>  Array(
               1 =>  Array(
                  'Name' => 'Gladiator's Silk Amice',
                  'Equip' => True
                  ),
               2 =>  Array(
                  'Name' => 'Gladiator's Silk Cowl',
                  'Equip' => True
                  ),
               3 =>  Array(
                  'Name' => 'Gladiator's Silk Handguards',
                  'Equip' => True
                  ),
               4 =>  Array(
                  'Name' => 'Gladiator's Silk Raiment'
                  ),
               5 =>  Array(
                  'Name' => 'Vengeful Gladiator's Silk Trousers',
                  'Equip' => True
                  )
               )
            ),
         'SetBonus' =>  Array(
            0 => 'Set: +35 Resilience Rating.',
            1 => 'Set: Reduces the cooldown of your Blink spell by 2 sec.'
            )
         )
      ),
   'General' =>  Array(
      'Name' => 'Gladiator's Silk Cowl',
      'ItemId' => '25855:0:2827:2692:0:0:0:0',
      'ItemColor' => 'a335ee',
      'Icon' => 'inv_helmet_08',
      'Slot' => 'Head',
      'Parent' => 'equip',
      'Tooltip' => 'Gladiator's Silk Cowl<br>Soulbound<br>Head   Cloth<br>168 Armor<br>+54 Stamina<br>+15 Intellect<br>|cff808080+14 Spell Crit Rating and 1% Spell Reflect|r<br>  |cffffffffRequires at least 2 Red gems|r<br>  |cff808080Requires at least 2 Blue gems|r<br>  |cffffffffRequires at least 2 Yellow gems|r<br>|cffffffff+7 Spell Damage|r<br>Socket Bonus: +4 Resilience Rating<br>Durability 60 / 60<br>Classes: Mage<br>Requires Level 70<br>Equip: Improves spell critical strike rating by 18.<br>Equip: Improves your resilience rating by 30.<br>Equip: Increases damage and healing done by magical spells and effects by up to 37.<br> <br>Gladiator's Regalia (4/5)<br>  Gladiator's Silk Amice<br>  Gladiator's Silk Cowl<br>  Gladiator's Silk Handguards<br>  Gladiator's Silk Raiment<br>  Vengeful Gladiator's Silk Trousers<br> <br>Set: +35 Resilience Rating.<br>Set: Reduces the cooldown of your Blink spell by 2 sec.<br><Shift Right Click to Socket>',
      'Locale' => 'enUS'
      ),
   'Effects' =>  Array(
      'Equip' =>  Array(
         0 => 'Equip: Improves spell critical strike rating by 18.',
         1 => 'Equip: Improves your resilience rating by 30.',
         2 => 'Equip: Increases damage and healing done by magical spells and effects by up to 37.'
         )
      )
   );

  Roster Notice line 1233: Failed to Parse "Gladiator's Silk Cowl": [25855:0:2827:2692:0:0:0:0] (enUS) colorToolTip() used
Requires at least 2 Red gems
Requires at least 2 Blue gems
Requires at least 2 Yellow gems
  Roster Notice line 559: Item parser data
Requires at least 2 Red gems
Requires at least 2 Blue gems
Requires at least 2 Yellow gems Gladiator's Silk Cowl
Soulbound
Head Cloth
168 Armor
+54 Stamina
+15 Intellect
|cff808080+14 Spell Crit Rating and 1% Spell Reflect|r
|cffffffffRequires at least 2 Red gems|r
|cff808080Requires at least 2 Blue gems|r
|cffffffffRequires at least 2 Yellow gems|r
|cffffffff+7 Spell Damage|r
Socket Bonus: +4 Resilience Rating
Durability 60 / 60
Classes: Mage
Requires Level 70
Equip: Improves spell critical strike rating by 18.
Equip: Improves your resilience rating by 30.
Equip: Increases damage and healing done by magical spells and effects by up to 37.

Gladiator's Regalia (4/5)
Gladiator's Silk Amice
Gladiator's Silk Cowl
Gladiator's Silk Handguards
Gladiator's Silk Raiment
Vengeful Gladiator's Silk Trousers

Set: +35 Resilience Rating.
Set: Reduces the cooldown of your Blink spell by 2 sec.

 Array(
   'Attributes' =>  Array(
      'SocketBonus' => 'Socket Bonus: +4 Resilience Rating
',
      'Gems' =>  Array(
         1 =>  Array(
            'GemId' => 25890,
            'Name' => 'Destructive Skyfire Diamond',
            'Color' => 'meta',
            'Tooltip' => 'Destructive Skyfire Diamond<br>+14 Spell Crit Rating and 1% Spell Reflect<br>  |cffffffffRequires at least 2 Red gems|r<br>  |cff808080Requires at least 2 Blue gems|r<br>  |cffffffffRequires at least 2 Yellow gems|r<br>\"Only fits in a meta gem slot.\"',
            'Icon' => 'inv_misc_gem_diamond_07',
            'Bonus' => '+14 Spell Crit Rating and 1% Spell Reflect',
            'SocketId' => 2827,
            'locale' => 'enUS'
            ),
         2 =>  Array(
            'GemId' => 23096,
            'Name' => 'Runed Blood Garnet',
            'Color' => 'red',
            'Tooltip' => 'Runed Blood Garnet<br>+7 Spell Damage<br>\"Matches a Red Socket.\"',
            'Icon' => 'inv_misc_gem_bloodgem_02',
            'Bonus' => '+7 Spell Damage',
            'SocketId' => 2692,
            'locale' => 'enUS'
            )
         ),
      'Quality' =>  Array(
         'Id' => 5,
         'Name' => 'epic'
         ),
      'Quantity' => 1,
      'BindType' => 'Soulbound',
      'ArmorType' => 'Cloth',
      'ArmorSlot' => 'Head',
      'ArmorClass' =>  Array(
         'Line' => '168 Armor',
         'Rating' => 168
         ),
      'BaseStats' =>  Array(
         'Stamina' => '+54 Stamina',
         'Intellect' => '+15 Intellect'
         ),
      'Durability' =>  Array(
         'Line' => 'Durability 60 / 60',
         'Current' => 60,
         'Max' => 60
         ),
      'Class' =>  Array(
         0 => 'Mage'
         ),
      'ClassText' => 'Classes:',
      'Requires' =>  Array(
         0 => 'Requires Level 70'
         ),
      'Set' =>  Array(
         'ArmorSet' =>  Array(
            'Name' => 'Gladiator's Regalia',
            'Piece' =>  Array(
               1 =>  Array(
                  'Name' => 'Gladiator's Silk Amice',
                  'Equip' => True
                  ),
               2 =>  Array(
                  'Name' => 'Gladiator's Silk Cowl',
                  'Equip' => True
                  ),
               3 =>  Array(
                  'Name' => 'Gladiator's Silk Handguards',
                  'Equip' => True
                  ),
               4 =>  Array(
                  'Name' => 'Gladiator's Silk Raiment'
                  ),
               5 =>  Array(
                  'Name' => 'Vengeful Gladiator's Silk Trousers',
                  'Equip' => True
                  )
               )
            ),
         'SetBonus' =>  Array(
            0 => 'Set: +35 Resilience Rating.',
            1 => 'Set: Reduces the cooldown of your Blink spell by 2 sec.'
            )
         )
      ),
   'General' =>  Array(
      'Name' => 'Gladiator's Silk Cowl',
      'ItemId' => '25855:0:2827:2692:0:0:0:0',
      'ItemColor' => 'a335ee',
      'Icon' => 'inv_helmet_08',
      'Slot' => 'Head',
      'Parent' => 'equip',
      'Tooltip' => 'Gladiator's Silk Cowl<br>Soulbound<br>Head   Cloth<br>168 Armor<br>+54 Stamina<br>+15 Intellect<br>|cff808080+14 Spell Crit Rating and 1% Spell Reflect|r<br>  |cffffffffRequires at least 2 Red gems|r<br>  |cff808080Requires at least 2 Blue gems|r<br>  |cffffffffRequires at least 2 Yellow gems|r<br>|cffffffff+7 Spell Damage|r<br>Socket Bonus: +4 Resilience Rating<br>Durability 60 / 60<br>Classes: Mage<br>Requires Level 70<br>Equip: Improves spell critical strike rating by 18.<br>Equip: Improves your resilience rating by 30.<br>Equip: Increases damage and healing done by magical spells and effects by up to 37.<br> <br>Gladiator's Regalia (4/5)<br>  Gladiator's Silk Amice<br>  Gladiator's Silk Cowl<br>  Gladiator's Silk Handguards<br>  Gladiator's Silk Raiment<br>  Vengeful Gladiator's Silk Trousers<br> <br>Set: +35 Resilience Rating.<br>Set: Reduces the cooldown of your Blink spell by 2 sec.<br><Shift Right Click to Socket>',
      'Locale' => 'enUS'
      ),
   'Effects' =>  Array(
      'Equip' =>  Array(
         0 => 'Equip: Improves spell critical strike rating by 18.',
         1 => 'Equip: Improves your resilience rating by 30.',
         2 => 'Equip: Increases damage and healing done by magical spells and effects by up to 37.'
         )
      )
   );




It's a new install and I am requiring CP 2.3.0 or higher in order to update, so it shouldn't be a CP issue.

I'm hosting at 000webhost.com
OS Linux
Server Software Apache
MySQL Version 4.1.22-standard-log
PHP Version 5.2.5

I doubt it's related, but the image of his "The Horseman's Signet Ring" is also not showing up (probably not in the 2.0 itemsets or something).

This isn't urgent by any means, I just thought I would bring it up in hopes that it will help out.
knappster
WR.net Apprentice
WR.net Apprentice
 
Posts: 63
Joined: Fri Jul 21, 2006 11:12 pm

lib/item.php error WoWRoster v1.9.9.1555

Postby poetter » Fri Jan 25, 2008 1:05 am

I have come along the same issue on implementing gems with ArmorySync. I will have a look at it.
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg

Re: lib/item.php error WoWRoster v1.9.9.1555

Postby knappster » Fri Jan 25, 2008 1:39 am

Alright, but fyi it's not isolated to ArmorySync, because I am not using it.
knappster
WR.net Apprentice
WR.net Apprentice
 
Posts: 63
Joined: Fri Jul 21, 2006 11:12 pm

lib/item.php error WoWRoster v1.9.9.1555

Postby poetter » Fri Jan 25, 2008 1:47 am

Yes, i know. I came along in a cp upload too. I always need to know what the cp upload does because i have to be cp upload compatible with AS.
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg

lib/item.php error WoWRoster v1.9.9.1555

Postby PleegWat » Fri Jan 25, 2008 4:19 am

This is related to the item parser. DS wrote that, but he doesn't seem to be around anymore.

Poetter, if you want to take over that part of the code, be my guest.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

lib/item.php error WoWRoster v1.9.9.1555

Postby poetter » Fri Jan 25, 2008 5:25 am

Yeah, i will have a look at it
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg

Re: lib/item.php error WoWRoster v1.9.9.1555

Postby poetter » Tue Jan 29, 2008 6:00 pm

OK, I analyzed this one. In short there are three ways to get rid of it.

The easiest and dirtiest way would be to add the meta socket requirements to the tooltip_garbage string. Strings are gone. No problem any more.

The second one(the one I did now) was to add an additional preg_match for these lines and add them after the first gem.

The last and the hardest one would be to keep the functionality of the tooltip and make them appear white if the requirement matches and gray if they don't.

To do so, we would need additional functionality in char.lib.php which needs to track the amount of socket colors of all gems, make some mathematic formula out of the requirements and after processing all items do the needed changes to the head tooltip. That is not impossible but needs some more coding. So stay tuned.

PS. The locale strings for tooltip_preg_meta_requires need to be translated to frFR and esES. So please help.
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg

lib/item.php error WoWRoster v1.9.9.1555

Postby poetter » Tue Jan 29, 2008 8:54 pm

Alright, i implemented the third way. Modification where just made to item.php.

Three new strings in the locale files need to be translated! "tooltip_preg_meta_requires_min", "tooltip_preg_meta_requires_more" and "gem_colors_to_en"
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg


Return to Archived

Who is online

Users browsing this forum: No registered users and 0 guests

cron