Hi,
I hope that someone will be able to help me because I am pulling my hair out
In my game, Dice Forge, I have a state called RessourceChoice where we ask specific users to choose some ressource. One of the side is specific (mirror) and therefore before choosing the ressource, the user needs to select a side on one of the visible die.
I have managed this exception inside the same state RessourceChoice but add a previous step before.
When I have only one user that need to make the choice, it is working, however, when two users have a choice to make (user 1 : mirror, user 2: gold), when user 2 makes his choice, automatically my action buttons and everything disappears.
You can see it happening here : http://en.1.studio.boardgamearena.com/d ... ayFrom=126 (I am not sure that other users can view it but hell let's try it )
I am guessing this happen due to the reception of a notification or the use of the updateCounters method, but I do not understand why...
Here is the notification log
The first notifBlessing (or updateCounters as they are immediate) change my top bar.
Has anyone encountered this issue? I am afraid to here that the workaround would be to add a server state for this step because it will slow down the game (additional step for only some users).
Thanks a lot! And if I am not clear (on this I am pretty sure), do not hesitate!
Vincent
I hope that someone will be able to help me because I am pulling my hair out
In my game, Dice Forge, I have a state called RessourceChoice where we ask specific users to choose some ressource. One of the side is specific (mirror) and therefore before choosing the ressource, the user needs to select a side on one of the visible die.
I have managed this exception inside the same state RessourceChoice but add a previous step before.
When I have only one user that need to make the choice, it is working, however, when two users have a choice to make (user 1 : mirror, user 2: gold), when user 2 makes his choice, automatically my action buttons and everything disappears.
You can see it happening here : http://en.1.studio.boardgamearena.com/d ... ayFrom=126 (I am not sure that other users can view it but hell let's try it )
I am guessing this happen due to the reception of a notification or the use of the updateCounters method, but I do not understand why...
Here is the notification log
Code: Select all
< gameStateMultipleActiveUpdate
["2305535"]
< updateCounters
{"goldcount_p2305529":{"counter_name":"goldcount_p2305529","counter_value":"7"},"mooncount_p2305529":{"counter_name":"mooncount_p2305529","counter_value":"6"},"firecount_p2305529":{"counter_name":"firecount_p2305529","counter_value":"2"},"hammercount_p2305529":{"counter_name":"hammercount_p2305529","counter_value":"3"},"player_score_2305529":{"counter_name":"player_score_2305529","counter_value":"41"},"goldcount_p2305531":{"counter_name":"goldcount_p2305531","counter_value":"8"},"mooncount_p2305531":{"counter_name":"mooncount_p2305531","counter_value":"5"},"firecount_p2305531":{"counter_name":"firecount_p2305531","counter_value":"3"},"player_score_2305531":{"counter_name":"player_score_2305531","counter_value":"40"},"goldcount_p2305535":{"counter_name":"goldcount_p2305535","counter_value":"7"},"mooncount_p2305535":{"counter_name":"mooncount_p2305535","counter_value":"1"},"firecount_p2305535":{"counter_name":"firecount_p2305535","counter_value":"3"},"hammercount_p2305535":{"counter_name":"hammercount_p2305535","counter_value":"0"},"player_score_2305535":{"counter_name":"player_score_2305535","counter_value":"24"}}
< notifBlessing
{"player_id":2305531,"gold":0,"moonshard":0,"vp":2,"hammer":0,"fireshard":0}
< end_replaywaitingdelay
{}
< replaywaitingdelay
{}
< gameStateChange
{"name":"ressourceChoice","description":"Everyone choose the ressources","descriptionmyturn":"${you} choose the ressources","type":"multipleactiveplayer","args":{"2305531":{"sides":{"1":{"id":"24","type":"G3orV2","type_arg":"0","location":"dice2-p2305531","location_arg":"0"}},"allMirror":false,"mirror":0},"2305535":{"sides":[{"id":"42","type":"mirror","type_arg":"0","location":"dice1-p2305535","location_arg":"0"},{"id":"21","type":"G3orV2","type_arg":"0","location":"dice2-p2305535","location_arg":"0"}],"allMirror":false,"mirror":1}},"action":"stRessourceChoice","possibleactions":["actRessourceChoice"],"transitions":{"reinforcement":6,"blessing":4},"active_player":"2305529","reflexion":{"move":{"value":240,"total":240},"total":{"2305529":"-80773","2305531":"-1562","2305535":"-3916"}},"multiactive":["2305531","2305535"]}
< gameStateMultipleActiveUpdate
["2305531","2305535"]
< updateCounters
{"goldcount_p2305529":{"counter_name":"goldcount_p2305529","counter_value":"7"},"mooncount_p2305529":{"counter_name":"mooncount_p2305529","counter_value":"6"},"firecount_p2305529":{"counter_name":"firecount_p2305529","counter_value":"2"},"hammercount_p2305529":{"counter_name":"hammercount_p2305529","counter_value":"3"},"player_score_2305529":{"counter_name":"player_score_2305529","counter_value":"41"},"goldcount_p2305531":{"counter_name":"goldcount_p2305531","counter_value":"8"},"mooncount_p2305531":{"counter_name":"mooncount_p2305531","counter_value":"5"},"firecount_p2305531":{"counter_name":"firecount_p2305531","counter_value":"3"},"player_score_2305531":{"counter_name":"player_score_2305531","counter_value":"38"},"goldcount_p2305535":{"counter_name":"goldcount_p2305535","counter_value":"7"},"mooncount_p2305535":{"counter_name":"mooncount_p2305535","counter_value":"1"},"firecount_p2305535":{"counter_name":"firecount_p2305535","counter_value":"3"},"hammercount_p2305535":{"counter_name":"hammercount_p2305535","counter_value":"0"},"player_score_2305535":{"counter_name":"player_score_2305535","counter_value":"24"}}
< notifBlessing
{"player_id":2305535,"vp":0,"gold":0,"moonshard":0,"fireshard":0,"hammer":0,"dice1":"mirror","dice2":"G3orV2"}
< notifBlessing
{"player_id":2305531,"vp":3,"gold":0,"moonshard":0,"fireshard":0,"hammer":0,"dice1":"V3","dice2":"G3orV2"}
< notifBlessing
{"player_id":2305529,"vp":3,"gold":0,"moonshard":2,"fireshard":0,"hammer":0,"dice1":"V3","dice2":"MS2"}
< gameStateChange
{"name":"divineBlessing","description":"Everyone rolls their dice","descriptionmyturn":"${you} roll your dice","type":"game","action":"stBlessing","transitions":{"reinforcement":6,"ressourceChoice":5,"blessing":4},"active_player":"2305529","args":null,"reflexion":{"move":{"value":240,"total":240},"total":{"2305529":-80773,"2305531":"-1562","2305535":"-3916"}}}
Has anyone encountered this issue? I am afraid to here that the workaround would be to add a server state for this step because it will slow down the game (additional step for only some users).
Thanks a lot! And if I am not clear (on this I am pretty sure), do not hesitate!
Vincent