Search found 20541 matches

by Lapo
19 Aug 2019, 14:43
Forum: 2X Features Wish List
Topic: SFS2X custom Admin Tool modules
Replies: 18
Views: 14980

Re: SFS2X custom Admin Tool modules

Hi,
nitish0021 wrote:hello evertone i have one question . Can i make sfs server auto restart whenever a new jar is uoloaded .
plz answe as soon as possible.

Sorry no. Plus it doesn't sound as a good idea given that you can hot-reload your Extensions anyways.

Cheers
by Lapo
19 Aug 2019, 14:40
Forum: SFS2X Questions
Topic: Server will auto-shutdown / fresh install on fresh system (vps server))
Replies: 5
Views: 1240

Re: Server will auto-shutdown / fresh install on fresh system (vps server))

Hi,
you need to launch SFS2X as a service, otherwise it will shutdown when you close the remote session.
The command to do it is:

Code: Select all

./sfs2x-service start


For more details check the installation docs here:
http://docs2x.smartfoxserver.com/Gettin ... tall-linux

Cheers
by Lapo
19 Aug 2019, 09:23
Forum: SFS2X Questions
Topic: Server will auto-shutdown / fresh install on fresh system (vps server))
Replies: 5
Views: 1240

Re: Server will auto-shutdown / fresh install on fresh system (vps server))

Port 8443 is used by SFS2X for HTTPS so it does collide with your other service bound on the same port.
If you cannot change the other service's HTTPS port then you'll have to configure SFS2X to use a different value.

You can edit the file under SFS2X/lib/jetty/start.d/ssl.ini

Hope it helps
by Lapo
18 Aug 2019, 18:58
Forum: SFS2X Questions
Topic: Server will auto-shutdown / fresh install on fresh system (vps server))
Replies: 5
Views: 1240

Re: Server will auto-shutdown / fresh install on fresh system (vps server))

Hi, this error: java.net.BindException: Address already in use means that there's another service using the HTTP ports (by default 8080 and 8443). Either there's another instance of SFS2X already running, or another service is indeed using those ports. I recommend checking which is which. Let us know
by Lapo
17 Aug 2019, 15:39
Forum: SFS2X Questions
Topic: JDBC autoReconnect error
Replies: 1
Views: 1284

Re: JDBC autoReconnect error

Hi,
what is the current value of the wait_timeout variable in your mysql server?

Thanks
by Lapo
17 Aug 2019, 15:25
Forum: SFS2X Questions
Topic: Handling leaveroom metrics when client is closed.
Replies: 2
Views: 52

Re: Handling leaveroom metrics when client is closed.

To catch the event you should add some code in your Extension's destroy() method. This is invoked before the Room is deleted and should do the trick.
It should be done like this:

Code: Select all

@Override
public void destroy()
{
   super.destroy()
   // my code...
}


Hope it helps
by Lapo
16 Aug 2019, 08:38
Forum: SFS2X C# API
Topic: How to correctly deserialize a ByteArrays as an SFSObject on the client?
Replies: 16
Views: 271

Re: How to correctly deserialize a ByteArrays as an SFSObject on the client?

The problem is on the client side. From server side you are sending an SFSArray wrapped in an SFSObject, but on client side you're not dealing with this structure. You're trying to extract a ByteArray from the top SFSObject when instead you have an SFSArray. Also the SFSArray contains the rows retur...
by Lapo
14 Aug 2019, 19:05
Forum: SFS2X Questions
Topic: Check server status in windows
Replies: 7
Views: 998

Re: Check server status in windows

So I need to keep that file open or server will be shut down?

You need to keep the application open, which in practice it just means you need not to close it. :)

Cheers
by Lapo
14 Aug 2019, 10:19
Forum: SFS2X Questions
Topic: Check server status in windows
Replies: 7
Views: 998

Re: Check server status in windows

tnx for the fast reply. another issue! if I install multiple instances of SFS on windows, how can manage their services? all of them will be added to that service in Windows service manager? I mean if I restart SFS service in service manager, all of them will be restarted? because in the setting of...
by Lapo
14 Aug 2019, 07:27
Forum: SFS2X C# API
Topic: How to correctly deserialize a ByteArrays as an SFSObject on the client?
Replies: 16
Views: 271

Re: How to correctly deserialize a ByteArrays as an SFSObject on the client?

I took a look and realized that not storing Query data, honestly I have no idea how to do it. So I think the code is incomplete because of my ignorance. :lol: Take a look at this example: https://smartfoxserver.com/blog/querying-the-database-and-sending-resultsets/ I was trying to return params as ...
by Lapo
14 Aug 2019, 07:26
Forum: SFS2X C# API
Topic: How to correctly deserialize a ByteArrays as an SFSObject on the client?
Replies: 16
Views: 271

Re: How to correctly deserialize a ByteArrays as an SFSObject on the client?

I took a look and realized that not storing Query data, honestly I have no idea how to do it. So I think the code is incomplete because of my ignorance. :lol: Take a look at this example: https://smartfoxserver.com/blog/querying-the-database-and-sending-resultsets/ Also the variable params represen...
by Lapo
14 Aug 2019, 07:24
Forum: SFS2X C# API
Topic: How to correctly deserialize a ByteArrays as an SFSObject on the client?
Replies: 16
Views: 271

Re: How to correctly deserialize a ByteArrays as an SFSObject on the client?

I took a look and realized that not storing Query data, honestly I have no idea how to do it. So I think the code is incomplete because of my ignorance. :lol: Take a look at this example: https://smartfoxserver.com/blog/querying-the-database-and-sending-resultsets/ Also the variable params represen...
by Lapo
14 Aug 2019, 07:10
Forum: SFS2X C# API
Topic: Adding spectators to Tris example
Replies: 2
Views: 67

Re: Adding spectators to Tris example

Hello, Clicking a game in the Lobby attempts to join as a player. In case there are 2 players already in the game, OnRoomJoinError(BaseEvent evt) fires. I am rejoining as a spectator in OnRoomJoinError(), but this seems a bad approach because if the game's MaxSpectators is already maxed out, or any ...
by Lapo
14 Aug 2019, 07:01
Forum: SFS2X Questions
Topic: Check server status in windows
Replies: 7
Views: 998

Re: Check server status in windows

Hi, if you installed SFS2X as a Windows service you can control it from the Windows service manager: https://www.thewindowsclub.com/open-windows-services Also you can monitor and restart/stop the server from its own AdminTool. Another question, can I run multiple instances of SFS on windows too? Yes...
by Lapo
13 Aug 2019, 16:40
Forum: SFS2X C# API
Topic: How to correctly deserialize a ByteArrays as an SFSObject on the client?
Replies: 16
Views: 271

Re: How to correctly deserialize a ByteArrays as an SFSObject on the client?

Thanks for the reiterating your scenario, I think it's pretty clear. However you did not address the questions I posted in the previous message. Can you please take a look and let us know?

Thanks

Go to advanced search