Cant start my new project

Game development with Board Game Arena Studio
User avatar
alrusdi
Posts: 5
Joined: 20 February 2017, 10:19

Cant start my new project

Post 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
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Cant start my new project

Post 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
User avatar
alrusdi
Posts: 5
Joined: 20 February 2017, 10:19

Re: Cant start my new project

Post by alrusdi »

Added you as admin to the project. Also i will try to review my code again...
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Cant start my new project

Post 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...
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Cant start my new project

Post 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)
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Cant start my new project

Post 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)
User avatar
alrusdi
Posts: 5
Joined: 20 February 2017, 10:19

Re: Cant start my new project

Post 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
User avatar
docthib
Posts: 73
Joined: 10 August 2015, 14:05

Re: Cant start my new project

Post 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 ?
User avatar
alrusdi
Posts: 5
Joined: 20 February 2017, 10:19

Re: Cant start my new project

Post by alrusdi »

It is not my code - it is closed part of BGA engine. I want to analyze this part of code too))
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Cant start my new project

Post by Victoria_La »

I need read-only permissions to look at the code, I don't see the project anymore
Post Reply

Return to “Developers”