crash while testing game setup

Game development with Board Game Arena Studio
Post Reply
User avatar
ddyer
Posts: 67
Joined: 01 April 2011, 19:55

crash while testing game setup

Post by ddyer »

In order to understand how it all hooks together, I copied the "gomoku" sources and renamed files and internal
variables as seemed appropriate to chage "gomoku" to "go". Starting a game I get this error:

01/03 06:39:08 [error] [J] [job] Fatal error during creation of database ebd_go_2186: Global value unset: 101.
Dropping database and throwing fatal error exception

I haven't added, removed, or renamed any internal variables, and the set of references to variable 101 is still
the same as in the original gomoku sources
G:\share\projects\boardgamearena\go\gameoptions.inc.php(36): 101 => array(
G:\share\projects\boardgamearena\go\gameoptions.inc.php(48): // note: game variant ID should start at 100 (ie: 100, 101, 102, ...)
G:\share\projects\boardgamearena\go\go.game.php(46): "game_opening" => 101,
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: crash while testing game setup

Post by sourisdudesert »

Hello,

Thank you for your work on Go :)

The reason is that you need to ask us when you modify statistics and options for a game :)

At now, there is no "game_opening" option for Gomoku, the value is not defined => the game crashes.

Please update your "gameoptions.inc.php" with your options for Go, and send an email to studio (at) boardgamearena.com in order I can install it for you.

Cheers,
User avatar
ddyer
Posts: 67
Joined: 01 April 2011, 19:55

Re: crash while testing game setup

Post by ddyer »

Aha, that's kind of a major fact that wasn't mentioned anywhere. I presume there are good reasons
why gameoptions have to be treated differently, but When I encounter this kind of pitfall, I try to think
of ways to make it less deep.

For example, when you launch a game, you could check that the gameoptions file in the developer
directory has not changed, and at least put up a warning that options are out of synch.
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: crash while testing game setup

Post by sourisdudesert »

Hello,

Yes, the current situation is not ideal and we can certainly improve it. We're going to work on it.

Thank you for your comment.
Post Reply

Return to “Developers”