Impossible to load the gameinfos file. Make sure it exists and it is a valid PHP file.

Game development with Board Game Arena Studio
Post Reply
User avatar
Soraton
Posts: 2
Joined: 11 March 2021, 15:42

Impossible to load the gameinfos file. Make sure it exists and it is a valid PHP file.

Post by Soraton »

I have a problem developing hereistand

When i try to start the game via express start, I get the error (linebreaks inserted for readability)

Unexpected error:
Wrong formatted data from gameserver 1 (method: createGame):
JSON_ERROR_SYNTAX <br />

<b>Warning</b>:
file_get_contents(/var/tournoi/release/games/hereistand/current/dbmodel.sql):
Failed to open stream: No such file or directory in <b>/var/tournoi/release/tournoi-250819-1100-gs/www/include/ModuleDbObject.inc.php</b> on line <b>206</b><br />

{"status":"0",
"exception":"feException",
"error":"Fatal error during hereistand setup: Legacy game module not found: hereistand.game.php (reference: GS1 25\/08 18:33:06)",
"expected":0,
"code":100,
"args":null}(reference: GS0 25/08 18:33:06)

When I try to reload the gameinfo in https://studio.boardgamearena.com/studi ... hereistand

I get the error

Reload game informations 🚨
Impossible to load the gameinfos file. Make sure it exists and it is a valid PHP file.

I am sure that the file exists and is a valid PHP file. After replacing the file with the clean template, the same error occures.
User avatar
cheval_raye
Posts: 101
Joined: 19 March 2020, 17:48

Re: Impossible to load the gameinfos file. Make sure it exists and it is a valid PHP file.

Post by cheval_raye »

I downloaded your project, and you moved all the files from root to hereistand directory. I think the framework expect the automatically created files where they are upon creation on the project, and not in another directory.
User avatar
Soraton
Posts: 2
Joined: 11 March 2021, 15:42

Re: Impossible to load the gameinfos file. Make sure it exists and it is a valid PHP file.

Post by Soraton »

omg thanks, I would have never noticed.
Problem was fixed when I opend the hereistand folder (instead of its parent) with visual studio code.

thank you so much!
Post Reply

Return to “Developers”