Small bug boardgamearena studio framework (type juggling)

Game development with Board Game Arena Studio
Post Reply
User avatar
LordCaylus
Posts: 1
Joined: 15 September 2015, 19:11

Small bug boardgamearena studio framework (type juggling)

Post 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.
User avatar
Een
Posts: 3854
Joined: 16 June 2010, 19:52

Re: Small bug boardgamearena studio framework (type juggling)

Post by Een »

This has been fixed, a string is now returned systematically in this case. This will be in the next release.
Post Reply

Return to “Developers”