When I reload my game "triatri", the score is displayed as "-".

Game development with Board Game Arena Studio
Post Reply
User avatar
Yu-wolf-or-Oru
Posts: 14
Joined: 15 July 2020, 12:27

When I reload my game "triatri", the score is displayed as "-".

Post by Yu-wolf-or-Oru »

Hi everyone,

I have been working on a game of my own creation that can be played on BGA as a way to learn programming.
Finally, I was able to make it into an alpha version.

But now I'm in a bit of a bind.

When I reload my game 'triatri', the score at player panel is displayed as "-".
The player_score is calculated correctly in the database, but does anyone know the cause?

Greetings
Oru
User avatar
GTSchemer
Posts: 399
Joined: 09 August 2013, 03:26

Re: When I reload my game "triatri", the score is displayed as "-".

Post by GTSchemer »

This will happen if getAllDatas() in PHP does not return a "players" table which contains player_id and player_score. Example:

Code: Select all

$sql = "SELECT player_id id, player_score score FROM player";
$players = self::getCollection($sql);

return [ "players" => $players, "whatever" => $whatever ];
User avatar
Yu-wolf-or-Oru
Posts: 14
Joined: 15 July 2020, 12:27

Re: When I reload my game "triatri", the score is displayed as "-".

Post by Yu-wolf-or-Oru »

Dear GTSchemer

Thanks to your advice I have solved the problem.
Thank you so much!

oru
User avatar
GTSchemer
Posts: 399
Joined: 09 August 2013, 03:26

Re: When I reload my game "triatri", the score is displayed as "-".

Post by GTSchemer »

You are most welcome. :D
Post Reply

Return to “Developers”