Search found 20711 matches

by Lapo
13 Nov 2019, 16:53
Forum: SFS2X Questions
Topic: Room removed twice (according to the log)
Replies: 5
Views: 101

Re: Room removed twice (according to the log)

Hi, the plan is to release it with the new 2.14 major release which is coming out by the end of the year. If you need an earlier hotfix we can arrange a custom patch, compatible with any SFS2X 2.13.x instance. You can get in touch with us using the usual --> support@... email box and with a referenc...
by Lapo
13 Nov 2019, 16:44
Forum: SFS2X C# API
Topic: JoinedRooms property on client is different from server one
Replies: 5
Views: 306

Re: JoinedRooms property on client is different from server one

It is scheduled, which means it is not processed immediatelly and it caused us some issues with synchronization. Nope, it is not scheduled. getApi().leaveRoom() runs in the same thread you are calling it from . The generated events, on the other hand, are not. I think you're confusing an asynchrono...
by Lapo
13 Nov 2019, 14:34
Forum: SFS2X Questions
Topic: How to send Event at a time for all rooms are created?
Replies: 3
Views: 161

Re: How to send Event at a time for all rooms are created?

You can do the same from the Room Extension. When the game is complete you can call: send("cmdName", message, getParentRoom().getUserList()); Also i need help for how to send one room data to another room so, i inform to other room this room complete their game. This is not very clear. Why...
by Lapo
13 Nov 2019, 11:27
Forum: SFS2X Questions
Topic: How to send Event at a time for all rooms are created?
Replies: 3
Views: 161

Re: How to send Event at a time for all rooms are created?

Hi, are you familiar with Extension development? If not take a look here: http://docs2x.smartfoxserver.com/ExtensionsJava/quick-start What you need to do is cycling through all the Rooms and send an Extension message to all users. Here's an idea of how to do it: public void example() { for (Room roo...
by Lapo
11 Nov 2019, 08:41
Forum: SFS2X Questions
Topic: Synchronizing game time on server and client side
Replies: 13
Views: 1745

Re: Synchronizing game time on server and client side

I suggested measuring from server side because you said the client side LagMonitor doesn't report what you expect. However I also told you that I find it very strange that you see super slow interactions while the ping reports very low latency, because I would expect everything to be slow, but you d...
by Lapo
11 Nov 2019, 08:36
Forum: SFS2X Questions
Topic: Extension request refused causes threads to sky rocket
Replies: 2
Views: 3600

Re: Extension request refused causes threads to sky rocket

Hi, Hey ! Everytime a player manages it to send extension requests while being disconnected, the server receives those requests and throws exception. For starters... how can someone be disconnected and sending extension requests?! :) Can you please better explain what you're doing and report exactly...
by Lapo
10 Nov 2019, 16:13
Forum: SFS2X Questions
Topic: Synchronizing game time on server and client side
Replies: 13
Views: 1745

Re: Synchronizing game time on server and client side

I am not sure why you want to disconnect players with lag. A momentary slow down is possible even with a decent connection. Unless you're planning to monitor the lag over time the solution you propose doesn't seem very useful. Why not letting the player decide if they want to play or not? And how wo...
by Lapo
09 Nov 2019, 07:50
Forum: SFS2X Questions
Topic: Synchronizing game time on server and client side
Replies: 13
Views: 1745

Re: Synchronizing game time on server and client side

You mean 25 kilobit per second? That's 3KByte/s! :shock: How many people these days run such a low bandwidth connection? That's like a dial-up modem from 1995. It seems like you're testing a too extreme scenario. No multiplayer game would run under those settings, these days. Not even 10 years ago. ...
by Lapo
09 Nov 2019, 07:42
Forum: SFS2X Questions
Topic: How to pause a task?
Replies: 8
Views: 895

Re: How to pause a task?

Hi, there's one global Scheduler that you can access from your Extensions using: TaskScheduler ts = getApi().getSystemScheduler(); and you can submit your tasks to it. In order to configure the number of threads you can either use the AdminTool ( Server Configurator -> General -> Server task schedul...
by Lapo
08 Nov 2019, 13:52
Forum: SFS2X Questions
Topic: Synchronizing game time on server and client side
Replies: 13
Views: 1745

Re: Synchronizing game time on server and client side

What I am asking is... have seen the game struggling in terms of multiplayer smoothness while the measurement of the ping times was perfectly healthy? If so, have you found specific conditions under which this can be reproduced (game struggling, healthy ping) I am asking because I'd expect the ping ...
by Lapo
08 Nov 2019, 08:01
Forum: SFS2X Questions
Topic: How to pause a task?
Replies: 8
Views: 895

Re: How to pause a task?

Hi, It's best to use the least amount of Schedulers. One scheduler per game is typically overkill when you have 1000s of games running. Rather you can use one Scheduler with enough threads to deal with the tasks. If the tasks are not CPU intensive or have to wait for long I/O operations, you normall...
by Lapo
08 Nov 2019, 07:56
Forum: SFS2X Questions
Topic: Synchronizing game time on server and client side
Replies: 13
Views: 1745

Re: Synchronizing game time on server and client side

Can you better explain what you've done? As I mentioned restricting the bandwidth does not necessarily translate in higher latency. It depends on the traffic the client is generating vs the actual state of the network. Also it depends on the physical distance between client and server. You said with...
by Lapo
07 Nov 2019, 14:47
Forum: SFS2X Questions
Topic: Synchronizing game time on server and client side
Replies: 13
Views: 1745

Re: Synchronizing game time on server and client side

I would try to sample the lag every 2 seconds via the LagMonitor and see if it helps compensate the user's latency. Using the SmartFox.enableLagMonitor(bool, int, int) method. The first param enables it The 2nd param specifies how many seconds between each ping (default = 4) The 3rd param specifies ...
by Lapo
07 Nov 2019, 09:27
Forum: SFS2X Questions
Topic: Synchronizing game time on server and client side
Replies: 13
Views: 1745

Re: Synchronizing game time on server and client side

Hi, the lag measured by the API's LagMonitor is the time it takes for a packet to go to the server and come back, the so called round-trip time. Reducing the bandwidth does not necessarily affect the lag. For example if you limit the network to 2KB/s but the client is only using 500byte/s it's likel...
by Lapo
06 Nov 2019, 16:21
Forum: SFS2X Questions
Topic: Installing once license on two server instances
Replies: 6
Views: 311

Re: Installing once license on two server instances

Hi,
yes no problem with that.

Cheers

Go to advanced search