You are here: Big Brother Bot ForumAdd-OnsXLRXLR Releases! (Moderator: Freelander)XLRstats version 2.0
Pages: 1 ... 11 12 [13] 14   Go Down
  Print  
Author Topic: XLRstats version 2.0  (Read 15446 times)
Newbie
*
Posts: 5
Offline Offline
« Reply #180 on: April 16, 2009, 07:35:53 AM »

I am having problem with the webfront.
http://afd-gaming.com/xlrstats/
It doesnt have the currently playing or the server info. I have no ideal where the problem lies. Any help is appreciated.
« Last Edit: April 16, 2009, 07:55:13 AM by Traider » Logged
Dev. Team
Hero Member
*****
Posts: 1038
Offline Offline
Don't contact me on Xfire! I will just reject you!
« Reply #181 on: April 16, 2009, 08:41:06 AM »

This suggests that you have not set up the status file correctly. Have you made sure it's pointing to the right place?
Logged

Newbie
*
Posts: 5
Offline Offline
« Reply #182 on: April 16, 2009, 04:46:18 PM »

This suggests that you have not set up the status file correctly. Have you made sure it's pointing to the right place?

Thanks again sir!
Logged
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4, CoD5
Posts: 26
Offline Offline
WWW
« Reply #183 on: June 12, 2009, 08:05:02 AM »

Hi!

I hope this wasn't posted before, but i can't find a xlrstats.xml file for cod5-waw in this forum, at http://www.xlr8or.com/ or in the reps from xlrstats. Is there an updated file for cod5-waw? Thanks in advance for an reply.
Logged
[ www.xlrstats.com ]
Project leader
Hero Member
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 1210
Offline Offline
WWW
« Reply #184 on: June 12, 2009, 10:30:55 AM »

Nope, there isn't one. But it will still work with the basic config.
Logged


Serving: CoD2 | CoD5 | UrT4.1
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4, CoD5
Posts: 26
Offline Offline
WWW
« Reply #185 on: June 15, 2009, 02:15:02 AM »

Ok, thanks for your reply.  Smiley
Logged
Jr. Member
**
Posts: 10
Offline Offline
WWW
« Reply #186 on: October 14, 2009, 03:48:51 PM »

I had problems with playernames correctly displayed in worldmap,
it seems special chars have to be handled twice.. our Community has the tag, |>B<| and the worldmap does cut the name after the B. After lots of experimenting I thought it might be needed to encode it twice.. and well that worked.

in lib/worldmap/playergeodata.php
Code:
$playername = htmlspecialchars(htmlspecialchars(utf2iso($client -> name)));

And I add colors for ET.. although it needed more changes to the code, as the background from the players which are currently on is not defined by CSS, or I missed it.

Code:
function ColorizeName($cname)
{
   $pattern = array('^^' => '#@^',
                    '^0' => '#000000', '^1' => '#FF0000', '^2' => '#00FF00',
                    '^3' => '#FFFF00', '^4' => '#0000FF', '^5' => '#00FFFF',
                    '^6' => '#FF00FF', '^7' => '#FFFFFF', '^8' => '#FF6600',
                    '^9' => '#666666', '^a' => '#FF9933', '^b' => '#006666',
                    '^c' => '#660066', '^d' => '#0066FF', '^e' => '#6600FF',
                    '^f' => '#3399CC', '^g' => '#CCFFCC', '^h' => '#006633',
                    '^i' => '#FF0033', '^j' => '#990000', '^k' => '#993300',
                    '^l' => '#CC9933', '^m' => '#999933', '^n' => '#FFFFCC',
                    '^o' => '#FFFF66', '^p' => '#000000', '^q' => '#FF0000',
                    '^r' => '#00FF00', '^s' => '#FFFF00', '^t' => '#0000FF',
                    '^u' => '#00FFFF', '^v' => '#FF00FF', '^w' => '#FFFFFF',
                    '^x' => '#FF6600', '^y' => '#666666', '^z' => '#9999CC',
                    '^A' => '#FF9933', '^B' => '#006666', '^C' => '#660066',
                    '^D' => '#0066FF', '^E' => '#6600FF', '^F' => '#3399CC',
                    '^G' => '#CCFFCC', '^H' => '#006633', '^I' => '#FF0033',
                    '^J' => '#990000', '^K' => '#993300', '^L' => '#CC9933',
                    '^M' => '#999933', '^N' => '#FFFFCC', '^O' => '#FFFF66',
                    '^P' => '#000000', '^Q' => '#FF0000', '^R' => '#00FF00',
                    '^S' => '#FFFF00', '^T' => '#0000FF', '^U' => '#00FFFF',
                    '^V' => '#FF00FF', '^W' => '#FFFFFF', '^X' => '#FF6600',
                    '^Y' => '#666666', '^Z' => '#9999CC', '^!' => '#FF9933',
                    '^#' => '#660066', '^$' => '#0066FF', '^%' => '#6600FF',
                    '^&' => '#3399CC', '^(' => '#006633', '^)' => '#FF0033',
                    '^*' => '#990033', '^+' => '#993300', '^-' => '#999933',
                    '^,' => '#CC9933', '^.' => '#FFFFCC', '^\\' => '#006600',
                    '^/' => '#FFFF99', '^<' => '#006600', '^>' => '#000066',
                    '^[' => '#CCCCCC', '^]' => '#666600', '^{' => '#CCCCCC',
                    '^}' => '#666600', '^:' => '#CCCCCC', '^=' => '#666600',
                    '^?' => '#660000', '^@' => '#663300', '^_' => '#660000',
                    '^\'' => '#CCFFCC', '^|' => '#006600', '^~' => '#000066',
                    '^`' => '#663300'
   );
   $final = '';
   $cnl = strlen($cname);
   for ( $i=0; $i < $cnl; $i++ ) {
      if ( substr($cname, $i, 1 ) == '^' ) {
         if ( $i < $cnl ) {
            if ( substr( $cname, $i+1, 1 ) != '^' ) {
               $final .= '</font><font color="'.$pattern['^'.substr($cname,$i+1,1)].'">';
               if ($i+1 < $cnl)  $i++;
            } else {
               $final .= htmlspecialchars(substr($cname,$i,1));
            }
         } else {
            $final .= htmlspecialchars(substr($cname,$i,1));
         }
      } else {
         $final .= htmlspecialchars(substr($cname,$i,1));
      }
   }
   return '<font>' . $final . '</font>';
}

