how games/tables are stored in BGA?

Game development with Board Game Arena Studio
Post Reply
User avatar
ma_cieng
Posts: 7
Joined: 27 March 2020, 22:22

how games/tables are stored in BGA?

Post by ma_cieng »

Hello, I just created dev account in order to fight some bugs on BGA and I'm wondering whether it makes sense to look at older game saves.
E.g. starting with bug https://boardgamearena.com/bug?id=18669 about potions not displayed at the beginning. I see it in game 93474316 (which is from year 2006) and don't see it in game 107567259 (from 2008). Console shows that there is additional transition at the beginning from game setup to standard move:
ok:
Ending game setup potionexplosion.js:1:7696
onUpdateActionButtons: potionSelection potionexplosion.js:1:9862
Entering state: potionSelection potionexplosion.js:1:7763
GET x5 -> ok

not ok:
nok:
Ending game setup potionexplosion.js:1:7696
onUpdateActionButtons: gameSetup potionexplosion.js:1:9862
Entering state: gameSetup potionexplosion.js:1:7763
Leaving state: gameSetup potionexplosion.js:1:9380
onUpdateActionButtons: potionSelection potionexplosion.js:1:9862
Entering state: potionSelection potionexplosion.js:1:7763
Try to lock interface while it is already locked ! ly_studio.js:2:652079

but people in bug comments say something about premium ad display that causes it. I have premium account and it is the same premium in both games. Does it even make sense to compare those two? Do I see newest game codes that load just moves from database or is there something code-version-specific saved in history and I do see some older codes in action?

Another example is about bug I reported myself https://boardgamearena.com/bug?id=16621 about missing field in some json structure: is json structure stored in history?
Is it possible to get read access to game history and to BGA core sources or is it reserved only to BGA core team?
User avatar
Lymon Flowers
Posts: 195
Joined: 01 April 2020, 21:14

Re: how games/tables are stored in BGA?

Post by Lymon Flowers »

The first digits of version numbers are not the year, but YYMMDD, so 2006 is june 2020 and 2008 is august 2020.

Regarding access to older version of the code, if you request read access to the project, I believe you can checkout older versions. For the rest of your questions, I don't know how everything is stored, sadly.
User avatar
apollo1001
Posts: 191
Joined: 21 July 2015, 10:41

Re: how games/tables are stored in BGA?

Post by apollo1001 »

ma_cieng wrote: 28 August 2020, 07:31 Hello, I just created dev account in order to fight some bugs on BGA and I'm wondering whether it makes sense to look at older game saves.
E.g. starting with bug https://boardgamearena.com/bug?id=18669 about potions not displayed at the beginning.
Not really answering your question, but as the dev for Potion Explosion I thought I ought to comment about one of the bugs you have specified. I'm pretty sure this bug is caused by the advert screen (for non-premium members) causing issues with Stock controls. (e.g. the same bug is reported in Race for the Galaxy which also relies on a stock control). That said, I've not spent a lot of time looking into it (other more pressing priorities).
User avatar
ma_cieng
Posts: 7
Joined: 27 March 2020, 22:22

Re: how games/tables are stored in BGA?

Post by ma_cieng »

apollo1001 wrote: 28 August 2020, 15:21
ma_cieng wrote: 28 August 2020, 07:31 Hello, I just created dev account in order to fight some bugs on BGA and I'm wondering whether it makes sense to look at older game saves.
E.g. starting with bug https://boardgamearena.com/bug?id=18669 about potions not displayed at the beginning.
Not really answering your question, but as the dev for Potion Explosion I thought I ought to comment about one of the bugs you have specified. I'm pretty sure this bug is caused by the advert screen (for non-premium members) causing issues with Stock controls. (e.g. the same bug is reported in Race for the Galaxy which also relies on a stock control). That said, I've not spent a lot of time looking into it (other more pressing priorities).
Surely nothing in your code, it is just receiving 'onLeavingState' event from framework. I think finding the fix will not be possible here without framework's codes.
I was just thinking whether workaround would keep the game in infinite loop or would be ok: add one check in onEnteringState() whether player has already proper amount of elixirs and if not - transfer automatically to potionSelection state.
User avatar
quietmint
Posts: 299
Joined: 31 July 2017, 00:28

Re: how games/tables are stored in BGA?

Post by quietmint »

The first bug may be related to this: viewtopic.php?f=12&t=16527
There's an existing BGA bug / race condition during game setup (nothing related to the premium screen).
User avatar
ma_cieng
Posts: 7
Joined: 27 March 2020, 22:22

Re: how games/tables are stored in BGA?

Post by ma_cieng »

Thank you for hints, especially last one as it shows that the problem is with core functionality I have no access to [source codes]. I have gone through half of tutorial reversi game creation (I was fighting with some svn commit error for two days: css file was with 6 rules on my HDD and in remote location, but game was starting with 2 rules as displayed by Firebug with Firefox. After 2 days magically 6 rules appeared in Firebug. Still players' stones are not displayed, but I have much more insight in the system) and will look at bugs in other games now - fixable with no access to core source codes (will fight with https://boardgamearena.com/bug?id=1130 first now).
Post Reply

Return to “Developers”