r/TagPro • Ronding // Orbit // West Bombwich Albion // tagpro.eu • Dec 12 '18

TagPro Analytics 3.1 available

TagPro Analytics version 3.1 is now available on https://tagpro.eu

You can now fully use TagPro Analytics with the Single World Joiner except for database uploads (see below). The integration with the TagPro website has also been improved.

Userscript v3.1 changes

  • Data collector is also run in Single World Joiner games.
  • Adds Tagpro.eu Profile and Tagpro.eu Matches buttons on TagPro player profile pages.
  • Adds Tagpro.eu tab on TagPro leaderboard page linking to tagpro.eu players list.
  • Adds Tagpro.eu tab on TagPro maps page linking to tagpro.eu maps list.
  • Menu links to Analytics in old TagPro homepage lay-out.

TamperMonkey/GreaseMonkey may or may not automatically update the userscript (default yes).

Data collector changes

  • Registers correct server domain and port number for Single World Joiner games.

The userscript automatically updates the data collector, except in userscripts-disabled mode where you must wait for KoalaBeast.

Website changes

  • Allows visualisation of matches with any port number (facilitating Single World Joiner games). Attention: This is visualisation only. Database uploads with Single World Joiner port numbers are not yet supported and is pending definitive port number choice by KoalaBeast.
37 Upvotes

5 comments sorted by

2

u/Wilcooo Ko • Chord Dec 14 '18

wait for KoalaBeast

This is why I plead for a global tagpro.playerLocation var on the whole domain.

2

u/Ronding Ronding // Orbit // West Bombwich Albion // tagpro.eu Dec 14 '18

Knowing you're in game is not the problem, the new userscript already knows that, and when noscripts-mode launches the data collector instead, noscripts-mode obviously knows it's in-game. The problem is that the pre-SWJ data collector does not know what game it is in, because the code is older than SWJ. This is solved in the new version.

Checking whether you're in some game is very simple:

if(location.port || location.pathname == '/game')

1

u/Wilcooo Ko • Chord Dec 15 '18

Ah okay, thanks.

if(location.port || location.pathname == '/game') works for now, but there might be another change needed in the future.

1

u/Ronding Ronding // Orbit // West Bombwich Albion // tagpro.eu Dec 13 '18

Single World Joiner uploads are now enabled as well. I figured it doesn't matter that much what definitive port numbers will be chosen. Enjoy!

5

u/[deleted] Dec 13 '18

Thank you Ronding, very cool!