Page 1 of 1

stuck again

Posted: 07 April 2013, 22:25
by ddyer
I'm stuck until I get better information out of the environment, or someone
offers useful advice. The current problem is that calling

self::checkAction( 'markStone' );

results in a mystery message, and aborts the action

"Unexpected error: Not a player action"

the current state is defined
// both players designate stones to remove
6 => array(
"name" => "endgame",
"description" => clienttranslate('${actplayer} designate stones that should be captured'),
"descriptionmyturn" => clienttranslate('${you} designate stones that should be captured'),
"type" => " ",
"action"=>"stEndgame",
"args" => "argPlayerTurn",
"possibleactions" => array( "markStone", "finish", "resume" ),
"transitions" => array( "markStone" => 6, "zombiePass" => 6, "finish" => 7 )
),

Re: stuck again

Posted: 08 April 2013, 15:00
by sourisdudesert
Hello,

The reason is: your game state does not have any type. Please specify "activeplayer" as type.

The error message is not explicit however. I will change it to "Game state type does not allow player actions".

Cheers,

Re: stuck again

Posted: 08 April 2013, 18:23
by ddyer
this is an "all players active" state. If I change the type back to activeplayer,
the error message is "this is not your turn" for all players. I found "multipleactiveplayer"
in another of the examples, which seems to be the right thing.

Re: stuck again

Posted: 10 April 2013, 10:53
by sourisdudesert
Hello ddyer,

I mean: in the code extract you post above, the "type" argument of your game state is void. You should specify "activeplayer".

Cheers,