Search found 79 matches

by Jochanan
04 Sep 2019, 10:59
Forum: SFS2X Questions
Topic: QUESTION: What server config would you recommend
Replies: 3
Views: 4553

QUESTION: What server config would you recommend

We are going to go live soon, so i would like to ask you about server configuration, you would recommend for tens of thousands of logged users (up to 20 000) thousands of rooms with two players (up to 10 000) each room up to five additional spectators We are using microsoft azure. What is more impor...
by Jochanan
30 Aug 2019, 14:52
Forum: SFS2X C# API
Topic: NRE: Object reference not set to an instance of an object at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost
Replies: 4
Views: 6353

Re: NRE: Object reference not set to an instance of an object at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost

Lapo wrote:Ok. There's not much you can do about that though :)

I would rather not have NullReference exception thrown. Is it possible to achieve?
by Jochanan
30 Aug 2019, 12:35
Forum: SFS2X C# API
Topic: NRE: Object reference not set to an instance of an object at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost
Replies: 4
Views: 6353

Re: NRE: Object reference not set to an instance of an object at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost

I have more information.
This exception happens during server is paused due breakpoint on server AND client is trying to connect to the server
by Jochanan
30 Aug 2019, 12:02
Forum: SFS2X C# API
Topic: NRE: Object reference not set to an instance of an object at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost
Replies: 4
Views: 6353

NRE: Object reference not set to an instance of an object at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost

Hi Lapo, we got this exception on client during server restart NullReferenceException: Object reference not set to an instance of an object at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost (System.Boolean fireEvent, System.String reason) [0x0001a] in <9bfe5727c1e148feb52fa1397dabf0b5>:0 at Sfs...
by Jochanan
27 Aug 2019, 08:31
Forum: SFS2X C# API
Topic: SFSEvent.PING_PONG - callback
Replies: 2
Views: 4782

Re: SFSEvent.PING_PONG - callback

I would expect, that to measure PING you have to measure time between request-response. Now, you have callback on response and i was asking about the callback when you do request on server.

It is not needed now, because we had created our own ping system anyway.
by Jochanan
23 Aug 2019, 14:07
Forum: SFS2X C# API
Topic: SFSEvent.PING_PONG - callback
Replies: 2
Views: 4782

SFSEvent.PING_PONG - callback

Hi, can i get callback before SFSEvent.PING_PONG is triggered on client?
Right now, there is callback for server response, but i need to monitor the event of client pinging to server. Is it possible?
by Jochanan
21 Aug 2019, 11:51
Forum: SFS2X C# API
Topic: NullReferenceException on Sfs.KillConnection()
Replies: 1
Views: 3871

NullReferenceException on Sfs.KillConnection()

As a part of our re-connecting alghoritm, we are killing current sfs connection and creating a new one, but sometimes, we get an exception: NullReferenceException: Object reference not set to an instance of an object Sfs2X.Bitswarm.BitSwarmClient.KillConnection () (at <9bfe5727c1e148feb52fa1397dabf0...
by Jochanan
26 Jul 2019, 14:29
Forum: SFS2X Questions
Topic: NPE at it.gotoandplay.util.launcher
Replies: 3
Views: 4657

Re: NPE at it.gotoandplay.util.launcher

It cannot be, because there have been hundreds of rooms created prior that error without server restart nor any change to the jar file
by Jochanan
26 Jul 2019, 11:45
Forum: SFS2X Questions
Topic: NPE at it.gotoandplay.util.launcher
Replies: 3
Views: 4657

NPE at it.gotoandplay.util.launcher

Hi, we are experiencing this kind of exception when creating a room on server side: java.lang.NullPointerException at it.gotoandplay.util.launcher.JarFilesUtil.scanFolderForJarFiles(JarFilesUtil.java:23) at it.gotoandplay.util.launcher.JarLoader.loadClasses(JarLoader.java:19) at com.smartfoxserver.v...
by Jochanan
19 Jul 2019, 10:55
Forum: SFS2X Questions
Topic: NegativeArraySizeException during SFSApi.createRoom
Replies: 16
Views: 15596

Re: NegativeArraySizeException during SFSApi.createRoom

Jochanan wrote:I asked because you said, that there should be no limit, yet we got that exception. I will test it out with the limit and limit+1 number and let everyone know.

Both is working right now. I will let you know if i got this error again.
by Jochanan
17 Jul 2019, 08:20
Forum: SFS2X Questions
Topic: NegativeArraySizeException during SFSApi.createRoom
Replies: 16
Views: 15596

Re: NegativeArraySizeException during SFSApi.createRoom

How do i create a room via server-side creation? I don't understand the question. You have posted an example of server-side room creation yourself, a few posts ago... that's how. I asked because you said, that there should be no limit, yet we got that exception. I will test it out with the limit an...
by Jochanan
12 Jul 2019, 11:26
Forum: SFS2X Questions
Topic: NegativeArraySizeException during SFSApi.createRoom
Replies: 16
Views: 15596

Re: NegativeArraySizeException during SFSApi.createRoom

Lapo wrote:Last time you showed the code to create the Room and it was a server-side creation. If you're on the server-side it will work.


How do i create a room via server-side creation?
by Jochanan
12 Jul 2019, 11:24
Forum: SFS2X Questions
Topic: NegativeArraySizeException during SFSApi.createRoom
Replies: 16
Views: 15596

Re: NegativeArraySizeException during SFSApi.createRoom

In any case, i think, that this information needs to be in the documentation. Additionally, it would be nice, if SFS actually does some sanity checks and throws its own exception with this information.
by Jochanan
12 Jul 2019, 11:24
Forum: SFS2X Questions
Topic: NegativeArraySizeException during SFSApi.createRoom
Replies: 16
Views: 15596

Re: NegativeArraySizeException during SFSApi.createRoom

If that's the case you must keep in mind that the maxUsers property is transmitted as a Short integer (16 bit) therefore it's max value should be < 65536 (2^16). Passing a bigger value will probably result in a negative value, because the negative bit is set. Did you mean 32767? Java does not have ...
by Jochanan
11 Jul 2019, 10:42
Forum: SFS2X Questions
Topic: NegativeArraySizeException during SFSApi.createRoom
Replies: 16
Views: 15596

Re: NegativeArraySizeException during SFSApi.createRoom

I get the same error. NegativeArraySizeException.

Go to advanced search