Realmstatus not working (for an obvious reason)

Posts from previous Beta sessions

Realmstatus not working (for an obvious reason)

Postby salle » Sat Oct 13, 2007 4:34 pm

Hello!

Since I've updated the roster to beta, my realmstatus stopped working, though I know the reason for that, I don't know how to fix it.

The reason why it worked in 1.7.3 was the option "alternate realmname".

My realm's EU-The Venture Co.

All the data Characterprofiler gathers, points to the realm name as "The Venture Co" without the dot. But the realmstatus must point to the "dotted" name so it'll work.

Of course I can make an upload rule pointing to EU-The Venture Co. and make that default, but then it would say that there's no guild found for that realm...

I'm quite noob with PHP, so I know I should just add the dot somewhere in realmstatus.php, and it would work for me, but where?
Last edited by salle on Sat Oct 13, 2007 4:35 pm, edited 1 time in total.
salle
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Wed Oct 10, 2007 2:33 pm

Re: Realmstatus not working (for an obvious reason)

Postby tuigii » Sat Oct 13, 2007 5:10 pm

After seeing this :
Code: Select all
..  <r id="EU3-REALM37" n="The Venture Co." t="RP-PvP" r="EU" l="Medium" s="Up" q="No" />
..

I would say : open realmstatus.php, goto line 136:
Code: Select all
    if( $xml_server[$xmlmeta['name']] == $realmname 

and change it like this :
Code: Select all
    if( $xml_server[$xmlmeta['name']] == $realmname."." 


This will add to the roster realm name "The Venture Co" a dot = ".".
So, "The Venture Co." will be compared to the xml set, obtained from this page: http://www.wow-europe.com/en/serverstatus/index.xml and found.

My question:
CP isn't extracting well the realm name (the source is : Blizzard Game server) - what's in your CharacterProfiler.lua file ? no ending dot ?
or
The realm status page shows an ending dot that shouldn't be there ? (the source is : Blizzard)
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

Realmstatus not working (for an obvious reason)

Postby salle » Sat Oct 13, 2007 6:52 pm

This's copied from my characterprofiler.lua so there is no ending dot.

Code: Select all
myProfile = {
   ["The Venture Co"] = {


Btw, adding ."." to line 136 in realmstatus.php didn't help. It made the whole Realmstatus image disappear from the roster (now there's only text saying "WoW Server Status" without any image)

Btw, what makes it even more funny, is the fact that US server "The Venture Co" doesn't have the dot :lol:
Last edited by salle on Sat Oct 13, 2007 6:58 pm, edited 1 time in total.
salle
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Wed Oct 10, 2007 2:33 pm

Re: Realmstatus not working (for an obvious reason)

Postby tuigii » Sat Oct 13, 2007 9:11 pm

Ok,
realmstatus.php and I will have a serious talk.

I'll test (this time) and repost a solution (will be a d: dirty hack).
Be back in half an hour - I'll edit this post.

[back]

Look at this : http://www.papy-team.fr/roster-off - you saw your realm ?
That test roster contains the patch I proposed.
I only made the modification mentionned above.

Please note that a time delay is build in (rs_value - see on the concerning admin page - I put it to zero.)
I hardcoded also a
$realmname = 'The Venture Co';
on line 53. (because didn't have time to create a char on your server).
Notice : no point here yet (it will be put in afterwards with the patch - you don't need to do this)
Last edited by tuigii on Sat Oct 13, 2007 10:53 pm, edited 1 time in total.
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

Realmstatus not working (for an obvious reason)

Postby salle » Sun Oct 14, 2007 6:59 pm

Yep thankyou, I got it working now for the time being...just hardcoded that $realmname = "The Venture Co.";

:)
salle
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Wed Oct 10, 2007 2:33 pm


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron