@bitcraft
Game crashes if player goes to the Baccarat stats page and has never opened the Baccarat game.
To reproduce, delete save_game.json and go to the Baccarat stats page without playing any games.
Full trace:
Traceback (most recent call last):
File "pyroller.py", line 8, in <module>
main()
File "C:\Python27\Lib\Python modules\repos\Mine\pyrollers\mine_pyroller\data\main.py", line 49, in main
run_it.main()
File "C:\Python27\Lib\Python modules\repos\Mine\pyrollers\mine_pyroller\data\tools.py", line 146, in main
self.update(time_delta)
File "C:\Python27\Lib\Python modules\repos\Mine\pyrollers\mine_pyroller\data\tools.py", line 58, in update
self.flip_state()
File "C:\Python27\Lib\Python modules\repos\Mine\pyrollers\mine_pyroller\data\tools.py", line 83, in flip_state
self.state.startup(self.now, persist)
File "C:\Python27\Lib\Python modules\repos\Mine\pyrollers\mine_pyroller\data\states\stats_screen.py", line 36, in startup
player_stats.current_game = game
File "C:\Python27\Lib\Python modules\repos\Mine\pyrollers\mine_pyroller\data\components\casino_player.py", line 204, in current_game
raise GameNotFound('There was no game called "{0}" in the stats collection'.format(value))
data.components.casino_player.GameNotFound: There was no game called "Baccarat"
in the stats collection
@bitcraft Game crashes if player goes to the Baccarat stats page and has never opened the Baccarat game. To reproduce, delete save_game.json and go to the Baccarat stats page without playing any games.
Full trace: