1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Guest, PO has ceased our separate tiering and adopted Smogon tiers for SM. More information and updates here.

    Dismiss Notice

New Mafia Stats

Discussion in 'Mafia' started by Crystal Moogle, Sep 9, 2013.

Moderators: Pamitha, Water
  1. Crystal Moogle

    Crystal Moogle Ayaya~

    Joined:
    Jul 19, 2010
    Messages:
    3,204
    Likes Received:
    530
    PO Trainer Name:
    Hanako
    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.

     
    Yttrium likes this.
  2. JhenMohran

    JhenMohran Random Art Guy

    Joined:
    Jun 2, 2013
    Messages:
    181
    Likes Received:
    0
    PO Trainer Name:
    JhenMohran
    Thanks Moogle!!!!!!!
    This is awesome, everyone will be so pleased :D
     
  3. .Rawr!

    .Rawr! c(°3°)כ

    Joined:
    Feb 13, 2012
    Messages:
    683
    Likes Received:
    16
    PO Trainer Name:
    Day Healer
    Moogle for president of the world.

    P.d. Ty for realise my wish in the old mafia stats theme.
     
  4. IceKirby

    IceKirby A.K.A. RiceKirby

    Joined:
    Apr 26, 2011
    Messages:
    2,176
    Likes Received:
    635
    PO Trainer Name:
    RiceKirby
    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.
     

    Attached Files:

  5. Crystal Moogle

    Crystal Moogle Ayaya~

    Joined:
    Jul 19, 2010
    Messages:
    3,204
    Likes Received:
    530
    PO Trainer Name:
    Hanako
    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
     
    Last edited: Sep 10, 2013
  6. Angel Flonne

    Angel Flonne macaron

    Joined:
    Jan 24, 2013
    Messages:
    509
    Likes Received:
    3
    PO Trainer Name:
    Angel Flonne
    Good job! I'm loving the new commands. Time to start my themes more~
     
  7. Rand

    Rand The Rand we all know and love

    Joined:
    Apr 15, 2012
    Messages:
    42
    Likes Received:
    1
    PO Trainer Name:
    Gemini-S58
    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]
     
  8. Crystal Moogle

    Crystal Moogle Ayaya~

    Joined:
    Jul 19, 2010
    Messages:
    3,204
    Likes Received:
    530
    PO Trainer Name:
    Hanako
    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.
     
    Last edited: Sep 12, 2013
  9. Rand

    Rand The Rand we all know and love

    Joined:
    Apr 15, 2012
    Messages:
    42
    Likes Received:
    1
    PO Trainer Name:
    Gemini-S58
    I understand, I sill taget Magmarex some times.
     
  10. IceKirby

    IceKirby A.K.A. RiceKirby

    Joined:
    Apr 26, 2011
    Messages:
    2,176
    Likes Received:
    635
    PO Trainer Name:
    RiceKirby
    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.
     
  11. Crystal Moogle

    Crystal Moogle Ayaya~

    Joined:
    Jul 19, 2010
    Messages:
    3,204
    Likes Received:
    530
    PO Trainer Name:
    Hanako
    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
     
  12. IceKirby

    IceKirby A.K.A. RiceKirby

    Joined:
    Apr 26, 2011
    Messages:
    2,176
    Likes Received:
    635
    PO Trainer Name:
    RiceKirby
    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)
     
  13. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Suggestion: Average amount of rounds per game (for each player count). I sort of need this information right now :x
     
  14. Rand

    Rand The Rand we all know and love

    Joined:
    Apr 15, 2012
    Messages:
    42
    Likes Received:
    1
    PO Trainer Name:
    Gemini-S58
    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
     
  15. IceKirby

    IceKirby A.K.A. RiceKirby

    Joined:
    Apr 26, 2011
    Messages:
    2,176
    Likes Received:
    635
    PO Trainer Name:
    RiceKirby
    When the game ends in a draw, the theme's name appears instead of a team's name.
     
  16. Crystal Moogle

    Crystal Moogle Ayaya~

    Joined:
    Jul 19, 2010
    Messages:
    3,204
    Likes Received:
    530
    PO Trainer Name:
    Hanako
    A typo, it seems it happens on tie

    E: Kirby beat me to it :<
     
    Last edited: Sep 22, 2013
  17. IceKirby

    IceKirby A.K.A. RiceKirby

    Joined:
    Apr 26, 2011
    Messages:
    2,176
    Likes Received:
    635
    PO Trainer Name:
    RiceKirby
    Page is not working. Probably because of the recent change to scriptdata directory used by scripts :x
     
  18. Crystal Moogle

    Crystal Moogle Ayaya~

    Joined:
    Jul 19, 2010
    Messages:
    3,204
    Likes Received:
    530
    PO Trainer Name:
    Hanako
    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
     
Moderators: Pamitha, Water