Gradual Updates mod

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

Moderators: Ulminia, poetter

Re: Gradual Updates mod

Postby Pugro » Mon Jul 02, 2007 4:03 pm

Updated the modded version with the fix provided by Darkmages.

Note that this will update ALL players, so you'll need to modify the SQL in it to limit to players not updated in X days etc.
Last edited by Pugro on Mon Aug 06, 2007 11:09 pm, edited 1 time in total.
--------------------------------
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

Re: Gradual Updates mod

Postby lisster » Mon Jul 02, 2007 8:39 pm

Hi there,

awesome mod for the mod :)

The normal one just times out on me.

But i do have an odd problem with yours.

When i start it it updates the first person in the DB it finds fine,
then it loads the URL with the next ID in the browser and just updates
the same player again.
It keeps doing this over and over, never going to the next person.

I didn't modify anything from your package (except changing the minimum level from 1 to 70 in the config. I tried changing that back to 1 but no dice).

Any idea what might be causing that?
lisster
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu Apr 26, 2007 5:19 pm

Gradual Updates mod

Postby Pugro » Mon Jul 02, 2007 8:42 pm

Hmmm, that's not good. I'll have a look through the code and see what could be causing the issue. Maybe it's the ordering or something I do with the IDs that it's getting back from the DB.

Pugs_
--------------------------------
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

Gradual Updates mod

Postby Pugro » Mon Jul 02, 2007 8:46 pm

When running it should get the lowest member id, then work up, getting the lowest member ID that's after the one just run. Can you tell me the first ID, then the next ID it's trying to get?

It should pass the IDs via the URL when it processes the members so you should be able to check that way.

What's your setup, other than that? Linux Apache MySQL etc.?
--------------------------------
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

Re: Gradual Updates mod

Postby lisster » Mon Jul 02, 2007 8:58 pm

thanks for the quick reply :)

it's passing the id's through the URL

let me give you the output so it makes sense:
(the high ID's are from me epmtying and reloading the DB to see if that
was the problem. we really only have 200 people in the guild :P)

Code: Select all
About to start ID:636Scanning Player: Novaron

    * About to update player
    * Updating Equipment . . . . . . . . . . . . . . . . .
    * No Inventory Data
    * No Bank Data
    * Updating Mailbox: No New Mail
    * Updating Skills . . . . . . . . . . . . . . . . . .
    * No Recipe Data
    * No Spellbook Data
    * No Talents Data
    * Updating Reputation . . . . . . . . . . .  . . . . . . . . . . . . . . . . . . . . . . . .
    * No Quest Data
    * No Buffs
   
Update Errors
         
Next Player: 637


it then passes the ID to the URL:
(domain removed to avoid spam)
/roster/addon.php?roster_addon_name=ArmorySynch_Mod&syncmemberid=637

And then merily keeps repeating the above ad infinitum heh.

While typing this i tried doing it in IE (i use firefox by default).
It actually does work in IE, not firefox.
It goes slow (prolly just wow armory) and if i restart goes from beginning
not the last update person but it seems to work.

Sorry to bother you , i guess firefox just doesn't play nice with the handing off of the ID?
lisster
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu Apr 26, 2007 5:19 pm

Gradual Updates mod

Postby Pugro » Mon Jul 02, 2007 10:33 pm

I'll try it with FF this evening, or when I get a chance. I run IE at home so I've probably just messed up compat with both :D

Pugs_
--------------------------------
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

Re: Gradual Updates mod

Postby lisster » Tue Jul 03, 2007 5:29 am

offtopic a bit, you will LOVE ff over IE for 99% of browsing.
Just a rare website wont work on it.

back on topic.
It works fine with IE, it just goes slooooow (like 1 char per minute)
and times out a lot.
But i'm sure that's the armory problem and not your script.
Since updating my american guild goes so fast it's sick heh
lisster
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu Apr 26, 2007 5:19 pm

Gradual Updates mod

Postby Pugro » Tue Jul 03, 2007 6:05 am

Oddly, it runs much faster on my new host than old one....I assume the script to pull and process data from the armory involves a lot of CPU time. On my old (windows server) host it used to take up to 30 seconds per char to process, on the new one (virtual private linux server) it takes under 2 seconds.

