Hi all:
Thanks for any help , advice and/or suggestion.
Another Newbie question,
my realtime multiplayer 1-5 player game works great in studio- The response time is fast and there are no errors.
https://studio.boardgamearena.com/gamep ... fthetemple
but in production - the response time is so slow,the browser ( chrome, Edge and firefox) always times out or hangs
and it seems getPlayerNameById($player_id) no longer works as it creates an notify varible substitution error message in history logs
https://boardgamearena.com/gamepanel?ga ... fthetemple
single player games and two player games have the same slow response time and hanging. I am assuming all reviewers are having the same problem as this is what they are saying in the bug reports. https://boardgamearena.com/bugs?game=1511
Could it be I implemented the states incorrectly?
I have the states as follows,
1st -> gamesetup
2nd -> loadMusic (where setAllPlayersMultiactive()
3rd - playerTurn - which loops back to playerTurn ( that is after each playerTurn , the next state is playerTurn )
Here are the states in question
Thanks for any help , advice and/or suggestion.
Another Newbie question,
my realtime multiplayer 1-5 player game works great in studio- The response time is fast and there are no errors.
https://studio.boardgamearena.com/gamep ... fthetemple
but in production - the response time is so slow,the browser ( chrome, Edge and firefox) always times out or hangs
and it seems getPlayerNameById($player_id) no longer works as it creates an notify varible substitution error message in history logs
https://boardgamearena.com/gamepanel?ga ... fthetemple
single player games and two player games have the same slow response time and hanging. I am assuming all reviewers are having the same problem as this is what they are saying in the bug reports. https://boardgamearena.com/bugs?game=1511
Could it be I implemented the states incorrectly?
I have the states as follows,
1st -> gamesetup
2nd -> loadMusic (where setAllPlayersMultiactive()
3rd - playerTurn - which loops back to playerTurn ( that is after each playerTurn , the next state is playerTurn )
Code: Select all
function st_MultiPlayerInit() {
$this->gamestate->setAllPlayersMultiactive();
}
Code: Select all
1 => array(
"name" => "gameSetup",
"description" => "",
"type" => "manager",
"action" => "stGameSetup",
"transitions" => array( "loadMusic" => 2 )
),
2 => array(
"name" => "loadMusic",
"description" => "",
"type" => "game",
"action" => "st_MultiPlayerInit",
"transitions" => array( "playerTurn" => 6 )
),
6 => array(
"name" => "playerTurn",
"description" => clienttranslate(''),
"descriptionmyturn" => clienttranslate('${you} may choose an action or surrender to fate'),
"type" => "multipleactiveplayer",
"possibleactions" => array( "startGame", "confirmAction","reRollDice","discoverChamber",
"activateGem", "removeBlackMask", "moveChamber", "turnFate", "escape", "giveDie",
"removeCurse", "loadMusic", "collectTreasure", "useTreasure", "gameEnd"),
"transitions" => array( "loadMusic" => 2, "playerTurn" => 6, "turnFate" => 11, "players_win" => 12, "gameEnd" => 99 )
),
11 => array(
"name" => "turnFate",
"description" => clienttranslate('Your mates are still deciding '),
"descriptionmyturn" => clienttranslate('${you} must accept or decline turn of fate action'),
"type" => "multipleactiveplayer",
"action" => "st_gameMultiactive",
"possibleactions" => array( "confirmResponse","loadMusic", "pass" ),
"transitions" => array( "loadMusic" => 2 )
),