http://server.pokemon-online.eu/mafiathemes/ Well I was actually productive for once today, and decided to get to work on this. It's not finished and depending on when you look at this, probably only has like 4-5 themes :D There's still quite a bit to do and it's far from perfect, if anyone wants to help, it's here: https://github.com/po-devs/po-server-goodies/blob/master/scripts/mafiastats.js (there's also a to-do list at the top) Though I'll try to get most things done by the end of the week, if not tomorrow.
Oh nice. I will look into helping whenever I'm not lazy :x BTW, I don't remember who suggested it some time ago, but now that each theme gets its own page, a better way to display the number of times a side won could be with a table. Something like this: https://dl.dropboxusercontent.com/u/10065307/example.PNG (Numbers are made up), so we can know which game sizes need more attention for each theme.
Added to the list! (Actually the data is set up pretty well to do this, but well I'm lazy at times). Also added the ability to view the stats on the server. /topthemes [x] will show the top x played themes. Default is 10. /windata [theme] will show the win data for that theme. Default is "default" or the currently played theme (though I should probably not do that since said theme might not have data... EDIT: Added a block to that now). Advantages of this, is that the data is updated everytime a full game is finished, rather than hourly like the sites stats. They both pull from the same place, just one is updated more than the other
Isn't there a way to add players stats as well? [secret]*** Times Won *** Theme Played: 6 times 1: East Clan. Times Won: 2. Average Players per win: 7.5 2: NorthWest Clan. Times Won: 2. Average Players per win: 10 3: Neighbour Village. Times Won: 2. Average Players per win: 9.5 is South the new NW?[/secret] [secret] *** Times Won *** Theme Played: 24 times 1: Heroes. Times Won: 17. Average Players per win: 10.29 2: Kingdom of Bern. Times Won: 3. Average Players per win: 16.33 3: Begnion Senators. Times Won: 2. Average Players per win: 10 4: Dread Isle. Times Won: 1. Average Players per win: 13 5: Lundgren's Forces. Times Won: 1. Average Players per win: 7 Heroes seem quite OP, 10+ wins over everyone else together.[/secret]
I added tables, like in Kirby's request, however they are very basic right now. I'll fix them up later with formatting (also I suck with html so yeah). However, now you can spot problem areas for themes easier, hopefully. Also Ocean stretches the table massively :D http://server.pokemon-online.eu/mafiathemes/Ocean_stats.html If by player stats you mean how many times Player X has won, then it's not getting added. Leaderboards promote targetting. However if you mean how many times a player started a theme, like in the old stats, then it's on the to-do list.
Yay for tables <3 This should help making some stuff clearer. People were commenting how Red wins a lot of games in Trainers, but by looking at the table it's possible to notice how most of those wins comes from games where Green and sometimes even Blue is not in the game. Adding an "overall wins by side" count at the right of the table and a "games played by size" below it would be sweet too.
Thanks to Kirby, there's now percentage table for each theme, that shows the proportion of wins by each team at X amount of players. Also a little prettier too :D
Suggestion: Add a link to the Theme's Mafia Stats page when using the /windata command. (Yeah, I could code it, but I don't know if there's any possible issue with linking that)
Suggestion: Average amount of rounds per game (for each player count). I sort of need this information right now :x
Spoiler 1: Caterpie Family. Times Won: 14. Average Players per win: 11.29 2: Weedle Family. Times Won: 12. Average Players per win: 10.25 3: Fire Pokémon. Times Won: 2. Average Players per win: 15.5 4: Caterpie. Times Won: 1. Average Players per win: 12 what is this Caterpie side here? :V
Page is not working. Probably because of the recent change to scriptdata directory used by scripts :x
Actually the entire domain is down, due to a full server reset. Coyo said it should be up tonight/tomorrow The commands still work though