Search found 59 matches

by TryMyGames
07 Nov 2017, 11:31
Forum: SFS2X C# API
Topic: RARE WIFI CONNECTION ISSUE
Replies: 1
Views: 4018

RARE WIFI CONNECTION ISSUE

Hello, We are receiving negative feedback from a few people that they cannot connect to our server from their home wifi, even if their wifi is stable and they are able to play other multiplayer games, also they can connect to our server from any other wifi connection. Is it possible to track the cau...
by TryMyGames
01 Jun 2017, 14:12
Forum: SFS2X C# API
Topic: [SOLVED] SUPPORTED SFS VARIABLE TYPES
Replies: 4
Views: 7208

Re: SUPPORTED SFS VARIABLE TYPES

Lapo wrote:You can use an SFSObject with whatever values/types you need.
Cheers


I asked another question ;) Thanks.
by TryMyGames
01 Jun 2017, 13:25
Forum: SFS2X C# API
Topic: [SOLVED] SUPPORTED SFS VARIABLE TYPES
Replies: 4
Views: 7208

Re: SUPPORTED SFS VARIABLE TYPES

TryMyGames wrote:For example I want to add a user variable that can be an int value between 0-3, should I use int or a SFSObject with a byte variable in it?? Which one take more traffic?


If int takes 4 bytes, then how much will take a SFSObject with a byte int it?
by TryMyGames
01 Jun 2017, 10:38
Forum: SFS2X C# API
Topic: [SOLVED] SUPPORTED SFS VARIABLE TYPES
Replies: 4
Views: 7208

[SOLVED] SUPPORTED SFS VARIABLE TYPES

SFSError: Unsupport SFS Variable type: Byte Really???? Why can't I optimize the network traffic by using smaller data types??? It is very frustrating because custom extension requests supports byte and short types :( For example I want to add a user variable that can be an int value between 0-3, sho...
by TryMyGames
31 May 2017, 08:10
Forum: SFS2X Questions
Topic: [SOLVED] WHY SMARTFOX IS ADDING EXTRA DECIMALS TO SYNCHED VARIABLES?!
Replies: 6
Views: 7631

Re: WHY SMARTFOX IS ADDING EXTRA DECIMALS TO SYNCHED VARIABLES?!

I am developing an io game for mobile devices using Unity, and there can be such situations when in area of interest of some clients can be 8-10 players, each player updates it's position 8 times per second, on some devices the game starts to lag, the traffic is ~40KBs, I found that rounding the pos...
by TryMyGames
30 May 2017, 15:51
Forum: SFS2X Questions
Topic: [SOLVED] WHY SMARTFOX IS ADDING EXTRA DECIMALS TO SYNCHED VARIABLES?!
Replies: 6
Views: 7631

Re: WHY SMARTFOX IS ADDING EXTRA DECIMALS TO SYNCHED VARIABLES?!

So if I need to optimize the traffic i have to use smaller type, like byte?
by TryMyGames
30 May 2017, 11:03
Forum: SFS2X Questions
Topic: [SOLVED] WHY SMARTFOX IS ADDING EXTRA DECIMALS TO SYNCHED VARIABLES?!
Replies: 6
Views: 7631

[SOLVED] WHY SMARTFOX IS ADDING EXTRA DECIMALS TO SYNCHED VARIABLES?!

List<UserVariable> userVariables = new ArrayList<>(); System.out.println(Math.round(100f * health) / 100f); userVariables.add(new SFSUserVariable(UserVariableKeys.HEALTH, Math.round(100f * health) / 100f)); sfsApi.setUserVariables(user, userVariables); For example I want to add a user variable whic...
by TryMyGames
25 Mar 2017, 02:04
Forum: SFS2X Questions
Topic: [SOLVED] ADDING INFINITE THREADS AMOUNT
Replies: 4
Views: 11844

Re: ADDING INFINITE THREADS AMOUNT

I found the cause of the problem) I didn't expect that to happen) As I mentioned in my another post, I have an instance per Room of Bot Manager application running, also as I mentioned in my other post http://www.smartfoxserver.com/forums/viewtopic.php?f=18&t=19309 I use my own machine for serve...
by TryMyGames
24 Mar 2017, 12:46
Forum: SFS2X Questions
Topic: [SOLVED] ADDING INFINITE THREADS AMOUNT
Replies: 4
Views: 11844

Re: ADDING INFINITE THREADS AMOUNT

Found this in documentation: The Scheduler also exposes a schedule method that executes a Runnable task once after the specified amount of time. Finally the Scheduler's thread pool can be resized on-the-fly at runtime via the resizeThreadPool() method. I have like hundreds of schedules created per s...
by TryMyGames
24 Mar 2017, 11:00
Forum: SFS2X Questions
Topic: [SOLVED] ADDING INFINITE THREADS AMOUNT
Replies: 4
Views: 11844

[SOLVED] ADDING INFINITE THREADS AMOUNT

Hello, After some modifications I run into this problem which occurs like in a couple of hours after starting the server, so the server dies :( : .... 24 Mar 2017 | 04:00:26,236 | INFO | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor | | Added 16 new threads, current size is: 132 24 Mar 201...
by TryMyGames
22 Mar 2017, 15:27
Forum: SFS2X Questions
Topic: WHAT DOES THIS SOCKETWRITER ERROR MEAN?
Replies: 14
Views: 14012

Re: WHAT DOES THIS SOCKETWRITER ERROR MEAN?

Finally I found the parameters keys for BaseEvent. But the problem with Bot Manager disconnection is still not solved :(, I believe that the issue is hidden somewhere in my code, because it doesn't matter on which machine the server is running, and which connection is using (LAN or via Internet) thi...
by TryMyGames
22 Mar 2017, 09:54
Forum: SFS2X Questions
Topic: WHAT DOES THIS SOCKETWRITER ERROR MEAN?
Replies: 14
Views: 14012

Re: WHAT DOES THIS SOCKETWRITER ERROR MEAN?

Sooooo how to track the disconnection reason message? Also I can't find all the parameter names for BaseEvent parameter for client (C#) event handlers.

Thanks.
by TryMyGames
21 Mar 2017, 23:39
Forum: SFS2X Questions
Topic: WHAT DOES THIS SOCKETWRITER ERROR MEAN?
Replies: 14
Views: 14012

Re: WHAT DOES THIS SOCKETWRITER ERROR MEAN?

Thanks!

Is there a way to get the disconnection reason from both client and server side? It is clearly my fault that only this specific user gets disconnected from server so I have to track down the reason.

Thanks again :)
by TryMyGames
21 Mar 2017, 11:14
Forum: SFS2X Questions
Topic: WHAT DOES THIS SOCKETWRITER ERROR MEAN?
Replies: 14
Views: 14012

Re: WHAT DOES THIS SOCKETWRITER ERROR MEAN?

I am using for Bot Manager same class as for clients for connection management which sends empty TCP requests to smartfox to prevent timeout, so this can't be the reason since only the Bot Manager is losing connection, clients have no problem :(. I already changed the bot manager behavior so it crea...

Go to advanced search