Search found 20764 matches

by Lapo
28 Nov 2019, 10:36
Forum: SFS2X Questions
Topic: Sending message to all users of a Room created from server side
Replies: 11
Views: 172

Re: Sending message to all users of a Room created from server side

Hi, I copied your Room Extension and ran a test with a game Room and a non-game Room (both running the same Extension) As expected I cannot reproduce your problem. Every User joined in the Room receives the Extension messages once every second. Also, I've tested joining both as a player and as a spe...
by Lapo
27 Nov 2019, 10:24
Forum: SFS2X Questions
Topic: NPC player
Replies: 16
Views: 312

Re: NPC player

So you're creating a client-side NPC, one that doesn't run on the server side but rather is running as an external program, using the client API to connect to SFS. In this case there is no way for the server to know wether or not a certain User is a "bot". You will need to flag it manually...
by Lapo
27 Nov 2019, 10:17
Forum: SFS2X Questions
Topic: Sending message to all users of a Room created from server side
Replies: 11
Views: 172

Re: Sending message to all users of a Room created from server side

Hi, I should see what your code does exactly. As regards setting the isGame flag, I can't say it makes any differences. The send() method operates the same regardless of the type of Room: it takes an SFSObject and a list of recipients. If you call room.getUserList() you will get the complete lists o...
by Lapo
26 Nov 2019, 17:28
Forum: SFS2X Questions
Topic: How to handle CastException?
Replies: 1
Views: 63

Re: How to handle CastException?

If you have data objects that need to be shared between Extensions you should deploy them in a separate JAR under the extensions/__lib__/ folder. This way they are loaded in the top class loader. I would highly recommend to read here for all the details: http://docs2x.smartfoxserver.com/ExtensionsJa...
by Lapo
26 Nov 2019, 14:41
Forum: SFS2X Questions
Topic: NPC player
Replies: 16
Views: 312

Re: NPC player

I am confused as to what you're doing. In your code I don't see a single reference to any object that is part of the SFS API. The client side code for example... where do you instantiate the client API? And where do you start the connection? Are you trying to determine if a User is an NPC from the c...
by Lapo
26 Nov 2019, 14:33
Forum: SFS2X Questions
Topic: Sending message to all users of a Room created from server side
Replies: 11
Views: 172

Re: Sending message to all users of a Room created from server side

Sahadev wrote:Here, I had to use the room.getExtension() to access the send method as the call is made somewhere inside of my own class.

Fair enough.
In that case no problem. You can do it, and it will work.
If it still doesn't make sure to check the server logs for errors.

Let us know
Cheers
by Lapo
26 Nov 2019, 09:24
Forum: SFS2X Questions
Topic: NPC player
Replies: 16
Views: 312

Re: NPC player

It should only return false when the User is not an NPC. If you do this: User test = getApi().createNPC("TestNPC", getParentZone(), false); trace("Is this an NPC?" + test.isNPC()); you will get true , 100% of the times. I'd recommend reviewing your code and making sure everything...
by Lapo
26 Nov 2019, 09:18
Forum: SFS2X Questions
Topic: Sending message to all users of a Room created from server side
Replies: 11
Views: 172

Re: Sending message to all users of a Room created from server side

Hello, Hi All, I am very new to SFS and just exploring things. I have created a game room dynamically from server code and willing to send a message to all players joined to the room (room.getExtension().send("start", data, room.getUserList());). just use send() without the rest. Example: ...
by Lapo
25 Nov 2019, 14:42
Forum: SFS2X Questions
Topic: Need Help a littlebit
Replies: 2
Views: 63

Re: Need Help a littlebit

Hi, the code is incorrect in multiple places. For example you're calling the Connect() method and immediately sending the LoginRequest, which won't work because you need to wait for the SFSEvent.CONNECTION before trying to login. I would highly recommend to download our Example Pack for Unity and ch...
by Lapo
25 Nov 2019, 08:50
Forum: SFS2X ActionScript 3 API
Topic: Flash being phased out by 2020.
Replies: 5
Views: 1451

Re: Flash being phased out by 2020.

Hello Hi there, I am sorry that I return on this old thread but I do have two questions regarding the flash end of life matter. No problem :) a. is there any possibility that you will migrate the admin panel into an html5 interface to support the new web browsers? Yes, we're working an HTML5 version...
by Lapo
25 Nov 2019, 08:46
Forum: SFS2X Questions
Topic: Server Architecture and Deployment
Replies: 2
Views: 101

Re: Server Architecture and Deployment

Hi, building a game architecture of this caliber is not an easy task and requires quite a bit of experience. If this is your first multiplayer game you should take it a step at a time and start with a simple approach that can be expanded in the future. The best approach is to start with a few server...
by Lapo
23 Nov 2019, 11:09
Forum: SFS2X Questions
Topic: NPC player
Replies: 16
Views: 312

Re: NPC player

You can use User.isNpc() which returns true only when the player is not a connected user.
Cheers
by Lapo
22 Nov 2019, 15:40
Forum: SFS2X Questions
Topic: Some game rooms dont show up in smartfox Zone monitor
Replies: 12
Views: 195

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: 12
Views: 195

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: 12
Views: 195

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 ...

Go to advanced search