gwmaps / Overwolf-Locationtracker

Source and backend of my Guild Wars 2 Squad Tracker Overwolf app
http://www.overwolf.com/apps/tsgw2_contest/#!appId=pdneijddbkbmebclglpnifkckdddbgpganknbfhk
MIT License
2 stars 0 forks source link

Prevent adding multiple timers on match reset #4

Closed codemasher closed 9 years ago

codemasher commented 9 years ago

Currently, there'll be timers added twice when the app (sidebar/objectives) runs on match reset. The stats and items will be updated properly, but timers will be added for objectives which changed color (which is about right).

codemasher commented 9 years ago

Probable fix: create a unique ID for the match (see: https://github.com/codemasher/gw2-wvwstats/blob/master/classes/wvwstats.class.php#L149) and save it in the local storage along with the already existing match info, check for it when applying timers.

codemasher commented 9 years ago

Another related issue: the WvW API seems to have some outages/bugs/whatever, which turn objectives neutral and then into owner color - need to prevent timer attachment then. See: https://forum-en.guildwars2.com/forum/community/api/Match-details-giving-incorrect-results/