IBBoard / bbreplay

A small Python library to parse Blood Bowl 1 replay files
GNU General Public License v3.0
1 stars 0 forks source link

Fix time limit exceeded handling outside movement/throws/etc #9

Open IBBoard opened 3 years ago

IBBoard commented 3 years ago

In Replay_2021-05-09_09-44-12.db there's a blitz after the opposition have a "Time limit exceeded!" turn over. This isn't picked up until the second player moves, and even that is only because of the blitz trying to look up dice rolls etc.

Currently we get a "stop iteration exception" because the list runs out, but we need to do something better with timeouts.

Ideally this would go somewhere central like Replay's _process_turn(), but we don't have the current list of log entries there and can't peek at the next ones. We may need to append the turn over to the end of the previous list, which would require changes to log parsing as well.