I'm trying to test the OpenSpaceExtension but it is having problem on the CreateRoom call on the code:
Room newRoom = null;
try
{
trace("CREATING MAP: " + mapName);
newRoom = this.sfsApi.createRoom(this.getParentZone(), crs, requester, false, requester.getLastJoinedRoom());
}
catch (SFSCreateRoomException e)
{
trace("ERROR CREATING MAP: " + mapName);
trace("DESCRIPTION:");
trace("ERROR CODE: " + e.getErrorData().getCode().toString());
e.printStackTrace();
}
With the above traces set, I am getting this on the log file:
[com.smartfoxserver.v2.controllers.ExtensionController-1] Extensions - {osExtension}: CLIENT CALLED: loadMission
[com.smartfoxserver.v2.controllers.ExtensionController-1] Extensions - {osExtension}: LOAD MISSION
[com.smartfoxserver.v2.controllers.ExtensionController-1] Extensions - {osExtension}: CREATING MAP: osExample1#m5_Mission1a_2
[com.smartfoxserver.v2.controllers.ExtensionController-1] Extensions - {osExtension}: ERROR CREATING MAP: osExample1#m5_Mission1_2
[com.smartfoxserver.v2.controllers.ExtensionController-1] Extensions - {osExtension}: DESCRIPTION:
So from this, it is clear that a SFSCreateRoomException is being thrown by the extension after the sfsApi.CreateRoom is called. But I don't know the error as there is no description shown.
OpenSpace Server Extension Problem
Problem solved.
I used the command line standalone version and not the service so I can see the stack trace. The room creation error is just the room name which is too short. Minimum set by default was 3, my room name is just 2
Anyway, standalone version is cool to use if you like see the errors printed on the console.
I used the command line standalone version and not the service so I can see the stack trace. The room creation error is just the room name which is too short. Minimum set by default was 3, my room name is just 2
Anyway, standalone version is cool to use if you like see the errors printed on the console.
Return to “OpenSpace v2 discussions and help”
Who is online
Users browsing this forum: No registered users and 27 guests