Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Pages: 1 ... 9 10 [11] 12 13 ... 15   Go Down
  Print  
Author Topic: XLRstats version 2.0  (Read 38720 times) Bookmark and Share
Full Member
***
Posts: 53
Offline Offline
WWW
« Reply #150 on: January 29, 2009, 01:34:33 PM »

hmm i think i have the latest version I downloaded it here

http://github.com/BigBrotherBot/big-brother-bot/tree/master

Its 1.1.4,  where did you get 1.2.5 from ?
Logged

B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #151 on: January 29, 2009, 01:36:56 PM »

he's talking about the status.py

this is in your version already.
Logged

Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD4
Posts: 228
Offline Offline
WWW
« Reply #152 on: January 30, 2009, 11:14:31 AM »

@xlr8or

Just introduced a new feature for the live stats section (well.. it could be used for all the rest, but I think it's only the best for current players list). This feature is a "colorized names" according to used in the game.
Just add a new function:
Code:
function ColorizeName($s)
{
    $corrupt_replacement = '<span style="background-color: yellow">&nbsp;</span>';
   
    $pattern[0]="^0";    $replacement[0]='</font><font color="black">';
    $pattern[1]="^1";    $replacement[1]='</font><font color="red">';
    $pattern[2]="^2";    $replacement[2]='</font><font color="lime">';
    $pattern[3]="^3";    $replacement[3]='</font><font color="yellow">';
    $pattern[4]="^4";    $replacement[4]='</font><font color="blue">';
    $pattern[5]="^5";    $replacement[5]='</font><font color="aqua">';
    $pattern[6]="^6";    $replacement[6]='</font><font color="#FF00FF">';
    $pattern[7]="^7";    $replacement[7]='</font><font color="white">';
    $pattern[8]="^8";    $replacement[8]='</font><font color="white">';
    $pattern[9]="^9";    $replacement[9]='</font><font color="gray">';
    $pattern[10]="\xff!\xff";    $replacement[10]=$corrupt_replacement;

    $s = str_replace($pattern, $replacement, htmlspecialchars($s));
    $i = strpos($s, '</font>');
    if ($i !== false)
        {return substr($s, 0, $i) . substr($s, $i+7, strlen($s)) . '</font>';}
    else
        {return $s;}
}

and at "addclients" function replace all occurences of:
Code:
.htmlspecialchars(utf2iso($client -> name)).

with:
Code:
.(utf2iso(ColorizeName($client -> colorname))).



at STATUS.PY make this:
Quote
      for c in clients:
         try:
            myexact = c.data.get('name', c.exactName)
            xml += '<Client Name="%s" ColorName="%s" DBID="%s" Connections="%s" CID="%s" Level="%s" GUID="%s" PBID="%s" IP="%s" Team="%s" Joined="%s" Updated="%s" Score="%s" State="%s">\n' % (escape("%s"%c.name), escape("%s"%myexact), c.id, c.connections, c.cid, c.maxLevel, c.guid, c.pbid, c.ip, escape("%s"%c.team), time.ctime(c.timeAdd), time.ctime(c.timeEdit) , scoreList[c.cid], c.state )

and the result is....



have pHun Wink
« Last Edit: January 30, 2009, 01:38:26 PM by Anubis » Logged

Jr. Member
**
Posts: 12
Offline Offline
« Reply #153 on: January 31, 2009, 08:15:49 AM »

Anybody know why the servername dissaears in the overview?

And I am also wondering on how to change template.

my temp stat page is here: http://howlinpsycho.kicks-ass.org/xlrstats
Logged
Sr. Member
****
Posts: 238
Offline Offline
« Reply #154 on: February 01, 2009, 03:04:41 AM »

Anybody know why the servername dissaears in the overview?
With urt and the status plugin i have noticed when you just startup b3 the generated status.xml is missing variables untill a player joins the server. This also includes server name

And I am also wondering on how to change template.
my temp stat page is here: http://howlinpsycho.kicks-ass.org/xlrstats
Check the statsconfig.php there should be this line 46:
Code:
$template = "urt";
Which will determine the default template
OR you can activate the templater chooser by setting line 108-109:
Code:
//// Show the stylepicker (0 disables, options are: "left", "right", "footer")
$stylepicker = "0";
Logged

Jr. Member
**
Posts: 12
Offline Offline
« Reply #155 on: February 01, 2009, 03:36:05 AM »

that did the trick Smiley Now everything is perfect, except i got some issues with mapcycling. I'll make a post about that in support forum
Logged
Full Member
***
Posts: 53
Offline Offline
WWW
« Reply #156 on: February 03, 2009, 06:36:54 AM »

@xlr8or

Just introduced a new feature for the live stats section (well.. it could be used for all the rest, but I think it's only the best for current players list). This feature is a "colorized names" according to used in the game.
Just add a new function:
Code:
function ColorizeName($s)
{
    $corrupt_replacement = '<span style="background-color: yellow">&nbsp;</span>';
   
    $pattern[0]="^0";    $replacement[0]='</font><font color="black">';
    $pattern[1]="^1";    $replacement[1]='</font><font color="red">';
    $pattern[2]="^2";    $replacement[2]='</font><font color="lime">';
    $pattern[3]="^3";    $replacement[3]='</font><font color="yellow">';
    $pattern[4]="^4";    $replacement[4]='</font><font color="blue">';
    $pattern[5]="^5";    $replacement[5]='</font><font color="aqua">';
    $pattern[6]="^6";    $replacement[6]='</font><font color="#FF00FF">';
    $pattern[7]="^7";    $replacement[7]='</font><font color="white">';
    $pattern[8]="^8";    $replacement[8]='</font><font color="white">';
    $pattern[9]="^9";    $replacement[9]='</font><font color="gray">';
    $pattern[10]="\xff!\xff";    $replacement[10]=$corrupt_replacement;

    $s = str_replace($pattern, $replacement, htmlspecialchars($s));
    $i = strpos($s, '</font>');
    if ($i !== false)
        {return substr($s, 0, $i) . substr($s, $i+7, strlen($s)) . '</font>';}
    else
        {return $s;}
}

and at "addclients" function replace all occurences of:
Code:
.htmlspecialchars(utf2iso($client -> name)).

with:
Code:
.(utf2iso(ColorizeName($client -> colorname))).


Will this fix the issue im having with players showing up in Spec mode ?

Also what file do I need to edit to add these functions ?

Im using v 1.2.5 of status.py and cod2 parser


« Last Edit: February 03, 2009, 06:40:48 AM by XPServers.Net » Logged
B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #157 on: February 03, 2009, 07:59:35 AM »

No, it won't, that adds colours to the names Cheesy

That function is really for xlr to add, unless you fancy some code editing Cheesy
Logged

Full Member
***
Posts: 53
Offline Offline
WWW
« Reply #158 on: February 03, 2009, 08:05:17 AM »

Can someone help me out with this spectator displaying issue ?
Logged
B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #159 on: February 03, 2009, 08:55:16 AM »

can you post a botlog?

preferably one that shows a player joining, making a kill, and the status lines which set him as a spectator.

If you had an unknown problem, you could modify the code so it would just show a player list, and not teams.
Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2005
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #160 on: February 04, 2009, 05:50:21 AM »

It's that same ol' teambug of CoD4 again, not a B3 issue (especially tough on HC servers)

There is a workaround for XLRstats to mask it. Set this line in config to get players instead of teams:
Code:
$pll_noteams = 1;
Logged

Echelon v2. Dev.
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 114
Offline Offline
WWW
Support Specialty: Echelon v.2
« Reply #161 on: February 08, 2009, 05:26:57 AM »

Anyone been able to add a backround the to sig/build.php

I've been trying with little success. Anyone got a fix or an idea.
Eire.32
Logged

Eire.32
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2005
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #162 on: February 08, 2009, 06:45:11 AM »

I have, whats the problem?
Logged

Echelon v2. Dev.
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 114
Offline Offline
WWW
Support Specialty: Echelon v.2
« Reply #163 on: February 08, 2009, 08:02:33 AM »

Well I added all the html stuff you'd use to make a theme and stuff and nothing happens. body, head all that kinda thing nothing seems to happen.
Eire.32
Logged

Eire.32
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2005
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #164 on: February 08, 2009, 08:31:41 AM »

Huh? That has nothing to do with a backdrop for a signature...

You can either create a theme for the XLRstats webfront as a whole, or add picture that act as backdrops for the signatures... I'm not sure what you mean here.
Logged

Tags: xlrstats 
Pages: 1 ... 9 10 [11] 12 13 ... 15   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal