stuck again

Game development with Board Game Arena Studio
Post Reply
User avatar
ddyer
Posts: 67
Joined: 01 April 2011, 19:55

stuck again

Post 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 )
),
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: stuck again

Post 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,
User avatar
ddyer
Posts: 67
Joined: 01 April 2011, 19:55

Re: stuck again

Post 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.
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: stuck again

Post 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,
Post Reply

Return to “Developers”