BB2Stats: Advanced stats - a start

Everything dealing with the video game developed by Cyanide!
User avatar
mordrek
Posts: 177
Joined: 10 June 2009, 09:27

BB2Stats: Advanced stats - a start

Postby mordrek » 02 December 2015, 10:15

Hi.
I'm sure someone already made something like this, but I got inspired so I figured I'd do it anyway, and it might be of interest to some weirdos out there.

## Overview

Collect and view stats from Bloodbowl 2
BB2Stats allows you to collect and view game stats from Bloodbowl 2. It can be used by a league owner (with a limited number of participants) to present stats on a web page, or to just check stats for personal games.
It's in sort of a beta state.

## BB2StatsGrabber

The BB2StatsGrabber is the application used to upload Bloodbowl 2 data. Each member of the league needs to install and use this client application since you can only access data from games you have played yourself.

When you have played your game, just launch the application, select your league and press "Upload" on the game you just played. You can then click another button to view the collected data.

## Check it out

BB2StatsGrabber can be download here: http://www.mordrek.com/BB2Stats/

You can access the full source code and register Issues here: https://bitbucket.org/mordrek/bb2stats

Here are some old screens of a private league with some stats (headers are clickable to sort the tables):
Image
Image
Image

## Error reporting

If you find some issues or have suggestions, please use the bitbucket page.
I'm not promising I'll write a single line of code more, but I might.

## Future plans

We'll see for how long I'm inspired, but it would be great to get things like: Star-player-names, Pretty pictures of race and skills, Dodges made/failed, GFis made/failed, Blocking luck, Double-Skulls count, who-killed-who, match highlights in text-form etc.
I've started to check out the actual replay commands , but it's a pain reading those files.

The client performs some of the heavy lifting and it will therefore have to be updated to get access to latest features.
If I add stuff that would be of interest I'll let the clients know a new version is available.

/mordrek
Last edited by mordrek on 06 December 2015, 19:39, edited 1 time in total.

User avatar
dode74
Posts: 6834
Joined: 11 December 2008, 11:18
Location: Nr. Reading, UK
Contact:

Re: BB2Stats: Advanced stats - a start

Postby dode74 » 02 December 2015, 10:33

Awesome stuff!
Image

booncabal76
Posts: 467
Joined: 02 July 2009, 11:07

Re: BB2Stats: Advanced stats - a start

Postby booncabal76 » 02 December 2015, 13:07

This looks brilliant...and also baffling. As someone who found bbm complex i have no chance with this. If you're burned out hopefully someone else can make it moron friendly...

Great job though.

User avatar
mordrek
Posts: 177
Joined: 10 June 2009, 09:27

Re: BB2Stats: Advanced stats - a start

Postby mordrek » 02 December 2015, 13:50

Hm, yes, just checked out BBM. Looks really nice!

Yes, build/deploy is a bit of a hassle, but at the same time allows you to customize and I don't have to worry about passwords and traffic.

But yes, perhaps I should start to host this so that people can use it without having to build/deploy themselves.
That's not as fun as just doing the raw implementation , but perhaps I should anyway if there's an interest.

And yes, If I die, at least someone can continue.
/Mordrek

User avatar
TheSpydyr
Posts: 1196
Joined: 02 April 2012, 16:03

Re: BB2Stats: Advanced stats - a start

Postby TheSpydyr » 02 December 2015, 16:01

It looks great and My league would probably look at using it (at least until BB2 itself had better league implementations...if it ever does)!
Spydyr

Image
The RNG is not broken, you are not "the unluckiest coach in the world" and the computer does not cheat, you just suck.

Twitch
YouTube

logain
Posts: 303
Joined: 11 March 2012, 08:34

Re: BB2Stats: Advanced stats - a start

Postby logain » 02 December 2015, 16:13

Nice !

JezUK
Posts: 4
Joined: 19 October 2011, 06:17

Re: BB2Stats: Advanced stats - a start

Postby JezUK » 03 December 2015, 12:11

That might be helpfull then :)

Code: Select all

<ReplayFileName>Coach-6416-e6335660f64029e16320880fdfe901e0_2015-09-20_08_06_34</ReplayFileName>
----------------------------------------------
<Stadium>Human</Stadium>
<StructStadium>RefreshmentArea</StructStadium>
<LevelStadium>2</LevelStadium>
----------------------------------------------
<IdCompetition>1</IdCompetition>
<IdCompetitionTypes>0</IdCompetitionTypes>
<CompetitionName>Free Ladder</CompetitionName>
<CompetitionRound>0</CompetitionRound>
<IdMatchCompletionStatus>0</IdMatchCompletionStatus>
----------------------------------------------
<IdLeague>1</IdLeague>
<OfficialLeague>1</OfficialLeague>
<LeagueName>NAF Official League</LeagueName>
----------------------------------------------
<Automatch>1</Automatch>
<IdMatchType>0</IdMatchType>
----------------------------------------------
<ClientVersion>1.6.0.13</ClientVersion>
----------------------------------------------
<Ranked>1</Ranked>
----------------------------------------------
<Played>1</Played>
----------------------------------------------
<BestMatches>0</BestMatches>
----------------------------------------------
<Spectators>0</Spectators>
----------------------------------------------
<Rerolled>0</Rerolled>
----------------------------------------------
<ID>0</ID>
----------------------------------------------
<Rating>0</Rating>
----------------------------------------------
<StatsCategories>CARREER|MULTIPLAYER</StatsCategories>

====================================================================================================
====================================================================================================
====================================================================================================

<IdCoachAwayCompletionStatus>0</IdCoachAwayCompletionStatus>
<IdCoachAway>12464</IdCoachAway>
<CoachAwayName>Arathon</CoachAwayName>
<IdRacesAway>2</IdRacesAway>
<IdTeamListingAway>32298</IdTeamListingAway>
<ShardedIdTeamListingAway><Value>RowId:32298-Server:ONLINE-StoreName:Main</Value></ShardedIdTeamListingAway>
<AwayValue>1640</AwayValue>
<TeamAwayName>Thorgrims Boars</TeamAwayName>
<TeamAwayLogo>Dwarf_07</TeamAwayLogo>
<AwayNbSupporters>10000</AwayNbSupporters>
<AwayScore>1</AwayScore>
<AwayMVP>1</AwayMVP>
----------------------------------------------
<AwaySustainedDead>0</AwaySustainedDead>
<AwaySustainedCasualties>5</AwaySustainedCasualties>
<AwaySustainedInjuries>8</AwaySustainedInjuries>
<AwaySustainedKO>1</AwaySustainedKO>
<AwaySustainedExpulsions>1</AwaySustainedExpulsions>
----------------------------------------------
<AwayInflictedDead>0</AwayInflictedDead>
<AwayInflictedCasualties>0</AwayInflictedCasualties>
<AwayInflictedInjuries>9</AwayInflictedInjuries>
<AwayInflictedKO>1</AwayInflictedKO>
<AwayInflictedTackles>40</AwayInflictedTackles>
<AwayInflictedPushOuts>0</AwayInflictedPushOuts>
<AwayInflictedPasses>2</AwayInflictedPasses>
<AwayInflictedMetersPassing>8</AwayInflictedMetersPassing>
<AwayInflictedCatches>2</AwayInflictedCatches>
<AwayInflictedInterceptions>0</AwayInflictedInterceptions>
<AwayInflictedMetersRunning>32</AwayInflictedMetersRunning>
<AwayInflictedTouchdowns>1</AwayInflictedTouchdowns>
----------------------------------------------
<AwayPossessionBall>43</AwayPossessionBall>
<AwayOccupationTheir>18</AwayOccupationTheir>
<AwayOccupationOwn>25</AwayOccupationOwn>
----------------------------------------------
<AwayCashBeforeMatch>10000</AwayCashBeforeMatch>
<AwayCashEarnedBeforeConcession>10000</AwayCashEarnedBeforeConcession>
<AwayCashEarned>10000</AwayCashEarned>
<AwayCashSpentInducements>0</AwayCashSpentInducements>
<AwaySpirallingExpenses>0</AwaySpirallingExpenses>
----------------------------------------------
<AwayCoachXpEarned>10</AwayCoachXpEarned>
----------------------------------------------
<AwayPopularityBeforeMatch>4</AwayPopularityBeforeMatch>
<AwayPopularityGain>0</AwayPopularityGain>
----------------------------------------------
<AwayCoachCyanEarned>0</AwayCoachCyanEarned>
----------------------------------------------
<AwayWinningsDice>1</AwayWinningsDice>

====================================================================================================
====================================================================================================
====================================================================================================

<IdCoachHomeCompletionStatus>0</IdCoachHomeCompletionStatus>
<IdCoachHome>6416</IdCoachHome>
<CoachHomeName>JezUK</CoachHomeName>
<IdRacesHome>3</IdRacesHome>
<IdTeamListingHome>14548</IdTeamListingHome>
<ShardedIdTeamListingHome><Value>RowId:14548-Server:ONLINE-StoreName:Main</Value></ShardedIdTeamListingHome>
<HomeValue>1170</HomeValue>
<TeamHomeName>Skav test_11-09-15</TeamHomeName>
<TeamHomeLogo>Skaven_01</TeamHomeLogo>
<HomeNbSupporters>15000</HomeNbSupporters>
<HomeScore>3</HomeScore>
<HomeMVP>1</HomeMVP>
----------------------------------------------
<HomeSustainedDead>0</HomeSustainedDead>
<HomeSustainedCasualties>0</HomeSustainedCasualties>
<HomeSustainedInjuries>10</HomeSustainedInjuries>
<HomeSustainedKO>1</HomeSustainedKO>
<HomeSustainedExpulsions>0</HomeSustainedExpulsions>
----------------------------------------------
<HomeInflictedDead>0</HomeInflictedDead>
<HomeInflictedCasualties>3</HomeInflictedCasualties>
<HomeInflictedInjuries>5</HomeInflictedInjuries>
<HomeInflictedKO>1</HomeInflictedKO>
<HomeInflictedTackles>43</HomeInflictedTackles>
<HomeInflictedPushOuts>3</HomeInflictedPushOuts>
<HomeInflictedPasses>0</HomeInflictedPasses>
<HomeInflictedMetersPassing>0</HomeInflictedMetersPassing>
<HomeInflictedCatches>0</HomeInflictedCatches>
<HomeInflictedInterceptions>0</HomeInflictedInterceptions>
<HomeInflictedMetersRunning>98</HomeInflictedMetersRunning>
<HomeInflictedTouchdowns>3</HomeInflictedTouchdowns>
----------------------------------------------
<HomePossessionBall>56</HomePossessionBall>
<HomeOccupationTheir>50</HomeOccupationTheir>
<HomeOccupationOwn>6</HomeOccupationOwn>
----------------------------------------------
<HomeCashBeforeMatch>50000</HomeCashBeforeMatch>
<HomeCashEarnedBeforeConcession>80000</HomeCashEarnedBeforeConcession>
<HomeCashEarned>80000</HomeCashEarned>
<HomeCashSpentInducements>0</HomeCashSpentInducements>
<HomeSpirallingExpenses>0</HomeSpirallingExpenses>
----------------------------------------------
<HomeCoachXpEarned>13</HomeCoachXpEarned>
----------------------------------------------
<HomePopularityBeforeMatch>5</HomePopularityBeforeMatch>
<HomePopularityGain>1</HomePopularityGain>
----------------------------------------------
<HomeCoachCyanEarned>0</HomeCoachCyanEarned>
----------------------------------------------
<HomeWinningsDice>6</HomeWinningsDice>


I've taken the liberty to brake down the code and sort it by home coach and away coach :)

The previous code is within the follwoing value:

Code: Select all

<MatchRecord></MatchRecord>

and also there are some other stuff that are still bugging me but here there are :)

Code: Select all

         
<IdReplayStorage/>
<MatchUUID/>
<NameStadium/>
<ReplayMd5/>
<Abstract/>
Image

User avatar
mordrek
Posts: 177
Joined: 10 June 2009, 09:27

Re: BB2Stats: Advanced stats - a start

Postby mordrek » 03 December 2015, 19:19

hm, Challenge accepted I think.
I'll get back with a client that is easy to use and hosting on my server until it breaks down from overworking.

Ive already started it and hopefully I can spend some time on this over the weekend.
Ill let you know in this thread

User avatar
TheSpydyr
Posts: 1196
Joined: 02 April 2012, 16:03

Re: BB2Stats: Advanced stats - a start

Postby TheSpydyr » 04 December 2015, 15:39

Thanks for all the hard work man!
Spydyr

Image
The RNG is not broken, you are not "the unluckiest coach in the world" and the computer does not cheat, you just suck.

Twitch
YouTube

Cadaric
Posts: 62
Joined: 01 July 2009, 13:39

Re: BB2Stats: Advanced stats - a start

Postby Cadaric » 04 December 2015, 19:27

Looking forward such feature as many coaches ! Thanks for your work.

Cyanide should provide such features, that would convince many coaches to migrate to BB2.


Return to “General”

Who is online

Users browsing this forum: No registered users and 5 guests