Search found 7 matches

by KVADRO
15 Jan 2018, 17:52
Forum: SFS2X Questions
Topic: createGame throw NullPointerException
Replies: 3
Views: 1829

Re: createGame throw NullPointerException

Sure. java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) at java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:964) at com.smartfoxserver.v2.entities.managers.SFSRoomManager.containsRoom(SFSRoomManager.java:469) at com.smar...
by KVADRO
14 Jan 2018, 14:27
Forum: SFS2X Questions
Topic: createGame throw NullPointerException
Replies: 3
Views: 1829

createGame throw NullPointerException

Hi! When i try to create Game room from extension with following settings, SmartFoxServer.getInstance().getAPIManager().getGameApi().createGame throws NullPointerException. Why? CreateRoomSettings.RoomExtensionSettings extensionSettings = new CreateRoomSettings.RoomExtensionSettings( "main_exte...
by KVADRO
08 Jan 2018, 10:43
Forum: Server Side Extension Development
Topic: Close Game Room
Replies: 3
Views: 1814

Re: Close Game Room

Hi Lapo.

I need somehow to prevent players to join room when some conditions went true. And i think 'setActive' will fit my requirements.
But you said that room will become 'inactive', it means that this room will not receive any events/requests?

Thanks!
by KVADRO
07 Jan 2018, 17:18
Forum: Server Side Extension Development
Topic: Close Game Room
Replies: 3
Views: 1814

Close Game Room

Hello!
How to close game room from extension to prevent players join through 'quickJoinGame' ?
by KVADRO
06 Jan 2018, 18:09
Forum: SFS2X Questions
Topic: Few questions.
Replies: 4
Views: 1366

Re: Few questions.

Few more question. - Does room has 'isOpen' property? Similar to Photon isOpen property of room? Or i should manually manage this through room variable? - [ Resolved: SmartFoxServer.getInstance().getAPIManager().getGameApi().quickJoinGame ] Do we have in server side some api similar to client QuickJ...
by KVADRO
06 Jan 2018, 16:39
Forum: SFS2X Questions
Topic: Few questions.
Replies: 4
Views: 1366

Re: Few questions.

Thanks for your answer, Lapo!
by KVADRO
06 Jan 2018, 10:46
Forum: SFS2X Questions
Topic: Few questions.
Replies: 4
Views: 1366

Few questions.

Hello World! I'm new to SFS2X, so, i have few questions. 1) Is it a good idea to have one lobby( room ) for all players( event, for example, if my CCU is 10'000 ) in server, or i should balance them ( players ) to different lobbies( rooms ) by max count ( for example one lobby can contain maximum 20...

Go to advanced search