onGetAllRoomsDone never called!

0 votes

Hello,

I am trying to implement the App42 SDK for Java, but i have some issues that i think might be related to some kind of bug.

The problem is i am trying to retrieve the whole list of rooms with the method getAllRooms of the Warp Client, but the callback function onGetAllRoomsDone is never called (there is no communication back for that request).

public void onGetAllRoomsDone (AllRoomsEvent event){

Gdx.app.debug("DEBUG APPWARP:", "onGetAllRoomsDone: "+String.valueOf(event.getResult()));
 
}
(Gdx.app.debug is the logger for the framework i am using to develop the application, which is LibGDX)

***EDIT***
 
I followed your guide on how to integrate LibGDX and AppWarp, which can be found at this address:
http://appwarp.shephertz.com/game-development-center/java-multiplayer-libgdx-tutorial/

My project is currently integrating the whole content of the package "appwarp" inside the project "superjumper".
 
In particular: My test were done on a modified version of the class WarpController.java

************

Please help me,

 
thank you
asked Jul 29, 2015 in App42 Cloud API-BaaS by luca.tampellini (10 points)
edited Jul 29, 2015 by luca.tampellini

1 Answer

0 votes

Hello,

Can you confirm that you have added Zone listener? If not, then add the listener class in which you have defined onGetAllRoomsDone  callback. If problem continues then share your code snippets or the class files where you are doing Appwarp initialisations and calling the api.

Thanks.

answered Jul 29, 2015 by rajeev.etc (1,660 points)
edited Jul 29, 2015 by rajeev.etc
I confirm i have added the Zone Listener, as i am simply modifying the "WarpController.java" class that you posted on your guide to integrating AppWarp into LibGDX:

http://appwarp.shephertz.com/game-development-center/java-multiplayer-libgdx-tutorial/

As you can see from your class, inside the constructor of the class the zone listener is instatiated:

public WarpController() {
        initAppwarp();
        warpClient.addConnectionRequestListener(new ConnectionListener(this));
        warpClient.addChatRequestListener(new ChatListener(this));
        warpClient.addZoneRequestListener(new ZoneListener(this));
        warpClient.addRoomRequestListener(new RoomListener(this));
        warpClient.addNotificationListener(new NotificationListener(this));
    }
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
...