oTree Forum >

setting payoffs

#1 by LauraG

Here is my question. I have a 2 player game (one shot, no rounds). I set the payoffs after the game in a wait page 
class ResultsWaitPage(WaitPage): after_all_players_arrive = set_payoffs
and show the results in a separate app.

But now I want to give a bonus also to those whose partner dropped out and they could not continue with the game and take them straight to the results page. But this means that they never arrive to this wait page and I won't have their bonus in player.payoff. Is there a way to overcome this and make sure that all participants arrive to the page where payoffs are set?

I'd appreciate your help.


#2 by Chris_oTree

See here: https://otree.readthedocs.io/en/latest/multiplayer/waitpages.html#preventing-players-from-getting-stuck-on-wait-pages

Check timeout_happened to record whether the other player failed to submit their page on time.

Write a reply

Set forum username