Search found 22649 matches

by Lapo
27 Jul 2007, 13:09
Forum: Server Side Extension Development
Topic: Chat History - Roomnames equal?
Replies: 3
Views: 6218

I fear that those two variables are of type java.lang.String and not AS native strings. Comparing two Java strings requires the usage of the equals() method instead of == ( which compares the equality of two references ) In java, if you have two strings s1="Hello" and s2="Hello" ...
by Lapo
27 Jul 2007, 08:21
Forum: Server Side Extension Development
Topic: Add extensions in admin interface
Replies: 3
Views: 5922

You have 2 options for reloading / starting / stopping extensions: 1. from the Zone Browser as explained here -> http://www.smartfoxserver.com/docs/docPages/running/extManager.htm 2. by turning on the <AutoReloadExtensions> feature. This allows you to recompile / reload your extensions each time the...
by Lapo
27 Jul 2007, 08:16
Forum: Server Side Extension Development
Topic: Porting js extension from different socket server
Replies: 1
Views: 4222

Hi and welcome, To give you an overview we have several clients connecting to a server and passing messages (objects) back and forth between the server and the client (in addition the server connects to a database layer (using LoadVars) to verify the data to send to the client). Using LoadVars for a...
by Lapo
27 Jul 2007, 08:08
Forum: Server Side Extension Development
Topic: call function from another extension
Replies: 9
Views: 12588

Yes, use the #include directive

in script B you add this line at the top of the code:

Code: Select all

#include "scriptA.as"


In this scenario script B is the one that should be used as the main extension file.
by Lapo
27 Jul 2007, 08:05
Forum: SmartFoxServer 1.x Discussions and Help
Topic: SFS Crashes
Replies: 1
Views: 4265

I've sent you an email
by Lapo
27 Jul 2007, 07:52
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Excessively High Sockets Connected Count
Replies: 4
Views: 7328

1. If you have a very high maxIdleTime value in your config the server won't auto-disconnect users. 2. You can use the IP filter to avoid too many connections from 1 single IP, by default this is set to 10 3. 15k connections will suck resources on your server machine and if the actual number of user...
by Lapo
27 Jul 2007, 07:48
Forum: SmartFoxServer 1.x Discussions and Help
Topic: autoJoin and setUserVariables
Replies: 1
Views: 3886

You can't set variables if you're not yet joined into a room, at least from the client side.

2 possible solutions:

1- from client side: login, join, set variables etc...
2- from server side: login, set your variables etc...
by Lapo
27 Jul 2007, 07:46
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Java code in AS
Replies: 2
Views: 5016

This can be done only server side, not client side
by Lapo
26 Jul 2007, 13:41
Forum: SmartFoxServer 1.x Discussions and Help
Topic: MaxUserIdleTime largest allowed setting
Replies: 4
Views: 5481

Hi, the problem is related with the fact that, internally, SFS treats the maxIdleTime as an integer but it needs to express that value in milliseconds. By multiplying this value * 1000 as an int it goes out of the max capacity of 32bit integer, resulting in a negative value (because bit 31 is set) W...
by Lapo
26 Jul 2007, 12:47
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Admin Tool v 1.3.5 bug
Replies: 1
Views: 3858

thanks piser, we'll be fixing this in the upcoming patch
by Lapo
26 Jul 2007, 06:33
Forum: Server Side Extension Development
Topic: Chat History - Roomnames equal?
Replies: 3
Views: 6218

maybe it's not executed because they are two different types.
e.room.getName() is certainly a string
I don't know what you store in -> chatVar[i].room

The approach is right, using Room Level extension would waste performance
by Lapo
25 Jul 2007, 06:43
Forum: Server Side Extension Development
Topic: Destroying Rooms once all users have left
Replies: 3
Views: 6871

the room can be destroyed when no one is inside.
The following condition is wrong:

Code: Select all

rucount<=1

it should be

Code: Select all

rucount == 0
by Lapo
25 Jul 2007, 06:37
Forum: Server Side Extension Development
Topic: can't find Zone.getRoom method
Replies: 1
Views: 5432

the explanation is that you're passing an undefined as the argument to the method, and the java runtime complains about the fact that it doesn't exist a getRoom() method wich accepts an undefined value instead of an int This is because getRoom is a Java method. You should make sure that the passed v...
by Lapo
25 Jul 2007, 06:34
Forum: Server Side Extension Development
Topic: Synchronized extension handling?
Replies: 1
Views: 4701

no, it's not synchronized. It's always better to synchronize only those objects that really need it, so synchronization is left to the developer based on their needs.
by Lapo
24 Jul 2007, 16:37
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Login to several zones problem
Replies: 2
Views: 5093

Zones represent different applications running on the same server instance. You can't connect to more than one Zone at a time with a single client application. It's as if you would like to see 2 website in the same webpage... you have two open two different web pages. More details on Zones, Rooms an...

Go to advanced search