undeclared variable bgagame in fresh project

Game development with Board Game Arena Studio
Post Reply
User avatar
Absolute_Vacuum
Posts: 1
Joined: 15 February 2021, 23:13

undeclared variable bgagame in fresh project

Post by Absolute_Vacuum »

Hi all,

I am following the reversi tutorial. I literally just started the fresh project, and it already does not work. I haven't change the .js file at all. However, I receive the following error while trying to boot the game:

Uncaught ReferenceError: assignment to undeclared variable bgagame

In the .js file, I see the following line:

bgagame = { cornersproject: CornersProject };

Without any var, let, or const. the function above seems to perform this:

define("bgagame/cornersproject", ...)

What am I doing wrong? Is the default template broken?
Nico_KYF
Posts: 13
Joined: 15 September 2021, 16:23

Re: undeclared variable bgagame in fresh project

Post by Nico_KYF »

Hello.

I have the same issue here with a fresh project.
Table won't load because of undeclared bgagame !

thanks
nico
User avatar
GTSchemer
Posts: 1132
Joined: 09 August 2013, 03:26

Re: undeclared variable bgagame in fresh project

Post by GTSchemer »

One of the BGA staff checked in the wrong file by accident. It seems to still be breaking new projects, but it is Friday night France time so I am unsure when they may notice the reports and fix it. Or maybe it will be fixed but they are waiting on a deploy.
User avatar
ufm
Posts: 2039
Joined: 06 January 2017, 08:38

Re: undeclared variable bgagame in fresh project

Post by ufm »

Try copying 'EmptyGame' project meanwhile. It worked for me.
Post Reply

Return to “Developers”