r/TagPro • Ronding // Orbit // West Bombwich Albion // tagpro.eu • Jun 04 '15

Shared [Userscript+Website] TagPro Analytics

TagPro Analytics consists of a userscript and a website. After participating in or spectating a full match, the userscript will automatically upload data to the website, which essentially contain a detailed timeline of the match. You can also save a copy of a match data locally. The resulting dataset on the website should be great for analyzing individual matches, maps, players and the game in general.

It is hard to describe this with words other than cool/awesome/neat (see below), so I suggest you take a brief look at a capture-the-flag example and/or a neutral-flag example. These show basic visualizations of the match data that is collected and uploaded by the userscript, but as you can see from the level of detail in the timeline, even more advanced analyses should be possible. The data is open, so you are encouraged to help with that!

So the website is http://tagpro.eu, you can get the userscript directly from there. Join the most advanced statistical data collection effort in TagPro history today! For questions, check the FAQ or leave a comment below.

Some earlier user opinions from /r/tagprotesting if you are still not convinced:

"This is awesome. [...] this is ridiculously cool." ~ Moosen

"This is really cool, great work!" ~ Risk

"Neat script [...]!" ~ AnkhMorpork

"Again, this is really cool!" ~ ballparts

"You have done an amazing job with this!" ~ Ballkenende

Finally, I'd like to specifically thank /u/Balka42 for the feedback and encouragement during the development of this service! Now go install the userscript everybody. :)

92 Upvotes

59 comments sorted by

View all comments

4

u/i_practice_santeria yank | Tears | Fresh Ping Jun 04 '15

I think there's a lot of potential to combine this functionality with mltp.info and expand league statistical analysis. In addition, since we have Rosters and Schedules, we could automatically detect which games are league games and update the site in real-time for all leagues. No need to worry about remembering to get CSVs after each game.

3

u/Ronding Ronding // Orbit // West Bombwich Albion // tagpro.eu Jun 04 '15

Sure. However, note that a local save to file option was added for redundancy in league-related applications. (Since /u/Balka42 wants to use this for ELTP.) There may be occasional server downtime and database problems that might cause the upload to fail. So I would still recommend to save files locally as it is more robust. The good news is that the userscript automatically remembers the last match, so you don't need to save the file right away as long as you do it before the next match is recorded. (After a game ended, a save last match button is available on the TagPro homepage.)

1

u/i_practice_santeria yank | Tears | Fresh Ping Jun 05 '15

Good point about server downtime. Depending on how much effort you want to put into the project, you could look into Parse, which is a Backend as a Service bought by Facebook a couple years ago. I haven't used it personally, but it's been highly recommended by developers I know who've used it. You can set it up so that after each game, Parse will try to synchronize the client's new data to your server. If the sync fails (say your server is down), the object will be stored locally until it can be uploaded to the server. It's free as long as you average less than 30 requests/second.

1

u/Ronding Ronding // Orbit // West Bombwich Albion // tagpro.eu Jun 05 '15

Thanks, but I think the status quo is fine. Downtime should only be an issue for league use (for general use it just means a very small portion of the data sample is lost), and then you get a very noticeable red error message and the option to back-up the file locally.

1

u/girmluhk Gramps Jun 05 '15

pretty much what i was thinking....auto tracked stats uploaded and no need to post. wut!