loading

If you see this message, it means that your browser failed to load this file.

You should try the following : check your connection, disable ad-blocker, clear your browser cache, try in private mode, try from another browser/computer/connection.

Home »
BGA Studio
(for web developers)

• You are a web developer fluent in server side (PHP, SQL) and client side (HTML, Javascript) languages

So this presentation looks easy and fun to you.

• You want full access to the BGA development stack to develop complex games (but we still advise you to start with something simple for your first game!)

Check the documentation and tutorials to get started!

What is BGA Studio?


Getting started

4 slideshare presentations to get ready to use BGA Studio in 30 minutes:

Reference Documentation

This page comes from BGA wiki, and has been written by BGA players community. Feel free to edit it!

What is Board Game Arena Studio?

Board Game Arena Studio is a platform to build online board game adaptations using the Board Game Arena platform.

It is open to any gamer with software development skills :)

BGA Studio website: http://en.studio.boardgamearena.com

Original announcement on BGA forum: http://forum.boardgamearena.com/viewtopic.php?f=10&t=1973

How to join the BGA developer team?

Please see this page: How to join BGA developer team?

Great, I'm in! ... How should I start?

If you didn't already, check the presentations at the top of this page to get the basics.

Then, you should checkout the First steps with BGA Studio to make sure that runs fine.

After that, we strongly advise you to take one of these game creation tutorials:

Then start editing files and see what happens! ;)

Once you're done with tutorials, you can start a real game (or join existing project)

If you have any questions, please check out the Studio FAQ first, then if you didn't find the answer you were looking for, please post your question on the development forum.

BGA Studio documentation

BGA Studio Framework reference

This part of the documentation focuses on the development framework itself: functions and methods available to build your game.

File structure of a BGA game

Game logic (Server side)

Game interface (Client side)

Other components

BGA Studio game components reference

