Mabinogi World Wiki is brought to you by Coty C., 808idiotz, our other patrons, and contributors like you!!
Want to make the wiki better? Contribute towards getting larger projects done on our Patreon!

Template talk:AutoServerStatus

From Mabinogi World Wiki

Contents

Thread titleRepliesLast modified
Why does this happen?1615:45, 12 October 2011
Problems...214:41, 12 October 2011
Change this to a widget2717:06, 11 October 2011

Why does this happen?

The server status displays inconsistent icons sometimes. I just checked again and now they're all on Update. Last time the server icons sere all on Online/Event even though the overall status was Update. Nobody has been changing the wiki status.

Saiyr14:26, 12 October 2011

As Nexon works on maintenance, they put up/down the servers constantly to check stuffs. I guess it was a coincidence that the server status was refresh at the time of then putting up the servers again.

 

Yeah, the script is not broken. It reflects the actual state of the game servers. People keep overriding it because they think it's broken. Look at current game status and Login server. Those are always accurate during maint.

Xcelled19414:32, 12 October 2011
 

I don't think that is a very good user experience. Nobody was overriding the manual status. Why not just set all servers to update during an update?

Saiyr14:43, 12 October 2011
 

Because, the script isn't smart enough to know there's an update. And what if the login server goes down, but the game servers are still up?

Xcelled19414:57, 12 October 2011

If "Current Game Status" is set to "Update", set everything else to the same. What situation would occur where the first is true and the latter is not?

Saiyr15:03, 12 October 2011
 

Its actually the inverse....

If Login = online
    GameStatus = best of the servers
else
    GameStatus = login status
Xcelled19415:07, 12 October 2011
 

What's the algorithm for setting update then?

Saiyr15:13, 12 October 2011
 

What do you mean by "setting update"?

The script looks at offline override, and uses that if the server is offline. Hence, if the login server is offline, and OfflineOverride is 'Update', the login status will be 'update'. Same with everything else.

Xcelled19415:18, 12 October 2011
 

So if the login server is offline and OfflineOverride is Update, set all servers to Update.

Saiyr15:20, 12 October 2011
 

I guess. People seem to like the 'actual' statuses though. Too bad we can't do a poll on the wiki.

Xcelled19415:24, 12 October 2011
 

I like the actual statuses though. Cause it helps map down boss timers...

Aubog00715:25, 12 October 2011

Can you explain how having Update instead of Online helps this?

Saiyr15:29, 12 October 2011
 

No i mean when it's showing the ACTUAL statuses. Not an override.

Aubog00715:29, 12 October 2011
 

"Online" would be the actual status. Either way, I am still confused as to how this helps.

Saiyr15:32, 12 October 2011
 

Aubog looks at the actual statuses. By knowing (more or less) exactly when a server comes online (before the login does!), he can time the boss spawns.

If we set all statuses to update when the logon is update, then he can't time them properly.

Xcelled19415:37, 12 October 2011
 

I can time them in other ways. But Eh. It's really easier this way.

Aubog00715:45, 12 October 2011
 
 
 

Problems...

The widget no longer scrolls, it just gets cut off. No bar either.

And this page isn't semi protected either. Don't do full because I'll need to update the url when we move the script.

Xcelled19408:16, 12 October 2011

It scrolls for me on both Chrome and Firefox when I expand a server. Screenshot? The URL is not in this page anymore because it's embedded directly in the new widget. IJ will have to be around to move the script anyway, so he can edit the widget when the time comes.

Saiyr10:22, 12 October 2011
 

Screenshot It only does it on my phone. Not a major issue as few people use their phones to browse the wiki, but we should probably keep an eye on it.

Xcelled19414:41, 12 October 2011
 

Change this to a widget

We could create a page at Widget:AutoServerStatus and put this inside: <div class="center" style="width: 358px;"><object data="http://shywreaths.org/MabiServerStat/index.php" type="text/html" style="width: 358px; height: 210px; border-width: 0;" standby="Loading Server Statuses"></object></div>

