I received an interesting bug report: https://boardgamearena.com/bug?id=18937 that said my scoring tables were not being displayed for turn-based games. I quickly realized what was going on - my code was running as part of the logic I have to end the hand and transition to the next hand / end of game. I don't currently have a dedicated state for displaying the score.
My getAllDatas() function does not trigger any scoring dialog. This means that when a turn-based player returns to the game, getAllDatas() is called which loads the current game state ... which is already after the tableWindow scoring dialog.
Is there a good way to ensure that turn-based players see the scoring table at the end of each hand, or do I need to add a multipleplayersactive state? I'd prefer not to do that, because for turn-based players that means that each player would have to "waste a turn" just clicking ok on my scoring popup. They would then need to wait for everyone else to dismiss the scoring dialog before they could proceed with the next hand.
Code: Select all
notifyAllPlayers("tableWindow" ...My getAllDatas() function does not trigger any scoring dialog. This means that when a turn-based player returns to the game, getAllDatas() is called which loads the current game state ... which is already after the tableWindow scoring dialog.
Is there a good way to ensure that turn-based players see the scoring table at the end of each hand, or do I need to add a multipleplayersactive state? I'd prefer not to do that, because for turn-based players that means that each player would have to "waste a turn" just clicking ok on my scoring popup. They would then need to wait for everyone else to dismiss the scoring dialog before they could proceed with the next hand.