Page 1 of 1

Game.php instead of name.game.php

Posted: 03 January 2025, 16:59
by Kayvon
According to https://boardgamearena.com/doc/Main_gam ... e.game.php there's a new modules/php/Game.php that takes the place of the old yourgamename.game.php. True to form, that's what appears in the new template when create a new project.

However, when I actually try using it, I get this error:

Unexpected error: Propagating error from gameserver 1 (method: createGame): Fatal error during [gamename] setup: Legacy game module not found: gamename.game.php (reference: GS1 03/01 16:56:55) (reference: GS0 03/01 16:56:55)

I'm trying to be a Good Developer and adopt the new system, but it looks broken. Has anyone successfully used it?

Re: Game.php instead of name.game.php

Posted: 03 January 2025, 17:29
by thoun
It searches for a class \Bga\Games\YourGameName on modules/php/Game.php
If not found, it will try to find the old name, and show the error you see if not found too.

What is the namespace / class declaration of your modules/php/Game.php file ? (the generated file should be good anyway)

Re: Game.php instead of name.game.php

Posted: 03 January 2025, 18:31
by Kayvon
The name is parkstwo. I should have saved off a copy of the original Game.php template before overwriting it.

Re: Game.php instead of name.game.php

Posted: 04 January 2025, 01:55
by Kayvon
Yes, definitely a capitalization issue. Thanks for pointing me in the right direction.