Search found 21285 matches

by Lapo
25 Jul 2020, 17:54
Forum: Server Side Extension Development
Topic: How can I send this response to the server?
Replies: 2
Views: 850

Re: How can I send this response to the server?

It looks like you're trying to reverse engineer some existing game protocol.
We can't help you with this, sorry.
by Lapo
25 Jul 2020, 17:53
Forum: Server Side Extension Development
Topic: HELP!
Replies: 9
Views: 508

Re: HELP!

[ WARNING ] > InternalError: Can't find method it.gotoandplay.smartfoxserver.extensions.ExtensionHelper.joinRoom(sun.nio.ch.SocketChannelImpl,number,number,boolean,string,boolean,boolean). It seems like this could be caused by Extension code. Also is there a complete stack trace of the error? Thanks
by Lapo
25 Jul 2020, 17:51
Forum: SFS2X Questions
Topic: Discard UDP packet from 0:0 (IPv6)
Replies: 1
Views: 3712

Re: Discard UDP packet from 0:0 (IPv6)

Hi,
if the session created is of type BLUEBOX (i.e. HTTP tunnel) you won't be able to use UDP in most cases.
Why is the local client not able to reach the server via socket? Have you investigated?
Also is the initUDP request successful? I'd expect it to fail.

Thanks
by Lapo
24 Jul 2020, 14:48
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Kicked for swearing bug
Replies: 4
Views: 261

Re: Kicked for swearing bug

Maybe the changes you've made caused the issue. Can you go back to the previous settings?
What exactly was changed?

Cheers
by Lapo
24 Jul 2020, 12:22
Forum: Server Side Extension Development
Topic: HELP!
Replies: 9
Views: 508

Re: HELP!

The link that was posted by Rob is incorrect. That's for SmartFoxServer 2X but you're using SFS1.x
You should stick with the SFS1.x documentation:
https://www.smartfoxserver.com/docs/1x/

Server side API:
https://www.smartfoxserver.com/docs/1x/ ... /index.htm

cheers
by Lapo
24 Jul 2020, 10:51
Forum: SFS2X Questions
Topic: User Disconnection Cant Get Room and Room Variables
Replies: 13
Views: 1345

Re: User Disconnection Cant Get Room and Room Variables

I would not rely on this when there's a disconnection, because the references are getting removed.
I would use the suggestion I posted earlier, with the setProperty/getProperty

Cheers
by Lapo
24 Jul 2020, 07:07
Forum: SFS2X Questions
Topic: User Disconnection Cant Get Room and Room Variables
Replies: 13
Views: 1345

Re: User Disconnection Cant Get Room and Room Variables

Does your application allow for Users to join multiple Rooms at the same time? If not, you will always just find one Room in the list provided by the event, which is obviously the last Room it was joined. If yes, you will probably need to keep track of the last joined Room manually. By setting a pro...
by Lapo
24 Jul 2020, 07:03
Forum: SFS2X Questions
Topic: Buddy list across zones
Replies: 2
Views: 419

Re: Buddy list across zones

Hi, Zones are confined applications running concurrently in SFS2X. Using Zones to split a single app in multiple areas doesn't work well in SmartFoxServer, because that's not what Zones do. So what you're asking is not possible. The scope of a Buddy List is the Zone itself. Zones don't share users l...
by Lapo
24 Jul 2020, 06:56
Forum: SFS2X Questions
Topic: connection take times
Replies: 1
Views: 3287

Re: connection take times

Hi, since the database runs on the same machine as SFS2X it may be that the server machine is under stress when it takes hundreds of ms to establish a local connection. At least that seems the most probable explanation, but I would need more context. What hardware are you using? How many other servi...
by Lapo
23 Jul 2020, 12:08
Forum: SFS2X Questions
Topic: Server will run via ./sfs2x.sh but not via ./sfs2x-service start
Replies: 6
Views: 363

Re: Server will run via ./sfs2x.sh but not via ./sfs2x-service start

I've tested the same SFS2X version under Ubuntu Linux and did not find any issues. The memory settings are applied on every run. In any case, check the file called sfs2x-service.vmoptions under the SFS2X/ folder. Can you copy/paste the content here? In my test I used -Xms450M and -Xmx900M and the fi...
by Lapo
23 Jul 2020, 11:20
Forum: SFS2X Questions
Topic: User Disconnection Cant Get Room and Room Variables
Replies: 13
Views: 1345

Re: User Disconnection Cant Get Room and Room Variables

1. Please check the below code is correct or not? Or any-other ways there to split List? @SuppressWarnings("unchecked") List<Room> joinedRooms = (List<Room>) event.getParameter(SFSEventParam.JOINED_ROOMS); joinedRooms.get(0).getName().equals("The Lobby") Yes it's correct. 2. The...
by Lapo
23 Jul 2020, 11:17
Forum: SFS2X Questions
Topic: Async Login
Replies: 1
Views: 1366

Re: Async Login

Hi, no login must be synchronous. In any case the two things you have mentioned are only partially connected. The fact that other clients get disconnected is not due to the login process is aysnc or not. When a client connects to SFS2X a Session is created, though the user is not logged in yet. The ...
by Lapo
23 Jul 2020, 08:21
Forum: SFS2X Questions
Topic: User Disconnection Cant Get Room and Room Variables
Replies: 13
Views: 1345

Re: User Disconnection Cant Get Room and Room Variables

The code above will give you back the list of Rooms in which the User was joined.
From there you can extract the Room(s) and access their relative variables.

Cheers
by Lapo
23 Jul 2020, 08:20
Forum: SFS2X Questions
Topic: Unity and ThreadSafeMode=false
Replies: 4
Views: 1083

Re: Unity and ThreadSafeMode=false

What else can depend on thread SafeMode? I am sorry, I don't think I can help with this. This is not how the API is supposed to be used under Unity. You're free to change and modify anything you like but I won't be able to help. It would require a lot of code analysis, which is outside of what we c...
by Lapo
23 Jul 2020, 08:07
Forum: Server Side Extension Development
Topic: HELP!
Replies: 9
Views: 508

Re: HELP!

In order to handle a login you need to user server events.
Please make sure to read this tutorial:
https://www.smartfoxserver.com/docs/1x/ ... /index.htm

Cheers

Go to advanced search