Page 1 of 2

Cant start my new project

Posted: 30 March 2017, 21:26
by alrusdi
Just uploaded new project and managed to fix some startup errors. But for now when I click "Express start" I receive an error: "Unable to contact the server. Are you connected ?"

In Firebug I see browser attemts to get "http://en.studio.boardgamearena.com/tab ... 0905018636"
but responce is always emty

Where I can get additional info about errors in my game? How to debug it?

Project: http://en.studio.boardgamearena.com/#!s ... game=kozel

Re: Cant start my new project

Posted: 31 March 2017, 00:38
by Victoria_La
Your game initialisation likely failed, you can add me (developer id "laskava") as read only
to your project and I can check the starup code.

Also you can check this wiki page for possible hints
http://en.doc.boardgamearena.com/Troubleshooting

Re: Cant start my new project

Posted: 31 March 2017, 05:51
by alrusdi
Added you as admin to the project. Also i will try to review my code again...

Re: Cant start my new project

Posted: 31 March 2017, 22:26
by Victoria_La
Bad idea, I said you add me as Read only, adding another person to you project as Admin or Read-Write takes away your write permissions
so you cannot ftp anymore.
To fix re-add yourself as admin
alrusdi wrote:Added you as admin to the project. Also i will try to review my code again...

Re: Cant start my new project

Posted: 01 April 2017, 00:39
by Victoria_La
(I think my reply was lost somehow repostig)
a) Activate player at the end of setup setupNewGame
b) I would revert to original code of player setup, you can change score later
c) Having game state as first state does not work sometimes (vs player state)

Re: Cant start my new project

Posted: 01 April 2017, 00:41
by Victoria_La
Its just likely missisng $this->activeNextPlayer(); at the end of setupNewGame()
try that first
Victoria_La wrote:(I think my reply was lost somehow repostig)
a) Activate player at the end of setup setupNewGame
b) I would revert to original code of player setup, you can change score later
c) Having game state as first state does not work sometimes (vs player state)

Re: Cant start my new project

Posted: 02 April 2017, 10:59
by alrusdi
Thank you for your help. But system probably dont want me to win)
I've double checked my states code and found some problems, then added your code at the end of setupNewGame method, but steel have no luck...
Now when I try to launch the game I recieve an error:

Undefined index: name in /var/tournoi/release/tournoi-151226-1240-gs/www/game/module/table/gamestate.game.php on line 335

Dont know how to debug this error

Re: Cant start my new project

Posted: 02 April 2017, 13:41
by docthib
alrusdi wrote:Undefined index: name in /var/tournoi/release/tournoi-151226-1240-gs/www/game/module/table/gamestate.game.php on line 335
Can you post the code around line 335 ?

Re: Cant start my new project

Posted: 02 April 2017, 15:09
by alrusdi
It is not my code - it is closed part of BGA engine. I want to analyze this part of code too))

Re: Cant start my new project

Posted: 02 April 2017, 15:59
by Victoria_La
I need read-only permissions to look at the code, I don't see the project anymore