Search found 20656 matches

by Lapo
18 Sep 2019, 09:35
Forum: SFS2X Questions
Topic: Curiosity about reconnection
Replies: 4
Views: 75

Re: Curiosity about reconnection

Hello, - When the user reconnection frame timer ends, what happens? Does the server try to send the client a Disconnect event? No. The client already knows that the previous connection is lost. When the timer is over the disconnect event is fired on the client. From the server side the User and rela...
by Lapo
17 Sep 2019, 16:30
Forum: SFS2X Questions
Topic: Extension requests and TCP packets
Replies: 4
Views: 99

Re: Extension requests and TCP packets

brockemon wrote:Would love for an option to mark certain packets to be grouped while others send immediately :)

You can always aggregate the data you want to transmit in one "Send" operation yourself.

Cheers
by Lapo
17 Sep 2019, 14:31
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 235

Re: Get user's IP

Yes, it will fail because the IP address is pointing to a local network.
Cheers.
by Lapo
17 Sep 2019, 08:13
Forum: SFS2X Questions
Topic: Extension requests and TCP packets
Replies: 4
Views: 99

Re: Extension requests and TCP packets

Hi, Just wondering if there is any automatic grouping of extension requests into single TCP packets. If not, are we guaranteed that every call to Send will be a new packet? It depends on the status of the TCP's Nagle algorithm settings. By default the latest SFS2X 2.13 disables it, so multiple resp...
by Lapo
16 Sep 2019, 15:22
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 235

Re: Get user's IP

Hi, Hello Lapo and thank you for the update, I have checked with other clients and they all return IP addresses like 10.2.1.1 or 10.2.1.2 Is there a way to find the user's IP then? No because the client is not physically connected to the server, but rather to an intermediary which then connects to t...
by Lapo
16 Sep 2019, 15:19
Forum: SFS2X Questions
Topic: Limit of scheduleAtFixedRate
Replies: 1
Views: 59

Re: Limit of scheduleAtFixedRate

Hi, there is no specific limit. Essentially it depends on these variables: 1) number of threads in the Scheduler 2) how frequent your tasks are 3) how long does it take for a task to complete 4) the number of tasks Example 1) Scheduler uses 1 thread 2) Tasks run every second 3) A task completes in 1...
by Lapo
16 Sep 2019, 07:53
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 235

Re: Get user's IP

Maybe it's best to clarify one point first. In your post you said you're getting "10.2.1.2" as the player's IP which corresponds to a local network IP. Does this happen for every player? In other words if you check any player's IP address you always get the same local IP? If so, it means t...
by Lapo
16 Sep 2019, 07:45
Forum: SFS2X Questions
Topic: Session Reconnection failure
Replies: 5
Views: 320

Re: Session Reconnection failure

Can I suggest that for a future upgrade, Smartfox moves to a sort of cookie based solution where the cookie identifies the user rather than the IP and connection ? It might help with development in this age where people are on phones and moving about so much. It will make retaining a connection so ...
by Lapo
16 Sep 2019, 07:03
Forum: SFS2X Questions
Topic: change username when logged in
Replies: 7
Views: 2845

Re: Re:

You can change the name at login time. See login tutorial: http://docs2x.smartfoxserver.com/GettingStarted/howtos#item3 My apologies, but this document seems to be missing or moved. I'm wondering how to go about changing the username from the java code at login time. Thanks! You can find it here: h...
by Lapo
14 Sep 2019, 07:06
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 235

Re: Get user's IP

Hi, it sounds like your client connections are going through some kind of load balancer? If that's the case there is no way to find out the original IP adddress. One side note, in SFS2X 2.12 and higher there's a much simpler way to get the country of User: import com.smartfoxserver.v2.util.Country; ...
by Lapo
13 Sep 2019, 09:27
Forum: SFS2X Questions
Topic: Can't run sfs2x-standalone.exe
Replies: 4
Views: 361

Re: Can't run sfs2x-standalone.exe

markcowell23 wrote:facing same issue. I did everything you said But nothing help :(

What OS are you using?
And what version of SFS2X are you trying to run?
Have you checked the server's startup logs? Any errors?

Thanks
by Lapo
11 Sep 2019, 09:56
Forum: SFS2X C# API
Topic: Sfs.MySelf might null after sucessfull login?
Replies: 10
Views: 384

Re: Sfs.MySelf might null after sucessfull login?

1. Might Sfs.MySelf be null inside login handler? We presumed, then it can never be null there, so we would have to change our code In the case you have described it could happen (two users logging at the same time with the same account) When you get a disconnection event the MySelf user is removed...
by Lapo
11 Sep 2019, 07:13
Forum: SFS2X C# API
Topic: Sfs.MySelf might null after sucessfull login?
Replies: 10
Views: 384

Re: Sfs.MySelf might null after sucessfull login?

Those errors you have pasted are expected. It simply means that one client was disconnected because the 2nd user logged in, right after. The client that gets disconnected should also receive the usual SFSEvent.CONNECTION_LOST. As regards the two users logging in at the same time with the same user n...
by Lapo
10 Sep 2019, 14:37
Forum: SFS2X C# API
Topic: Sfs.MySelf might null after sucessfull login?
Replies: 10
Views: 384

Re: Sfs.MySelf might null after sucessfull login?

Is there any server side warning or error when this happens?
Also what's the setting for the "forceLogout" parameter in the Zone config? Is it on? off?

Thanks
by Lapo
10 Sep 2019, 10:46
Forum: SFS2X C# API
Topic: Sfs.MySelf might null after sucessfull login?
Replies: 10
Views: 384

Re: Sfs.MySelf might null after sucessfull login?

Hi,
normally one of the two clients should receive a LOGIN_ERROR event.
Are you sure you're handling both LOGIN and LOGIN_ERROR events correctly?

Can you also please specify the version of the API in use, and the SFS2X version?

Thanks

Go to advanced search