Server Status only shows "No Status"

Posts from previous Beta sessions

Server Status only shows "No Status"

Postby Buster2XLC » Thu Nov 01, 2007 2:25 am

Hi,

after i had installed the roster on my new host all is working perfect.
But now ive got a problem with the Server Status Symbol on the top right side. It only screens that there is "No Status".

But if i had read the other topic right it gets the name of Server etc. from Uploaded files so it has to be right.

The Guild Name is "Order of the Light" on "Nordrassil" itas an "EU" Server Realm. Thats what i had also typed into allowed for upload list at roster settings.

So what could be wrong?
Buster2XLC
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Sun Sep 23, 2007 7:02 pm

Server Status only shows "No Status"

Postby Dragounet » Tue Nov 06, 2007 1:44 am

I have the same problem like you. But no answers for that. :(
Dragounet
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Sat Oct 06, 2007 11:17 pm

Server Status only shows "No Status"

Postby zanix » Tue Nov 06, 2007 2:12 am

Check your database in the table 'roster_realmstatus'
There should be an entry for your realm there, if not then we need some further debugging
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Server Status only shows "No Status"

Postby Buster2XLC » Wed Nov 07, 2007 4:15 am

There is an entry called Server Name but nothing entered there.

Image
Buster2XLC
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Sun Sep 23, 2007 7:02 pm

Server Status only shows "No Status"

Postby zanix » Wed Nov 07, 2007 5:11 am

Looks like the EU realm status site is down
http://www.wow-europe.com/en/serverstatus/
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Server Status only shows "No Status"

Postby britoque » Mon Nov 12, 2007 9:37 pm

I posted to a wrong section of the forum, or at least an old post regarding this topic, please could you have a look at this?

http://www.wowroster.net/Forums/viewtop ... html#28973

Thanks.....
Last edited by britoque on Mon Nov 12, 2007 9:42 pm, edited 1 time in total.
britoque
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Tue Mar 13, 2007 4:09 pm

Server Status only shows "No Status"

Postby zanix » Tue Nov 13, 2007 3:37 am

It seems the xml feed is gone for the EU realms

We will have to find their new feed
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Server Status only shows "No Status"

Postby britoque » Tue Nov 13, 2007 5:34 pm

Why do they always mess about with something when it works!

Like the topic says "Typical Blizzard!"

PS: Thnanks for getting to the bottom of this!
britoque
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Tue Mar 13, 2007 4:09 pm

Server Status only shows "No Status"

Postby PleegWat » Tue Nov 13, 2007 9:52 pm

The xml/xslt/js site works fine in US, but it was never quite stable for EU. Apparently they reverted part of it.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Server Status only shows "No Status"

Postby Teta68 » Wed Dec 19, 2007 12:31 am

Hi,

I got bored at work today and decided to get the realmstatus to work for EU servers. The fix is dirty, but the result is a fixed realmstatus (check it out on my site).

I had to change 2 files: realmstatus.php (duh) and enUS.php in the localizations directory (I should change fr, es and de, but hell that would leave nothing for you guys :P ).

So let's look at what I did in the files.

realmstatus.php

I changed the xmlmeta's to reflect as much as possible the xml scheme followed on the EU server:
Code: Select all
      $xmlmeta['rootxml'] = 'rss';
      $xmlmeta['realms'] = 'channel';
      $xmlmeta['name'] = 'title';
      $xmlmeta['status'] = '0';
      $xmlmeta['type'] = '2';
      $xmlmeta['pop'] = '3';

I know these meta's are nowhere near what is in the XML, but I wanted to change the original file as little as possible.

Next I had to tackle the foreach loop that takes the data for every realm out of the xmlparsed data and puts it in the "value" variable. As the XML scheme for EU and US is so different, I took the xmlparsed data out of the foreach statement and made this conditional on the chosen realm:
Code: Select all
   if ($region == 'EU') {
      $xmlpdata = $xmlParser->data[$xmlmeta['rootxml']][0]['child'][$xmlmeta['realms']][0]['child']['item'];
      } else {
      $xmlpdata = $xmlParser->data[$xmlmeta['rootxml']][0]['child'][$xmlmeta['realms']];
      }

   foreach( $xmlpdata as $key => $value )

This gives me comparable "value" variables, so I can keep the rest of the program structure. Now the key we are interested in for EU is 'child', so again, we have to go conditional. At the same time I extract the realm name because we will need it immediately after this:
Code: Select all
   if ($region == 'EU') {
      $xml_server = $value['child'];
      $rlmname = $xml_server[$xmlmeta['name']][0]['data'];
   } else {
      $xml_server = $value['attribs'];
      $rlmname = $xml_server[$xmlmeta['name']];
   }

   if( $rlmname == $realmname )

So, now we have the realm name and all the xml_server data we need for the rest. If the server name is the one we configured, then we need the status, type and population:
Code: Select all
      if ($region == 'EU') {
         $rlmstatus = $xml_server['category'][$xmlmeta['status']]['data'];
         $rlmtype = $xml_server['category'][$xmlmeta['type']]['data'];
         $rlmpop = $xml_server['category'][$xmlmeta['pop']]['data'];
      } else {
         $rlmstatus = $xml_server[$xmlmeta['status']];
         $rlmtype = $xml_server[$xmlmeta['type']];
         $rlmpop = $xml_server[$xmlmeta['pop']];
      }

Because of this, the switch statements change as well, to switch on the rlmstatus, rlmtype and rlmpop variables. Also for status and population, the cases change too. For status nothing drastic, I just added "REALM DOWN" to the first case (not checked) and "REALM UP" to the second, but for population I had to be more creative.
On the EU realm status page, population shows either "Full", "Recommended" or "". In the XML data this translates to population being "Full" or "Recommended", but there is no XML data for ""... What happens then is that the next category (queue) becomes population data... weird.
Now there is a way to check which data you are dealing with by drilling further down in the XML scheme to "domain" to see that you are dealing with population or queue, but I am lazy by nature and I assumed that if it isn't "Full" or "Recommended" it is " " (not "" or it will fail the empty check later on).
This also means that I don't use queue data.
Code: Select all
case 'FULL': // <-- added for EU region
   $realmData['serverpop'] = 'FULL';
   break;

   case 'RECOMMENDED': //<-- added for EU region
   $realmData['serverpop'] = 'RECOMMENDED';
   break;

   default:
   if ($region =='EU') {
      $realmData['serverpop'] = ' ';
   } else {
      $realmData['serverpop'] = 'ERROR';
   }

So, that's it for extracting the data from the XML. Now all I had to do was make sure that you get the right color for "recommended", "full" and "" population texts:
Code: Select all
   if ($region == 'EU') {
      switch ($realmData['serverpop'])
      {
         case 'FULL':
         $realmData['serverpopcolor'] = '#990000';
         break;

         case 'RECOMMENDED':
         $realmData['serverpopcolor'] = '#0033FF';
         break;

         default:
         $realmData['serverpopcolor'] = $roster->config['rs_color_medium'];
         break;
      }
   } else {
      $realmData['serverpopcolor'] = $roster->config['rs_color_' . strtolower($realmData['serverpop'])];
   }

I hardcoded the colors for "full" and "recommended" to the same colors used by Blizz, because I didn't want to change the rostercp thingy, because I'm lazy :roll:

enUS.php
All that I had to do was add "RECOMMENDED" and "FULL" to the lang['rs'] array:
Code: Select all
$lang['rs'] = array(
   'ERROR' => 'Error',
   'NOSTATUS' => 'No Status',
   'UNKNOWN' => 'Unknown',
   'RPPVP' => 'RP-PvP',
   'PVE' => 'Normal',
   'PVP' => 'PvP',
   'RP' => 'RP',
   'OFFLINE' => 'Offline',
   'LOW' => 'Low',
   'MEDIUM' => 'Medium',
   'HIGH' => 'High',
   'MAX' => 'Max',
   'RECOMMENDED' => 'Recommended',
   'FULL' => 'Full'
);


So, that's it. I've attached the realmstatus.php file to this post and hope you find it usefull until our dearly beloved developers come up with a nice solution to this problem.

If you are localizing in fr, de or es, please post the translations here for me and others like me (to lazy to babelfish).

Teta
Attachments
realmstatus.zip
Hacked to work with EU realms.
(4.11 KiB) Downloaded 342 times
Last edited by Teta68 on Fri Dec 21, 2007 12:16 am, edited 2 times in total.
I break for giant Cyber-Hamsters.
User avatar
Teta68
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 72
Joined: Fri Jan 19, 2007 12:15 pm
Location: Sweden

Re: Server Status only shows "No Status"

Postby tuigii » Wed Dec 19, 2007 9:26 pm

Well done :D

I used nearly the same approach, already a week or so before.

When aprinting the new EU XML scheme, I knew that a new, different parser was needed.

Thing could have been simpler, but population info is missing (that time).
I decided to log the XML info of my realm in a file, so could see all cases, like new array being invented.
I hoped that Bliz would re-introduce the pop info, but so far, nothing really changed. Although, my first approach worked (the new parser for EU XML data) but I had to redo the parser twice already.

One big reason to have Bliz stabilize things first (like the Armory :wink: )
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Server Status only shows "No Status"

Postby zanix » Sun Jan 06, 2008 5:45 am

More or less fixed in svn[1567]
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron