Search found 106 matches

by xLite
12 Jun 2013, 01:11
Forum: SFS2X Questions
Topic: Custom Login Woes
Replies: 20
Views: 5076

Re: Custom Login Woes

You can change the name at login like so. public class LoginEventHandler extends BaseServerEventHandler { @Override public void handleServerEvent(ISFSEvent event) throws SFSException { String name = (String) event.getParameter(SFSEventParam.LOGIN_NAME); ISFSObject outData = (ISFSObject) event.getPar...
by xLite
09 Jun 2013, 18:47
Forum: SFS2X Questions
Topic: Minimum delaySeconds for SFSApi.kickUser() ?
Replies: 9
Views: 2275

Re: Minimum delaySeconds for SFSApi.kickUser() ?

So to be safe, it's best to use 3 you would say?
by xLite
07 Jun 2013, 12:13
Forum: SFS2X Questions
Topic: Minimum delaySeconds for SFSApi.kickUser() ?
Replies: 9
Views: 2275

Re: Minimum delaySeconds for SFSApi.kickUser() ?

So the server doesn't have a function that waits until the message is sent before disconnecting?
by xLite
07 Jun 2013, 11:07
Forum: SFS2X Questions
Topic: Minimum delaySeconds for SFSApi.kickUser() ?
Replies: 9
Views: 2275

Re: Minimum delaySeconds for SFSApi.kickUser() ?

What does that mean? Doesn't TCP guarantee the kick message is sent first?
by xLite
07 Jun 2013, 10:31
Forum: SFS2X Questions
Topic: Minimum delaySeconds for SFSApi.kickUser() ?
Replies: 9
Views: 2275

Re: Minimum delaySeconds for SFSApi.kickUser() ?

Uh oh, so there's a chance it might not be sent if 1-2 second delay is set?
by xLite
07 Jun 2013, 06:44
Forum: SFS2X Questions
Topic: Minimum delaySeconds for SFSApi.kickUser() ?
Replies: 9
Views: 2275

Minimum delaySeconds for SFSApi.kickUser() ?

Whats the minimum? Is there an instant option? I essentially just want to disconnect them but I want them to have a message saying why (to be used when malicious activity is detected, so I want the kick to be instant) . Although I'm not sure if you set the delay to low that it might disconnect them ...
by xLite
04 Jun 2013, 00:18
Forum: SFS2X Questions
Topic: Mysql Implementation
Replies: 16
Views: 4252

Re: Mysql Implementation

SFS2X\lib

driver class = org.gjt.mm.mysql.Driver

connection string = jdbc:mysql://host/dbname

* change host and dbname to the actual host and database name

More info: here
by xLite
22 May 2013, 11:42
Forum: SFS2X Questions
Topic: Exception Reasons
Replies: 11
Views: 2459

Re: Exception Reasons

My workflow is pretty much this. ⋅ Client sends a room id corresponding to a room in a mysql database, NOT a smartfoxserver room id ⋅ Server gets room info from database and either joins them to the SFS Room if it exists with the same db room id or if it doesn't exist on sfs, cre...
by xLite
20 May 2013, 22:30
Forum: SFS2X Questions
Topic: Exception Reasons
Replies: 11
Views: 2459

Re: Exception Reasons

It's so that, for example, if the exception is thrown because the room already exists, then I can join them to that room. Considering the server is multi threaded, it's possible for another thread to create the room after I check if it exists but before I actually create that room.
by xLite
20 May 2013, 13:06
Forum: SFS2X Questions
Topic: Exception Reasons
Replies: 11
Views: 2459

Re: Exception Reasons

The createRoom function according to the Java API only says it throws an exception. It doesn't say what type of error codes the exception might contain, for example CREATE_ROOM_ZONE_FULL etc. At least.. I can't find that list anywhere.
by xLite
20 May 2013, 11:07
Forum: SFS2X Questions
Topic: Exception Reasons
Replies: 11
Views: 2459

Re: Exception Reasons

I meant serverside, sfsapi.createRoom etc etc.
by xLite
20 May 2013, 08:41
Forum: SFS2X Questions
Topic: Exception Reasons
Replies: 11
Views: 2459

Exception Reasons

Is there a list of reasons why createRoom, joinRoom etc will throw an exception? I can't find a list of the exact exception reasons for it to throw which I really need so I know what to expect and how I can react.

Many thanks!
by xLite
18 May 2013, 00:46
Forum: SFS2X Questions
Topic: Synchronized Room access best practice?
Replies: 9
Views: 2241

Re: Synchronized Room access best practice?

Well I figured a good compromise would be to store a Lock object in each Room as a Room Variable , then use synchronize on that lock to ensure I can safely update room data when multiple changes are essential (for example, updating player position.. I need to calculate paths one at a time otherwise ...
by xLite
09 May 2013, 04:35
Forum: SFS2X Questions
Topic: Faster way of checking Extension logs?
Replies: 13
Views: 2763

Re: Faster way of checking Extension logs?

I've double checked it now and the jar file is indeed being overwritten. No errors pop up in the runtime or boot logs if that's where I should check? I have SFS installed in the program files folder in Windows and am running it as an administrator. Could that be a problem? That sounds like it could...
by xLite
05 May 2013, 19:07
Forum: SFS2X Questions
Topic: Faster way of checking Extension logs?
Replies: 13
Views: 2763

Re: Faster way of checking Extension logs?

Use hot redeploy, no need to restart the server.

Go to advanced search