Page 1 of 1

Can't start my tutorial game. Failed to open stream

Posted: 23 May 2020, 14:32
by allanmandragor
Hi everyone,
This is my first game development on boardgamearena and I am quite unsure:

I already read the "first steps with BGA Studio" and the tutorial reversi. My sftp works so far well. I am now in the "Let's code!" part. I tried to start my project "tutorialGiom". But when I click on "express start". The game doesn't start, it answers two errors:

Unexpected error: Wrong formatted data from BGA gameserver 1 (method: createGame): JSON_ERROR_SYNTAX
Warning: require_once(/var/www/tournoi/include/Tutorialgiom.inc.php): failed to open stream: No such file or directory in /var/tournoi/release/tournoi-200518-0953-gs/www/index.php on line 101

Fatal error: require_once(): Failed opening required '/var/www/tournoi/include/Tutorialgiom.inc.php' (include_path='.:/usr/share/php') in /var/tournoi/release/tournoi-200518-0953-gs/www/index.php on line 101

Basically I didn't even modify the files of my project. It is a copy of reversi. I think...

I have probably done something wrong but what? If someone could help me, thanks a lot.

Guillaume

PS: If it helps, I can speak french, english and german.

Re: Can't start my tutorial game. Failed to open stream

Posted: 23 May 2020, 21:39
by MikeIsHere
The .inc.php files are usually
gameInfos
gameOptions
materials
stats
states

Do you have a min and max # of players? and a gameInfos?

have you tried resetting your project in the control panel?

Re: Can't start my tutorial game. Failed to open stream

Posted: 23 May 2020, 21:43
by MikeIsHere
This post hints that you may have a invalid Json on your states.inc.php
viewtopic.php?f=12&t=14953&p=55068&hili ... TAX#p55068

Which would make sense if you can not createGame

Re: Can't start my tutorial game. Failed to open stream

Posted: 24 May 2020, 08:39
by allanmandragor
Hi there,
thanks to the post
viewtopic.php?p=57133#p57133
I understood that I used the tutorials in the wrong way.

Now I tried something else. I created a new project as an empty project. Now when I try to start it by clicking on "Play now", it starts nothing, not even an empty table.

Re: Can't start my tutorial game. Failed to open stream

Posted: 24 May 2020, 08:48
by allanmandragor
Now it works... Don't understand why but it doesn't matter.

Let's go code! :-)