Page 1 of 1

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

Posted: 29 October 2025, 19:04
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)?

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

Posted: 29 October 2025, 19:06
by thoun
Do you have checkAction calls remaining? They are not necessary since autowiring, and could cause this message.

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

Posted: 29 October 2025, 20:43
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.