Search found 20737 matches

by Lapo
22 Nov 2019, 15:40
Forum: SFS2X Questions
Topic: Some game rooms dont show up in smartfox Zone monitor
Replies: 10
Views: 44

Re: Some game rooms dont show up in smartfox Zone monitor

For starters I am not sure what a "stuck Room" represent exactly in your game. Can you clarify? I see you're checking this condition: if(realUsers.size() == 0 && robots.size() > 0) So I assume a "stuck Room" is one where there are no real players, but there are a number o...
by Lapo
22 Nov 2019, 09:01
Forum: SFS2X Questions
Topic: Some game rooms dont show up in smartfox Zone monitor
Replies: 10
Views: 44

Re: Some game rooms dont show up in smartfox Zone monitor

Hi,
are you deleting Rooms manually from you server side code? If so, can you show me the section(s) of the Extension code where you're doing it?
Thanks
by Lapo
22 Nov 2019, 08:38
Forum: SFS2X Questions
Topic: Some game rooms dont show up in smartfox Zone monitor
Replies: 10
Views: 44

Re: Some game rooms dont show up in smartfox Zone monitor

It's quite difficult to guess what might be going on without knowing what your server side code does and what other interactions are happening. To start investigating we need more info and a way to reproduce the issue. If you have a test environment you could try to reproduce the problem there. Let ...
by Lapo
21 Nov 2019, 16:40
Forum: SFS2X Questions
Topic: Some game rooms dont show up in smartfox Zone monitor
Replies: 10
Views: 44

Re: Some game rooms dont show up in smartfox Zone monitor

What version of SFS2X are you running?
by Lapo
21 Nov 2019, 10:46
Forum: SFS2X Questions
Topic: Question: smartfox unity integration, and more
Replies: 5
Views: 68

Re: Question: smartfox unity integration, and more

You can use Javascript if you feel more comfortable with a scripting language.
Take a look at this intro:
http://docs2x.smartfoxserver.com/Extens ... uick-start

Hope it helps
by Lapo
20 Nov 2019, 15:04
Forum: SFS2X Questions
Topic: Some game rooms dont show up in smartfox Zone monitor
Replies: 10
Views: 44

Re: Some game rooms dont show up in smartfox Zone monitor

Hi, make sure that you're looking in the right Room Group. If you don't remember what Room Group the Room belongs to do the following: From the AdminTool > Zone Monitor double click the correct Zone. In the Group dropdown select [Any] Also make sure the Filter is empty (check by clicking the Filter ...
by Lapo
20 Nov 2019, 14:52
Forum: SFS2X Questions
Topic: Smartfox 2.13.5 taking long time to create rooms
Replies: 3
Views: 1052

Re: Smartfox 2.13.5 taking long time to create rooms

I didn't quite understand if the 70-100 is the global number of Rooms or if it's the number of Rooms that every game creates? Yes Every room have extension attached So can you suggest, How i can decrease the room creation time? At the very minimum it depends on those two variables I mentioned (hardw...
by Lapo
20 Nov 2019, 11:29
Forum: SFS2X Questions
Topic: Smartfox 2.13.5 taking long time to create rooms
Replies: 3
Views: 1052

Re: Smartfox 2.13.5 taking long time to create rooms

Hi, do these Rooms that you're creating have an Extension attached? If so this can slow down the creation time as each Extension needs to be loaded and initialized. Depending on the hardware in use and the complexity of the init() method in the loaded Extension you might encounter similar issues. - ...
by Lapo
20 Nov 2019, 08:07
Forum: SFS2X Questions
Topic: Send Admin Message from Server Extension
Replies: 2
Views: 79

Re: Send Admin Message from Server Extension

Hi,
you can use the server API's sendAdminMessage() method.

Example:

Code: Select all

getApi().sendAdminMessage(sender, message, params, recipients)


To learn more see the docs here

Hope it helps
by Lapo
19 Nov 2019, 14:54
Forum: SFS2X Questions
Topic: SFS2X 2.13.7 X-Forwarded-For Vulnerability
Replies: 1
Views: 44

Re: SFS2X 2.13.7 X-Forwarded-For Vulnerability

We'll take it into account for the next release.
Thanks
by Lapo
19 Nov 2019, 11:11
Forum: SFS2X Questions
Topic: Socket Disconnection after upgrade SFS2.13.6 from 2.11
Replies: 8
Views: 2141

Re: Socket Disconnection after upgrade SFS2.13.6 from 2.11

I had same problem when I moved from 2.11 to 2.13 only websocket clients were getting disconnected. I found that whenever I called cancel method of scheduler ( like this scheduler = SmartFoxServer.getTaskScheduler().schedule scheduler.cancel( ) some of the websocket clients were getting disconnecte...
by Lapo
19 Nov 2019, 09:54
Forum: SFS2X Questions
Topic: NPC player
Replies: 6
Views: 32

Re: NPC player

That's an issue in your code as per the stack trace:

Code: Select all

com.abc.npc.client.NPCManager.main(NPCManager.java:66)

In line 66 of your main() method you're trying to open a file that is not found at the location you've specified.
by Lapo
19 Nov 2019, 09:34
Forum: SFS2X Questions
Topic: NPC player
Replies: 6
Views: 32

Re: NPC player

The NPC is created on the server side. When it is created it is represented by a User object, just like any other connected player.
I don't understand what you mean by "deploy on server"? It is already on the server.

Cheers
by Lapo
19 Nov 2019, 09:05
Forum: SFS2X Questions
Topic: NPC player
Replies: 6
Views: 32

Re: NPC player

Hi, sure we have two articles dedicated to the topic of NPC creation and management: 1) https://smartfoxserver.com/blog/ways-of-working-with-npcs-in-a-multiplayer-game-p-1/ 2) https://smartfoxserver.com/blog/ways-of-working-with-npcs-in-a-multiplayer-game-p-2/ If something is not clear let us know. ...
by Lapo
15 Nov 2019, 15:13
Forum: SFS2X Java / Android API
Topic: Cannot work with the server, it constantly kicks me out.
Replies: 18
Views: 819

Re: Cannot work with the server, it constantly kicks me out.

I've already explained exactly what is the problem, showing you the detailed breakdown of the protocol and pointed out where is the issue I don't like the idea to wrap SFSObject into SFSObject - it sounds like a crap :) Can't argue with opinions :) Let's put some additional code upon your library......

Go to advanced search