Code: Select all
try {
CreateRoomSettings crs = new CreateRoomSettings();
crs.setName("Test Room");
crs.setMaxUsers(2);
crs.setMaxVariablesAllowed(0);
crs.setGame(true);
crs.setMaxSpectators(0);
getApi().createRoom(getParentZone(), crs, null);
} catch (SFSCreateRoomException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
but upon starting the server receive the error on the createRoom line
Code: Select all
Exception: java.lang.NullPointerException
Message: *** Null ***
Description: Extension initialization failed
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.bitswarm.io.Response.write(Response.java:74)
com.smartfoxserver.v2.api.response.SFSResponseApi.notifyRoomAdded(SFSResponseApi.java:110)
com.smartfoxserver.v2.api.SFSApi.createRoom(SFSApi.java:622)
com.smartfoxserver.v2.api.SFSApi.createRoom(SFSApi.java:578)
Am I doing something wrong or is this not possible?
Thanks