Search found 51 matches

by Ardito
18 Dec 2019, 13:40
Forum: SFS2X Questions
Topic: Session Reconnection failure
Replies: 4
Views: 145

Re: Session Reconnection failure

This code works perfectly, I continue to use it .. User oldUser = getApi().getUserByName(id_user + ""); if(oldUser != null) { getApi().kickUser(oldUser, null, "a_u_l", 3); SFSErrorData errData = new SFSErrorData(SFSErrorCode.GENERIC_ERROR); errData.addParameter("already_conn...
by Ardito
17 Dec 2019, 17:49
Forum: SFS2X Questions
Topic: Session Reconnection failure
Replies: 4
Views: 145

Re: Session Reconnection failure

"Force Login" works, the client receives the "reason" parameter with "UNKNOWN" in it, how can I change it?

I need to notify the client that someone has logged in with his data. I use "UNKNOWN" when the connection is lost.
by Ardito
17 Dec 2019, 15:49
Forum: SFS2X Questions
Topic: Session Reconnection failure
Replies: 4
Views: 145

Session Reconnection failure

Hi, I'm working with Sfs2x v. 2.13.6, when a user logs in while another device is connected with the same account, I receive this Warning: 16:40:26,167 INFO [SocketReader] sessions.DefaultSessionManager - Session created: { Id: 8, Type: DEFAULT, Logged: No, IP: 80.117.124.118:52348 } on Server port:...
by Ardito
09 Oct 2019, 17:42
Forum: SFS2X Questions
Topic: NullReference session
Replies: 8
Views: 5380

Re: NullReference session

You are right. The room is destroyed when a user is disconnected

Thank's for help me :D
by Ardito
09 Oct 2019, 11:45
Forum: SFS2X Questions
Topic: NullReference session
Replies: 8
Views: 5380

Re: NullReference session

One thing is logging out and another is disconnecting. Which one is it? disconnecting Yes this problem can be replicated. I found the error to come from this script: public class PlayerSelectSlot extends BaseClientRequestHandler { @Override public void handleClientRequest(User user, ISFSObject para...
by Ardito
08 Oct 2019, 10:37
Forum: SFS2X Questions
Topic: NullReference session
Replies: 8
Views: 5380

Re: NullReference session

This happens when a user logs out, but before it disconnects everything works.

What could be the problem?
by Ardito
07 Oct 2019, 16:36
Forum: SFS2X Questions
Topic: NullReference session
Replies: 8
Views: 5380

Re: NullReference session

Of course My code: package loginserver; import com.smartfoxserver.v2.entities.User; import com.smartfoxserver.v2.entities.data.ISFSObject; import com.smartfoxserver.v2.entities.data.SFSArray; import com.smartfoxserver.v2.entities.data.SFSObject; import com.smartfoxserver.v2.extensions.BaseClientRequ...
by Ardito
07 Oct 2019, 14:02
Forum: SFS2X Questions
Topic: NullReference session
Replies: 8
Views: 5380

NullReference session

Hi, In my project, when a user loggin, I set all the user variables inside a Session variable, so that they are accessible from any part of the Server code: session.setProperty ("user_var", userVar); While the user plays in a 1 vs 1 game, if he accidentally disconnects, or loses the connec...
by Ardito
04 Oct 2019, 18:26
Forum: SFS2X Questions
Topic: Report Bug
Replies: 17
Views: 778

Re: Report Bug

I tried the Unity Example projects, and it actually works fine, but then what could be the problem in my project?
by Ardito
03 Oct 2019, 17:44
Forum: SFS2X C# API
Topic: Error on Unity examples pack
Replies: 3
Views: 785

Re: Error on Unity examples pack

Perfect
by Ardito
02 Oct 2019, 11:32
Forum: SFS2X C# API
Topic: Error on Unity examples pack
Replies: 3
Views: 785

Error on Unity examples pack

Hi, I tried the SFS2x examples with Unity 2019.2.6f1 (64-bit), and I get this: Debug: Rebuilding Library because the asset database could not be found! Warning: Assets\ConnectorAssets\Scripts\Connector.cs(31,14): warning CS0414: The field 'Connector.defaultWsPort' is assigned but its value is never ...
by Ardito
28 Sep 2019, 18:03
Forum: SFS2X Questions
Topic: Report Bug
Replies: 17
Views: 778

Re: Report Bug

did some tests: Socket addresses Type: TCP Session maximum idle time: 10 User maximum idle time: 30 Overridden user maximum idle time: 30 WORK Socket addresses Type: TCP Session maximum idle time: 10 User maximum idle time: 60 Overridden user maximum idle time: 60 WORK Socket addresses Type: TCP Ses...
by Ardito
28 Sep 2019, 09:02
Forum: SFS2X Questions
Topic: Report Bug
Replies: 17
Views: 778

Re: Report Bug

I don't understand it, sometimes it works, and sometimes it doesn't work
by Ardito
28 Sep 2019, 08:42
Forum: SFS2X Questions
Topic: Report Bug
Replies: 17
Views: 778

Re: Report Bug

Again, the client does not receive the inactivity disconnection.
by Ardito
27 Sep 2019, 18:46
Forum: SFS2X Questions
Topic: Report Bug
Replies: 17
Views: 778

Re: Report Bug

Yes, in my game after a user becomes inactive, I take him to the Login screen.

Go to advanced search