This is a documentation for Board Game Arena: play board games online !

Troubleshooting : diforc'h etre ar stummoù

Eus Board Game Arena
Mont d’ar merdeerezh Mont d’ar c’hlask
Diverradenn ebet eus ar c'hemm
Linenn 17: Linenn 17:
== Predefined server errors ==
== Predefined server errors ==


=== Unexpected final state XX ===
=== Unexpected error: Unexpected final game state (XX) ===


The action function does not transition to any state, i.e.
The action function does not transition to any state, i.e.

Stumm eus an 19 Mez 2016 da 00:57

Describing common errors which is hard to understand and debug

Game does not start at all

Undefined offset: 0 in table/table.game.php on line 830

You are likely calling self::getActivePlayerName () during setupNewGame()

Unexpected error: Wrong formatted data from BGA gameserver 1 (method: createGame): ...

This is generic message usually followed by exact position in your source code, and usually its syntax error in one of yours php script

Unexpected error: Propagating error from GS 1 (method: createGame): Fatal error during yourgame setup: Not logged

Calling self::getCurrentPlayerId () from arg* state method (in first state of the game)

Predefined server errors

Unexpected error: Unexpected final game state (XX)

The action function does not transition to any state, i.e.

 selectField($field) {
   self::checkAction ( 'selectField' );
   if ($field!=0) $this->gamestate->nextState ( 'next' );
 }

Here if $field is 0 there is no transition

This game action is impossible right now

Check the game log. Usually your state does not define the action you trying to perform in 'possibeactions' array.

Unexpected error: This transition (playerTurn) is impossible at this state (42)

This is pretty self explanatory. Function nextState() takes transition name not a state name, so you probably did not define this transition that the given state

Game interface hangs during reload

Showing "Application Loading..."

Javascript error: During pageload undefined no_stack_avail Script:

This error usually has no useful data, but it means you called somes API that require a callback and did not define callback function, i.e in dojo.connect, this.connectClass, dojo.subscribe, etc

     this.connectClass('field', 'onclick', 'onField'); // <-- onField is not defined