Thanks again. I solved. The problem was actually in the game.php file, in the player color assignment. While I replaced the default colors (red and green) with #000000 and #ffffff, there was a line of code calling up the previous default colors that I hadn't seen (and wasn't noted in the tutorial). So with the player colors being red and green, the default color for all stones was black.
I've wasted over 5 hours on a stupid problem, I hate being a newbie
Thanks again for the tips, very useful.
For those who will have the same problem, I highlight the parts to be eliminated in the game.php file:
protected function setupNewGame($players, $options = array())
{
// Set the colors of the players with HTML color code
// The default below is red/green/blue/orange/brown
// The number of colors defined here must correspond to the maximum number of players allowed for the gams
$gameinfos = self::getGameinfos();
//$default_colors = $gameinfos['player_colors'];
$default_colors = array("000000", "ffffff");
// Create players
// Note: if you added some extra field on "player" table in the database (dbmodel.sql), you can initialize it there.
$sql = "INSERT INTO player (player_id, player_color, player_canal, player_name, player_avatar) VALUES ";
$values = array();
foreach ($players as $player_id => $player) {
$color = array_shift($default_colors);
$values[] = "('" . $player_id . "','$color','" . $player['player_canal'] . "','" . addslashes($player['player_name']) . "','" . addslashes($player['player_avatar']) . "')";
}
$sql .= implode(',', $values);
self::DbQuery($sql);
//self::reattributeColorsBasedOnPreferences($players, $gameinfos['player_colors']);
self::reloadPlayersBasicInfos();