onStartGameDone not getting called in AppWarpS2

0 votes
Hi

I am using AppWarpS2 server for customizing turn based room functionality ,my basic flow is turn base room allow max 6 user and when 2 users joins then server start game and only one player in room then stop game. So when i start game from server side then game starts but i did not getting onStartGameDone notification and  onStopGameDone notification (all ready registered NotificationListiner from client side), if i call WarpClient.GetInstance().sendMove("") then i will get onSendMoveDone notification.

Take a look my server side code

https://www.dropbox.com/s/mk0mqyd7sca9cwb/CardRoomAdaptor.java

And client side code for listener

https://www.dropbox.com/s/xnb14f92n06xd6q/Listener.cs

I am using Unity3D sdk for client side

Thanks.
asked Apr 8, 2014 in AppWarpS2 by maulik.kaloliya (34 points)
edited Apr 8, 2014 by maulik.kaloliya

1 Answer

+1 vote
 
Best answer
You will not get onStartGameDone in this case as that is a response. Since the call was made from the server-side, client will only get a notification. The notification is onGameStarted in this case.

http://appwarps2.shephertz.com/dev-center/api-guide/csharp-api-reference/#startgame
answered Apr 9, 2014 by dhruvc (1,099 points)
selected Apr 9, 2014 by maulik.kaloliya
But when i called startGame() from client side though i didn't getting response and game is not starting.
You should get the response in your TurnBasedRoomListener.
http://appwarps2.shephertz.com/dev-center/api-guide/csharp-client-listener/#turnbasedroomlistener
If successful, it will result in onGameStarted notification to all clients.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...