Page 1 of 1

Small bug boardgamearena studio framework (type juggling)

Posted: 28 November 2019, 10:57
by LordCaylus
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.

Re: Small bug boardgamearena studio framework (type juggling)

Posted: 02 June 2020, 15:00
by Een
This has been fixed, a string is now returned systematically in this case. This will be in the next release.