Error "It is not your turn" when using debug_playAutomatically in MultiActivePlayerState

Game development with Board Game Arena Studio
Post Reply
User avatar
dudi2
Posts: 223
Joined: 05 December 2015, 20:30

Error "It is not your turn" when using debug_playAutomatically in MultiActivePlayerState

Post by dudi2 »

In studio when in a state of type StateType::MULTIPLE_ACTIVE_PLAYER the debug_playAutomatically results in an error message "It is not your turn" for all players except one.

Is that the normal expected behaviour? If yes, is there an easy way to detect which player is the one where it works? If no, did I miss some necessary step to make all players active even for zombie mode (i.e. the debug_playAutomatically function)?
User avatar
thoun
Posts: 1620
Joined: 10 December 2020, 22:25

Re: Error "It is not your turn" when using debug_playAutomatically in MultiActivePlayerState

Post by thoun »

Do you have checkAction calls remaining? They are not necessary since autowiring, and could cause this message.
User avatar
dudi2
Posts: 223
Joined: 05 December 2015, 20:30

Re: Error "It is not your turn" when using debug_playAutomatically in MultiActivePlayerState

Post by dudi2 »

Thx, there was one checkaction remaining from conversion process. Commented that out and now it is working. Nice.

By the way while converting by accident I called setupNotifications() twice from setup resulting in all actions called twice. I cannot imagine a case where this could be useful. Perhaps it is a good idea to prevent from calling this.bgaSetupPromiseNotifications() twice in BGA framework.
Post Reply

Return to “Developers”