GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - IBBoard/bbreplay: A small Python library to parse Blood Bowl 1 replay files

BranchesTags
Open more actions menu

Latest commit

 

History

362 Commits
362 Commits

Folders and files

NameName
Last commit message
Last commit date
.dvc
.dvc
 
 
.github/workflows
.github/workflows
 
 
bbreplay
bbreplay
 
 
docs
docs
 
 
metrics
metrics
 
 
tests
tests
 
 
.dvcignore
.dvcignore
 
 
.flake8
.flake8
 
 
.gitignore
.gitignore
 
 
COPYING
COPYING
 
 
README.md
README.md
 
 
data.dvc
data.dvc
 
 
dump-data.py
dump-data.py
 
 
dump_all.sh
dump_all.sh
 
 
dvc.lock
dvc.lock
 
 
dvc.yaml
dvc.yaml
 
 
get-replays.py
get-replays.py
 
 
map.py
map.py
 
 
metrics.py
metrics.py
 
 
todo.txt
todo.txt
 
 

Repository files navigation

BBReplay

BBReplay is a library for parsing and processing Blood Bowl 1 replay files. It turns them into a sequence of actions and other details about the game.

Sample game map replay

BBReplay can be used to generate statistics, but the focus is on recreating blow-by-blow accounts of a game - like the old match reports in White Dwarf magazine.

Running BBReplay

All BBReplay scripts need a log file and a replay database. The database provides the team details and the user commands, while the log file provides the results of rolls.

Each script has a --help option that describes the arguments that it takes.

Note that there must be one log per replay. If you run Blood Bowl, play one game (or watch one replay) and quit then you can copy the log from My Documents/BloodBowlChaos/BB_Chaos000.log and the replay from My Documents/BloodBowlChaos/Saves/Replays-<date>_<time>.db. If you have played multiple games or replays then use get-replays.py to split the log and save the associated replay files.

When watching replays, press the + key to speed up the replay and the - key to slow it down.

Game maps

The map.py prints Unicode maps of the game progress. By default it prints a sequence of maps for setup, kick-off, and at the end of each turn.

The --pretty switch adds ANSI escape sequences to draw colourful maps (requires a terminal that supports ANSI sequences - if you see [38:5 in the output then your terminal does not support ANSI sequences).

The --animate switch uses more ANSI commands to redraw the prettified map after each action, providing a blow-by-blow recreation of the turn.

The --from switch lets you start the replay from a specific turn, which can be useful for animating the later turns of a match.

Raw data dumps

dump-data.py prints all of the data that the library can extract from the data files. It prints a list of commands, a list of log entries, and then prints a list of combined events. This stream of events is what builds the game maps.

This is intended as a developer tool to help people see the events that they will receive when they use the library.

Developing BBReplay

This project uses DVC for data version control and for tracking metrics. DVC is a "a data and ML experiment management tool" that works like Git and integrates with it. All source code is tracked in Git and all data files are tracked in DVC.

To retrieve the data files, install DVC and run dvc pull within the repo. This will download all of the data files from a (read-only) repository on dev.ibboard.co.uk.

To regenerate the metrics, run dvc repro. If the data and source code haven't changed then DVC will use the cached metrics file.

To view changes in the metrics use dvc metrics diff. By default this diffs HEAD and the current workspace but can be passed version hashes to diff metrics at specific versions.

To view plots of the metrics, run dvc plots show and then open dvc_plots/index.html in your browser. The further the curve pushes to the top-left, the better we are doing at processing files.

To view changes in the plots across commits, run dvc plots diff or dvc plots diff [revisions [revisions ...]] and then open dvc_plots/index.html in your browser.

Dependencies

BBReplay uses only core Python 3 packages.

Linux users will already have Python available.

Windows users will need to install Python 3 for Windows or Anaconda Individual Edition.

Developer Documentation

The game replay files are SQLite database files, and the commands are included in the Replay_NetCommands table.

The Docs directory contains more details about the replay file format.

Known problems

  • Setup actions are sometimes missing for some players
    • AI in exhibition matches
    • Human coach's players in exhibition match (may be default positioning)
  • Some kick-off events don't give all details
    • e.g. "Brilliant Coaching" happens but doesn't say who gets rerolls

About

A small Python library to parse Blood Bowl 1 replay files

Topics

computer-gameshacktoberfestpythonreplay-parser

Resources

Readme
GPL-3.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.