This is a documentation for Board Game Arena: play board games online !

First steps with BGA Studio

Fra Board Game Arena
Revisjon per 13. apr. 2013 kl. 14:11 av Een (diskusjon | bidrag) (Created page with "== Connect to your SFTP folder and to the BGA Studio website == After your account has been created, you will get by email: * the name of the SFTP server to connect to * you...")
(diff) ← Eldre revisjon | Nåværende revisjon (diff) | Nyere revisjon → (diff)
Hopp til navigering Hopp til søk

Connect to your SFTP folder and to the BGA Studio website

After your account has been created, you will get by email:

  • the name of the SFTP server to connect to
  • your SFTP login and password
  • ten BGA Studio logins ending with a numeral ranging from 0 to 9 and the password needed to use them.


Using this information:

  1. Connect to the SFTP server using your SFTP login and password, through your favourite SFTP client software (such as WinSCP for example)
  2. Check than in your home folder you have:
    • One folder for each of the three example games (reversi, hearts, gomoku)
    • One folder matching the game you will be developing
    • One 'resources.html' file
  3. Open the resources.html file, it contains
    • The URL pointing to the BGA Studio website (protected with an HTTP Basic authentication scheme, the login and password are also referenced in the 'resources.html' file
    • The URL pointing to the BGA Studio backoffice (please note that you must first be logged in on the BGA Studio website to be able to access the backoffice, as the authentication is shared between the two)
    • The URL pointing to the web administration tool for the BGA Studio database.
  4. Click on the URL to the BGA Studio website, enter the HTTP Basic credentials when prompted for them (and have your browser conveniently memorize them for you). Then you get to an home page just like the one of the main BGA website. Enter one of your ten BGA studio logins to connect as a user.


Launch your game and check how to update it

  1. Find your game in the 'Play now' section and launch a table
  2. Use the 'I want between X and X' players to tick down the maximum players number to the minimum
  3. Click 'Express start': your game launches with the maximum number of players specified. It shows an empty canvas: in the game zone you just have a sentence 'This is your game interface. You can edit this HTML in your ".tpl" file.'.
  4. Switch to your SFTP home folder, go into your game folder. Edit the game_game.tpl file, and change this sentence to 'Hey, this is my first game!', then save.
  5. Go back to your browser and refresh, check that the game zone has updated.
  6. Click on the 'Exit game' icon on the top right, and in the popup choose 'Express game stop'. The game ends automatically and you are brought back to the table screen for this ended game.
  7. Switch to your game folder, go into the img folder and overwrite your game_box.png file with another image.
  8. Go back to your browser, empty your browser cache, then refresh the page, and check that the game box image has been updated.


Commit your changes

That's all! Now you know about the basics of updating your game on the studio and testing your changes!