Hey all,
There's a very small bug I've found.
When I get the current player id in .game.php with $current_player_id = self::getCurrentPlayerId(); it is a most often a string ("2312017" with my main account).
When I get the current player id from playtesting with a test account however, using an url similar to "https://studio.boardgamearena.com/1/ber ... er=2312018", it is an int (2312018).
This causes unexpected behaviour when I use === to compare currentplayerid to ownerid of certain tiles of my game. In actual play, it works as expected, but with test accounts suddenly the value I get from ownerid from the database ("2312018") does not === currentplayerid (2312018).
Obviously I can use ==, so it's a small bug. It was just annoying to find what was going wrong with my code since it worked for my main account and not for test accounts.
There's a very small bug I've found.
When I get the current player id in .game.php with $current_player_id = self::getCurrentPlayerId(); it is a most often a string ("2312017" with my main account).
When I get the current player id from playtesting with a test account however, using an url similar to "https://studio.boardgamearena.com/1/ber ... er=2312018", it is an int (2312018).
This causes unexpected behaviour when I use === to compare currentplayerid to ownerid of certain tiles of my game. In actual play, it works as expected, but with test accounts suddenly the value I get from ownerid from the database ("2312018") does not === currentplayerid (2312018).
Obviously I can use ==, so it's a small bug. It was just annoying to find what was going wrong with my code since it worked for my main account and not for test accounts.