Game components are useful tools you can use in your game adaptations.

  • Deck: a PHP component to manage cards (deck, hands, picking cards, moving cards, shuffle deck, ...).
  • Counter: a JS component to manage a counter that can increase/decrease (ex: player's score).
  • Scrollmap: a JS component to manage a scrollable game area (useful when the game area can be infinite. Examples: Saboteur or Takenoko games).
  • Stock: a JS component to manage and display a set of game elements displayed at a position.
  • Zone: a JS component to manage a zone of the board where several game elements can come and leave, but should be well displayed together (See for example: token's places at Can't Stop).

Undocumented component (if somebody knows please help with docs)

  • Draggable: a JS component to manage drag'n'drop actions.
  • ExpandableSection: a JS component to manage a rectangular block of HTML than can be displayed/hidden.
  • Wrapper: a JS component to wrap a <div> element around its child, even if these elements are absolute positioned.

BGA Studio user guide

This part of the documentation is a user guide for the BGA Studio online development environment.

Login


Please remember me




Join the BGA Studio developers team

To start developing on BGA Studio and get access to development environment, you need to create an account below.

Personal infos provided in this form is NOT shown to anyone but BGA Studio admin, and is NOT used for any other purpose that BGA Studio organization.




(Must be valid. We may remove accounts from developers we can't contact.)




(3 to 20 characters. No space, no number, no special characters)




(The exact username you are using on BGA)




Important: we need your REAL name to attribute your work on the Studio & to send you stuff by Post when needed.




Important: we need your REAL name to attribute your work on the Studio & to send you stuff by Post when needed.





Please enter the security code you see
???


I agree to Terms&conditions for developers of BGA Studio.


Register


Zombie crash at some states

I have programmed "zombiePass" in major states of my game Cacao.
But I some step of the game, a player quitting the game fires a crash :

Unexpected error: Propagating error from GS 1 (method: zombie): feException: More than one possible action at this state in /var/tournoi/release/tournoi-200730-1036-gs/www/game/module/table/gamestate.game.php:333
Folowed by this messace, twice :
Unexpected error: Can't manage zombie player in this game state (5)

I have coded a big trace in zombieTurn function :

CODE: Select all

    function zombieTurn( $state, $active_player ) {
		self::dump('========================= zombieTurn : state = ',$state);
		self::dump('========================= zombieTurn : active_player = ',$active_player);
    	$statename = $state['name'];
I don't find these traces in my BGA request & SQL logs.
Last lines are :

11/08 20:03:52 [info] [M] [2325352/ExtraPaul0] /1/cacao/cacao/wakeupPlayers.html?table=178499&testuser=2325352&dojo.preventCache=15971690341611
11/08 20:03:52 [info] [T178499] [2325352/ExtraPaul0] 0.23293495178223 SELECT global_id, global_value FROM global WHERE 1 1
11/08 20:03:52 [info] [T178499] [2325352/ExtraPaul0] setTable1
11/08 20:03:52 [info] [T178499] [2325352/ExtraPaul0] 0.097036361694336 SELECT global_id, global_value FROM global WHERE 1 1
11/08 20:03:52 [info] [T178499] [2325352/ExtraPaul0] 0.14305114746094 SELECT player_id, player_remaining_reflexion_time,
UNIX_TIMESTAMP( player_start_reflexion_time ) start_reflexion_time, UNIX_TIMESTAMP( NOW() ) now_time
FROM player 1
11/08 20:03:52 [info] [T178499] [2325352/ExtraPaul0] 0.082969665527344 SELECT player_id, player_is_multiactive FROM player LOCK IN SHARE MODE 1
11/08 20:03:52 [info] [T178499] [2325352/ExtraPaul0] 0.11110305786133 SELECT * FROM action1
11/08 20:03:52 [info] [T178499] [2325352/ExtraPaul0] DB rollback: action cancelled1
11/08 20:03:52 [error] [T178499] [2325352/ExtraPaul0] Unexpected exception: Can't manage zombie player in this game state (5)#
#0 /var/tournoi/release/tournoi-200730-1036-gs/www/include/APP_GameAction.inc.php(223): Table->checkReturnState()#
#1 /var/tournoi/release/tournoi-200730-1036-gs/www/include/APP_GameAction.inc.php(216): APP_GameAction->ajaxResponseWithResult(NULL)#
#2 /var/tournoi/release/tournoi-200730-1036-gs/www/include/APP_GameAction.inc.php(171): APP_GameAction->ajaxResponse()#
#3 /var/tournoi/release/tournoi-200730-1036-gs/www/include/webActionCore.inc.php(135): APP_GameAction->wakeupPlayers()#
#4 /var/tournoi/release/tournoi-200730-1036-gs/www/index.php(230): launchWebAction('cacao', 'action_cacao', 'wakeupPlayers', false, false, NULL, true, false)#
#5 {main}h
http://1.studio.boardgamearena.com/1/ca ... 1690341611
11/08 20:03:52 [notice] [T178499] [2325352/ExtraPaul0] ER-100 302 d1 c0 e227 m0 I300 A0 V0 T0 /1/cacao/cacao/wakeupPlayers.html?table=178499&testuser=2325352&dojo.preventCache=1597169034161

This occurs :
  • when players can carry out jungle tiles action (the game is in "multipleactiveplayer");
  • when the leaving player must choose a jungle tile.
I don't understand how to manage this problem if it's occurs outside of my code ?!
08/11/2020 4 comments

Show current player's board at the top

I'm working on a game where each player has their own board. Does anyone have an example handy of how to set up the view so that each player sees their own board at the top? Games like Potion Explosion and 7 Wonders do this.

I'm not sure if there's a way to do this in view.php, or if I should just use javascript to bring the appropriate board into place after the game loads. Doing it on the PHP side seems preferable. Right now my approach is to pull out the current player id from the player list array, set up their board, then loop through the remaining players after the current player is set up.

I've put together a crude illustration of the layout I'm going for, where the top div contains the player area consisting of their personal board (blue rectangle) and shared board (purple rectangle, same for everyone), and the bottom div has smaller versions of each of the opponents' player boards.

Image
08/10/2020 4 comments

Looking for Developer for two upcoming TMG titles (Terra Prime reboot, and Eminent Domain dice game)

I have art files for Eminent Domain Origins, a reboot of one of TMG's launch titles Terra Prime in the Eminent Domain universe, complete and ready to go, but it has not been sent to the printer yet.

I would love to see it implemented on BGA! Is anyone interested in taking that on?

Terra Prime on BGG: https://www.boardgamegeek.com/boardgame ... erra-prime

Also, I have an artist partially done with files for an Eminent Domain dice game (Eminent Domain: Chaos Theory). I would be happy to see that one debut on BGA as well!

Let me know if you're interested in either of these.

Thank you,
Seth Jaffee
08/10/2020 1 comment


Application loading... ...
THANK YOU : You are one of our most loyal players!
Get the best from Board Game Arena for only €2 / month.
1
2
3
4
5
6
7
8
9
10
11
12