Page 1 of 1

I got error on my first project

Posted: 30 April 2020, 19:13
by frest
Perhaps it's stupid question. But now I'm following the steps of "First steps with BGA Studio". And first challenge is reversi. I've copied project and got new directory with rw permissions files. The next step is "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.'." I click "Express start" and get
"ly_metasite.js:2 Unexpected error: Wrong formatted data from BGA gameserver 1 (method: createGame): JSON_ERROR_SYNTAX <br />
<b>Warning</b>: require_once(/var/www/tournoi/include/Reversifrest.inc.php): failed to open stream: No such file or directory in <b>/var/tournoi/release/tournoi-200428-1120-gs/www/index.php</b> on line <b>101</b><br />
<br />
<b>Fatal error</b>: require_once(): Failed opening required '/var/www/tournoi/include/Reversifrest.inc.php' (include_path='.:/usr/share/php') in <b>/var/tournoi/release/tournoi-200428-1120-gs/www/index.php</b> on line <b>101</b><br />"

I don't have Reversifrest.inc.php and I don't know where it's generated. Maybe I have to change something after creating new projcect?

Re: I got error on my first project

Posted: 02 May 2020, 03:20
by Victoria_La
Why would you copy the project? Tutorial goes though the steps of building it from the scratch, so you have to create empty project first.Not copy existing.

Re: I got error on my first project

Posted: 03 May 2020, 22:20
by frest
I got original pre created directories(reversi, hearts, gomoku) with only r-x permissions and didn't find the same problem on forum. And own project creation from existing looked like a good solution

Re: I got error on my first project

Posted: 06 May 2020, 01:33
by Victoria_La
The directories you have for reference of the code only. They cannot be used to start games. They should not even mounted, as new solution to gain read only access to project of your choice is much better

Re: I got error on my first project

Posted: 24 May 2020, 08:43
by allanmandragor
Hi frest,
I had the same problem because i missunderstood the documentation and the tutorials.
viewtopic.php?f=12&t=15864

Still when I create a new empty project and then start it by clicking on "play now", it doesn't start any new table.

Did you manage to start a project?

See you
Guillaume