Talk:Event timers

From Guild Wars 2 Wiki
Jump to: navigation, search

My local timezone is the same as UTC at the moment (so I can't see if the timezone conversion is working or not), could someone tell me if the times are converted using the {{UTC time}} equivalent as expected? -Chieftain AlexUser Chieftain Alex sig.png 00:13, 8 November 2015 (UTC)

Depends on what's expected, but only the converted time is being displayed, which is a little at odds with the pointer at the top and with {{UTC time}}; however, considering that some boxes don't have enough space for both times (such as TD's Prep phase), it might not be a bad idea to mirror this behaviour to the pointer as well to at least have consistency over this page.
I also wonder if it wouldn't be a bit better to shift the timer bars with the pointer fixed at 25% instead of shifting the pointer across fixed bars, in order to give a bigger overview for the event bosses, especially when the pointer is in the last 15 minute window; or at the very least shift the whole display by an hour every hour so that the pointer is always located in the first half.
And just a bit more nitpicking: the labels should probably link to the respective event pages, and there's a small inconsistency whether the first box which overflows from the other side of the page shows the label or not (AB does, VB and TD don't; DS doesn't and shouldn't). User Noxx Sig.png 18:03, 22 November 2015 (UTC)
The timezone comment is referring to a really old version of this so it isn't really relevant anymore. The current way I'm doing it is to show local and UTC in the marker box, and just show local time on everything else.
I'm not gonna be recoding the whole layout anytime soon. I'm sure you can code up a new version where the bars move if you want to play around with it.
Labels could be done; world bosses could link to each of their event pages. Crash site and Sandstorm could link to those metas too. Heart of Thorns meta events haven't been documented for the mostpart, and some of the metas have different names for the different areas of the map so dunno what we'd link to.
I'll remove the "pillars" label off the front end of Auric Basin. Thanks for the feedback. -Chieftain AlexUser Chieftain Alex sig.png 18:13, 22 November 2015 (UTC)
Added links to world boss events and dry top metas per suggestion.
"The 25% bar layout" would be a bit like this tv guide site I suppose. The underlying code to figure out event starts/stops would be very different... -Chieftain AlexUser Chieftain Alex sig.png 23:23, 22 November 2015 (UTC)
Yeah, something like that is what I had in mind. Obviously, I didn't mean that you should go write it right now, it would essentially mean rewriting of the whole script and it would probably be much harder to change them dynamically each minute, it's just an idea that I had. I might try to put together some jsfiddle for it if I find the time, but I still want to finish the wiki editing guide first, among other things I have outside the wiki, so it might take a while. User Noxx Sig.png 00:08, 23 November 2015 (UTC)
If you could make the whole thing "shift" every hour instead of every two hours (such that the pointer never moves into the right half of the page), I think that would be a good compromise. —Dr Ishmael User Dr ishmael Diablo the chicken.png 15:20, 23 November 2015 (UTC)
I have a feeling that'd make it much less clear that the system is on a 2 hour cycle (users would never see both the end/beginning of the cycle). I've copied over my edits from the test version instead for now. -Chieftain AlexUser Chieftain Alex sig.png 12:12, 25 November 2015 (UTC)

Feedback 2015/11/22[edit]

Red bar with UTC time attached at top running through the middle of the article/table. --23.241.218.90 22:13, 22 November 2015 (UTC)

If it looks something like File:User Noxx Event timers.png, then that is the intention of the red bar. The red bar indicates the current time + thus the user can figure out what events are active by where the red line crosses the events in the different regions. -Chieftain AlexUser Chieftain Alex sig.png 23:13, 22 November 2015 (UTC)
Edit, perhaps you were meaning you couldn't click on the links slightly to the right of the red line (due to the width of the UTC time pointer), in which case, thanks, and I've fixed that too. -Chieftain AlexUser Chieftain Alex sig.png 23:54, 22 November 2015 (UTC)

Waypoint Codes please![edit]

It'd be amazing if you could fit a copy-able waypoint code under the links to the boss events. -Halvaard (talk) 10:34, 23 November 2015 (UTC)

Could do, might look ugly though.. I'll have a go implementing it on the latest version here after lunch. -Chieftain AlexUser Chieftain Alex sig.png 13:19, 23 November 2015 (UTC)
I've updated http://wiki.guildwars2.com/wiki/User:Chieftain_Alex/sandbox5 with chatlinks. -Chieftain AlexUser Chieftain Alex sig.png 16:26, 23 November 2015 (UTC)
I'd put it between the time and event name because of the text vertical wrap.--Relyk ~ talk < 21:03, 23 November 2015 (UTC)
Done. (press button to show/hide wp links) -Chieftain AlexUser Chieftain Alex sig.png 09:32, 24 November 2015 (UTC)

(Reset indent) Updated to include WP codes in the current version of event timers. -Chieftain AlexUser Chieftain Alex sig.png 12:12, 25 November 2015 (UTC)

Feedback 2015/12/03[edit]

This seems not as intended. (Safari on Mac.) https://www.evernote.com/l/AAOkUEi8pZ1A4KMh_AhppOHG1ZP9mpRfr1E --108.231.77.39 23:18, 3 December 2015 (UTC)

Device, operating system, internet browser? It looks like part of the CSS hasn't loaded properly. -81.153.69.135 00:52, 4 December 2015 (UTC)

Doesn't seem to display anything[edit]

Since it's been updated, I don't see anything on the page. Just something about timezone and next 2 hours. I'm on Firefox latest version. Checked on Chrome, same deal. Seylan (talk) 10:22, 26 December 2015 (UTC)

Nevermind, it finally loaded. Seylan (talk) 10:23, 26 December 2015 (UTC)
I switched the big hardcoded data lookup for an API call (to the wiki), so I would expect it to be slower, however it only takes about 2 seconds on my phone (which isn't a super browser) so I'll have a look into it being slower on other browsers. How long did it take to load for you? -Chieftain AlexUser Chieftain Alex sig.png 10:47, 26 December 2015 (UTC)
edit: Probably you are using HTTPS? Another user raised the issue on Widget talk:Event timer + helpfully pointed out what I'd wrongly done. -Chieftain AlexUser Chieftain Alex sig.png 13:15, 26 December 2015 (UTC)
I'm not. It took a couple of refreshes before it finally loaded. Right now a row hasn't properly loaded either so it might just be the API lagging. Seylan (talk) 00:15, 27 December 2015 (UTC)
If you're running firefox, could you press CTRL+Shift+K and tell me if theres any JS messages in the console? This is odd since I'm running Firefox 43 on a really slow connection and the whole page loads in less than 2 seconds even after CTRL+F5 -Chieftain AlexUser Chieftain Alex sig.png 00:26, 27 December 2015 (UTC)
Nope, no JS messages. I need to refresh it until it displays if something doesn't load. Since you linked it to the API it might be that it doesn't display when there's a lot of 503 errors or something. Seylan (talk) 04:04, 27 December 2015 (UTC)
The api it uses is the wiki one, not the gw2 external api - if you can load a page on the wiki then you can read the API too. Guess I'll add a fail clause that writes a console message. -Chieftain AlexUser Chieftain Alex sig.png 12:23, 27 December 2015 (UTC)
Added .fail clause. Now if the getJSON fails, then it will do the rest of the timers anyway (in addition to writing a JS error to the log). -Chieftain AlexUser Chieftain Alex sig.png 14:09, 27 December 2015 (UTC)

Shit's broken, world bosses don't display no matter how long I wait or how many times I refresh or which browser I use. No errors in console. Protip: don't deploy code on a whim, have it tested properly first. Sentient Waffle (talk) 23:07, 27 December 2015 (UTC)

Seems OK now. Sentient Waffle (talk) 01:40, 28 December 2015 (UTC)
Guessing the problem was naming some object properties "class" (which may or may not conflict). Also added some CSS rules for old crap browsers. -Chieftain AlexUser Chieftain Alex sig.png 02:04, 28 December 2015 (UTC)
Found another bug; between 22:00 and 00:00 the SMW query wasn't pulling any results. -Chieftain AlexUser Chieftain Alex sig.png 23:34, 28 December 2015 (UTC)

15 Minutes Late[edit]

Is it just me or this running 15 minutes later than http://dulfy.net/2014/04/23/event-timer/ ? Dulfy is correct for me. --Skekzyz (talk) 22:32, 3 January 2016 (UTC)

Yeah, dulfy results match World boss. I've failed to sort the results correctly when I've returned them using the API ask query (this is only bugged between 22:00 + 00:00). I'll have a go at fixing this tomorrow. Thanks. -Chieftain AlexUser Chieftain Alex sig.png 23:26, 3 January 2016 (UTC)

Feedback 2016/02/01[edit]

I like the page, but wish it would show more of the future rather than so much of the past. I'm looking at the page at 4:45pm EST, and I see things that happened a couple hours ago and not much that is happening in the next few hours.

Internationlization[edit]

I really like the event timer and would like to translate it to german. Please contact me so we can discuss the details. --Ludi (talk) 10:12, 15 February 2016 (UTC)

Hi Ludi, I'm working on some further improvements per this reddit thread. The french wiki has managed to translate it, so it shouldn't be too difficult. Pages used:
Bits that should be translated:
  • any titles/labels in "span"/"input" elements
  • there is a large function called "createMapMetaEventData" - these names + links can be localized.
  • the SMW API query could either be pointed at your own wiki (in which case you'd need to copy World boss/data too), or you could point it at //wiki.guildwars2.com/api.php instead
    • the array of objects titled "bosses" - the key values must be the same as returned by the API query, the names + links can be localized.
That's it I think. You've got some bright guys on the de wiki though so any improvement ideas are welcome :P -Chieftain AlexUser Chieftain Alex sig.png 19:20, 15 February 2016 (UTC)

Links and rows[edit]

The Heart of Thorns events can be linked the the map meta events or specific meta events now. Some are still a bit lacking, but it should help direct readers to the active content.

Also, would it be possible to have the template allow individual rows to only be shown, such as {{event timer|Dry Top}}? It could be useful to show the current progress on each zone/event page (Dry Top, Crash Site, and Sandstorm!) instead of referring back to this page everytime (as amazing as it is). Mora 18:23, 23 February 2016‎ (UTC).

Hi Mora, I've added the requested functionality to the widget. A slight change to your suggestion though, the template uses the abbreviations instead of the full names, e.g. {{event timer|dt}} for Dry Top. I've also prevented it from displaying titles/the user checkbox preferences, but it should use similar options as specified by the user using the checkboxes on Event timers. -Chieftain AlexUser Chieftain Alex sig.png 10:57, 24 February 2016 (UTC)
Just what I was looking for, thank you. The bar itself currently resizes to the available width of the page, but the "Next 2 hours" flag position is fixed (image). I'm not sure if this is really an issue that needs adjusted or if I should just look for another position on the page to put the template. Also, the links still need to be added. Mora 00:01, 25 February 2016 (UTC)
It turns out that CSS float:right and position:absolute are entirely incompatible. I don't really think there is any way around it other than not putting it next to floating elements (i.e. neither infoboxes nor right-floating tables of contents). You could however apply a margin-right value, perhaps using something like {{event timer|dt|style=margin-right:280px}}
Noted on links, I'll get around to checking meta event names later. -Chieftain AlexUser Chieftain Alex sig.png 07:49, 25 February 2016 (UTC)

mini bug (?)[edit]

There seems to be a huge empty spot for world bosses between 4UTC and 6UTC. Now I'm not sure if this is constant, but even refreshing my browser page keeps that big empty box there (just for world bosses). -Darqam (talk) 04:59, 10 April 2016 (UTC)

Are you talking about the hardcore world bosses? Are you seeing what I'm seeing - File:User Chieftain Alex Event timer 4UTC to 6UTC.jpg (i've ticked all the settings boxes)? If so it is intentional that there are no hardcore world bosses between 4:15 UTC + 6 UTC, as this is exactly how it is written on World boss#Full schedule. -Chieftain AlexUser Chieftain Alex sig.png 09:51, 10 April 2016 (UTC)
Yeah that's what I was seeing. I wasn't sure if it was intentional or not, I just never remembered seeing that big of a gap. Well if it's all normal and expected, then nothing to worry about. -Darqam (talk) 16:22, 10 April 2016 (UTC)
Label empty sections as "Downtime" or "No events"? Leaving ti empty does seem succinct though.--Relyk ~ talk < 22:40, 10 April 2016 (UTC)

Next event?[edit]

I think it would be really nice to have the bars show when the next event is. For example if I just missed Tequatl, I could see (perhaps on hover) when the next one spawns. This should solve the problem of not seeing enough into the future somewhat, without cluttering up the page. Xiphia (talk) 18:50, 12 April 2016 (UTC)

I believe for most bosses you can click on the boss name to find the timers on their respective pages. I'm not saying this won't get done (it's not my place), but this is an alternative for now. -Darqam (talk) 18:53, 12 April 2016 (UTC)
Hmm. I guess that it would be possible to do an additional API query for each world boss, perhaps triggered on hover, to pick up the next available time. My free time is a bit thin on the ground at the moment, but I'll think about it. -Chieftain AlexUser Chieftain Alex sig.png 19:12, 12 April 2016 (UTC)
Alright I've coded up a first draft. The only thing I don't know how to do neatly is to get the boss name from the clicked element such that the boss name matches the expected name to query with SMW for. I guess I need to rename the World boss/data objects to use the proper canonical name. -Chieftain AlexUser Chieftain Alex sig.png 21:30, 12 April 2016 (UTC)
function nextUp (timezoneOffset) {
    timezoneOffset = 1;
    $('.event-bar-segment').dblclick(function(){
        var elem = $(this);
        var cname = elem.data('event-bossname'); // check for valid attribute node

        // Only generate a new query and nextup element if it hasn't been done before for this node
        if (typeof jQuery('.nextup',elem)[0] === 'undefined' && cname) {
            var queryurl = encodeURIComponent('[[Has canonical name::' + cname + ']][[Has world boss event type::+]]|?Spawns at time|sort=Spawns at time|mainlabel=-|headers=hide');
            $.getJSON('/api.php?action=ask&format=json&query='+queryurl)
            .done(function(nextup_results) {
                console.log(nextup_results);

                if (nextup_results['query']['meta']['count'] > 0) {
                    // Find events after the current time
                    var now = new Date(), nextevent = [], firstrun = 0;
                    var hour = now.getUTCHours();
                    var minute = now.getUTCMinutes();
                    var nowepoch = 1397520000 + (60*minute) + (60*60*hour);
                    $.each(nextup_results['query']['results'], function(key,val){
                        var eventtime = parseInt(val['printouts']['Spawns at time'][0],10);
                        if (firstrun === 0) {
                            firstrun = eventtime;
                        }
                        if (eventtime > nowepoch) {
                            nextevent.push(eventtime);
                        }
                    });

                    // If no results still, then just take the first one (next day scenario)
                    if (nextevent.length > 0) {
                        nextevent = nextevent[0];
                    } else {
                        nextevent = firstrun;
                    }

                    // Convert time to something useful and display it
                    hour = Math.floor((nextevent - 1397520000)/(60*60)); // multiply seconds by 60*60 to get hours
                    minute = Math.floor((nextevent - (1397520000 + hour*60*60))/60);
                    if (timezoneOffset !== 0) {
                        now.setUTCHours(hour);
                        now.setUTCMinutes(minute);
                        hour = now.getHours();
                        minute = now.getMinutes();
                    }

                    // Add information to the page at the bottom of the current segment
                    elem.append('<div class="nextup">Next up: <div class="event-time">' + pad(hour) + ':' + pad(minute) + '</div></div>');
                } else {
                    console.log('Invalid box clicked on, aborting.');
                    return
                }
            });
        }
    });
}
nextUp(0);
You can preview the code with your browser if you wish to. Current flaws:
  • A) I've bound the doubleclick event to all boxes, so it hits the wiki API with a needless query for anything except world bosses.
  • B) It just compares the boss cycle with the current time, it doesn't take into account whether the page already has the same event that occurs at the "next" slot listed (e.g. the current time is 22:19, the page already lists the modniir ulgoth as the 22:30 event, but doubleclicking on the modniir box will create another piece of text saying "next up at 23:30".
And to clarify, my current script only works for world bosses - it does not work for HoT meta events (+2 hours) or dry top (+1 hour). -Chieftain AlexUser Chieftain Alex sig.png 22:20, 12 April 2016 (UTC)
I've made some small modifications and I've addressed issue A - only clicking on non-blank world boss and hardcore world boss entries summons the additional text popup now. Implemented. I will consider adding something to strip the time from the tags on the other bosses and figure out the next spawn for those too (by adding two hours for HoT, or adding one hour for DT). -Chieftain AlexUser Chieftain Alex sig.png 20:17, 15 April 2016 (UTC)


Add (correct) labels to checkboxes[edit]

Why are there no working labels for the checkboxes on the bottom? example: "Compact view." I looked at the widget code but couldn't figure out how to add them. --Cloned (talk) 16:44, 10 May 2016 (UTC)

To translate this: you should be able to click anywhere on the label text to toggle the checkbox, not just on the teeny tiny checkbox itself. It doesn't work at the moment because the <label>s have no for="" attribute. In addCheckbox() in Widget:Event timer, someone coughAlexcough needs to change the var label = to: var label = $('<label for="'+keyname+'-toggle" title="'+hoverdesc+'&#013;Reload the page after changing your preferences.">'+desc+'</label>');
In fact, for the sake of sanity, change the whole function to:
    function addCheckbox(keyname,desc,hoverdesc) {
        var id = keyname + '-toggle';
        hoverdesc += '\nReload the page after changing your preferences.'
        var box = $('<input>', {id:id, title:hoverdesc, type:"checkbox"});
        var label = $('<label>', {for:id, title:hoverdesc, text:desc});
        box.attr('checked', getEventTimerPreferences(keyname,false) );
        eventTimerSettings.append(box).append(label);
    }
I'd do it myself but I have no widget edit permissions :( -- Dagger (talk) 06:12, 23 July 2016 (UTC)
I went to great pains to make this work in stupidly old browsers which won't support the "closed tag followed by an object syntax", I will however do as you ask. -Chieftain AlexUser Chieftain Alex sig.png 12:15, 23 July 2016 (UTC)
Done. thanks Cloned & Dagger for explaining what the original comment was asking. -Chieftain AlexUser Chieftain Alex sig.png 12:21, 23 July 2016 (UTC)
Ah, well, never mind the sanity part then. I know that syntax works on Fx3.6 though, I just kinda assumed that anything that works there also works everywhere else. Thanks for the change.-- Dagger (talk) 19:00, 23 July 2016 (UTC)


Current Events Timer?[edit]

So, it seems that the Bloodstone creatures spawn on a regular time period, starting with moa/devourer at 1am GMT, arcdotus/shark at 2am GMT, wyvern from 3am-3:30, and break from 3:30-4:00 GMT, and then repeating. Could we get a widget for this? With a simple repeat pattern, would it be simple enough to justify doing even if the events only last until the 20th? I know some people are still trying to catch the last elusive creature. Thanks! -Adelas (talk) 05:45, 11 September 2016 (UTC)

Feedback 2016/09/22[edit]

Why doesn't the red line show the current time anymore? I thought I had 45 minutes until night in VB, turns out I had 15.  :/

--198.84.237.21 01:40, 23 September 2016 (UTC)
I think this is on your end, the red line works fine for me. -Darqam (talk) 02:42, 23 September 2016 (UTC)
It'll be up-to-date when I reload the page, but then it doesn't seem to update until I reload again. The preceding unsigned comment was added by 198.84.237.21 (talkcontribs) at 17:56, 23 September 2016‎ (UTC).
I'm getting something odd as well from this timer. It's saying that I'm in UTC-8, but I'm in UTC-7 at the moment (the clock at the top agrees with me).
  • The red line is properly moving, but its label is wrong. It loads as saying "16:05" (wrong hours, no time zone given), but when it moves it changes to "16:00 UTC-8", (no minutes, wrong hour, should be "11:05 UTC-7" or "18:05 UTC").
  • I'm currently using Firefox 48.0.2 on a mac, via Monobook.
  • When using Vector, "18:05 UTC" is loaded (proper hours and minutes), but it quickly changes to "16:00 UTC-8" (all wrong)
G R E E N E R 18:13, 23 September 2016 (UTC)
Follow-up: All appears to be well, now. Thanks Alex. G R E E N E R 20:48, 23 September 2016 (UTC)


Anomaly event[edit]

Why not add the anomaly event in? its kind of a world boss, has a daily reward, runs on 3 different maps. just a suggestion ^^ --Whowantblood (talk) 12:06, 24 October 2016 (UTC)

Sure, but only if you do the legwork and find me the spawn times in UTC. -Chieftain AlexUser Chieftain Alex sig.png 18:12, 24 October 2016 (UTC)
Spawn times occur 20 minutes passed every even hour on a cycle between timerline falls, iron marches and gendarran fields, so it would go like this (btw i suck at wiki formatting) 00:20 timberline falls, 02:20 iron marches, 04:20 gendarran fields, 6:20 timberline falls etc etc --Whowantblood (talk) 02:10, 25 October 2016 (UTC)
I will add the map names when I get back from work later. -Chieftain AlexUser Chieftain Alex sig.png 06:58, 25 October 2016 (UTC)
Finished. Remember to a) purge your browser cache CTRL+F5, b) press the "Reset saved preferences" button beneath the timers. Let me know if I messed anything up. -Chieftain AlexUser Chieftain Alex sig.png 18:03, 25 October 2016 (UTC)
The timing is off. Says :40, when it should be :20. | Leyline Anomaly article's timers are on-time. Choco-muffin (talk) 17:44, 7 November 2016 (UTC)
I don't think you're reading it correctly? http://imgur.com/a/Xm9zo shows the boss pops up at 20:20 (zone name), and the event is finished by 20:40 (blank text). -Chieftain AlexUser Chieftain Alex sig.png 20:18, 7 November 2016 (UTC)
Ref: File:User Greener Leyline offset.jpg. Showing at :40. G R E E N E R 21:20, 7 November 2016 (UTC)

(Reset indent) I could have sworn it showed properly for me 2 days ago, yet today I see the same thing as Greener... Interesting. -Darqam 21:24, 7 November 2016 (UTC)

Ok thanks guys, sorry for the bother but I was able to replicate this in the end. I am not entirely certain that I have solved this yet, but previously only the "start with even hour" box was producing the correct anomaly location/time when the current UTC hour was odd. I might have messed up the cycle prediction so we'll monitor this over the next few days when it hits odd hours to see if it matches up with the table on the anomaly page. -Chieftain AlexUser Chieftain Alex sig.png 22:02, 7 November 2016 (UTC)

Link Fix[edit]

The link for the "Night Bosses" in Verdant Brink goes to a deleted page. - Doodleplex 22:06, 7 November 2016 (UTC)

Second line bugged[edit]

The second line is showing incorrect times for me right at this moment. It shows Karka Queen starting at 05:00 UTC instead of 06:00 and Tequatl starting at 05:15 UTC instead of 07:00 (which is supposed to be at the "next 2 hours" break) --Gimmethegepgun (talk) 05:42, 1 December 2016 (UTC)

Yeah, I see 22:00, 22:15, 22:30 for hardcore events.--Relyk ~ talk < 06:13, 1 December 2016 (UTC)
Yep, it got worse. KQ is on it at 06:00 UTC (and she isn't supposed to be on the list at all at this time), followed by Teq at 06:15 and TT at 06:30 --Gimmethegepgun (talk) 06:24, 1 December 2016 (UTC)
Fixed thanks. API output from the SMW query changed. -Chieftain AlexUser Chieftain Alex sig.png 19:00, 1 December 2016 (UTC)

Bitterfrost Frontier[edit]

Is it possible to track Bitterfrost Frontier daynight cycle? --207.38.205.253 20:49, 1 March 2017 (UTC)

I think it's on the same cycle as the rest of Tyria and should match the timer on Day and night. If it's not, please let us know! =) - Doodleplex 20:58, 1 March 2017 (UTC)
I think it's different. Casual observation while gathering winterberry indicates it is hourly. --207.38.205.253 03:08, 2 March 2017 (UTC)
Looks like the storm warning starts at about xx:30 every hour and takes about 5 minutes for the storm to actually arrive. How quickly Jormag's Fury builds after that depends how many braziers are lit, then once it's full the champs spawn, and the storm clears as soon as you kill 9 champs. Which could conceivably just not happen? Not sure if the storm would clear on its own or stick around forever or what. - Tanetris (talk) 16:53, 2 March 2017 (UTC)
It would appear Bitterfrost Frontier is not consistent cross map. I just went from one megaserver to another, and it switched from night to day. --207.38.205.253 00:19, 4 March 2017 (UTC)