Page 1 of 1

Game won't connect to server....

Posted: 21 October 2013, 03:50
by coolpapa
When starting a new game, I get the error message "Unable to connect to Server. Are you connected?". I know from looking at the database that it's successfully executing my setup SQL and at least some of the game setup code. (I'm doing Farkle as a tutorial for myself, and the game does successfully randomize the results on the dice for the first roll.) I've tried putting in some error message calls, but I haven't seen anything besides the unable to connect error. I'm presuming that there's a coding error somewhere that's causing this problem, but I don't know where it might be. Has anyone had this issue before or does anyone have any ideas on code problems that could cause this?

Re: Game won't connect to server....

Posted: 21 October 2013, 10:01
by sourisdudesert
Hi,

It looks like there is an infinite loop in your setup => the game server do not respond.

I analyze the logs and there is an infinite loop between game states:
_ playerJustRolled
_ endBad
_ playerJustRolled
_ endBad
_ ...

Cheers,

Re: Game won't connect to server....

Posted: 21 October 2013, 23:40
by coolpapa
Thank you for the help. I suspect I know where the bug is now. I'm guessing you diagnosed it from the back-end somewhere?