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

Game development with Board Game Arena Studio
Post Reply
User avatar
allanmandragor
Posts: 4
Joined: 10 March 2017, 22:51

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

Post by allanmandragor » 23 May 2020, 14:32

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.

User avatar
MikeIsHere
Posts: 20
Joined: 30 April 2020, 22:52

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

Post by MikeIsHere » 23 May 2020, 21:39

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?

User avatar
MikeIsHere
Posts: 20
Joined: 30 April 2020, 22:52

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

Post by MikeIsHere » 23 May 2020, 21:43

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

User avatar
allanmandragor
Posts: 4
Joined: 10 March 2017, 22:51

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

Post by allanmandragor » 24 May 2020, 08:39

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.

User avatar
allanmandragor
Posts: 4
Joined: 10 March 2017, 22:51

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

Post by allanmandragor » 24 May 2020, 08:48

Now it works... Don't understand why but it doesn't matter.

Let's go code! :-)

Post Reply

Return to “Developers”