(I like both OS's I just think my old host was running their web farms from Intel 486 DX2 66 processors :-)...before this turns into a flame war thread!)
--------------------------------
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

Re: Gradual Updates mod

Postby Hurz » Wed Jul 04, 2007 10:10 pm

@Purgo: it seems to work - somehow, but i still get some errors:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /mnt/web3/30/99/51539699/htdocs/wow/roster/addons/ArmorySynch_Mod/functions.synch.php on line 209

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /mnt/web3/30/99/51539699/htdocs/wow/roster/addons/ArmorySynch_Mod/functions.synch.php on line 212

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /mnt/web3/30/99/51539699/htdocs/wow/roster/addons/ArmorySynch_Mod/functions.synch.php on line 273

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /mnt/web3/30/99/51539699/htdocs/wow/roster/addons/ArmorySynch_Mod/functions.synch.php on line 274

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /mnt/web3/30/99/51539699/htdocs/wow/roster/addons/ArmorySynch_Mod/functions.synch.php on line 276

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /mnt/web3/30/99/51539699/htdocs/wow/roster/addons/ArmorySynch_Mod/functions.synch.php on line 277

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /mnt/web3/30/99/51539699/htdocs/wow/roster/addons/ArmorySynch_Mod/functions.synch.php on line 278

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /mnt/web3/30/99/51539699/htdocs/wow/roster/addons/ArmorySynch_Mod/functions.parsing.php on line 124

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /mnt/web3/30/99/51539699/htdocs/wow/roster/addons/ArmorySynch_Mod/functions.parsing.php on line 127

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /mnt/web3/30/99/51539699/htdocs/wow/roster/addons/ArmorySynch_Mod/functions.parsing.php on line 144

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /mnt/web3/30/99/51539699/htdocs/wow/roster/addons/ArmorySynch_Mod/functions.parsing.php on line 147


The data ist parsed nearly correct - only the reputation seems to be messed up a bit (not all bars shown - or (for players that uploaded their profiles) no reputation is show anyway ). As well as the stats-page is not complete. Please check at http://wow.rosendorfer.net/roster.

But before it worked (somehow) i had to do some additions to make it work with a german version:

1. i copied the defaul.css into the folder
2. config.php changed to this:

Code: Select all
<?php

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

//Configuration
$addon_conf['ArmorySync']['Host'] = "armory.wow-europe.com"; //European players use: armory.wow-europe.com
$addon_conf['ArmorySync']['MinLevel'] = 50; //The minimum level to be updated
$addon_conf['ArmorySync']['SynchCutoffTime'] = 24; //Time, in hours.  All players who have not updated in the last (24) hours will be updated.
$addon_conf['ArmorySync']['UseCurl'] = false; //Set this to false if you want to use the original FileSocket function.
$addon_conf['ArmorySync']['DebugLevel'] = 0; //0 = no debug messages, 1 = some debug messages, 2 = verbose debug messages
$addon_conf['ArmorySync']['UpdateRoster'] = true; //Wether or not to update Roster.  Useful if you're just debugging.
$addon_conf['ArmorySync']['Locale'] = $roster_conf['roster_lang']; //The language used, but default it is the language that roster is configured to.
$addon_conf['ArmorySync']['ArmoryLocale'] = strtolower(substr($addon_conf['ArmorySync']['Locale'], 0, 2)) . "_" . strtolower(substr($addon_conf['ArmorySync']['Locale'], 2, 2)); //The Locale that armory is expecting, in the format of lowercase_lowercase (ie en_us or de_de).
$addon_conf['ArmorySync']['MemberSorting'] = "members.last_online DESC"; //alternatives are "members.update_time DESC" to use the last time the member was updated
?>


The $addon_conf['ArmorySync']['MinLevel'] = 50; seems to be not used - but you allready said this.

3. functions.general changed:

Code: Select all
"GET $request HTTP/1.1\r\n" .


to

Code: Select all
"GET $request HTTP/1.0\r\n" .


4. functions.general changed:

Code: Select all
function convertDate($armoryDate) {
   return date("Y-m-d 00:00:00", strtotime($armoryDate));
}


to

Code: Select all
function convertDate($armoryDate) {
    $localmonth = array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
    $englishmonth = array("January","February","March","April","May","June","July","August","September","October","November","December");
    $armoryDate = str_replace($localmonth,$englishmonth,$armoryDate);
   return date("Y-m-d 00:00:00", strtotime($armoryDate));
}


5. the localization.php was changed to:

Code: Select all
<?php
$wordings['enUS']['title_addon'] = 'Armory Synch Mod';

$wordings['addoncredits']['GuildBank v1.26'] = array(
   array(   "name"=>   "Mathos",
         "info"=>   "Synch your guild with WoW Armory"),
);

$wordings['enUS']['title_addon'] = 'Armory Synch';
$wordings['enUS']['ArmorySynch']['RepStanding']['Exalted'] = 'Exalted';
$wordings['enUS']['ArmorySynch']['RepStanding']['Revered'] = 'Revered';
$wordings['enUS']['ArmorySynch']['RepStanding']['Honored'] = 'Honored';
$wordings['enUS']['ArmorySynch']['RepStanding']['Friendly'] = 'Friendly';
$wordings['enUS']['ArmorySynch']['RepStanding']['Neutral'] = 'Neutral';
$wordings['enUS']['ArmorySynch']['RepStanding']['Hostile'] = 'Hostile';
$wordings['enUS']['ArmorySynch']['RepStanding']['Hated'] = 'Hated';

$wordings['deDE']['title_addon'] = 'Arsenal Synch';
$wordings['deDE']['ArmorySynch']['RepStanding']['Exalted'] = 'Ehrfürchtig';
$wordings['deDE']['ArmorySynch']['RepStanding']['Revered'] = 'Respektvoll';
$wordings['deDE']['ArmorySynch']['RepStanding']['Honored'] = 'Wohlwollend';
$wordings['deDE']['ArmorySynch']['RepStanding']['Friendly'] = 'Freundlich';
$wordings['deDE']['ArmorySynch']['RepStanding']['Neutral'] = 'Neutral';
$wordings['deDE']['ArmorySynch']['RepStanding']['Hostile'] = 'Unfreundlich';
$wordings['deDE']['ArmorySynch']['RepStanding']['Hated'] = 'Hasserfüllt';

?>
Hurz
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Mon Jun 18, 2007 12:01 am

Gradual Updates mod

Postby Hurz » Wed Jul 04, 2007 10:14 pm

To add something:

After doing the armory sync the keys are now messed up: only few players are shown - i think that is connected to the reputation thing.
Hurz
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Mon Jun 18, 2007 12:01 am

Gradual Updates mod

Postby Pugro » Thu Jul 05, 2007 3:07 am

If there's an issue with the actual data parsed...best open another thread in the forum :-)

My changes were pretty minimal, but you may find other are having the issue too and the author can merge the changes back in :D

Which keys addon do you use?
--------------------------------
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

Re: Gradual Updates mod

Postby crperryjr » Sat Jul 14, 2007 6:06 am

I can't seem to get this to work in WoWrosterDF, The error I noted after the first character updated was this:

File does not exist
The URL that you requested, /addon.php?roster_addon_name=ArmorySynch_Mod&syncmemberid=2, could not be found. Perhaps you either mistyped the URL or we have a broken link.


I found this code in functions.synch

Code: Select all
//Output javascript to move to process next player...
            Print 'Next Player: ' . $nextmemberid;
            //Print '<pre>' . $module_name . '</pre>';
            $link = 'addon.php?roster_addon_name=ArmorySynch_Mod&syncmemberid='.$nextmemberid;


Looks like the pathing isn't right in the javascript for the $link variable. The path for addon.php on my server is http://www.~server~.com/modules/WoWRosterDF/addon.php

Path to the ArmorySync_Mod is
http://www.~server~.com/modules/WoWRosterDF/addons/ArmorySync_Mod

Any help is greatly appreciated.
User avatar
crperryjr
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Sun Jul 23, 2006 1:57 pm

Gradual Updates mod

Postby Pugro » Sat Jul 14, 2007 11:48 pm

This version does not work with a DF install. Gimme 2 mins.
--------------------------------
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

Gradual Updates mod

Postby Pugro » Sat Jul 14, 2007 11:50 pm

$link = getlink($module_name.'&file=addon&roster_addon_name=ArmorySynch_Mod&syncmemberid='.$nextmemberid);
--------------------------------
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

Re: Gradual Updates mod

Postby crperryjr » Sun Jul 15, 2007 4:05 am

Works like a charm! Ty! Awesome mod!
Image
User avatar
crperryjr
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Sun Jul 23, 2006 1:57 pm

PreviousNext

Return to ArmorySync - Depreciated

Who is online

Users browsing this forum: No registered users and 1 guest

cron