what is the stack of BGA?

Game development with Board Game Arena Studio
User avatar
shapeshifter999
Posts: 27
Joined: 18 January 2018, 02:23

what is the stack of BGA?

Post by shapeshifter999 »

Ho Ho Community!

I am from the .NET/NodeJS + Angular2/React world.

I am trying to get into the BGA framework to implements 2-3 games to play with friends remotely.

Curiosity, what is the technology stacks of BGA?

1. Which PHP version?
2. There is no webpack or transpilation, then is it ok to use es2015 syntax? It seems to be supported by 95% of the browser on caniuse.
3. Is PHPLIB is used for server side templating?
4. Is dojo is used for client side templating?
5. Also, how do we retrieve documentation? Example, I am trying to render an html template for the 8 Decrypto rounds. I went into the cookbook section and saw the use of begin_block and insert_block. I would like to get more technical information about those two functions and validating if the end_block function exists and need to be used. I do not found any repository or official page of phplib, is there one?

Thank you very much for your support!
Sebastien
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: what is the stack of BGA?

Post by Victoria_La »

Versions currently used by BGA framework (as of May 2020):

Dojo Toolkit 1.15
PHP version: 7.2.12
SDL: unknown
JS/CSS/HTML: There is css and js minimizer which is important because it introduces some bugs too. No css preprocessor. No type script.
See https://en.doc.boardgamearena.com/Studio_file_reference

Server side templating documented here:
https://en.doc.boardgamearena.com/Game_ ... mename.tpl

Client side tempating - not really. You can use whatever you want. Some tring manulation utility is advertized in tutorials
User avatar
shapeshifter999
Posts: 27
Joined: 18 January 2018, 02:23

Re: what is the stack of BGA?

Post by shapeshifter999 »

This answer all!

Thanks Victoria_La!
User avatar
thoun
Posts: 1621
Joined: 10 December 2020, 22:25

Re: what is the stack of BGA?

Post by thoun »

If you're used to SCSS like I do, I managed to use it.
If you're interested, you can have a look here : https://github.com/thoun/mow/commit/6ba ... 114989639a

At BGA admin if you read this, feel free to put it on code snippets on the doc. If scssphp lib is added to common files like APP_GAMEMODULE_PATH, it would be even easier !
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: what is the stack of BGA?

Post by Victoria_La »

You know docs are wiki and mostly maintained by community, so feel free to add a recipe in
https://en.doc.boardgamearena.com/Tools ... BGA_Studio
thoun wrote: 06 February 2021, 00:26 At BGA admin if you read this, feel free to put it on code snippets on the doc. If scssphp lib is added to common files like APP_GAMEMODULE_PATH, it would be even easier !
User avatar
Tisaac
Posts: 2743
Joined: 26 August 2014, 21:28

Re: what is the stack of BGA?

Post by Tisaac »

thoun wrote: 06 February 2021, 00:26 If you're used to SCSS like I do, I managed to use it.
If you're interested, you can have a look here : https://github.com/thoun/mow/commit/6ba ... 114989639a

At BGA admin if you read this, feel free to put it on code snippets on the doc. If scssphp lib is added to common files like APP_GAMEMODULE_PATH, it would be even easier !
I personnaly build my scss before deploying on the studio and it works pretty well too.
User avatar
thoun
Posts: 1621
Joined: 10 December 2020, 22:25

Re: what is the stack of BGA?

Post by thoun »

Tisaac wrote: 06 February 2021, 01:03 I personnaly build my scss before deploying on the studio and it works pretty well too.
That was my first thought, but I like it to be automatic. However I plan to do the same for typescript to es5 and I'm not sure I can do it automatically, so I might go for ts+scss webpack build.
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: what is the stack of BGA?

Post by Een »

thoun wrote: 06 February 2021, 00:26 If you're used to SCSS like I do, I managed to use it.
If you're interested, you can have a look here : https://github.com/thoun/mow/commit/6ba ... 114989639a

At BGA admin if you read this, feel free to put it on code snippets on the doc. If scssphp lib is added to common files like APP_GAMEMODULE_PATH, it would be even easier !
Hi, the documentation is a wiki to allow for developer contributions, so don't hesitate to add a section for example in the Cookbook.
(nb: I took a quick look; but not sure about the context of running compileScss() would this be run on all requests to the game? it would be better to avoid this overhead)
User avatar
thoun
Posts: 1621
Joined: 10 December 2020, 22:25

Re: what is the stack of BGA?

Post by thoun »

It's more a POC than a ready to production code. That's why I plan to do a webpack build to make things cleaner, I'll add it in cookbook when I succeed.
If I find a vs code plug-in to build it automatically when I save source file, chained with automatic ftp upload, it would be even nicer!
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: what is the stack of BGA?

Post by Victoria_La »

Like this one BuildOnSave https://marketplace.visualstudio.com/it ... uildOnSave
thoun wrote: 06 February 2021, 11:57 It's more a POC than a ready to production code. That's why I plan to do a webpack build to make things cleaner, I'll add it in cookbook when I succeed.
If I find a vs code plug-in to build it automatically when I save source file, chained with automatic ftp upload, it would be even nicer!
Post Reply

Return to “Developers”