well I suppose this can be optimized.. but uhrm.. this function did work in all cases I tested a while ago, and those ^^ combinations are evil..

This function does escape the special chars of the name, but the hole needs to be escaped as well, if used for worldmap..
Code:
$playername = htmlspecialchars((ColorizeName($client -> colorname)));


I wanted to add this to the stats list aswell, but seems that is more complicated. Also different games use different colors,
so this color array should be somewhere else..
Also it would make sense todo this conversion to html only once, and store in db.. But I have yet no idea how todo all this correctly.

Thanks to Anubis post, it gave me the idea and good hints.. I don't know what some parts of his function do, but I think it won't catch all situations of ^ combinations, but I don't know COD at all.. might be very different to ET.
Logged

Newbie
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD2
Posts: 5
Offline Offline
« Reply #187 on: October 14, 2009, 11:11:10 PM »

hey guys.

wanted to dl the xlrstats but it looks like the server is down.

i can offer you to host the files on my own server to have another "backup space"


greetings
olli Smiley
Logged
Dev. Team
Hero Member
*****
Posts: 1038
Offline Offline
Don't contact me on Xfire! I will just reject you!
« Reply #188 on: October 15, 2009, 07:07:00 AM »

The whole XLR8or server is down. Every plugin is this forum has an invalid download link.

You should use this link for the time being:
http://github.com/xlr8or/xlrstats-web-v2/zipball/master
Logged

Jr. Member
**
Posts: 10
Offline Offline
« Reply #189 on: November 15, 2009, 09:33:03 AM »

Since I updated to PHP 5.3.0 I have had problems with the currently playing people on the server and GeoIP. I am sure about the paths of those two, I triple checked and before I updated to 5.3.0 they were working just fine. Any input on this?
Logged
[ www.xlrstats.com ]
Project leader
Hero Member
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 1210
Offline Offline
WWW
« Reply #190 on: November 15, 2009, 09:48:29 AM »

Not that I'm aware of. Is there some php error info available on the pages? (perhaps set debug to 1 in the config)
Logged


Serving: CoD2 | CoD5 | UrT4.1
Jr. Member
**
Posts: 10
Offline Offline
« Reply #191 on: November 17, 2009, 09:42:58 AM »

Apparently debug has been set to 1 this whole time Roll Eyes So no, there are no php errors printing out.
Can this have something to do with the place the xml's and GeoIP are in? They are in /var/tmp/b3/ but I don't think that's a problem...
Logged
[ www.xlrstats.com ]
Project leader
Hero Member
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 1210
Offline Offline
WWW
« Reply #192 on: November 17, 2009, 10:27:39 AM »

Could be a permissions issue. Can the www-data user reach and read the files?

debug 1 should give warnings, notices and/or errors that are php-related i.m.o.
Logged


Serving: CoD2 | CoD5 | UrT4.1
Full Member
***
Posts: 103
Offline Offline
« Reply #193 on: November 24, 2009, 02:28:32 PM »

Im having issues with activity graphs being completely blank, no image loads or anything. Any ideas?

http://xlrstats.7thcavalry.us/
Logged
[ www.xlrstats.com ]
Project leader
Hero Member
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 1210
Offline Offline
WWW
« Reply #194 on: November 25, 2009, 02:49:10 AM »

Try this: http://www.bigbrotherbot.com/forums/xlr/ctime-activity/
Logged


Serving: CoD2 | CoD5 | UrT4.1
Tags: xlrstats 
Pages: 1 ... 11 12 [13] 14   Go Up
  Print  
 
Jump to: