Tic Tac Toe Cant Start Game
Tic Tac Toe Cant Start Game
Hi, I've managed to run the server and created the client using unity. I opened two clients using different username and joined the same room. However, the game didn't start and it says waiting for opponent even though the room chat still works. I've used the zone configurator to run the tris extension. Any idea what could be the problem? thanks in advance.
Re: Tic Tac Toe Cant Start Game
Hi,
are you running one of our official examples or is it your own game?
If the latter you should explain what in your code triggers the start of a game. Are you using the SFSGame Room? A regular Room?
Thanks
are you running one of our official examples or is it your own game?
If the latter you should explain what in your code triggers the start of a game. Are you using the SFSGame Room? A regular Room?
Thanks
Re: Tic Tac Toe Cant Start Game
It's true, it's impossible starting game on official example Tic Tac Toe
Re: Tic Tac Toe Cant Start Game
Not sure what's wrong with your setup, but the demo works as expected.
Did you check the server and client logs for errors?
Did you check the server and client logs for errors?
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Re: Tic Tac Toe Cant Start Game
When you connect to a game with 2 accounts, the "Start Game" button is not clickable.
I checked the server and everything works perfectly.
In the error log of Unity remains empty.
I checked the server and everything works perfectly.
In the error log of Unity remains empty.
Re: Tic Tac Toe Cant Start Game
After logging in, one of the clients clicks the "Start new game" button, creating and joining the Room.
The other client clicks on the Room name and joins the same game, and the match starts.
In the code the start button is never set to interactable=false, so something else must be going on.
What version of Unity are you using?
Also, are you using the latest version of both SFS2X and the Tris example?
The other client clicks on the Room name and joins the same game, and the match starts.
In the code the start button is never set to interactable=false, so something else must be going on.
What version of Unity are you using?
Also, are you using the latest version of both SFS2X and the Tris example?
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Re: Tic Tac Toe Cant Start Game
I make this procedure you said:
The start button is set interactable=false and never forget interactable=true
My Unity Version: 5.3.5f1
I use SFS2X version 3, downloaded from Assets Store, but I downloaded the latest .dll from the official site
After logging in, one of the clients clicks the "Start new game" button, creating and joining the Room.
The other client clicks on the Room name and joins the same game, and the match starts.
The start button is set interactable=false and never forget interactable=true
My Unity Version: 5.3.5f1
I use SFS2X version 3, downloaded from Assets Store, but I downloaded the latest .dll from the official site
Re: Tic Tac Toe Cant Start Game
I don't know what "SFS2X version 3" means, sorry.
The latest version of SFS2X (server) is 2.11.1, available here:
http://www.smartfoxserver.com/download/sfs2x#p=updates
(requires v2.9 to be installed previously.
The latest version of the client API is 1.6.6, available here:
http://www.smartfoxserver.com/download/sfs2x#p=client
(first C# entry)
Please make sure you get the latest version of the example too:
http://www.smartfoxserver.com/download/sfs2x#p=examples
(Unity 5 examples pack)
The latest version of SFS2X (server) is 2.11.1, available here:
http://www.smartfoxserver.com/download/sfs2x#p=updates
(requires v2.9 to be installed previously.
The latest version of the client API is 1.6.6, available here:
http://www.smartfoxserver.com/download/sfs2x#p=client
(first C# entry)
Please make sure you get the latest version of the example too:
http://www.smartfoxserver.com/download/sfs2x#p=examples
(Unity 5 examples pack)
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Re: Tic Tac Toe Cant Start Game
Also, full instructions on the examples can be found here:
http://docs2x.smartfoxserver.com/Exampl ... troduction
(including dedicated tutorials for all the examples)
http://docs2x.smartfoxserver.com/Exampl ... troduction
(including dedicated tutorials for all the examples)
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Re: Tic Tac Toe Cant Start Game
Yes!! I used these instructions, now I'm downloading the latest examples package:
Version: 1.0.3
Release date: Aug 22nd, 2016
Perhaps it was already corrected
Version: 1.0.3
Release date: Aug 22nd, 2016
Perhaps it was already corrected
Re: Tic Tac Toe Cant Start Game
I've updated the examples is the problem remains:
https://drive.google.com/open?id=0Bzb18 ... TlodFRtUzg
https://drive.google.com/open?id=0Bzb18 ... TlodFRtUzg
Re: Tic Tac Toe Cant Start Game
Ok, you are referring to a different Restart button, the one in-game.
That button gets enabled when the match is over only.
The problem in your case is that the game doesn't seem to start even if two players are inside the Room. It seems they are both still waiting for the other player to join.
The game start is triggered by the server side Extension, which sends a response received by the TrisGame class (line 187).
If your clients are not receiving the message, then something is wrong with the Extension. Are you sure you installed and configured it?
That button gets enabled when the match is over only.
The problem in your case is that the game doesn't seem to start even if two players are inside the Room. It seems they are both still waiting for the other player to join.
The game start is triggered by the server side Extension, which sends a response received by the TrisGame class (line 187).
If your clients are not receiving the message, then something is wrong with the Extension. Are you sure you installed and configured it?
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Re: Tic Tac Toe Cant Start Game
I had not entered "TrisExtension.jar" in the correct folder, the folder name should be "tris".
Thank you for the support you have given me.
Now work!!
Thank you for the support you have given me.
Now work!!
Re: Tic Tac Toe Cant Start Game
Hello Bax.
I had the same problem. I have gone through all the progress which mentioned here. http://docs2x.smartfoxserver.com/ExamplesUnity/tris
I copied the /Volumes/Workspace/Downloads/SmarFoxServer/SFS2X_Unity_Examples/04 Tris/server/Extension_Java/deploy/Tris folder to /Applications/SmartFoxServer_2X/SFS2X/extensions/ folder.
Even though it acting same. Showing waiting for opponent for both players but chat is working for both.
Please help me on this.
Thanks Avinash
I had the same problem. I have gone through all the progress which mentioned here. http://docs2x.smartfoxserver.com/ExamplesUnity/tris
I copied the /Volumes/Workspace/Downloads/SmarFoxServer/SFS2X_Unity_Examples/04 Tris/server/Extension_Java/deploy/Tris folder to /Applications/SmartFoxServer_2X/SFS2X/extensions/ folder.
Even though it acting same. Showing waiting for opponent for both players but chat is working for both.
Please help me on this.
Thanks Avinash
Re: Tic Tac Toe Cant Start Game
First of all you should check the server log: there's a chance an error occurred for some reason, and you should find it there after the second player joined the same game Room of the first one.
If you find it, can you please report it here? Thanks.
If you find it, can you please report it here? Thanks.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Who is online
Users browsing this forum: No registered users and 84 guests