PvPLog 2.3.7

Forum Dedicated to PvPLog, (The WoW PvP data collector addon), and PvPLog related topics

Moderator: bsmorgan

PvPLog 2.3.7

Postby bsmorgan » Sat Feb 03, 2007 1:23 am

This version fixes the version number problem reported in 2.3.6.

All constants have been moved into a single table (PVPLOG). This was done primarily to reduce global namespace polution and any potential name conflicts.

Regards,

Brad
Last edited by bsmorgan on Tue Mar 13, 2007 1:34 am, edited 1 time in total.
User avatar
bsmorgan
WoW Interface Developer
WoW Interface Developer
 
Posts: 160
Joined: Tue Nov 28, 2006 10:17 pm
Location: Colorado Springs, Colorado

Re: PvPLog 2.3.7

Postby Angelkiller » Tue Feb 06, 2007 1:07 am

any chance the new "eye of the storm" Bg kills are recorded? eye of the storm doesn't appear to be in the wowroster 1.7.2 but i was just wondering if the coding in PvPlog was there yet? :)
Angelkiller
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Fri Feb 02, 2007 5:18 pm

Re: PvPLog 2.3.7

Postby bsmorgan » Tue Feb 06, 2007 3:17 pm

I believe PvPLog will correctly track all of Blizzard's Battlegrounds with the following code:

Code: Select all
function PvPLogInBG()
    bg_found = false;
    bg_indx = 0;
    for i=1, MAX_BATTLEFIELD_QUEUES do
        bg_status, bg_mapName, bg_instanceId = GetBattlefieldStatus(i);
        if (bg_status == "active" ) then
            bg_found = true;
            bg_indx = i;
            return true;
        end
    end
    return false;
end


The PvPLog.lua savedvariables file records the bg_indx. Translating this index into a name would be Roster's responsibility.

Regards,

Brad
User avatar
bsmorgan
WoW Interface Developer
WoW Interface Developer
 
Posts: 160
Joined: Tue Nov 28, 2006 10:17 pm
Location: Colorado Springs, Colorado

Re: PvPLog 2.3.7

Postby Mogo » Tue Mar 13, 2007 10:06 am

Actually it's quite simple.

Open lib/pvp3.php
Search for
Code: Select all
    $bg_array = array(
        
'alterac_valley',
        
'arathi_basin',
        
'warsong_gulch',
    ); 


and add the string for the Eye of the Storm:

Code: Select all
    $bg_array = array(
        
'alterac_valley',
        
'arathi_basin',
        
'warsong_gulch',
        
'eye_of_the_storm',
    ); 


Then add the translation in your localization/xxXX.php (deDE.php for german in my case):

Code: Select all
// These need to be EXACTLY what PvPLog stores them as
$wordings['deDE']['alterac_valley']='Alteractal';
$wordings['deDE']['arathi_basin']='Arathibecken';
$wordings['deDE']['warsong_gulch']='Warsongschlucht';
$wordings['deDE']['eye_of_the_storm']='Auge des Sturms'


Works fine on my site.

Mogo
Last edited by Mogo on Tue Mar 13, 2007 10:07 am, edited 1 time in total.
Mogo
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Mon Feb 19, 2007 9:05 am


Return to PvPLog

Who is online

Users browsing this forum: No registered users and 1 guest

cron