Table Guide
Posted: Thu Sep 03, 2015 12:00 pm
The match reports are saved as tiny database files, in the SQLite format. They are saved in (c:\Users\YOURUSERNAME\Documents\BloodBowlLegendary\Saves\Replays). Here will be a list of the tables in there, what they appear to relate to & the current status of that data within BBDB (may make this into a google sheet?)
Away_AI_Positions - empty table - Not done - the name suggests only applicable to AI-controlled teams.
Away_AI_Tactics - empty table - Not done - the name suggests only applicable to AI-controlled teams.
Away_Equipment_Listing - Not done - Unsure
Away_Player_Casualties - This needs to come from MatchReport.sqlite - it's empty in the replay file.
Away_Player_Listing - stage 1 done - team roster.
Away_Player_Skills - stage 1 done - the bespoke skills (and plus stats??) that the players on the team have.
Away_Player_Type_Skill_Categories_Double - stage 1 done - for every player type, a list of the skill categories (ie agility, passing etc) that the player type can get if they roll a double.
Away_Player_Type_Skill_Categories_Normal - stage 1 done - for every player type, a list of the skill categories (ie agility, passing etc) that the player type can get if they roll a double.
Away_Player_Type_Skills - stage 1 done - a list of the innate skills a player has (ie a freshly bought player). As well as standard player types, this includes all star players. Interestingly includes star players that aren't even available online.
Away_Player_Types - stage 1 done - a list of all player types - their names, stat lines, price and max amount.. Note that each star player that the race has access to counts as its own type.
Away_Races - stage 1 done - small amount of info about the race - name, reroll price and 2 random numbers.
Away_Races_StarPlayers - Not done - unsure, seems to be empty in the examples I can see.
Away_Statistics_Players - stage 1 done - lifetime player stats, before the current game.
This also needs to come from MatchReport.sqlite - the copy there is just for that one match, I think. Note that in this copy, sometimes the idPlayer_Listing = 0, believe this represents a player who missed the match through injury.
Away_Statistics_Season_Players - stage 1 done - season player stats, before the current game.
Away_Statistics_Season_Teams - stage 1 done - season teams stats, before the current game. (1 row)
Away_Statistics_Teams - stage 1 done - lifetime teams stats, before the current game. (1 row)
Away_Team_Listing - stage 1 done - lots of info about the team - name, motto, value, cash, re-rolls, cheerleaders etc.
Away_Team_Rankings - empty table
**** All the above tables are also duplicated with "Home" at the front instead of "Away" - when I do something with an Away table I will also do so with its home equivalent. So I won't bother listing them all here ****
Calendar - 1 row, loads of columns, possibly useless data? This needs to come from MatchReport.sqlite
Replay_NetCommands - stage 1 done - Important table, showing everything that happened in the match.
Rule_Listing - rules that apply - ageing, wizard allowed, max cheerleaders, star players allowed, max turn length and so on. possibly not required?
SavedGameInfo - stage 1 done - things like stadium, file name, and a massive xml column called Match_strSave.
sqlite_sequence - Not needed - internal configuration file only.
One interesting thing is I can't seem to find a table that gives post-match stats - or even the scoreline - so all that information may have to be extracted from the event log. There is a table called "Calendar" that appears to have space for much of that information, but it's all set to 0 on the file I checked.
Away_AI_Positions - empty table - Not done - the name suggests only applicable to AI-controlled teams.
Away_AI_Tactics - empty table - Not done - the name suggests only applicable to AI-controlled teams.
Away_Equipment_Listing - Not done - Unsure
Away_Player_Casualties - This needs to come from MatchReport.sqlite - it's empty in the replay file.
Away_Player_Listing - stage 1 done - team roster.
Away_Player_Skills - stage 1 done - the bespoke skills (and plus stats??) that the players on the team have.
Away_Player_Type_Skill_Categories_Double - stage 1 done - for every player type, a list of the skill categories (ie agility, passing etc) that the player type can get if they roll a double.
Away_Player_Type_Skill_Categories_Normal - stage 1 done - for every player type, a list of the skill categories (ie agility, passing etc) that the player type can get if they roll a double.
Away_Player_Type_Skills - stage 1 done - a list of the innate skills a player has (ie a freshly bought player). As well as standard player types, this includes all star players. Interestingly includes star players that aren't even available online.
Away_Player_Types - stage 1 done - a list of all player types - their names, stat lines, price and max amount.. Note that each star player that the race has access to counts as its own type.
Away_Races - stage 1 done - small amount of info about the race - name, reroll price and 2 random numbers.
Away_Races_StarPlayers - Not done - unsure, seems to be empty in the examples I can see.
Away_Statistics_Players - stage 1 done - lifetime player stats, before the current game.
This also needs to come from MatchReport.sqlite - the copy there is just for that one match, I think. Note that in this copy, sometimes the idPlayer_Listing = 0, believe this represents a player who missed the match through injury.
Away_Statistics_Season_Players - stage 1 done - season player stats, before the current game.
Away_Statistics_Season_Teams - stage 1 done - season teams stats, before the current game. (1 row)
Away_Statistics_Teams - stage 1 done - lifetime teams stats, before the current game. (1 row)
Away_Team_Listing - stage 1 done - lots of info about the team - name, motto, value, cash, re-rolls, cheerleaders etc.
Away_Team_Rankings - empty table
**** All the above tables are also duplicated with "Home" at the front instead of "Away" - when I do something with an Away table I will also do so with its home equivalent. So I won't bother listing them all here ****
Calendar - 1 row, loads of columns, possibly useless data? This needs to come from MatchReport.sqlite
Replay_NetCommands - stage 1 done - Important table, showing everything that happened in the match.
Rule_Listing - rules that apply - ageing, wizard allowed, max cheerleaders, star players allowed, max turn length and so on. possibly not required?
SavedGameInfo - stage 1 done - things like stadium, file name, and a massive xml column called Match_strSave.
sqlite_sequence - Not needed - internal configuration file only.
One interesting thing is I can't seem to find a table that gives post-match stats - or even the scoreline - so all that information may have to be extracted from the event log. There is a table called "Calendar" that appears to have space for much of that information, but it's all set to 0 on the file I checked.