Introducing ArmorySync

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

Moderators: Ulminia, poetter

Introducing ArmorySync

Postby Seekers » Sun Mar 25, 2007 12:01 pm

Ok, it is not working as great is i had hoped on my normal roster, it updates 2 members and then give me the error:

CRITICAL ERROR: Incomplete Data for Character.
Adrianus synched: 0 seconds. Total runtime: 0 seconds.
Alarion synched: 3 seconds. Total runtime: 3 seconds.

Are there something i have done wrong ?

EDIT: Changed URL to wow-europe.com, so now i get same error was the other ppl searching the EU website :S

Code: Select all
Warning: fsockopen() [function.fsockopen]: unable to connect to armory.wow-europe.com:80 (Operation timed out) in /usr/home/web/******/shaolin-knights.com/skull/wowroster/addons/ArmorySynch/functions.general.php on line 7
CRITICAL ERROR - socket not connectedRetried 2times for: item-tooltip.xml?i=31282&r=Laughing Skull&n=Adrianus&lang=enUS

Warning: fsockopen() [function.fsockopen]: unable to connect to armory.wow-europe.com:80 (Operation timed out) in /usr/home/web/******/shaolin-knights.com/skull/wowroster/addons/ArmorySynch/functions.general.php on line 7
CRITICAL ERROR - socket not connectedRetried 2times for: item-tooltip.xml?i=28029&r=Laughing Skull&n=Adrianus&lang=enUS

Warning: fsockopen() [function.fsockopen]: unable to connect to armory.wow-europe.com:80 (Operation timed out) in /usr/home/web/*****/shaolin-knights.com/skull/wowroster/addons/ArmorySynch/functions.general.php on line 7
CRITICAL ERROR - socket not connectedRetried 2times for: item-tooltip.xml?i=27789&r=Laughing Skull&n=Adrianus&lang=enUS



Hmmm, how do u change enUS to enGB :P? Prob. the problem?
Last edited by Seekers on Mon Mar 26, 2007 1:05 am, edited 3 times in total.
User avatar
Seekers
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Tue Oct 10, 2006 1:38 pm

Introducing ArmorySync

Postby jungzandvliet » Sun Mar 25, 2007 6:18 pm

Well i still dont know how to fix my error?
Code: Select all
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/jungpiet/domains/twinkmyride.servegame.com/public_html/roster/addons/ArmorySynch/functions.general.php on line 7

Warning: fsockopen(): unable to connect to armory.wow-europe.com:80 in /home/jungpiet/domains/twinkmyride.servegame.com/public_html/roster/addons/ArmorySynch/functions.general.php on line 7
CRITICAL ERROR - socket not connectedCRITICAL ERROR: Empty Content for Player.
Agylo synched: 0 seconds. Total runtime: 0 seconds.

Code: Select all
http://twinkmyride.servegame.com/roster/addon.php?roster_addon_name=ArmorySynch&Activate=true


Anyone can help =)? (i just got the standard script of Armorsync + changed armory.worldofwarcraft.com to armory.wow-europe.com)
jungzandvliet
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Sat Aug 05, 2006 8:17 pm

Re: Introducing ArmorySync

Postby Weeladdie » Sun Mar 25, 2007 10:51 pm

jungzandvliet wrote:Well i still dont know how to fix my error?
Code: Select all
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/jungpiet/domains/twinkmyride.servegame.com/public_html/roster/addons/ArmorySynch/functions.general.php on line 7

Warning: fsockopen(): unable to connect to armory.wow-europe.com:80 in /home/jungpiet/domains/twinkmyride.servegame.com/public_html/roster/addons/ArmorySynch/functions.general.php on line 7
CRITICAL ERROR - socket not connectedCRITICAL ERROR: Empty Content for Player.
Agylo synched: 0 seconds. Total runtime: 0 seconds.

Code: Select all
http://twinkmyride.servegame.com/roster/addon.php?roster_addon_name=ArmorySynch&Activate=true


Anyone can help =)? (i just got the standard script of Armorsync + changed armory.worldofwarcraft.com to armory.wow-europe.com)


Getting the same problem, it doesn't seem to work when you configure to search the European Armory Site
User avatar
Weeladdie
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Tue Jul 04, 2006 1:48 pm

Introducing ArmorySync

Postby bwirum » Tue Mar 27, 2007 12:08 am

I'm also having serious troubles with timeouts using the Euro armory with this. I don't know if there's anything that needs to be done besides changing the address to armory.wow-europe.com tho, so any helpful leads would be strongly appreciated.
bwirum
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Wed Feb 28, 2007 8:08 pm

Introducing ArmorySync

Postby Bajah » Tue Mar 27, 2007 12:53 am

I've tried forcing a longer timeout from the php.ini (by default it's usually 30 to 60 seconds). This had absolutely no effect on the Activation.

I tried 120 seconds on up to 1000 seconds. But from entering the activate URL to it timing out/saying done, I usually only manage to get to a mental 12 count. So 12-15 seconds is timing out. Crazy crazy.
<img src="http://sok.bajah.com/rosteraddons/siggen/sig.php?member=Bajah ">
User avatar
Bajah
WR.net Apprentice
WR.net Apprentice
 
Posts: 38
Joined: Mon Aug 14, 2006 7:08 pm

Re: Introducing ArmorySync

Postby Kristoff22 » Tue Mar 27, 2007 7:56 am

bsmorgan wrote:I would like to suggest that the initial query:
Code: Select all
   $query = "SELECT name FROM " . ROSTER_MEMBERSTABLE;
be enhanced to select those guild members level 10 and higher and to order the result by last updated. This would help eliminate some of the critical errors for missing data as well as allowing multiple passes to make progress on larger guilds.

Regards,

Brad Morgan


Good idea... implementing.
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

Introducing ArmorySync

Postby boyo » Tue Mar 27, 2007 1:08 pm

An idea that may help with the larger guilds would be to select say 5 or 10 people sorted by last update run those 5, then do a header and redirect back to the script again, and repeat, do the next 5 or 10. Once everybody has been updated in the last, hour, for example, drop completely out of the script and put up a message saying processing complete.

Would prevent server timeouts for the most part, especially on servers that timeout after 30 seconds.

Also to have it print out 5 of 100 characters sync'd, 10 of 100, etc... just so you know it's still running.

Might also be a good idea to put in a get that disables or at least severely limits all output, so the script could be starated from a cron job.

I am really looking forward to the final version of this.
Last edited by boyo on Tue Mar 27, 2007 2:04 pm, edited 1 time in total.
boyo
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Wed Jan 24, 2007 7:37 am

Re: Introducing ArmorySync

Postby Tazochai » Wed Mar 28, 2007 1:01 am

Vanterax wrote:I am with GoDaddy and got it to work from Amannim's post. Try it.


Thanks

I implamented the fix and it seems to be working for all but a couple of toons in the roster. IE or Firefox just comes up to a black screen but all seems.

think the toons that are not working have not logged in for over a year.
Tazochai
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Mon Aug 07, 2006 9:24 am

Re: Introducing ArmorySync

Postby Kristoff22 » Wed Mar 28, 2007 5:21 am

Kevin_R wrote:I've been looking for something similar to this, but not really tied to the WowRoster project.

I was looking for some php code to grab the xml pages, such as http://armory.wow-europe.com/#character ... er&n=Vdera

Then parse that into an array which can then be used on guild websites to display information about the characters, just much simpler than the Armory.

Is anyone willing to show me how this would be done?

Thanks in advance!


Kevin,

Sorry for the late reply. Good thing I go back every once in awhile and make sure I respond to all questions :) The code is open source, and I've setup the functions so that it CAN return an array. All you would need to use is the getPlayerInfo() functions instead of the synchPlayer() functions. This will return a multi-dimensional array similar to that of CharacterProfiler. Hope that helps.
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

Re: Introducing ArmorySync

Postby Kristoff22 » Wed Mar 28, 2007 5:25 am

Kevin_R wrote:About the CRITICAL ERROR: Incomplete Data for Character.

This happens for every single character in the guild, including myself.


I had this happen to me today too! My heart sank as I thought at first that Blizzard may have changed something major with armory... but alas I was wrong. For some reason, characters were getting added to the content returned from armory which was killing the XML parser. I don't know why that was happening, but I did go ahead and add a function to grab the armory content using CURL instead - you can use that if you want by setting a configuration variable (turned on by default). Code will be updated soon.
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

Introducing ArmorySync

Postby blackice » Wed Mar 28, 2007 5:28 am

Okay I am getting this when I do the &Activate=true

Code: Select all
"Mathos", "info"=> "Synch your guild with WoW Armory"), ); ?>$propName = $propValue; if (!in_array($propName, $this->properties)) { $this->properties[] = $propName; } } function setArray($array) { if (is_array($array)) { foreach ($array as $key => $value) { $this->setProp($key, $value); } } } function hasProp($propName) { return in_array($propName, $this->properties); } } ?>


with out that on the addon page for AS I am also getting that all over the page but with a You must activate this addon. Directions are in index.php at the end. Let me also add that under the Addons block from the main wowroster page I don't see the button/block for ArmorySync just a line where is should be. This is a clean wowroster install with no other addons atm.

I have this running on a test server right now so I can not give out a link.
Here is what is in my index.php
Code: Select all
<?php
include "functions.synch.php";

//Directions:
//You must add &Activate=true to the end of the URL when accessing this mod
//i.e. http://www.domainname.com/roster/addon.php?roster_addon_name=ArmorySynch&Activate=true

if (!defined('ROSTER_INSTALLED')) {
   exit('Detected invalid access to this file!');
}

if ($_REQUEST['Activate'] == 'true') {
   $query = "SELECT name FROM " . ROSTER_MEMBERSTABLE;
   $result = $wowdb->query($query)
      or die_quietly($wowdb->error(), 'Database Error', basename(__FILE__), __LINE__, $query);
      
   $players = array();
   while ($row = $wowdb->fetch_assoc($result)) {
      $players[] = $row["name"];
   }
      
   //Tested using the Kilrogg realm
   //synchGuild(); //Synchs the Guild Member List (does not update all players by default)
   //synchGuild(true); //Synchs the Guild Member List (updates all players)
   //synchPlayer(null, "Fuzzwald"); //Synchs one player - Kristoff
   //synchPlayers(null, array("Kristoff", "Duny")); //Synchs Kristoff and Duny
   synchPlayers(null, $players);
} else {
   print "You must activate this addon.  Directions are in index.php";
}
?>
Last edited by blackice on Wed Mar 28, 2007 5:48 am, edited 1 time in total.
User avatar
blackice
WR.net Apprentice
WR.net Apprentice
 
Posts: 34
Joined: Tue Jul 25, 2006 4:15 pm

Introducing ArmorySync

Postby blackice » Wed Mar 28, 2007 5:46 am

Okay from the main page I see under the MOTD.

Code: Select all
"Mathos", "info"=> "Synch your guild with WoW Armory"), ); ?>
User avatar
blackice
WR.net Apprentice
WR.net Apprentice
 
Posts: 34
Joined: Tue Jul 25, 2006 4:15 pm

Introducing ArmorySync

Postby Kristoff22 » Wed Mar 28, 2007 5:50 am

I've added some much needed functionality to ArmorySynch:

1. Added password protection (hooray security!)
2. Added ability to synch using a player name in the URL (bypasses security, but only updates a single player). I have NOT made any changes to any listings to support said functionality, but there are members who have posted code to do so.
3. Added a configuration file (config.php). This should be the ONLY file that needs to be editted (let me know if you edit something else). You can change the host to be armory.wow-europe.com from here.
4. Added better support for large guilds. ArmorySynch now by default excludes all players under level 10. It also excludes all players who HAVE updated in the last 24 hours, and orders the rest of the list by the players who were last seen online. These are modifiable in config.php
5. Changed the error descriptions for non-critical errors.

Testing now... code to follow shortly!

Future updates:
1. Give a frontend to be able to select who should be updated.
2. Store items received by Armory in database so that further updates will NOT require a query.
3. Allow (require?) CharacterProfiler.lua to be uploaded so that it can update the memberlist/guildinfo before (and after...) a synch.
Last edited by Kristoff22 on Wed Mar 28, 2007 6:10 am, edited 2 times in total.
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

Introducing ArmorySync

Postby ScratchMonkey » Wed Mar 28, 2007 6:57 am

I haven't tried this yet, but for me it would be most useful if it only updated players who had not uploaded their own data recently. Special options (date values?) of "update all" and "update only players with no data" would be desirable so I don't overwrite CP data.
User avatar
ScratchMonkey
WR.net Expert
WR.net Expert
 
Posts: 212
Joined: Wed Jul 05, 2006 4:32 pm
Location: San Pablo, CA

Introducing ArmorySync

Postby Kristoff22 » Wed Mar 28, 2007 8:33 am

Code updated! Download zip file on first page.
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

PreviousNext

Return to ArmorySync - Depreciated

Who is online

Users browsing this forum: No registered users and 1 guest

cron