Link to game final situation

Game development with Board Game Arena Studio
User avatar
disu
Posts: 62
Joined: 10 February 2016, 08:47

Re: Link to game final situation

Post by disu »

I see from the page DOM that button is simply hidden for my game:

Code: Select all

<a class="bgabutton bgabutton_blue tableaction" href="/2/trusis?table=231608439" id="view_end_btn" style="display:none"><span>View final situation</span></a>
Why?
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Link to game final situation

Post by Een »

disu wrote: 11 January 2022, 21:16 Are you sure that that button is not dependent from same game options or alpha-state?
Well I must have missed something in the code then. Most likely it's only for turn based (would be logical since for realtime everone involved is already at the table). Note that training mode can be "realtime" or "turnbased" depending on your lobby options when starting a game.

I'll do some tests to make sure.

Edit: confirmed from testing, edited my earlier post to add this condition.
User avatar
disu
Posts: 62
Joined: 10 February 2016, 08:47

Re: Link to game final situation

Post by disu »

Een wrote: 12 January 2022, 10:17
disu wrote: 11 January 2022, 21:16 Are you sure that that button is not dependent from same game options or alpha-state?
Well I must have missed something in the code then. Most likely it's only for turn based (would be logical since for realtime everone involved is already at the table). Note that training mode can be "realtime" or "turnbased" depending on your lobby options when starting a game.

I'll do some tests to make sure.

Edit: confirmed from testing, edited my earlier post to add this condition.
Hi Een, any update on why I cannot see that link?
Thanks
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Link to game final situation

Post by Een »

Not sure what's missing in my answer, for me it's complete :)
I think you used "realtime" training mode. These links are only for turn based. In any case, this is a transverse framework feature, nothing to do in games about this, and it's the same for every game.
User avatar
disu
Posts: 62
Joined: 10 February 2016, 08:47

Re: Link to game final situation

Post by disu »

Een wrote: 14 January 2022, 14:20 Not sure what's missing in my answer, for me it's complete :)
I think you used "realtime" training mode. These links are only for turn based. In any case, this is a transverse framework feature, nothing to do in games about this, and it's the same for every game.
Your answer is complete but it is not the actual behaviour for my game.
I finished just few minutes ago a table "Turn-based • 1 move per day" but, despite it respects the 3 points you indicated, the [See final game situation] button is not shown.

This is the table: https://boardgamearena.com/table?table=232494388
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Link to game final situation

Post by Een »

Oh.
Yes, you are right. Then I don't know... Would need deeper investigation but I'm not sure when I'll be able to go really deep on this.
Post Reply

Return to “Developers”