Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!

Full documentation and information about XLRstats version 2 can be found at this subsection of our site.

Our upcoming XLRstats version 3 (League Edition) is currently being developed. You can have a glimpse on our main XLRstats website: www.xlrstats.com


Author Topic: map name doesn't show in xlrstats with black ops (alterops) server  (Read 3907 times)

Offline feugatos

  • Jr. Member
  • **
  • Posts: 13
hi there guys.
i'm testing b3 and xlrstats with an alterops server.
everything works fine but i have this weird problem with the webfront.
whilst every piece of information shows up correctly the map name doesn't appear. it only show the gametype (tdm).
can anyone help me?

xlrstats: http://stats.ceidwarfare.net/xlrstats/?config=1
b3 status.xml: http://bo.ceidwarfare.net/status/status.xml


ps. something i've noticed is that in status.xml the map name is under the property _mapName and not mapName as in eg. cod4.
« Last Edit: January 28, 2012, 01:50:26 PM by feugatos »

Offline feugatos

  • Jr. Member
  • **
  • Posts: 13
Re: map name doesn't show in xlrstats with black ops (alterops) server
« Reply #1 on: January 28, 2012, 01:51:46 PM »
I think I found somethings. Instead of using the alterops.py as my parser I used a modified cod7.py. This solved the issue I had with XLRStats webfront but now my server reports as a Black Ops server not an alterOps one.

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: map name doesn't show in xlrstats with black ops (alterops) server
« Reply #2 on: January 30, 2012, 03:16:01 PM »
What you noticed is probably the issue. Probably the alterops xlrstats template needs to be modded to read the correct value in the status.xml
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline feugatos

  • Jr. Member
  • **
  • Posts: 13
Re: map name doesn't show in xlrstats with black ops (alterops) server
« Reply #3 on: February 07, 2012, 04:04:07 PM »
I found what was the problem.

In order for XLRStats to work properly with the alterOps parser you need to do the following:

1. In func-globallogic.php you need to change the following line:
Code: [Select]
$supportedgames = array('cod', 'coduo', 'cod2', 'cod4', 'cod5', 'etpro', 'iourt41', 'smg', 'wop', 'bfbc2', 'moh', 'cod6', 'cod7', 'homefront', 'bf3'); // B3 parsernames

to:
Code: [Select]
$supportedgames = array('cod', 'coduo', 'cod2', 'cod4', 'cod5', 'etpro', 'iourt41', 'smg', 'wop', 'bfbc2', 'moh', 'cod6', 'cod7', 'alterops', 'homefront', 'bf3'); // B3 parsernames

2: Inside the folder config/ make a copy of the file cod7.php and name it alterops.php.


Voila!

In the first step you tell XLRStats to use alterops.php and you add alterOps to the list of the supported games and in the second step you define the alterOps variables (actually coping the cod7 variables) for XLRStats.

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: map name doesn't show in xlrstats with black ops (alterops) server
« Reply #4 on: February 07, 2012, 04:45:34 PM »
Thank you so much for sharing.
If I was a mod in this forum, I would sticky this...
Do you have a special template for alterops?
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline feugatos

  • Jr. Member
  • **
  • Posts: 13
Re: map name doesn't show in xlrstats with black ops (alterops) server
« Reply #5 on: February 07, 2012, 05:12:40 PM »
Nope but if anyone does I'd love to have it.

 


Rate this page +1 at Google Search