Introducing ArmorySync

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

Moderators: Ulminia, poetter

Re: Introducing ArmorySync

Postby Vanterax » Fri Mar 23, 2007 10:03 am

Amannim wrote:You only need Content-Length if you are doing a POST.


That was it. It's a very good start. I got signs of life now.

However, the titles of all guild members are now blank.
Vanterax
WR.net Apprentice
WR.net Apprentice
 
Posts: 66
Joined: Wed Dec 13, 2006 6:58 am

Re: Introducing ArmorySync

Postby Kevin_R » Fri Mar 23, 2007 10:19 am

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_R
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Wed Nov 29, 2006 4:09 am

Re: Introducing ArmorySync

Postby Stigg » Fri Mar 23, 2007 12:29 pm

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!


This may be what you have in mind.
Or at least a starting point.
http://wow.tachyonsix.com/armory/
Stigg
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Thu Mar 22, 2007 7:55 am

Re: Introducing ArmorySync

Postby Stigg » Fri Mar 23, 2007 12:59 pm

I got some signs of life as well.

Lots of 'Critical Incomplete Data' stuff too.. but its more data than I had before :)
Stigg
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Thu Mar 22, 2007 7:55 am

Introducing ArmorySync

Postby Samadhi » Sat Mar 24, 2007 1:28 am

I think there may be a problem with reputation parsing, but I'll be damned if I can figure out where...

The data is coming from the armory ok, but it's being lost in translation sometime before it gets written to the database.

Check the Rep tab on this toon to see the symptoms:

http://www.undeadfish.com/UFRoster/char ... %20Council
Image
User avatar
Samadhi
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 114
Joined: Mon Jul 17, 2006 10:38 pm
Location: NJ, USA

Re: Introducing ArmorySync

Postby Kevin_R » Sat Mar 24, 2007 1:42 am

Stigg wrote:I got some signs of life as well.

Lots of 'Critical Incomplete Data' stuff too.. but its more data than I had before :)



Same here, get a huge list of

CRITICAL ERROR: Incomplete Data for Character.
Kevin_R
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Wed Nov 29, 2006 4:09 am

Re: Introducing ArmorySync

Postby Kristoff22 » Sat Mar 24, 2007 2:03 am

Kevin_R wrote:
Stigg wrote:I got some signs of life as well.

Lots of 'Critical Incomplete Data' stuff too.. but its more data than I had before :)



Same here, get a huge list of

CRITICAL ERROR: Incomplete Data for Character.


That simply means if you load up that character in Armory, nothing exists for them. Armory only updates a profile when you logout. So if some of your guildees haven't played their characters in a few weeks, that data won't be in Armory, and therefore won't be able to synch.
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

Re: Introducing ArmorySync

Postby Kristoff22 » Sat Mar 24, 2007 2:04 am

Vanterax wrote:
Amannim wrote:You only need Content-Length if you are doing a POST.


That was it. It's a very good start. I got signs of life now.

However, the titles of all guild members are now blank.


Have you downloaded the new version? It *should* be fixed by that. If not, just update the guild info through the regular upload functions and that will restore it.
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

Introducing ArmorySync

Postby Kevin_R » Sat Mar 24, 2007 2:08 am

About the CRITICAL ERROR: Incomplete Data for Character.

This happens for every single character in the guild, including myself.
Kevin_R
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Wed Nov 29, 2006 4:09 am

Re: Introducing ArmorySync

Postby Kristoff22 » Sat Mar 24, 2007 2:14 am

Amannim wrote:OK! I have some fixes!!!

2 things...

People who get the:
1) "CRITICAL ERROR - socket not connected"

Make sure you only have armory.worldofwarcraft.com, DO NOT add http://.

2) CRITICAL ERROR - no root XML node found
You only need Content-Length if you are doing a POST. In functions.general.php change the following:
Code: Select all
      $headers =
         "GET $request HTTP/1.0\r\n" .
         "Host: $host\r\n".
         (($sendAsBrowser) ? "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2\r\n" : "") .
         "Connection: close\r\n".
         "Content-Length: " . strlen($request) . "\r\n" .
         "\r\n" .
         $request;
      


to:

Code: Select all
      $headers =
         "GET $request HTTP/1.1\r\n" .
         "Host: $host\r\n".
         (($sendAsBrowser) ? "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2\r\n" : "") .
         //"Content-Length: " . strlen($request) . "\r\n" .
         "Connection: close\r\n".
         "\r\n";


and it should work. YAY!


Thanks Amannim!
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

Re: Introducing ArmorySync

Postby Kristoff22 » Sat Mar 24, 2007 2:16 am

Tazochai wrote:this is the error I get.. Looks like armory.worldofwarcraft.com/character-sheet.xml should be armory.worldofwarcraft.com/#character-sheet.xml


Code: Select all
CRITICAL ERROR - no root XML node found: armory.worldofwarcraft.com/character-sheet.xml?r=Proudmoore&n=Abaca page
HTTP/1.0 411 Length Required Server: squid/2.5.STABLE12 Mime-Version: 1.0 Date: Wed, 21 Mar 2007 21:28:56 GMT Content-Type: text/html Content-Length: 1426 Expires: Wed, 21 Mar 2007 21:28:56 GMT X-Squid-Error: ERR_INVALID_REQ 0 X-Cache: MISS from wc01.inet.mesa1.secureserver.net Connection: close
ERROR
The requested URL could not be retrieved

While trying to process the request:

GET /character-sheet.xml?r=Proudmoore&n=Abaca HTTP/1.0
Host: armory.worldofwarcraft.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2
Connection: close
Content-Length: 41


The following error was encountered:

    * Invalid Request

Some aspect of the HTTP Request is invalid. Possible problems:

    * Missing or unknown request method
    * Missing URL
    * Missing HTTP Identifier (HTTP/1.0)
    * Request is too large
    * Content-Length missing for POST or PUT requests
    * Illegal character in hostname; underscores are not allowed

Your cache administrator is webmaster.



It looks like it's not sending armory.worldofwarcraft.com in the get request. It doesn't have to do with the # symbol.
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

Re: Introducing ArmorySync

Postby Kristoff22 » Sat Mar 24, 2007 2:18 am

Bajah wrote:I must be stupid. I see in the first post that it says "You must edit your index.php" but I don't see anything anywhere about what inside that php I should be editing and there's (as mentioned) no documention.

I can't even get it to activate. I put the "&Activate=true" as instructed, but it doesn't do anything. I've tried Firefox and IE both. In IE it gives me the new IE7 version of a 404 and in Firefox, it just gives a blank white screen.

And then still says I need to activate it.

Did I miss something really easy? Prove me stupid, please.

http://sok.bajah.com/roster

(I created a fresh new roster and started from there for testing, so it's just a guild with no player updates)


it should be just http://sok.bajah.com/roster/addon.php?r ... ivate=true . However, it does take awhile to load - it could be up to 10 or 15 minutes.
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

Re: Introducing ArmorySync

Postby Kristoff22 » Sat Mar 24, 2007 2:21 am

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

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


What is the realm and guild?
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

Re: Introducing ArmorySync

Postby Kristoff22 » Sat Mar 24, 2007 2:21 am

Samadhi wrote:I think there may be a problem with reputation parsing, but I'll be damned if I can figure out where...

The data is coming from the armory ok, but it's being lost in translation sometime before it gets written to the database.

Check the Rep tab on this toon to see the symptoms:

http://www.undeadfish.com/UFRoster/char ... %20Council


I'll look into it.
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am

Re: Introducing ArmorySync

Postby Vanterax » Sat Mar 24, 2007 3:04 am

Kristoff22 wrote: However, it does take awhile to load - it could be up to 10 or 15 minutes.


And I think that's my biggest problem right now. My browser (be it Firefox or IE7) will timeout before the process completes... Our guild has 428 members...
Last edited by Vanterax on Sat Mar 24, 2007 5:18 am, edited 2 times in total.
Vanterax
WR.net Apprentice
WR.net Apprentice
 
Posts: 66
Joined: Wed Dec 13, 2006 6:58 am

PreviousNext

Return to ArmorySync - Depreciated

Who is online

Users browsing this forum: No registered users and 0 guests

cron