Search found 79 matches
- 23 Oct 2019, 09:34
- Forum: SFS2X Questions
- Topic: Room removed twice (according to the log)
- Replies: 5
- Views: 6492
Room removed twice (according to the log)
Hello, I have found these messages in the log 22 Oct 2019 | 09:15:28,521 | INFO | SFSWorker:Ext:4 | entities.managers.SFSRoomManager | | Room removed: { Zone: XXXX }, [ Room: Game 262, Id: 323, Group: match-pmy, isGame: true ], Duration: 209055 22 Oct 2019 | 09:16:25,138 | INFO | pool-9-thread-2 | e...
- 15 Oct 2019, 08:27
- Forum: SFS2X Questions
- Topic: Occasionall "Cryptography cannot be initialized before connecting to SmartFoxServer!" in SFSEvent.CONNECTION handler
- Replies: 2
- Views: 4540
Re: Occasionall "Cryptography cannot be initialized before connecting to SmartFoxServer!" in SFSEvent.CONNECTION handler
So far it is Windows only,
c# API 1.7.12 (Unity3D)
c# API 1.7.12 (Unity3D)
- 14 Oct 2019, 16:04
- Forum: SFS2X Questions
- Topic: Occasionall "Cryptography cannot be initialized before connecting to SmartFoxServer!" in SFSEvent.CONNECTION handler
- Replies: 2
- Views: 4540
Occasionall "Cryptography cannot be initialized before connecting to SmartFoxServer!" in SFSEvent.CONNECTION handler
I have checked our logs and find out, that users are ocasionally getting InvalidOperationException: Cryptography cannot be initialized before connecting to SmartFoxServer! exception iside SFSEvent.CONNECTION handler. I have checked the forum and it looks like, that this exception is thrown when cali...
- 03 Oct 2019, 14:19
- Forum: SFS2X Questions
- Topic: Can i add multiple event handlers for the same event?
- Replies: 11
- Views: 10301
Re: Can i add multiple event handlers for the same event?
I have overlooked, that the function is named differently. What is the difference between addEventListener and addEventHandler and where we should use one or the other? Only difference i have noticed so far is, that if we derivate from BaseServerEventHandler (which implements IServerEventHandler), t...
- 02 Oct 2019, 15:18
- Forum: SFS2X Questions
- Topic: Can i add multiple event handlers for the same event?
- Replies: 11
- Views: 10301
Re: Can i add multiple event handlers for the same event?
Use this: addEventListener(SFSEventType.USER_DISCONNECT, new OnUserDisconnect()); addEventListener(SFSEventType.USER_DISCONNECT, new OnRoomLeave()); Sorry, this is not part of the documented/official API. I have tried it i still, OnUserDisconnect handler have not been called. I have not add removeE...
- 02 Oct 2019, 12:04
- Forum: SFS2X Questions
- Topic: Can i add multiple event handlers for the same event?
- Replies: 11
- Views: 10301
Re: Can i add multiple event handlers for the same event?
Uhh... Aren't you supposed to only have ONE handler per event? The docs for addEventHandler even specifically says so: " NOTE: Each event can have only one handler." http://docs2x.smartfoxserver.com/api-docs/javadoc/server/com/smartfoxserver/v2/extensions/SFSExtension.html#addEventHandler...
- 01 Oct 2019, 09:11
- Forum: SFS2X Questions
- Topic: Can i add multiple event handlers for the same event?
- Replies: 11
- Views: 10301
Can i add multiple event handlers for the same event?
Hi, i have multiple handlers for SFSEventType.USER_DISCONNECT event, but i have noticed, than only the last one is processed. Is the problem, that only one handler may be used or there is another kind of problem? Here is my code snippet addEventHandler(SFSEventType.USER_DISCONNECT, OnUserDisconnect....
- 12 Sep 2019, 16:29
- Forum: SFS2X C# API
- Topic: Sfs.MySelf might null after sucessfull login?
- Replies: 10
- Views: 11450
Re: Sfs.MySelf might null after sucessfull login?
Ok, i will check it out
- 11 Sep 2019, 07:40
- Forum: SFS2X C# API
- Topic: Sfs.MySelf might null after sucessfull login?
- Replies: 10
- Views: 11450
Re: Sfs.MySelf might null after sucessfull login?
Hi, it is not about use case, we are trying to find any loopholes before final release. We are using "2) kick the previous user and let the new one log in.", because we have multi-platform solution, that let user to continue playing on another device. There are still two questions how to h...
- 10 Sep 2019, 15:25
- Forum: SFS2X C# API
- Topic: Sfs.MySelf might null after sucessfull login?
- Replies: 10
- Views: 11450
Re: Sfs.MySelf might null after sucessfull login?
Now, i did another round. When i tried to log in simultaneously with tho application on single username, the application stopped responding and i had to kill it
- 10 Sep 2019, 15:22
- Forum: SFS2X C# API
- Topic: Sfs.MySelf might null after sucessfull login?
- Replies: 10
- Views: 11450
Re: Sfs.MySelf might null after sucessfull login?
There are actually two kinds of issues. One i already told you and second one, that appears from time to time, which is [SFS - ERROR] [TCPSocketLayer] General error reading data from socket: Unable to read data from the transport connection: interrupted. at System.Net.Sockets.NetworkStream.Read (Sys...
- 10 Sep 2019, 13:15
- Forum: SFS2X C# API
- Topic: Sfs.MySelf might null after sucessfull login?
- Replies: 10
- Views: 11450
Re: Sfs.MySelf might null after sucessfull login?
Hi,
i am sure, that the problem occurs inside LOGIN handler.
Client API: 1.7.12
Server Version: 2.13.6
i am sure, that the problem occurs inside LOGIN handler.
Client API: 1.7.12
Server Version: 2.13.6
- 10 Sep 2019, 08:39
- Forum: SFS2X C# API
- Topic: Sfs.MySelf might null after sucessfull login?
- Replies: 10
- Views: 11450
Sfs.MySelf might null after sucessfull login?
I got NullReferenceException inside handler of SFSEvent.LOGIN when accessing Sfs.MySelf.Name
It happend for the first time when two people tried to login into the server in the same time on same login. Any thoughts?
It happend for the first time when two people tried to login into the server in the same time on same login. Any thoughts?
- 04 Sep 2019, 14:31
- Forum: SFS2X Questions
- Topic: QUESTION: What server config would you recommend
- Replies: 3
- Views: 4552
Re: QUESTION: What server config would you recommend
it is turn based (it is similar to chess, but quicker). I expect 2request/second per user. Additionally, there will be a lobby with all rooms and room variables updated for every user in a rate 20 updates/second. These are just the estimates, but i would rather have more powerfull server then less p...
- 04 Sep 2019, 11:51
- Forum: SFS2X Questions
- Topic: Server is full and Admin Tool problem
- Replies: 2
- Views: 3932
Re: Server is full and Admin Tool problem
Yesterday, we had similar issue.
I was not able to set the licence key, because i cannot login due server was full. I had to restart the server and login as soon as possible, set the licence and restart again.
I was not able to set the licence key, because i cannot login due server was full. I had to restart the server and login as soon as possible, set the licence and restart again.