sendmove in turnbasegame

0 votes

Hi all.

I have a problem  turnbase room. 

When i call Sendmove() .

=> onSendMoveDone() contains a result code : 121  , sometimes  result code success :0.

I've tried  Sendmove() 10 times,  1 time successfully

thanks and best regards

asked Jun 5, 2014 in AppWarp by Linh Luu (25 points)

1 Answer

0 votes
Result value of 121 is weird to occur as we never use any such value in our result codes. It will be very helpful if you could share your code with us. Please post some code snippet from your application. This will help us to debug your issue.

Also, on what platform are you testing?
answered Jun 5, 2014 by Suyash Mohan (900 points)
I use demoRummyCard in
http://appwarps2.shephertz.com/downloads/download-onpremwarp.php
but  I created client by cocos2dx   platform test :android
-the steps :
1.Initialise AppWarp SDK
2.Setup Listeners and add them to callbacks(
        warpClient->setConnectionRequestListener(this);
        warpClient->setNotificationListener(this);
        warpClient->setRoomRequestListener(this);
    warpClient->setZoneRequestListener(this);
        warpClient->setTurnBasedRoomRequestListener(this);
)
3.Connect to AppWarp Server
4.Create a Room
5.Join the room
6.Subscribe the room

and i called :
AppWarp::Client::getInstance()->sendMove("{\"top\":\"1\",\"cards\":[1,2,2,3,3]");
sendMove can be used only with turn based room. So make sure you are creating a turn based room in step 4

Also, you can not send move until the game has started. To start a game, you have to call startGame() method.

Also share the code that you are using in onSendMoveDone.
- sure i am  created a turn based room
- i created button start game call  call startGame() method. after all user joined
here class demo: https://www.mediafire.com/?v4393anqt15jbq7
Hi Linh, it seems that you are working with AppWarp S2 but using the client side SDK of AppWarp cloud. This could possibly be causing this issue.
Can you first ensure that you are using the AppWarp S2 Cocos2d-x SDK? It can be downloaded from

http://appwarps2.shephertz.com/downloads/download-onpremwarp.php

Please follow the tab on that page to download client side SDK->Cocos2d-x
yeah  iam  using the client side SDK of AppWarp cloud
Thanks u so much :D
i will try nextweek
have a good weekend!
I have replaced the AppWarp S2 Cocos2d-x SDK  but the error still occurs :((
Can you please share your test project with us?
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
...