And then on the homepage we would have {{#widget:AutoServerStatus}}. This removes the XSS risk of allowing anyone to use iframes but also makes the code valid XHTML 1.0 Strict because it uses the object tag instead. It also works on all modern browsers, including IE ~小太郎 TALKCONTRIBS 2011:10:11:05:30 (Tuesday)

~小太郎 TALK<sub style="margin-left:-26px 22:30, 10 October 2011

So precisely, what difference does it make?

 

Visually, nothing. Apart from that, "This removes the XSS risk of allowing anyone to use iframes but also makes the code valid XHTML 1.0 Strict because it uses the object tag instead." ~小太郎 TALKCONTRIBS 2011:10:11:08:41 (Tuesday)

~小太郎 TALK<sub style="margin-left:-26px 01:41, 11 October 2011
 

i don't think it's needed, the reason we use the Widget extension instead of the Iframe extension is because it's made to be secure against that... http://www.mediawikiwidgets.org/Talk:Iframe#Security_risk.3F

Hengsheng120·TALKCONTRIBS07:48, 11 October 2011
 

What stops other users from making their own iframe widgets? If nothing, then doing this and removing the iframe widget would be safer. Just because the widget isn't as crazy insecure as the other one mentioned doesn't mean it's not a security hole. Though I'm not sure about the whole object tag thing. MediaWiki is HTML, not XHTML so that part is irrelevant.

Saiyr10:41, 11 October 2011

Users can create widget instances at will, so I deleted the iframe widget and made a server status widget. When the actual iframe contents are hosted on the wiki, I think we should be ok.

Saiyr14:16, 11 October 2011
 

OK, thanks. Just a quick question: How does the AutoServerStatus widget work? I had to include the "target" element in my script's links due to the iframe. Is that still needed?

Xcelled19414:28, 11 October 2011

It works the same as before, so yes.

Saiyr14:38, 11 October 2011
 

Thats something to be fixed then, 'Target' is not valid HTML strict... Perhaps we use AJAX instead?

Xcelled19414:50, 11 October 2011
 

Oh, I guess I was wrong. The wiki is supposed to be XHTML strict. I don't see a point in worrying about it because there are a zillion other errors anyway.

Saiyr14:58, 11 October 2011
 

Do what we can in the user code to make the wiki as valid as possible. Even if the wiki code itself is not valid, when they finally do become valid, it would be easier for us since our code is already valid ~小太郎 TALKCONTRIBS 2011:10:11:22:39 (Tuesday)

~小太郎 TALK<sub style="margin-left:-26px 15:39, 11 October 2011

I don't think it is possible to make it valid using iframes.

Saiyr15:54, 11 October 2011
 

Hence my suggestion of Ajax.

Xcelled19415:56, 11 October 2011

Using AJAX defeats the purpose of all of your JavaScript fallback code.

Saiyr16:03, 11 October 2011
 

Remember, using my method, we wouldn't be using iframes anymore, but objects ~小太郎 TALKCONTRIBS 2011:10:11:23:03 (Tuesday)

~小太郎 TALK<sub style="margin-left:-26px 16:03, 11 October 2011

That would make the main page validate but not the included page.

Saiyr16:06, 11 October 2011
 

The included page is counted as a completely different page, so it isn't really "de-validating" the wiki ~小太郎 TALKCONTRIBS 2011:10:11:23:31 (Tuesday)

~小太郎 TALK<sub style="margin-left:-26px 16:31, 11 October 2011
 

IMO, if you're going to worry about validating in the first place, you should be worried about *everything* validating. But my line of caring has crossed, so it's up to you guys.

Saiyr16:41, 11 October 2011
 
 

It looks like object tags don't respect width/height CSS. See the main page.

Saiyr16:11, 11 October 2011

Fixed it. Uses width/height attributes just like iframes.

Saiyr16:13, 11 October 2011
 

You forgot the standby="Loading Server Statuses" attribute! It shows the text when the page is being loaded ~小太郎 TALKCONTRIBS 2011:10:11:23:32 (Tuesday)

~小太郎 TALK<sub style="margin-left:-26px 16:32, 11 October 2011

Fixed.

Saiyr16:42, 11 October 2011
 

You forgot the standby="Loading Server Statuses" attribute! It shows the text when the page is being loaded ~小太郎 TALKCONTRIBS 2011:10:11:23:32 (Tuesday)

~小太郎 TALK<sub style="margin-left:-26px 16:32, 11 October 2011
 

Just tell me when I can remove the target attribute xD.

Xcelled19416:34, 11 October 2011
 

Try removing the target attribute in firebug on the wiki frontpage and then clicking it. If it works and changes the whole page, then you can safely remove it on your site ~小太郎 TALKCONTRIBS 2011:10:11:23:36 (Tuesday)

~小太郎 TALK<sub style="margin-left:-26px 16:36, 11 October 2011

Does not work.

Saiyr16:45, 11 October 2011
 

Google chrome would also work in place of firebug, would it not? That's my tool of choice.

Xcelled19416:55, 11 October 2011
 

Yes, that is what I used to test.

Saiyr17:06, 11 October 2011